@undefineds.co/xpod 0.3.38 → 0.3.40
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,52 +1,52 @@
|
|
|
1
|
-
function Wx(l,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in l)){const d=Object.getOwnPropertyDescriptor(r,u);d&&Object.defineProperty(l,u,d.get?d:{enumerable:!0,get:()=>r[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();function _g(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var xu={exports:{}},Di={};var _p;function $x(){if(_p)return Di;_p=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var p in u)p!=="key"&&(d[p]=u[p])}else d=u;return u=d.ref,{$$typeof:l,type:r,key:h,ref:u!==void 0?u:null,props:d}}return Di.Fragment=i,Di.jsx=o,Di.jsxs=o,Di}var Dp;function eb(){return Dp||(Dp=1,xu.exports=$x()),xu.exports}var f=eb(),bu={exports:{}},ye={};var Mp;function tb(){if(Mp)return ye;Mp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.iterator;function N(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function R(j,G,Z){this.props=j,this.context=G,this.refs=T,this.updater=Z||D}R.prototype.isReactComponent={},R.prototype.setState=function(j,G){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,G,"setState")},R.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function O(){}O.prototype=R.prototype;function M(j,G,Z){this.props=j,this.context=G,this.refs=T,this.updater=Z||D}var q=M.prototype=new O;q.constructor=M,w(q,R.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function le(j,G,Z){var W=Z.ref;return{$$typeof:l,type:j,key:G,ref:W!==void 0?W:null,props:Z}}function se(j,G){return le(j.type,G,j.props)}function ue(j){return typeof j=="object"&&j!==null&&j.$$typeof===l}function $(j){var G={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return G[Z]})}var te=/\/+/g;function ee(j,G){return typeof j=="object"&&j!==null&&j.key!=null?$(""+j.key):G.toString(36)}function fe(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(P,P):(j.status="pending",j.then(function(G){j.status==="pending"&&(j.status="fulfilled",j.value=G)},function(G){j.status==="pending"&&(j.status="rejected",j.reason=G)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function _(j,G,Z,W,ce){var he=typeof j;(he==="undefined"||he==="boolean")&&(j=null);var I=!1;if(j===null)I=!0;else switch(he){case"bigint":case"string":case"number":I=!0;break;case"object":switch(j.$$typeof){case l:case i:I=!0;break;case b:return I=j._init,_(I(j._payload),G,Z,W,ce)}}if(I)return ce=ce(j),I=W===""?"."+ee(j,0):W,Q(ce)?(Z="",I!=null&&(Z=I.replace(te,"$&/")+"/"),_(ce,G,Z,"",function(re){return re})):ce!=null&&(ue(ce)&&(ce=se(ce,Z+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(te,"$&/")+"/")+I)),G.push(ce)),1;I=0;var me=W===""?".":W+":";if(Q(j))for(var J=0;J<j.length;J++)W=j[J],he=me+ee(W,J),I+=_(W,G,Z,he,ce);else if(J=N(j),typeof J=="function")for(j=J.call(j),J=0;!(W=j.next()).done;)W=W.value,he=me+ee(W,J++),I+=_(W,G,Z,he,ce);else if(he==="object"){if(typeof j.then=="function")return _(fe(j),G,Z,W,ce);throw G=String(j),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return I}function U(j,G,Z){if(j==null)return j;var W=[],ce=0;return _(j,W,"","",function(he){return G.call(Z,he,ce++)}),W}function V(j){if(j._status===-1){var G=j._result;G=G(),G.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=G)}if(j._status===1)return j._result.default;throw j._result}var ae=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},ge={map:U,forEach:function(j,G,Z){U(j,function(){G.apply(this,arguments)},Z)},count:function(j){var G=0;return U(j,function(){G++}),G},toArray:function(j){return U(j,function(G){return G})||[]},only:function(j){if(!ue(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ye.Activity=S,ye.Children=ge,ye.Component=R,ye.Fragment=o,ye.Profiler=u,ye.PureComponent=M,ye.StrictMode=r,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ye.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Y.H.useMemoCache(j)}},ye.cache=function(j){return function(){return j.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(j,G,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var W=w({},j.props),ce=j.key;if(G!=null)for(he in G.key!==void 0&&(ce=""+G.key),G)!ne.call(G,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&G.ref===void 0||(W[he]=G[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var I=Array(he),me=0;me<he;me++)I[me]=arguments[me+2];W.children=I}return le(j.type,ce,W)},ye.createContext=function(j){return j={$$typeof:h,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},ye.createElement=function(j,G,Z){var W,ce={},he=null;if(G!=null)for(W in G.key!==void 0&&(he=""+G.key),G)ne.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ce[W]=G[W]);var I=arguments.length-2;if(I===1)ce.children=Z;else if(1<I){for(var me=Array(I),J=0;J<I;J++)me[J]=arguments[J+2];ce.children=me}if(j&&j.defaultProps)for(W in I=j.defaultProps,I)ce[W]===void 0&&(ce[W]=I[W]);return le(j,he,ce)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(j){return{$$typeof:p,render:j}},ye.isValidElement=ue,ye.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:V}},ye.memo=function(j,G){return{$$typeof:y,type:j,compare:G===void 0?null:G}},ye.startTransition=function(j){var G=Y.T,Z={};Y.T=Z;try{var W=j(),ce=Y.S;ce!==null&&ce(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(P,ae)}catch(he){ae(he)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),Y.T=G}},ye.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ye.use=function(j){return Y.H.use(j)},ye.useActionState=function(j,G,Z){return Y.H.useActionState(j,G,Z)},ye.useCallback=function(j,G){return Y.H.useCallback(j,G)},ye.useContext=function(j){return Y.H.useContext(j)},ye.useDebugValue=function(){},ye.useDeferredValue=function(j,G){return Y.H.useDeferredValue(j,G)},ye.useEffect=function(j,G){return Y.H.useEffect(j,G)},ye.useEffectEvent=function(j){return Y.H.useEffectEvent(j)},ye.useId=function(){return Y.H.useId()},ye.useImperativeHandle=function(j,G,Z){return Y.H.useImperativeHandle(j,G,Z)},ye.useInsertionEffect=function(j,G){return Y.H.useInsertionEffect(j,G)},ye.useLayoutEffect=function(j,G){return Y.H.useLayoutEffect(j,G)},ye.useMemo=function(j,G){return Y.H.useMemo(j,G)},ye.useOptimistic=function(j,G){return Y.H.useOptimistic(j,G)},ye.useReducer=function(j,G,Z){return Y.H.useReducer(j,G,Z)},ye.useRef=function(j){return Y.H.useRef(j)},ye.useState=function(j){return Y.H.useState(j)},ye.useSyncExternalStore=function(j,G,Z){return Y.H.useSyncExternalStore(j,G,Z)},ye.useTransition=function(){return Y.H.useTransition()},ye.version="19.2.3",ye}var Up;function cf(){return Up||(Up=1,bu.exports=tb()),bu.exports}var v=cf();const $t=_g(v),Dg=Wx({__proto__:null,default:$t},[v]);var Su={exports:{}},Mi={},wu={exports:{}},Eu={};var Lp;function nb(){return Lp||(Lp=1,(function(l){function i(_,U){var V=_.length;_.push(U);e:for(;0<V;){var ae=V-1>>>1,ge=_[ae];if(0<u(ge,U))_[ae]=U,_[V]=ge,V=ae;else break e}}function o(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var U=_[0],V=_.pop();if(V!==U){_[0]=V;e:for(var ae=0,ge=_.length,j=ge>>>1;ae<j;){var G=2*(ae+1)-1,Z=_[G],W=G+1,ce=_[W];if(0>u(Z,V))W<ge&&0>u(ce,Z)?(_[ae]=ce,_[W]=V,ae=W):(_[ae]=Z,_[G]=V,ae=G);else if(W<ge&&0>u(ce,V))_[ae]=ce,_[W]=V,ae=W;else break e}}return U}function u(_,U){var V=_.sortIndex-U.sortIndex;return V!==0?V:_.id-U.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var g=[],y=[],b=1,S=null,C=3,N=!1,D=!1,w=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function q(_){for(var U=o(y);U!==null;){if(U.callback===null)r(y);else if(U.startTime<=_)r(y),U.sortIndex=U.expirationTime,i(g,U);else break;U=o(y)}}function Q(_){if(w=!1,q(_),!D)if(o(g)!==null)D=!0,P||(P=!0,$());else{var U=o(y);U!==null&&fe(Q,U.startTime-_)}}var P=!1,Y=-1,ne=5,le=-1;function se(){return T?!0:!(l.unstable_now()-le<ne)}function ue(){if(T=!1,P){var _=l.unstable_now();le=_;var U=!0;try{e:{D=!1,w&&(w=!1,O(Y),Y=-1),N=!0;var V=C;try{t:{for(q(_),S=o(g);S!==null&&!(S.expirationTime>_&&se());){var ae=S.callback;if(typeof ae=="function"){S.callback=null,C=S.priorityLevel;var ge=ae(S.expirationTime<=_);if(_=l.unstable_now(),typeof ge=="function"){S.callback=ge,q(_),U=!0;break t}S===o(g)&&r(g),q(_)}else r(g);S=o(g)}if(S!==null)U=!0;else{var j=o(y);j!==null&&fe(Q,j.startTime-_),U=!1}}break e}finally{S=null,C=V,N=!1}U=void 0}}finally{U?$():P=!1}}}var $;if(typeof M=="function")$=function(){M(ue)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ee=te.port2;te.port1.onmessage=ue,$=function(){ee.postMessage(null)}}else $=function(){R(ue,0)};function fe(_,U){Y=R(function(){_(l.unstable_now())},U)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(_){_.callback=null},l.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"):ne=0<_?Math.floor(1e3/_):5},l.unstable_getCurrentPriorityLevel=function(){return C},l.unstable_next=function(_){switch(C){case 1:case 2:case 3:var U=3;break;default:U=C}var V=C;C=U;try{return _()}finally{C=V}},l.unstable_requestPaint=function(){T=!0},l.unstable_runWithPriority=function(_,U){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=C;C=_;try{return U()}finally{C=V}},l.unstable_scheduleCallback=function(_,U,V){var ae=l.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ae+V:ae):V=ae,_){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=V+ge,_={id:b++,callback:U,priorityLevel:_,startTime:V,expirationTime:ge,sortIndex:-1},V>ae?(_.sortIndex=V,i(y,_),o(g)===null&&_===o(y)&&(w?(O(Y),Y=-1):w=!0,fe(Q,V-ae))):(_.sortIndex=ge,i(g,_),D||N||(D=!0,P||(P=!0,$()))),_},l.unstable_shouldYield=se,l.unstable_wrapCallback=function(_){var U=C;return function(){var V=C;C=U;try{return _.apply(this,arguments)}finally{C=V}}}})(Eu)),Eu}var Bp;function lb(){return Bp||(Bp=1,wu.exports=nb()),wu.exports}var Cu={exports:{}},dt={};var Hp;function ab(){if(Hp)return dt;Hp=1;var l=cf();function i(g){var y="https://react.dev/errors/"+g;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(g,y,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:g,containerInfo:y,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.createPortal=function(g,y){var b=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(g,y,null,b)},dt.flushSync=function(g){var y=h.T,b=r.p;try{if(h.T=null,r.p=2,g)return g()}finally{h.T=y,r.p=b,r.d.f()}},dt.preconnect=function(g,y){typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(g,y))},dt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},dt.preinit=function(g,y){if(typeof g=="string"&&y&&typeof y.as=="string"){var b=y.as,S=p(b,y.crossOrigin),C=typeof y.integrity=="string"?y.integrity:void 0,N=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?r.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:N}):b==="script"&&r.d.X(g,{crossOrigin:S,integrity:C,fetchPriority:N,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(g,y){if(typeof g=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=p(y.as,y.crossOrigin);r.d.M(g,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(g)},dt.preload=function(g,y){if(typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,S=p(b,y.crossOrigin);r.d.L(g,b,{crossOrigin:S,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})}},dt.preloadModule=function(g,y){if(typeof g=="string")if(y){var b=p(y.as,y.crossOrigin);r.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(g)},dt.requestFormReset=function(g){r.d.r(g)},dt.unstable_batchedUpdates=function(g,y){return g(y)},dt.useFormState=function(g,y,b){return h.H.useFormState(g,y,b)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.3",dt}var kp;function Mg(){if(kp)return Cu.exports;kp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Cu.exports=ab(),Cu.exports}var Yp;function ib(){if(Yp)return Mi;Yp=1;var l=lb(),i=cf(),o=Mg();function r(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 u(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 g(e){if(d(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(a=c.return,a!==null){n=a;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return g(c),e;if(s===a)return g(c),t;s=s.sibling}throw Error(r(188))}if(n.return!==a.return)n=c,a=s;else{for(var m=!1,x=c.child;x;){if(x===n){m=!0,n=c,a=s;break}if(x===a){m=!0,a=c,n=s;break}x=x.sibling}if(!m){for(x=s.child;x;){if(x===n){m=!0,n=s,a=c;break}if(x===a){m=!0,a=s,n=c;break}x=x.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,C=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),T=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"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ee(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 R:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case P: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 ne:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var fe=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ae=[],ge=-1;function j(e){return{current:e}}function G(e){0>ge||(e.current=ae[ge],ae[ge]=null,ge--)}function Z(e,t){ge++,ae[ge]=e.current,e.current=t}var W=j(null),ce=j(null),he=j(null),I=j(null);function me(e,t){switch(Z(he,t),Z(ce,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tp(t),e=np(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),Z(W,e)}function J(){G(W),G(ce),G(he)}function re(e){e.memoizedState!==null&&Z(I,e);var t=W.current,n=np(t,e.type);t!==n&&(Z(ce,e),Z(W,n))}function ve(e){ce.current===e&&(G(W),G(ce)),I.current===e&&(G(I),Ri._currentValue=V)}var je,_e;function Ke(e){if(je===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||"",_e=-1<n.stack.indexOf(`
|
|
1
|
+
function fb(a,i){for(var r=0;r<i.length;r++){const c=i[r];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in a)){const d=Object.getOwnPropertyDescriptor(c,u);d&&Object.defineProperty(a,u,d.get?d:{enumerable:!0,get:()=>c[u]})}}}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 u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function r(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(u){if(u.ep)return;u.ep=!0;const d=r(u);fetch(u.href,d)}})();function Yg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Su={exports:{}},Hi={};var qp;function db(){if(qp)return Hi;qp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var p in u)p!=="key"&&(d[p]=u[p])}else d=u;return u=d.ref,{$$typeof:a,type:c,key:h,ref:u!==void 0?u:null,props:d}}return Hi.Fragment=i,Hi.jsx=r,Hi.jsxs=r,Hi}var Fp;function hb(){return Fp||(Fp=1,Su.exports=db()),Su.exports}var f=hb(),wu={exports:{}},ye={};var Vp;function mb(){if(Vp)return ye;Vp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function T(E,Y,J){this.props=E,this.context=Y,this.refs=A,this.updater=J||O}T.prototype.isReactComponent={},T.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Y,"setState")},T.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function z(){}z.prototype=T.prototype;function M(E,Y,J){this.props=E,this.context=Y,this.refs=A,this.updater=J||O}var F=M.prototype=new z;F.constructor=M,w(F,T.prototype),F.isPureReactComponent=!0;var K=Array.isArray;function Z(){}var k={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function re(E,Y,J){var I=J.ref;return{$$typeof:a,type:E,key:Y,ref:I!==void 0?I:null,props:J}}function ae(E,Y){return re(E.type,Y,E.props)}function ue(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function de(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return Y[J]})}var ve=/\/+/g;function ne(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?de(""+E.key):Y.toString(36)}function pe(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(Z,Z):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,Y,J,I,te){var ie=typeof E;(ie==="undefined"||ie==="boolean")&&(E=null);var W=!1;if(E===null)W=!0;else switch(ie){case"bigint":case"string":case"number":W=!0;break;case"object":switch(E.$$typeof){case a:case i:W=!0;break;case S:return W=E._init,D(W(E._payload),Y,J,I,te)}}if(W)return te=te(E),W=I===""?"."+ne(E,0):I,K(te)?(J="",W!=null&&(J=W.replace(ve,"$&/")+"/"),D(te,Y,J,"",function(se){return se})):te!=null&&(ue(te)&&(te=ae(te,J+(te.key==null||E&&E.key===te.key?"":(""+te.key).replace(ve,"$&/")+"/")+W)),Y.push(te)),1;W=0;var ce=I===""?".":I+":";if(K(E))for(var Q=0;Q<E.length;Q++)I=E[Q],ie=ce+ne(I,Q),W+=D(I,Y,J,ie,te);else if(Q=N(E),typeof Q=="function")for(E=Q.call(E),Q=0;!(I=E.next()).done;)I=I.value,ie=ce+ne(I,Q++),W+=D(I,Y,J,ie,te);else if(ie==="object"){if(typeof E.then=="function")return D(pe(E),Y,J,I,te);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return W}function U(E,Y,J){if(E==null)return E;var I=[],te=0;return D(E,I,"","",function(ie){return Y.call(J,ie,te++)}),I}function G(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var $=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=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(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},me={map:U,forEach:function(E,Y,J){U(E,function(){Y.apply(this,arguments)},J)},count:function(E){var Y=0;return U(E,function(){Y++}),Y},toArray:function(E){return U(E,function(Y){return Y})||[]},only:function(E){if(!ue(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ye.Activity=b,ye.Children=me,ye.Component=T,ye.Fragment=r,ye.Profiler=u,ye.PureComponent=M,ye.StrictMode=c,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ye.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},ye.cache=function(E){return function(){return E.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(E,Y,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var I=w({},E.props),te=E.key;if(Y!=null)for(ie in Y.key!==void 0&&(te=""+Y.key),Y)!ee.call(Y,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&Y.ref===void 0||(I[ie]=Y[ie]);var ie=arguments.length-2;if(ie===1)I.children=J;else if(1<ie){for(var W=Array(ie),ce=0;ce<ie;ce++)W[ce]=arguments[ce+2];I.children=W}return re(E.type,te,I)},ye.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ye.createElement=function(E,Y,J){var I,te={},ie=null;if(Y!=null)for(I in Y.key!==void 0&&(ie=""+Y.key),Y)ee.call(Y,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(te[I]=Y[I]);var W=arguments.length-2;if(W===1)te.children=J;else if(1<W){for(var ce=Array(W),Q=0;Q<W;Q++)ce[Q]=arguments[Q+2];te.children=ce}if(E&&E.defaultProps)for(I in W=E.defaultProps,W)te[I]===void 0&&(te[I]=W[I]);return re(E,ie,te)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(E){return{$$typeof:p,render:E}},ye.isValidElement=ue,ye.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:G}},ye.memo=function(E,Y){return{$$typeof:v,type:E,compare:Y===void 0?null:Y}},ye.startTransition=function(E){var Y=k.T,J={};k.T=J;try{var I=E(),te=k.S;te!==null&&te(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(Z,$)}catch(ie){$(ie)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),k.T=Y}},ye.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ye.use=function(E){return k.H.use(E)},ye.useActionState=function(E,Y,J){return k.H.useActionState(E,Y,J)},ye.useCallback=function(E,Y){return k.H.useCallback(E,Y)},ye.useContext=function(E){return k.H.useContext(E)},ye.useDebugValue=function(){},ye.useDeferredValue=function(E,Y){return k.H.useDeferredValue(E,Y)},ye.useEffect=function(E,Y){return k.H.useEffect(E,Y)},ye.useEffectEvent=function(E){return k.H.useEffectEvent(E)},ye.useId=function(){return k.H.useId()},ye.useImperativeHandle=function(E,Y,J){return k.H.useImperativeHandle(E,Y,J)},ye.useInsertionEffect=function(E,Y){return k.H.useInsertionEffect(E,Y)},ye.useLayoutEffect=function(E,Y){return k.H.useLayoutEffect(E,Y)},ye.useMemo=function(E,Y){return k.H.useMemo(E,Y)},ye.useOptimistic=function(E,Y){return k.H.useOptimistic(E,Y)},ye.useReducer=function(E,Y,J){return k.H.useReducer(E,Y,J)},ye.useRef=function(E){return k.H.useRef(E)},ye.useState=function(E){return k.H.useState(E)},ye.useSyncExternalStore=function(E,Y,J){return k.H.useSyncExternalStore(E,Y,J)},ye.useTransition=function(){return k.H.useTransition()},ye.version="19.2.3",ye}var Xp;function uf(){return Xp||(Xp=1,wu.exports=mb()),wu.exports}var y=uf();const en=Yg(y),qg=fb({__proto__:null,default:en},[y]);var Eu={exports:{}},ki={},Cu={exports:{}},Nu={};var Gp;function pb(){return Gp||(Gp=1,(function(a){function i(D,U){var G=D.length;D.push(U);e:for(;0<G;){var $=G-1>>>1,me=D[$];if(0<u(me,U))D[$]=U,D[G]=me,G=$;else break e}}function r(D){return D.length===0?null:D[0]}function c(D){if(D.length===0)return null;var U=D[0],G=D.pop();if(G!==U){D[0]=G;e:for(var $=0,me=D.length,E=me>>>1;$<E;){var Y=2*($+1)-1,J=D[Y],I=Y+1,te=D[I];if(0>u(J,G))I<me&&0>u(te,J)?(D[$]=te,D[I]=G,$=I):(D[$]=J,D[Y]=G,$=Y);else if(I<me&&0>u(te,G))D[$]=te,D[I]=G,$=I;else break e}}return U}function u(D,U){var G=D.sortIndex-U.sortIndex;return G!==0?G:D.id-U.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 g=[],v=[],S=1,b=null,j=3,N=!1,O=!1,w=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var U=r(v);U!==null;){if(U.callback===null)c(v);else if(U.startTime<=D)c(v),U.sortIndex=U.expirationTime,i(g,U);else break;U=r(v)}}function K(D){if(w=!1,F(D),!O)if(r(g)!==null)O=!0,Z||(Z=!0,de());else{var U=r(v);U!==null&&pe(K,U.startTime-D)}}var Z=!1,k=-1,ee=5,re=-1;function ae(){return A?!0:!(a.unstable_now()-re<ee)}function ue(){if(A=!1,Z){var D=a.unstable_now();re=D;var U=!0;try{e:{O=!1,w&&(w=!1,z(k),k=-1),N=!0;var G=j;try{t:{for(F(D),b=r(g);b!==null&&!(b.expirationTime>D&&ae());){var $=b.callback;if(typeof $=="function"){b.callback=null,j=b.priorityLevel;var me=$(b.expirationTime<=D);if(D=a.unstable_now(),typeof me=="function"){b.callback=me,F(D),U=!0;break t}b===r(g)&&c(g),F(D)}else c(g);b=r(g)}if(b!==null)U=!0;else{var E=r(v);E!==null&&pe(K,E.startTime-D),U=!1}}break e}finally{b=null,j=G,N=!1}U=void 0}}finally{U?de():Z=!1}}}var de;if(typeof M=="function")de=function(){M(ue)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,ne=ve.port2;ve.port1.onmessage=ue,de=function(){ne.postMessage(null)}}else de=function(){T(ue,0)};function pe(D,U){k=T(function(){D(a.unstable_now())},U)}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(D){D.callback=null},a.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<D?Math.floor(1e3/D):5},a.unstable_getCurrentPriorityLevel=function(){return j},a.unstable_next=function(D){switch(j){case 1:case 2:case 3:var U=3;break;default:U=j}var G=j;j=U;try{return D()}finally{j=G}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var G=j;j=D;try{return U()}finally{j=G}},a.unstable_scheduleCallback=function(D,U,G){var $=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?$+G:$):G=$,D){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=G+me,D={id:S++,callback:U,priorityLevel:D,startTime:G,expirationTime:me,sortIndex:-1},G>$?(D.sortIndex=G,i(v,D),r(g)===null&&D===r(v)&&(w?(z(k),k=-1):w=!0,pe(K,G-$))):(D.sortIndex=me,i(g,D),O||N||(O=!0,Z||(Z=!0,de()))),D},a.unstable_shouldYield=ae,a.unstable_wrapCallback=function(D){var U=j;return function(){var G=j;j=U;try{return D.apply(this,arguments)}finally{j=G}}}})(Nu)),Nu}var Pp;function gb(){return Pp||(Pp=1,Cu.exports=pb()),Cu.exports}var ju={exports:{}},dt={};var Kp;function vb(){if(Kp)return dt;Kp=1;var a=uf();function i(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)v+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={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},u=Symbol.for("react.portal");function d(g,v,S){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:v,implementation:S}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,dt.createPortal=function(g,v){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(g,v,null,S)},dt.flushSync=function(g){var v=h.T,S=c.p;try{if(h.T=null,c.p=2,g)return g()}finally{h.T=v,c.p=S,c.d.f()}},dt.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(g,v))},dt.prefetchDNS=function(g){typeof g=="string"&&c.d.D(g)},dt.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var S=v.as,b=p(S,v.crossOrigin),j=typeof v.integrity=="string"?v.integrity:void 0,N=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;S==="style"?c.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:j,fetchPriority:N}):S==="script"&&c.d.X(g,{crossOrigin:b,integrity:j,fetchPriority:N,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},dt.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var S=p(v.as,v.crossOrigin);c.d.M(g,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(g)},dt.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var S=v.as,b=p(S,v.crossOrigin);c.d.L(g,S,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},dt.preloadModule=function(g,v){if(typeof g=="string")if(v){var S=p(v.as,v.crossOrigin);c.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(g)},dt.requestFormReset=function(g){c.d.r(g)},dt.unstable_batchedUpdates=function(g,v){return g(v)},dt.useFormState=function(g,v,S){return h.H.useFormState(g,v,S)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.3",dt}var Qp;function Fg(){if(Qp)return ju.exports;Qp=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(),ju.exports=vb(),ju.exports}var Zp;function yb(){if(Zp)return ki;Zp=1;var a=gb(),i=uf(),r=Fg();function c(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 u(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 g(e){if(d(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(c(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return g(o),e;if(s===l)return g(o),t;s=s.sibling}throw Error(c(188))}if(n.return!==l.return)n=o,l=s;else{for(var m=!1,x=o.child;x;){if(x===n){m=!0,n=o,l=s;break}if(x===l){m=!0,l=o,n=s;break}x=x.sibling}if(!m){for(x=s.child;x;){if(x===n){m=!0,n=s,l=o;break}if(x===l){m=!0,l=s,n=o;break}x=x.sibling}if(!m)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(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,j=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case T:return"Profiler";case A:return"StrictMode";case K:return"Suspense";case Z:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case M:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var pe=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},$=[],me=-1;function E(e){return{current:e}}function Y(e){0>me||(e.current=$[me],$[me]=null,me--)}function J(e,t){me++,$[me]=e.current,e.current=t}var I=E(null),te=E(null),ie=E(null),W=E(null);function ce(e,t){switch(J(ie,t),J(te,e),J(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=fp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(I),J(I,e)}function Q(){Y(I),Y(te),Y(ie)}function se(e){e.memoizedState!==null&&J(W,e);var t=I.current,n=fp(t,e.type);t!==n&&(J(te,e),J(I,n))}function he(e){te.current===e&&(Y(I),Y(te)),W.current===e&&(Y(W),Mi._currentValue=G)}var je,Le;function Ye(e){if(je===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);je=t&&t[1]||"",Le=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+je+e+
|
|
3
|
+
`+je+e+Le}var Be=!1;function ht(e,t){if(!e||Be)return"";Be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(q){var H=q}Reflect.construct(e,[],P)}else{try{P.call()}catch(q){H=q}e.call(P.prototype)}}else{try{throw Error()}catch(q){H=q}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),m=s[0],x=s[1];if(m&&x){var C=m.split(`
|
|
4
4
|
`),B=x.split(`
|
|
5
|
-
`);for(
|
|
6
|
-
`+
|
|
7
|
-
Error generating stack: `+
|
|
8
|
-
`+a.stack}}var gn=Object.prototype.hasOwnProperty,Vl=l.unstable_scheduleCallback,cr=l.unstable_cancelCallback,Oy=l.unstable_shouldYield,zy=l.unstable_requestPaint,Et=l.unstable_now,_y=l.unstable_getCurrentPriorityLevel,Df=l.unstable_ImmediatePriority,Mf=l.unstable_UserBlockingPriority,tc=l.unstable_NormalPriority,Dy=l.unstable_LowPriority,Uf=l.unstable_IdlePriority,My=l.log,Uy=l.unstable_setDisableYieldValue,qa=null,Ct=null;function Gn(e){if(typeof My=="function"&&Uy(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(qa,e)}catch{}}var Nt=Math.clz32?Math.clz32:Hy,Ly=Math.log,By=Math.LN2;function Hy(e){return e>>>=0,e===0?32:31-(Ly(e)/By|0)|0}var nc=256,lc=262144,ac=4194304;function bl(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 ic(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var c=0,s=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=a&134217727;return x!==0?(a=x&~s,a!==0?c=bl(a):(m&=x,m!==0?c=bl(m):n||(n=x&~e,n!==0&&(c=bl(n))))):(x=a&~s,x!==0?c=bl(x):m!==0?c=bl(m):n||(n=a&~e,n!==0&&(c=bl(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function Va(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ky(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 Lf(){var e=ac;return ac<<=1,(ac&62914560)===0&&(ac=4194304),e}function or(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yy(e,t,n,a,c,s){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,B=e.hiddenUpdates;for(n=m&~n;0<n;){var X=31-Nt(n),K=1<<X;x[X]=0,E[X]=-1;var H=B[X];if(H!==null)for(B[X]=null,X=0;X<H.length;X++){var k=H[X];k!==null&&(k.lane&=-536870913)}n&=~K}a!==0&&Bf(e,a,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(m&~t))}function Bf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Hf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),c=1<<a;c&t|e[a]&t&&(e[a]|=t),n&=~c}}function kf(e,t){var n=t&-t;return n=(n&42)!==0?1:rr(n),(n&(e.suspendedLanes|t))!==0?0:n}function rr(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 sr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:Np(e.type))}function qf(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}var Fn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Fn,pt="__reactProps$"+Fn,Xl="__reactContainer$"+Fn,ur="__reactEvents$"+Fn,qy="__reactListeners$"+Fn,Vy="__reactHandles$"+Fn,Vf="__reactResources$"+Fn,Ga="__reactMarker$"+Fn;function fr(e){delete e[ct],delete e[pt],delete e[ur],delete e[qy],delete e[Vy]}function Gl(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xl]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sp(e);e!==null;){if(n=e[ct])return n;e=sp(e)}return t}e=n,n=e.parentNode}return null}function Fl(e){if(e=e[ct]||e[Xl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Kl(e){var t=e[Vf];return t||(t=e[Vf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Ga]=!0}var Xf=new Set,Gf={};function Sl(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Gf[e]=t,e=0;e<t.length;e++)Xf.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]*$"),Ff={},Kf={};function Gy(e){return gn.call(Kf,e)?!0:gn.call(Ff,e)?!1:Xy.test(e)?Kf[e]=!0:(Ff[e]=!0,!1)}function cc(e,t,n){if(Gy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function oc(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 vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,s.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){if(!e._valueTracker){var t=Qf(e)?"checked":"value";e._valueTracker=Fy(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Qf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function rc(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 Ky=/[\n"\\]/g;function Yt(e){return e.replace(Ky,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hr(e,t,n,a,c,s,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=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?mr(e,m,kt(t)):n!=null?mr(e,m,kt(n)):a!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+kt(x):e.removeAttribute("name")}function Pf(e,t,n,a,c,s,m,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){dr(e);return}n=n!=null?""+kt(n):"",t=t!=null?""+kt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}a=a??c,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=x?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),dr(e)}function mr(e,t,n){t==="number"&&rc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Zl(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+kt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Jf(e,t,n){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kt(n):""}function If(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(fe(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=kt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),dr(e)}function Pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qy=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 Wf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Qy.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(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var c in t)a=t[c],t.hasOwnProperty(c)&&n[c]!==a&&Wf(e,c,a)}else for(var s in t)t.hasOwnProperty(s)&&Wf(e,s,t[s])}function pr(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 Zy=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"]]),Py=/^[\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 sc(e){return Py.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var gr=null;function vr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,Il=null;function ed(e){var t=Fl(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(hr(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="'+Yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var c=a[pt]||null;if(!c)throw Error(r(90));hr(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Zf(a)}break e;case"textarea":Jf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zl(e,!!n.multiple,t,!1)}}}var yr=!1;function td(e,t,n){if(yr)return e(t,n);yr=!0;try{var a=e(t);return a}finally{if(yr=!1,(Jl!==null||Il!==null)&&(Jc(),Jl&&(t=Jl,e=Il,Il=Jl=null,ed(t),e)))for(t=0;t<e.length;t++)ed(e[t])}}function Ka(e,t){var n=e.stateNode;if(n===null)return null;var a=n[pt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xr=!1;if(xn)try{var Qa={};Object.defineProperty(Qa,"passive",{get:function(){xr=!0}}),window.addEventListener("test",Qa,Qa),window.removeEventListener("test",Qa,Qa)}catch{xr=!1}var Kn=null,br=null,uc=null;function nd(){if(uc)return uc;var e,t=br,n=t.length,a,c="value"in Kn?Kn.value:Kn.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===c[s-a];a++);return uc=c.slice(e,1<a?1-a:void 0)}function fc(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 dc(){return!0}function ld(){return!1}function gt(e){function t(n,a,c,s,m){this._reactName=n,this._targetInst=c,this.type=a,this.nativeEvent=s,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?dc:ld,this.isPropagationStopped=ld,this}return S(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=dc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=gt(wl),Za=S({},wl,{view:0,detail:0}),Jy=gt(Za),Sr,wr,Pa,mc=S({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cr,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!==Pa&&(Pa&&e.type==="mousemove"?(Sr=e.screenX-Pa.screenX,wr=e.screenY-Pa.screenY):wr=Sr=0,Pa=e),Sr)},movementY:function(e){return"movementY"in e?e.movementY:wr}}),ad=gt(mc),Iy=S({},mc,{dataTransfer:0}),Wy=gt(Iy),$y=S({},Za,{relatedTarget:0}),Er=gt($y),e0=S({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),t0=gt(e0),n0=S({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),l0=gt(n0),a0=S({},wl,{data:0}),id=gt(a0),i0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c0={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"},o0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o0[e])?!!t[e]:!1}function Cr(){return r0}var s0=S({},Za,{key:function(e){if(e.key){var t=i0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cr,charCode:function(e){return e.type==="keypress"?fc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u0=gt(s0),f0=S({},mc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=gt(f0),d0=S({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cr}),h0=gt(d0),m0=S({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),p0=gt(m0),g0=S({},mc,{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}),v0=gt(g0),y0=S({},wl,{newState:0,oldState:0}),x0=gt(y0),b0=[9,13,27,32],Nr=xn&&"CompositionEvent"in window,Ja=null;xn&&"documentMode"in document&&(Ja=document.documentMode);var S0=xn&&"TextEvent"in window&&!Ja,od=xn&&(!Nr||Ja&&8<Ja&&11>=Ja),rd=" ",sd=!1;function ud(e,t){switch(e){case"keyup":return b0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wl=!1;function w0(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(sd=!0,rd);case"textInput":return e=t.data,e===rd&&sd?null:e;default:return null}}function E0(e,t){if(Wl)return e==="compositionend"||!Nr&&ud(e,t)?(e=nd(),uc=br=Kn=null,Wl=!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 od&&t.locale!=="ko"?null:t.data;default:return null}}var C0={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C0[e.type]:t==="textarea"}function hd(e,t,n,a){Jl?Il?Il.push(a):Il=[a]:Jl=a,t=lo(t,"onChange"),0<t.length&&(n=new hc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ia=null,Wa=null;function N0(e){Pm(e,0)}function pc(e){var t=Fa(e);if(Zf(t))return e}function md(e,t){if(e==="change")return t}var pd=!1;if(xn){var jr;if(xn){var Tr="oninput"in document;if(!Tr){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),Tr=typeof gd.oninput=="function"}jr=Tr}else jr=!1;pd=jr&&(!document.documentMode||9<document.documentMode)}function vd(){Ia&&(Ia.detachEvent("onpropertychange",yd),Wa=Ia=null)}function yd(e){if(e.propertyName==="value"&&pc(Wa)){var t=[];hd(t,Wa,e,vr(e)),td(N0,t)}}function j0(e,t,n){e==="focusin"?(vd(),Ia=t,Wa=n,Ia.attachEvent("onpropertychange",yd)):e==="focusout"&&vd()}function T0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pc(Wa)}function A0(e,t){if(e==="click")return pc(t)}function R0(e,t){if(e==="input"||e==="change")return pc(t)}function O0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:O0;function $a(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var c=n[a];if(!gn.call(t,c)||!jt(e[c],t[c]))return!1}return!0}function xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bd(e,t){var n=xd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xd(n)}}function Sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rc(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=rc(e.document)}return t}function Ar(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 z0=xn&&"documentMode"in document&&11>=document.documentMode,$l=null,Rr=null,ei=null,Or=!1;function Ed(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Or||$l==null||$l!==rc(a)||(a=$l,"selectionStart"in a&&Ar(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ei&&$a(ei,a)||(ei=a,a=lo(Rr,"onSelect"),0<a.length&&(t=new hc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=$l)))}function El(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ea={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionrun:El("Transition","TransitionRun"),transitionstart:El("Transition","TransitionStart"),transitioncancel:El("Transition","TransitionCancel"),transitionend:El("Transition","TransitionEnd")},zr={},Cd={};xn&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete ea.animationend.animation,delete ea.animationiteration.animation,delete ea.animationstart.animation),"TransitionEvent"in window||delete ea.transitionend.transition);function Cl(e){if(zr[e])return zr[e];if(!ea[e])return e;var t=ea[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cd)return zr[e]=t[n];return e}var Nd=Cl("animationend"),jd=Cl("animationiteration"),Td=Cl("animationstart"),_0=Cl("transitionrun"),D0=Cl("transitionstart"),M0=Cl("transitioncancel"),Ad=Cl("transitionend"),Rd=new Map,_r="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(" ");_r.push("scrollEnd");function Pt(e,t){Rd.set(e,t),Sl(t,[e])}var gc=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)},qt=[],ta=0,Dr=0;function vc(){for(var e=ta,t=Dr=ta=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,a!==null&&c!==null){var m=a.pending;m===null?c.next=c:(c.next=m.next,m.next=c),a.pending=c}s!==0&&Od(n,c,s)}}function yc(e,t,n,a){qt[ta++]=e,qt[ta++]=t,qt[ta++]=n,qt[ta++]=a,Dr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mr(e,t,n,a){return yc(e,t,n,a),xc(e)}function Nl(e,t){return yc(e,null,null,t),xc(e)}function Od(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Nt(n),e=s.hiddenUpdates,a=e[c],a===null?e[c]=[t]:a.push(t),t.lane=n|536870912),s):null}function xc(e){if(50<wi)throw wi=0,Xs=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var na={};function U0(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,n,a){return new U0(e,t,n,a)}function Ur(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bn(e,t){var n=e.alternate;return n===null?(n=Tt(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 zd(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 bc(e,t,n,a,c,s){var m=0;if(a=e,typeof e=="function")Ur(e)&&(m=1);else if(typeof e=="string")m=Yx(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Tt(31,n,t,c),e.elementType=le,e.lanes=s,e;case w:return jl(n.children,c,s,t);case T:m=8,c|=24;break;case R:return e=Tt(12,n,t,c|2),e.elementType=R,e.lanes=s,e;case Q:return e=Tt(13,n,t,c),e.elementType=Q,e.lanes=s,e;case P:return e=Tt(19,n,t,c),e.elementType=P,e.lanes=s,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 ne:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Tt(m,n,t,c),t.elementType=e,t.type=a,t.lanes=s,t}function jl(e,t,n,a){return e=Tt(7,e,a,t),e.lanes=n,e}function Lr(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function _d(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function Br(e,t,n){return t=Tt(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 Vt(e,t){if(typeof e=="object"&&e!==null){var n=Dd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ec(t)},Dd.set(e,t),t)}return{value:e,source:t,stack:ec(t)}}var la=[],aa=0,Sc=null,ti=0,Xt=[],Gt=0,Qn=null,an=1,cn="";function Sn(e,t){la[aa++]=ti,la[aa++]=Sc,Sc=e,ti=t}function Md(e,t,n){Xt[Gt++]=an,Xt[Gt++]=cn,Xt[Gt++]=Qn,Qn=e;var a=an;e=cn;var c=32-Nt(a)-1;a&=~(1<<c),n+=1;var s=32-Nt(t)+c;if(30<s){var m=c-c%5;s=(a&(1<<m)-1).toString(32),a>>=m,c-=m,an=1<<32-Nt(t)+c|n<<c|a,cn=s+e}else an=1<<s|n<<c|a,cn=e}function Hr(e){e.return!==null&&(Sn(e,1),Md(e,1,0))}function kr(e){for(;e===Sc;)Sc=la[--aa],la[aa]=null,ti=la[--aa],la[aa]=null;for(;e===Qn;)Qn=Xt[--Gt],Xt[Gt]=null,cn=Xt[--Gt],Xt[Gt]=null,an=Xt[--Gt],Xt[Gt]=null}function Ud(e,t){Xt[Gt++]=an,Xt[Gt++]=cn,Xt[Gt++]=Qn,an=t.id,cn=t.overflow,Qn=e}var ot=null,He=null,Ne=!1,Zn=null,Ft=!1,Yr=Error(r(519));function Pn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ni(Vt(t,e)),Yr}function Ld(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ct]=e,t[pt]=a,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Ci.length;n++)we(Ci[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Pf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),If(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||$m(t.textContent,n)?(a.popover!=null&&(we("beforetoggle",t),we("toggle",t)),a.onScroll!=null&&we("scroll",t),a.onScrollEnd!=null&&we("scrollend",t),a.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||Pn(e,!0)}function Bd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:ot=ot.return}}function ia(e){if(e!==ot)return!1;if(!Ne)return Bd(e),Ne=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||au(e.type,e.memoizedProps)),n=!n),n&&He&&Pn(e),Bd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=rp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=rp(e)}else t===27?(t=He,sl(e.type)?(e=su,su=null,He=e):He=t):He=ot?Qt(e.stateNode.nextSibling):null;return!0}function Tl(){He=ot=null,Ne=!1}function qr(){var e=Zn;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Zn=null),e}function ni(e){Zn===null?Zn=[e]:Zn.push(e)}var Vr=j(null),Al=null,wn=null;function Jn(e,t,n){Z(Vr,t._currentValue),t._currentValue=n}function En(e){e._currentValue=Vr.current,G(Vr)}function Xr(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Gr(e,t,n,a){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var m=c.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Xr(s.return,n,e),a||(m=null);break e}s=x.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(r(341));m.lanes|=n,s=m.alternate,s!==null&&(s.lanes|=n),Xr(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 ca(e,t,n,a){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=c.type;jt(c.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(c===I.current){if(m=c.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ri):e=[Ri])}c=c.return}e!==null&&Gr(t,e,n,a),t.flags|=262144}function wc(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Rl(e){Al=e,wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Hd(Al,e)}function Ec(e,t){return Al===null&&Rl(e),Hd(e,t)}function Hd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},wn===null){if(e===null)throw Error(r(308));wn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else wn=wn.next=t;return n}var L0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},B0=l.unstable_scheduleCallback,H0=l.unstable_NormalPriority,Ie={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fr(){return{controller:new L0,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&B0(H0,function(){e.controller.abort()})}var ai=null,Kr=0,oa=0,ra=null;function k0(e,t){if(ai===null){var n=ai=[];Kr=0,oa=Ps(),ra={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Kr++,t.then(kd,kd),t}function kd(){if(--Kr===0&&ai!==null){ra!==null&&(ra.status="fulfilled");var e=ai;ai=null,oa=0,ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Y0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(a.status="rejected",a.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),a}var Yd=_.S;_.S=function(e,t){Em=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&k0(e,t),Yd!==null&&Yd(e,t)};var Ol=j(null);function Qr(){var e=Ol.current;return e!==null?e:Le.pooledCache}function Cc(e,t){t===null?Z(Ol,Ol.current):Z(Ol,t.pool)}function qd(){var e=Qr();return e===null?null:{parent:Ie._currentValue,pool:e}}var sa=Error(r(460)),Zr=Error(r(474)),Nc=Error(r(542)),jc={then:function(){}};function Vd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=a}},function(a){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e}throw _l=t,sa}}function zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_l=n,sa):n}}var _l=null;function Gd(){if(_l===null)throw Error(r(459));var e=_l;return _l=null,e}function Fd(e){if(e===sa||e===Nc)throw Error(r(483))}var ua=null,ii=0;function Tc(e){var t=ii;return ii+=1,ua===null&&(ua=[]),Xd(ua,e,t)}function ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ac(e,t){throw t.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(z,A){if(e){var L=z.deletions;L===null?(z.deletions=[A],z.flags|=16):L.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function a(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=bn(z,A),z.index=0,z.sibling=null,z}function s(z,A,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<A?(z.flags|=67108866,A):L):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function x(z,A,L,F){return A===null||A.tag!==6?(A=Lr(L,z.mode,F),A.return=z,A):(A=c(A,L),A.return=z,A)}function E(z,A,L,F){var de=L.type;return de===w?X(z,A,L.props.children,F,L.key):A!==null&&(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&zl(de)===A.type)?(A=c(A,L.props),ci(A,L),A.return=z,A):(A=bc(L.type,L.key,L.props,null,z.mode,F),ci(A,L),A.return=z,A)}function B(z,A,L,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==L.containerInfo||A.stateNode.implementation!==L.implementation?(A=Br(L,z.mode,F),A.return=z,A):(A=c(A,L.children||[]),A.return=z,A)}function X(z,A,L,F,de){return A===null||A.tag!==7?(A=jl(L,z.mode,F,de),A.return=z,A):(A=c(A,L),A.return=z,A)}function K(z,A,L){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Lr(""+A,z.mode,L),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return L=bc(A.type,A.key,A.props,null,z.mode,L),ci(L,A),L.return=z,L;case D:return A=Br(A,z.mode,L),A.return=z,A;case ne:return A=zl(A),K(z,A,L)}if(fe(A)||$(A))return A=jl(A,z.mode,L,null),A.return=z,A;if(typeof A.then=="function")return K(z,Tc(A),L);if(A.$$typeof===M)return K(z,Ec(z,A),L);Ac(z,A)}return null}function H(z,A,L,F){var de=A!==null?A.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return de!==null?null:x(z,A,""+L,F);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===de?E(z,A,L,F):null;case D:return L.key===de?B(z,A,L,F):null;case ne:return L=zl(L),H(z,A,L,F)}if(fe(L)||$(L))return de!==null?null:X(z,A,L,F,null);if(typeof L.then=="function")return H(z,A,Tc(L),F);if(L.$$typeof===M)return H(z,A,Ec(z,L),F);Ac(z,L)}return null}function k(z,A,L,F,de){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return z=z.get(L)||null,x(A,z,""+F,de);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return z=z.get(F.key===null?L:F.key)||null,E(A,z,F,de);case D:return z=z.get(F.key===null?L:F.key)||null,B(A,z,F,de);case ne:return F=zl(F),k(z,A,L,F,de)}if(fe(F)||$(F))return z=z.get(L)||null,X(A,z,F,de,null);if(typeof F.then=="function")return k(z,A,L,Tc(F),de);if(F.$$typeof===M)return k(z,A,L,Ec(A,F),de);Ac(A,F)}return null}function ie(z,A,L,F){for(var de=null,Te=null,oe=A,be=A=0,Ce=null;oe!==null&&be<L.length;be++){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var Ae=H(z,oe,L[be],F);if(Ae===null){oe===null&&(oe=Ce);break}e&&oe&&Ae.alternate===null&&t(z,oe),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae,oe=Ce}if(be===L.length)return n(z,oe),Ne&&Sn(z,be),de;if(oe===null){for(;be<L.length;be++)oe=K(z,L[be],F),oe!==null&&(A=s(oe,A,be),Te===null?de=oe:Te.sibling=oe,Te=oe);return Ne&&Sn(z,be),de}for(oe=a(oe);be<L.length;be++)Ce=k(oe,z,be,L[be],F),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?be:Ce.key),A=s(Ce,A,be),Te===null?de=Ce:Te.sibling=Ce,Te=Ce);return e&&oe.forEach(function(ml){return t(z,ml)}),Ne&&Sn(z,be),de}function pe(z,A,L,F){if(L==null)throw Error(r(151));for(var de=null,Te=null,oe=A,be=A=0,Ce=null,Ae=L.next();oe!==null&&!Ae.done;be++,Ae=L.next()){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var ml=H(z,oe,Ae.value,F);if(ml===null){oe===null&&(oe=Ce);break}e&&oe&&ml.alternate===null&&t(z,oe),A=s(ml,A,be),Te===null?de=ml:Te.sibling=ml,Te=ml,oe=Ce}if(Ae.done)return n(z,oe),Ne&&Sn(z,be),de;if(oe===null){for(;!Ae.done;be++,Ae=L.next())Ae=K(z,Ae.value,F),Ae!==null&&(A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return Ne&&Sn(z,be),de}for(oe=a(oe);!Ae.done;be++,Ae=L.next())Ae=k(oe,z,be,Ae.value,F),Ae!==null&&(e&&Ae.alternate!==null&&oe.delete(Ae.key===null?be:Ae.key),A=s(Ae,A,be),Te===null?de=Ae:Te.sibling=Ae,Te=Ae);return e&&oe.forEach(function(Ix){return t(z,Ix)}),Ne&&Sn(z,be),de}function Ue(z,A,L,F){if(typeof L=="object"&&L!==null&&L.type===w&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case N:e:{for(var de=L.key;A!==null;){if(A.key===de){if(de=L.type,de===w){if(A.tag===7){n(z,A.sibling),F=c(A,L.props.children),F.return=z,z=F;break e}}else if(A.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ne&&zl(de)===A.type){n(z,A.sibling),F=c(A,L.props),ci(F,L),F.return=z,z=F;break e}n(z,A);break}else t(z,A);A=A.sibling}L.type===w?(F=jl(L.props.children,z.mode,F,L.key),F.return=z,z=F):(F=bc(L.type,L.key,L.props,null,z.mode,F),ci(F,L),F.return=z,z=F)}return m(z);case D:e:{for(de=L.key;A!==null;){if(A.key===de)if(A.tag===4&&A.stateNode.containerInfo===L.containerInfo&&A.stateNode.implementation===L.implementation){n(z,A.sibling),F=c(A,L.children||[]),F.return=z,z=F;break e}else{n(z,A);break}else t(z,A);A=A.sibling}F=Br(L,z.mode,F),F.return=z,z=F}return m(z);case ne:return L=zl(L),Ue(z,A,L,F)}if(fe(L))return ie(z,A,L,F);if($(L)){if(de=$(L),typeof de!="function")throw Error(r(150));return L=de.call(L),pe(z,A,L,F)}if(typeof L.then=="function")return Ue(z,A,Tc(L),F);if(L.$$typeof===M)return Ue(z,A,Ec(z,L),F);Ac(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,A!==null&&A.tag===6?(n(z,A.sibling),F=c(A,L),F.return=z,z=F):(n(z,A),F=Lr(L,z.mode,F),F.return=z,z=F),m(z)):n(z,A)}return function(z,A,L,F){try{ii=0;var de=Ue(z,A,L,F);return ua=null,de}catch(oe){if(oe===sa||oe===Nc)throw oe;var Te=Tt(29,oe,null,z.mode);return Te.lanes=F,Te.return=z,Te}}}var Dl=Kd(!0),Qd=Kd(!1),In=!1;function Pr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jr(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,t=xc(e),Od(e,null,n),t}return yc(e,a,t,n),xc(e)}function oi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Hf(e,n)}}function Ir(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=m:s=s.next=m,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Wr=!1;function ri(){if(Wr){var e=ra;if(e!==null)throw e}}function si(e,t,n,a){Wr=!1;var c=e.updateQueue;In=!1;var s=c.firstBaseUpdate,m=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,B=E.next;E.next=null,m===null?s=B:m.next=B,m=E;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==m&&(x===null?X.firstBaseUpdate=B:x.next=B,X.lastBaseUpdate=E))}if(s!==null){var K=c.baseState;m=0,X=B=E=null,x=s;do{var H=x.lane&-536870913,k=H!==x.lane;if(k?(Ee&H)===H:(a&H)===H){H!==0&&H===oa&&(Wr=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ie=e,pe=x;H=t;var Ue=n;switch(pe.tag){case 1:if(ie=pe.payload,typeof ie=="function"){K=ie.call(Ue,K,H);break e}K=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=pe.payload,H=typeof ie=="function"?ie.call(Ue,K,H):ie,H==null)break e;K=S({},K,H);break e;case 2:In=!0}}H=x.callback,H!==null&&(e.flags|=64,k&&(e.flags|=8192),k=c.callbacks,k===null?c.callbacks=[H]:k.push(H))}else k={lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},X===null?(B=X=k,E=K):X=X.next=k,m|=H;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=K),c.baseState=E,c.firstBaseUpdate=B,c.lastBaseUpdate=X,s===null&&(c.shared.lanes=0),al|=m,e.lanes=m,e.memoizedState=K}}function Zd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Pd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Zd(n[e],t)}var fa=j(null),Rc=j(0);function Jd(e,t){e=_n,Z(Rc,e),Z(fa,t),_n=e|t.baseLanes}function $r(){Z(Rc,_n),Z(fa,fa.current)}function es(){_n=Rc.current,G(fa),G(Rc)}var At=j(null),Kt=null;function el(e){var t=e.alternate;Z(Qe,Qe.current&1),Z(At,e),Kt===null&&(t===null||fa.current!==null||t.memoizedState!==null)&&(Kt=e)}function ts(e){Z(Qe,Qe.current),Z(At,e),Kt===null&&(Kt=e)}function Id(e){e.tag===22?(Z(Qe,Qe.current),Z(At,e),Kt===null&&(Kt=e)):tl()}function tl(){Z(Qe,Qe.current),Z(At,At.current)}function Rt(e){G(At),Kt===e&&(Kt=null),G(Qe)}var Qe=j(0);function Oc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ou(n)||ru(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 Cn=0,xe=null,De=null,We=null,zc=!1,da=!1,Ml=!1,_c=0,ui=0,ha=null,q0=0;function Xe(){throw Error(r(321))}function ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function ls(e,t,n,a,c,s){return Cn=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Mh:ys,Ml=!1,s=n(a,c),Ml=!1,da&&(s=$d(t,n,a,c)),Wd(e),s}function Wd(e){_.H=hi;var t=De!==null&&De.next!==null;if(Cn=0,We=De=xe=null,zc=!1,ui=0,ha=null,t)throw Error(r(300));e===null||$e||(e=e.dependencies,e!==null&&wc(e)&&($e=!0))}function $d(e,t,n,a){xe=e;var c=0;do{if(da&&(ha=null),ui=0,da=!1,25<=c)throw Error(r(301));if(c+=1,We=De=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=Uh,s=t(n,a)}while(da);return s}function V0(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(xe.flags|=1024),t}function as(){var e=_c!==0;return _c=0,e}function is(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(zc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zc=!1}Cn=0,We=De=xe=null,da=!1,ui=_c=0,ha=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?xe.memoizedState=We=e:We=We.next=e,We}function Ze(){if(De===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=We===null?xe.memoizedState:We.next;if(t!==null)We=t,De=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},We===null?xe.memoizedState=We=e:We=We.next=e}return We}function Dc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=ui;return ui+=1,ha===null&&(ha=[]),e=Xd(ha,e,t),t=xe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Mh:ys),e}function Mc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===M)return rt(e)}throw Error(r(438,String(e)))}function os(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=xe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Dc(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=se;return t.index++,n}function Nn(e,t){return typeof t=="function"?t(e):t}function Uc(e){var t=Ze();return rs(t,De,e)}function rs(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=e.baseQueue,s=a.pending;if(s!==null){if(c!==null){var m=c.next;c.next=s.next,s.next=m}t.baseQueue=c=s,a.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var x=m=null,E=null,B=t,X=!1;do{var K=B.lane&-536870913;if(K!==B.lane?(Ee&K)===K:(Cn&K)===K){var H=B.revertLane;if(H===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),K===oa&&(X=!0);else if((Cn&H)===H){B=B.next,H===oa&&(X=!0);continue}else K={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=K,m=s):E=E.next=K,xe.lanes|=H,al|=H;K=B.action,Ml&&n(s,K),s=B.hasEagerState?B.eagerState:n(s,K)}else H={lane:K,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(x=E=H,m=s):E=E.next=H,xe.lanes|=K,al|=K;B=B.next}while(B!==null&&B!==t);if(E===null?m=s:E.next=x,!jt(s,e.memoizedState)&&($e=!0,X&&(n=ra,n!==null)))throw n;e.memoizedState=s,e.baseState=m,e.baseQueue=E,a.lastRenderedState=s}return c===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ss(e){var t=Ze(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do s=e(s,m.action),m=m.next;while(m!==c);jt(s,t.memoizedState)||($e=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function eh(e,t,n){var a=xe,c=Ze(),s=Ne;if(s){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!jt((De||c).memoizedState,n);if(m&&(c.memoizedState=n,$e=!0),c=c.queue,ds(lh.bind(null,a,c,e),[e]),c.getSnapshot!==t||m||We!==null&&We.memoizedState.tag&1){if(a.flags|=2048,ma(9,{destroy:void 0},nh.bind(null,a,c,n,t),null),Le===null)throw Error(r(349));s||(Cn&127)!==0||th(a,t,n)}return n}function th(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Dc(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nh(e,t,n,a){t.value=n,t.getSnapshot=a,ah(t)&&ih(e)}function lh(e,t,n){return n(function(){ah(t)&&ih(e)})}function ah(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function ih(e){var t=Nl(e,2);t!==null&&St(t,e,2)}function us(e){var t=ht();if(typeof e=="function"){var n=e;if(e=n(),Ml){Gn(!0);try{n()}finally{Gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},t}function ch(e,t,n,a){return e.baseState=n,rs(e,De,typeof a=="function"?a:Nn)}function X0(e,t,n,a,c){if(Hc(e))throw Error(r(485));if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){s.listeners.push(m)}};_.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,oh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function oh(e,t){var n=t.action,a=t.payload,c=e.state;if(t.isTransition){var s=_.T,m={};_.T=m;try{var x=n(c,a),E=_.S;E!==null&&E(m,x),rh(e,t,x)}catch(B){fs(e,t,B)}finally{s!==null&&m.types!==null&&(s.types=m.types),_.T=s}}else try{s=n(c,a),rh(e,t,s)}catch(B){fs(e,t,B)}}function rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){sh(e,t,a)},function(a){return fs(e,t,a)}):sh(e,t,n)}function sh(e,t,n){t.status="fulfilled",t.value=n,uh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oh(e,n)))}function fs(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,uh(t),t=t.next;while(t!==a)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fh(e,t){return t}function dh(e,t){if(Ne){var n=Le.formState;if(n!==null){e:{var a=xe;if(Ne){if(He){t:{for(var c=He,s=Ft;c.nodeType!==8;){if(!s){c=null;break t}if(c=Qt(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s==="F!"||s==="F"?c:null}if(c){He=Qt(c.nextSibling),a=c.data==="F!";break e}}Pn(a)}a=!1}a&&(t=n[0])}}return n=ht(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:t},n.queue=a,n=zh.bind(null,xe,a),a.dispatch=n,a=us(!1),s=vs.bind(null,xe,!1,a.queue),a=ht(),c={state:t,dispatch:null,action:e,pending:null},a.queue=c,n=X0.bind(null,xe,c,s,n),c.dispatch=n,a.memoizedState=e,[t,n,!1]}function hh(e){var t=Ze();return mh(t,De,e)}function mh(e,t,n){if(t=rs(e,t,fh)[0],e=Uc(Nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fi(t)}catch(m){throw m===sa?Nc:m}else a=t;t=Ze();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,ma(9,{destroy:void 0},G0.bind(null,c,n),null)),[a,s,e]}function G0(e,t){e.action=t}function ph(e){var t=Ze(),n=De;if(n!==null)return mh(t,n,e);Ze(),t=t.memoizedState,n=Ze();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ma(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Dc(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function gh(){return Ze().memoizedState}function Lc(e,t,n,a){var c=ht();xe.flags|=e,c.memoizedState=ma(1|t,{destroy:void 0},n,a===void 0?null:a)}function Bc(e,t,n,a){var c=Ze();a=a===void 0?null:a;var s=c.memoizedState.inst;De!==null&&a!==null&&ns(a,De.memoizedState.deps)?c.memoizedState=ma(t,s,n,a):(xe.flags|=e,c.memoizedState=ma(1|t,s,n,a))}function vh(e,t){Lc(8390656,8,e,t)}function ds(e,t){Bc(2048,8,e,t)}function F0(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Dc(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yh(e){var t=Ze().memoizedState;return F0({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function xh(e,t){return Bc(4,2,e,t)}function bh(e,t){return Bc(4,4,e,t)}function Sh(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 wh(e,t,n){n=n!=null?n.concat([e]):null,Bc(4,4,Sh.bind(null,t,e),n)}function hs(){}function Eh(e,t){var n=Ze();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&ns(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Ch(e,t){var n=Ze();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&ns(t,a[1]))return a[0];if(a=e(),Ml){Gn(!0);try{e()}finally{Gn(!1)}}return n.memoizedState=[a,t],a}function ms(e,t,n){return n===void 0||(Cn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Nm(),xe.lanes|=e,al|=e,n)}function Nh(e,t,n,a){return jt(n,t)?n:fa.current!==null?(e=ms(e,n,a),jt(e,t)||($e=!0),e):(Cn&42)===0||(Cn&1073741824)!==0&&(Ee&261930)===0?($e=!0,e.memoizedState=n):(e=Nm(),xe.lanes|=e,al|=e,t)}function jh(e,t,n,a,c){var s=U.p;U.p=s!==0&&8>s?s:8;var m=_.T,x={};_.T=x,vs(e,!1,t,n);try{var E=c(),B=_.S;if(B!==null&&B(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var X=Y0(E,a);di(e,t,X,_t(e))}else di(e,t,a,_t(e))}catch(K){di(e,t,{then:function(){},status:"rejected",reason:K},_t())}finally{U.p=s,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function K0(){}function ps(e,t,n,a){if(e.tag!==5)throw Error(r(476));var c=Th(e).queue;jh(e,c,t,V,n===null?K0:function(){return Ah(e),n(a)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},_t())}function gs(){return rt(Ri)}function Rh(){return Ze().memoizedState}function Oh(){return Ze().memoizedState}function Q0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_t();e=Wn(n);var a=$n(t,e,n);a!==null&&(St(a,t,n),oi(a,t,n)),t={cache:Fr()},e.payload=t;return}t=t.return}}function Z0(e,t,n){var a=_t();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hc(e)?_h(t,n):(n=Mr(e,t,n,a),n!==null&&(St(n,e,a),Dh(n,t,a)))}function zh(e,t,n){var a=_t();di(e,t,n,a)}function di(e,t,n,a){var c={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hc(e))_h(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var m=t.lastRenderedState,x=s(m,n);if(c.hasEagerState=!0,c.eagerState=x,jt(x,m))return yc(e,t,c,0),Le===null&&vc(),!1}catch{}if(n=Mr(e,t,c,a),n!==null)return St(n,e,a),Dh(n,t,a),!0}return!1}function vs(e,t,n,a){if(a={lane:2,revertLane:Ps(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Hc(e)){if(t)throw Error(r(479))}else t=Mr(e,n,a,2),t!==null&&St(t,e,2)}function Hc(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function _h(e,t){da=zc=!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 a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Hf(e,n)}}var hi={readContext:rt,use:Mc,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};hi.useEffectEvent=Xe;var Mh={readContext:rt,use:Mc,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Lc(4194308,4,Sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lc(4194308,4,e,t)},useInsertionEffect:function(e,t){Lc(4,2,e,t)},useMemo:function(e,t){var n=ht();t=t===void 0?null:t;var a=e();if(Ml){Gn(!0);try{e()}finally{Gn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ht();if(n!==void 0){var c=n(t);if(Ml){Gn(!0);try{n(t)}finally{Gn(!1)}}}else c=t;return a.memoizedState=a.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},a.queue=e,e=e.dispatch=Z0.bind(null,xe,e),[a.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=us(e);var t=e.queue,n=zh.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){var n=ht();return ms(n,e,t)},useTransition:function(){var e=us(!1);return e=jh.bind(null,xe,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=xe,c=ht();if(Ne){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Le===null)throw Error(r(349));(Ee&127)!==0||th(a,t,n)}c.memoizedState=n;var s={value:n,getSnapshot:t};return c.queue=s,vh(lh.bind(null,a,s,e),[e]),a.flags|=2048,ma(9,{destroy:void 0},nh.bind(null,a,s,n,t),null),n},useId:function(){var e=ht(),t=Le.identifierPrefix;if(Ne){var n=cn,a=an;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=_c++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=q0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gs,useFormState:dh,useActionState:dh,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=vs.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:os,useCacheRefresh:function(){return ht().memoizedState=Q0.bind(null,xe)},useEffectEvent:function(e){var t=ht(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},ys={readContext:rt,use:Mc,useCallback:Eh,useContext:rt,useEffect:ds,useImperativeHandle:wh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:Ch,useReducer:Uc,useRef:gh,useState:function(){return Uc(Nn)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Ze();return Nh(n,De.memoizedState,e,t)},useTransition:function(){var e=Uc(Nn)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:eh,useId:Rh,useHostTransitionStatus:gs,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var n=Ze();return ch(n,De,e,t)},useMemoCache:os,useCacheRefresh:Oh};ys.useEffectEvent=yh;var Uh={readContext:rt,use:Mc,useCallback:Eh,useContext:rt,useEffect:ds,useImperativeHandle:wh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:Ch,useReducer:ss,useRef:gh,useState:function(){return ss(Nn)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Ze();return De===null?ms(n,e,t):Nh(n,De.memoizedState,e,t)},useTransition:function(){var e=ss(Nn)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:eh,useId:Rh,useHostTransitionStatus:gs,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var n=Ze();return De!==null?ch(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:os,useCacheRefresh:Oh};Uh.useEffectEvent=yh;function xs(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=_t(),c=Wn(a);c.payload=t,n!=null&&(c.callback=n),t=$n(e,c,a),t!==null&&(St(t,e,a),oi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=_t(),c=Wn(a);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=$n(e,c,a),t!==null&&(St(t,e,a),oi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),a=Wn(n);a.tag=2,t!=null&&(a.callback=t),t=$n(e,a,n),t!==null&&(St(t,e,n),oi(t,e,n))}};function Lh(e,t,n,a,c,s,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,m):t.prototype&&t.prototype.isPureReactComponent?!$a(n,a)||!$a(c,s):!0}function Bh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&bs.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Hh(e){gc(e)}function kh(e){console.error(e)}function Yh(e){gc(e)}function kc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function qh(e,t,n){try{var a=e.onCaughtError;a(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=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){kc(e,t)},n}function Vh(e){return e=Wn(e),e.tag=3,e}function Xh(e,t,n,a){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=a.value;e.payload=function(){return c(s)},e.callback=function(){qh(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){qh(t,n,a),typeof c!="function"&&(il===null?il=new Set([this]):il.add(this));var x=a.stack;this.componentDidCatch(a.value,{componentStack:x!==null?x:""})})}function P0(e,t,n,a,c){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&ca(t,n,c,!0),n=At.current,n!==null){switch(n.tag){case 31:case 13:return Kt===null?Ic():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=c,a===jc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Ks(e,a,c)),!1;case 22:return n.flags|=65536,a===jc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Ks(e,a,c)),!1}throw Error(r(435,n.tag))}return Ks(e,a,c),Ic(),!1}if(Ne)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,a!==Yr&&(e=Error(r(422),{cause:a}),ni(Vt(e,n)))):(a!==Yr&&(t=Error(r(423),{cause:a}),ni(Vt(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,a=Vt(a,n),c=Ss(e.stateNode,a,c),Ir(e,c),Ge!==4&&(Ge=2)),!1;var s=Error(r(520),{cause:a});if(s=Vt(s,n),Si===null?Si=[s]:Si.push(s),Ge!==4&&(Ge=2),t===null)return!0;a=Vt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Ss(n.stateNode,a,e),Ir(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(il===null||!il.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Vh(c),Xh(c,e,n,a),Ir(n,c),!1}n=n.return}while(n!==null);return!1}var ws=Error(r(461)),$e=!1;function st(e,t,n,a){t.child=e===null?Qd(t,null,n,a):Dl(t,e.child,n,a)}function Gh(e,t,n,a,c){n=n.render;var s=t.ref;if("ref"in a){var m={};for(var x in a)x!=="ref"&&(m[x]=a[x])}else m=a;return Rl(t),a=ls(e,t,n,m,s,c),x=as(),e!==null&&!$e?(is(e,t,c),jn(e,t,c)):(Ne&&x&&Hr(t),t.flags|=1,st(e,t,a,c),t.child)}function Fh(e,t,n,a,c){if(e===null){var s=n.type;return typeof s=="function"&&!Ur(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Kh(e,t,s,a,c)):(e=bc(n.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Os(e,c)){var m=s.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(m,a)&&e.ref===t.ref)return jn(e,t,c)}return t.flags|=1,e=bn(s,a),e.ref=t.ref,e.return=t,t.child=e}function Kh(e,t,n,a,c){if(e!==null){var s=e.memoizedProps;if($a(s,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=s,Os(e,c))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,jn(e,t,c)}return Es(e,t,n,a,c)}function Qh(e,t,n,a){var c=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,c=0;a!==null;)c=c|a.lanes|a.childLanes,a=a.sibling;a=c&~s}else a=0,t.child=null;return Zh(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cc(t,s!==null?s.cachePool:null),s!==null?Jd(t,s):$r(),Id(t);else return a=t.lanes=536870912,Zh(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(Cc(t,s.cachePool),Jd(t,s),tl(),t.memoizedState=null):(e!==null&&Cc(t,null),$r(),tl());return st(e,t,c,n),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,n,a,c){var s=Qr();return s=s===null?null:{parent:Ie._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Cc(t,null),$r(),Id(t),e!==null&&ca(e,t,a,!0),t.childLanes=c,null}function Yc(e,t){return t=Vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,n){return Dl(t,e.child,null,n),e=Yc(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function J0(e,t,n){var a=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(a.mode==="hidden")return e=Yc(t,a),t.lanes=536870912,mi(null,e);if(ts(t),(e=He)?(e=op(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:an,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=_d(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Yc(t,a)}var s=e.memoizedState;if(s!==null){var m=s.dehydrated;if(ts(t),c)if(t.flags&256)t.flags&=-257,t=Ph(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if($e||ca(e,t,n,!1),c=(n&e.childLanes)!==0,$e||c){if(a=Le,a!==null&&(m=kf(a,n),m!==0&&m!==s.retryLane))throw s.retryLane=m,Nl(e,m),St(a,e,m),ws;Ic(),t=Ph(e,t,n)}else e=s.treeContext,He=Qt(m.nextSibling),ot=t,Ne=!0,Zn=null,Ft=!1,e!==null&&Ud(t,e),t=Yc(t,a),t.flags|=4096;return t}return e=bn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qc(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(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Es(e,t,n,a,c){return Rl(t),n=ls(e,t,n,a,void 0,c),a=as(),e!==null&&!$e?(is(e,t,c),jn(e,t,c)):(Ne&&a&&Hr(t),t.flags|=1,st(e,t,n,c),t.child)}function Jh(e,t,n,a,c,s){return Rl(t),t.updateQueue=null,n=$d(t,a,n,c),Wd(e),a=as(),e!==null&&!$e?(is(e,t,s),jn(e,t,s)):(Ne&&a&&Hr(t),t.flags|=1,st(e,t,n,s),t.child)}function Ih(e,t,n,a,c){if(Rl(t),t.stateNode===null){var s=na,m=n.contextType;typeof m=="object"&&m!==null&&(s=rt(m)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=bs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Pr(t),m=n.contextType,s.context=typeof m=="object"&&m!==null?rt(m):na,s.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(xs(t,n,m,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(m=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),m!==s.state&&bs.enqueueReplaceState(s,s.state,null),si(t,a,s,c),ri(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,E=Ul(n,x);s.props=E;var B=s.context,X=n.contextType;m=na,typeof X=="object"&&X!==null&&(m=rt(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,X||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||B!==m)&&Bh(t,s,a,m),In=!1;var H=t.memoizedState;s.state=H,si(t,a,s,c),ri(),B=t.memoizedState,x||H!==B||In?(typeof K=="function"&&(xs(t,n,K,a),B=t.memoizedState),(E=In||Lh(t,n,E,a,H,B,m))?(X||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=B),s.props=a,s.state=B,s.context=m,a=E):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Jr(e,t),m=t.memoizedProps,X=Ul(n,m),s.props=X,K=t.pendingProps,H=s.context,B=n.contextType,E=na,typeof B=="object"&&B!==null&&(E=rt(B)),x=n.getDerivedStateFromProps,(B=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m!==K||H!==E)&&Bh(t,s,a,E),In=!1,H=t.memoizedState,s.state=H,si(t,a,s,c),ri();var k=t.memoizedState;m!==K||H!==k||In||e!==null&&e.dependencies!==null&&wc(e.dependencies)?(typeof x=="function"&&(xs(t,n,x,a),k=t.memoizedState),(X=In||Lh(t,n,X,a,H,k,E)||e!==null&&e.dependencies!==null&&wc(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,k,E),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,k,E)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=k),s.props=a,s.state=k,s.context=E,a=X):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,qc(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Dl(t,e.child,null,c),t.child=Dl(t,null,n,c)):st(e,t,n,c),t.memoizedState=s.state,e=t.child):e=jn(e,t,c),e}function Wh(e,t,n,a){return Tl(),t.flags|=256,st(e,t,n,a),t.child}var Cs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ns(e){return{baseLanes:e,cachePool:qd()}}function js(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function $h(e,t,n){var a=t.pendingProps,c=!1,s=(t.flags&128)!==0,m;if((m=s)||(m=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(c?el(t):tl(),(e=He)?(e=op(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:an,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=_d(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Pn(t);return ru(e)?t.lanes=32:t.lanes=536870912,null}var x=a.children;return a=a.fallback,c?(tl(),c=t.mode,x=Vc({mode:"hidden",children:x},c),a=jl(a,c,n,null),x.return=t,a.return=t,x.sibling=a,t.child=x,a=t.child,a.memoizedState=Ns(n),a.childLanes=js(e,m,n),t.memoizedState=Cs,mi(null,a)):(el(t),Ts(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(s)t.flags&256?(el(t),t.flags&=-257,t=As(e,t,n)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),x=a.fallback,c=t.mode,a=Vc({mode:"visible",children:a.children},c),x=jl(x,c,n,null),x.flags|=2,a.return=t,x.return=t,a.sibling=x,t.child=a,Dl(t,e.child,null,n),a=t.child,a.memoizedState=Ns(n),a.childLanes=js(e,m,n),t.memoizedState=Cs,t=mi(null,a));else if(el(t),ru(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var B=m.dgst;m=B,a=Error(r(419)),a.stack="",a.digest=m,ni({value:a,source:null,stack:null}),t=As(e,t,n)}else if($e||ca(e,t,n,!1),m=(n&e.childLanes)!==0,$e||m){if(m=Le,m!==null&&(a=kf(m,n),a!==0&&a!==E.retryLane))throw E.retryLane=a,Nl(e,a),St(m,e,a),ws;ou(x)||Ic(),t=As(e,t,n)}else ou(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,He=Qt(x.nextSibling),ot=t,Ne=!0,Zn=null,Ft=!1,e!==null&&Ud(t,e),t=Ts(t,a.children),t.flags|=4096);return t}return c?(tl(),x=a.fallback,c=t.mode,E=e.child,B=E.sibling,a=bn(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&65011712,B!==null?x=bn(B,x):(x=jl(x,c,n,null),x.flags|=2),x.return=t,a.return=t,a.sibling=x,t.child=a,mi(null,a),a=t.child,x=e.child.memoizedState,x===null?x=Ns(n):(c=x.cachePool,c!==null?(E=Ie._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=qd(),x={baseLanes:x.baseLanes|n,cachePool:c}),a.memoizedState=x,a.childLanes=js(e,m,n),t.memoizedState=Cs,mi(e.child,a)):(el(t),n=e.child,e=n.sibling,n=bn(n,{mode:"visible",children:a.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 Ts(e,t){return t=Vc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vc(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function As(e,t,n){return Dl(t,e.child,null,n),e=Ts(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function em(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Xr(e.return,t,n)}function Rs(e,t,n,a,c,s){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:c,treeForkCount:s}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=c,m.treeForkCount=s)}function tm(e,t,n){var a=t.pendingProps,c=a.revealOrder,s=a.tail;a=a.children;var m=Qe.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,Z(Qe,m),st(e,t,a,n),a=Ne?ti:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&em(e,n,t);else if(e.tag===19)em(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&&Oc(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Rs(t,!1,c,n,s,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Oc(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Rs(t,!0,n,null,s,a);break;case"together":Rs(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),al|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ca(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Os(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wc(e)))}function I0(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Jn(t,Ie,e.memoizedState.cache),Tl();break;case 27:case 5:re(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ts(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(el(t),t.flags|=128,null):(n&t.child.childLanes)!==0?$h(e,t,n):(el(t),e=jn(e,t,n),e!==null?e.sibling:null);el(t);break;case 19:var c=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(ca(e,t,n,!1),a=(n&t.childLanes)!==0),c){if(a)return tm(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Z(Qe,Qe.current),a)break;return null;case 22:return t.lanes=0,Qh(e,t,n,t.pendingProps);case 24:Jn(t,Ie,e.memoizedState.cache)}return jn(e,t,n)}function nm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Os(e,n)&&(t.flags&128)===0)return $e=!1,I0(e,t,n);$e=(e.flags&131072)!==0}else $e=!1,Ne&&(t.flags&1048576)!==0&&Md(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")Ur(e)?(a=Ul(e,a),t.tag=1,t=Ih(null,t,e,a,n)):(t.tag=0,t=Es(null,t,e,a,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=Gh(null,t,e,a,n);break e}else if(c===Y){t.tag=14,t=Fh(null,t,e,a,n);break e}}throw t=ee(e)||e,Error(r(306,t,""))}}return t;case 0:return Es(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,c=Ul(a,t.pendingProps),Ih(e,t,a,c,n);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var s=t.memoizedState;c=s.element,Jr(e,t),si(t,a,null,n);var m=t.memoizedState;if(a=m.cache,Jn(t,Ie,a),a!==s.cache&&Gr(t,[Ie],n,!0),ri(),a=m.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Wh(e,t,a,n);break e}else if(a!==c){c=Vt(Error(r(424)),t),ni(c),t=Wh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,He=Qt(e.firstChild),ot=t,Ne=!0,Zn=null,Ft=!0,n=Qd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tl(),a===c){t=jn(e,t,n);break e}st(e,t,a,n)}t=t.child}return t;case 26:return qc(e,t),e===null?(n=hp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ne||(n=t.type,e=t.pendingProps,a=ao(he.current).createElement(n),a[ct]=t,a[pt]=e,ut(a,n,e),at(a),t.stateNode=a):t.memoizedState=hp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return re(t),e===null&&Ne&&(a=t.stateNode=up(t.type,t.pendingProps,he.current),ot=t,Ft=!0,c=He,sl(t.type)?(su=c,He=Qt(a.firstChild)):He=c),st(e,t,t.pendingProps.children,n),qc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((c=a=He)&&(a=Tx(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,ot=t,He=Qt(a.firstChild),Ft=!1,c=!0):c=!1),c||Pn(t)),re(t),c=t.type,s=t.pendingProps,m=e!==null?e.memoizedProps:null,a=s.children,au(c,s)?a=null:m!==null&&au(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=ls(e,t,V0,null,null,n),Ri._currentValue=c),qc(e,t),st(e,t,a,n),t.child;case 6:return e===null&&Ne&&((e=n=He)&&(n=Ax(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,ot=t,He=null,e=!0):e=!1),e||Pn(t)),null;case 13:return $h(e,t,n);case 4:return me(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Dl(t,null,a,n):st(e,t,a,n),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Jn(t,t.type,a.value),st(e,t,a.children,n),t.child;case 9:return c=t.type._context,a=t.pendingProps.children,Rl(t),c=rt(c),a=a(c),t.flags|=1,st(e,t,a,n),t.child;case 14:return Fh(e,t,t.type,t.pendingProps,n);case 15:return Kh(e,t,t.type,t.pendingProps,n);case 19:return tm(e,t,n);case 31:return J0(e,t,n);case 22:return Qh(e,t,n,t.pendingProps);case 24:return Rl(t),a=rt(Ie),e===null?(c=Qr(),c===null&&(c=Le,s=Fr(),c.pooledCache=s,s.refCount++,s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:a,cache:c},Pr(t),Jn(t,Ie,c)):((e.lanes&n)!==0&&(Jr(e,t),si(t,null,null,n),ri()),c=e.memoizedState,s=t.memoizedState,c.parent!==a?(c={parent:a,cache:a},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Jn(t,Ie,a)):(a=s.cache,Jn(t,Ie,a),a!==c.cache&&Gr(t,[Ie],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Tn(e){e.flags|=4}function zs(e,t,n,a,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 _l=jc,Zr}else e.flags&=-16777217}function lm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yp(t))if(Rm())e.flags|=8192;else throw _l=jc,Zr}function Xc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Lf():536870912,e.lanes|=t,ya|=t)}function pi(e,t){if(!Ne)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags&65011712,a|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function W0(e,t,n){var a=t.pendingProps;switch(kr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),En(Ie),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ia(t)?Tn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qr())),ke(t),null;case 26:var c=t.type,s=t.memoizedState;return e===null?(Tn(t),s!==null?(ke(t),lm(t,s)):(ke(t),zs(t,c,null,a,n))):s?s!==e.memoizedState?(Tn(t),ke(t),lm(t,s)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Tn(t),ke(t),zs(t,c,e,a,n)),null;case 27:if(ve(t),n=he.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ke(t),null}e=W.current,ia(t)?Ld(t):(e=up(c,a,n),t.stateNode=e,Tn(t))}return ke(t),null;case 5:if(ve(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ke(t),null}if(s=W.current,ia(t))Ld(t);else{var m=ao(he.current);switch(s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?m.createElement(c,{is:a.is}):m.createElement(c)}}s[ct]=t,s[pt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)s.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=s;e:switch(ut(s,c,a),c){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Tn(t)}}return ke(t),zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Tn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,c=ot,c!==null)switch(c.tag){case 27:case 5:a=c.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||$m(e.nodeValue,n)),e||Pn(t,!0)}else e=ao(e).createTextNode(a),e[ct]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ia(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ct]=t}else Tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ia(t),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[ct]=t}else Tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),c=!1}else c=qr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,c=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(c=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==c&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Xc(t,t.updateQueue),ke(t),null);case 4:return J(),e===null&&$s(t.stateNode.containerInfo),ke(t),null;case 10:return En(t.type),ke(t),null;case 19:if(G(Qe),a=t.memoizedState,a===null)return ke(t),null;if(c=(t.flags&128)!==0,s=a.rendering,s===null)if(c)pi(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Oc(e),s!==null){for(t.flags|=128,pi(a,!1),e=s.updateQueue,t.updateQueue=e,Xc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zd(n,e),n=n.sibling;return Z(Qe,Qe.current&1|2),Ne&&Sn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Et()>Zc&&(t.flags|=128,c=!0,pi(a,!1),t.lanes=4194304)}else{if(!c)if(e=Oc(s),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Xc(t,e),pi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ne)return ke(t),null}else 2*Et()-a.renderingStartTime>Zc&&n!==536870912&&(t.flags|=128,c=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Et(),e.sibling=null,n=Qe.current,Z(Qe,c?n&1|2:n&1),Ne&&Sn(t,a.treeForkCount),e):(ke(t),null);case 22:case 23:return Rt(t),es(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Xc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Ol),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),En(Ie),ke(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function $0(e,t){switch(kr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(Ie),J(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(r(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Qe),null;case 4:return J(),null;case 10:return En(t.type),null;case 22:case 23:return Rt(t),es(),e!==null&&G(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return En(Ie),null;case 25:return null;default:return null}}function am(e,t){switch(kr(t),t.tag){case 3:En(Ie),J();break;case 26:case 27:case 5:ve(t);break;case 4:J();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:G(Qe);break;case 10:En(t.type);break;case 22:case 23:Rt(t),es(),e!==null&&G(Ol);break;case 24:En(Ie)}}function gi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){a=void 0;var s=n.create,m=n.inst;a=s(),m.destroy=a}n=n.next}while(n!==c)}}catch(x){ze(t,t.return,x)}}function nl(e,t,n){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var s=c.next;a=s;do{if((a.tag&e)===e){var m=a.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,c=t;var E=n,B=x;try{B()}catch(X){ze(c,E,X)}}}a=a.next}while(a!==s)}}catch(X){ze(t,t.return,X)}}function im(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Pd(t,n)}catch(a){ze(e,e.return,a)}}}function cm(e,t,n){n.props=Ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ze(e,t,a)}}function vi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(c){ze(e,t,c)}}function on(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}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 om(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(c){ze(e,e.return,c)}}function _s(e,t,n){try{var a=e.stateNode;Sx(a,e.type,n,t),a[pt]=t}catch(c){ze(e,e.return,c)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function Ds(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(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&&sl(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 Ms(e,t,n){var a=e.tag;if(a===5||a===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=yn));else if(a!==4&&(a===27&&sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Gc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function sm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ut(t,a,n),t[ct]=e,t[pt]=n}catch(s){ze(e,e.return,s)}}var An=!1,et=!1,Us=!1,um=typeof WeakSet=="function"?WeakSet:Set,it=null;function ex(e,t){if(e=e.containerInfo,nu=fo,e=wd(e),Ar(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var c=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var m=0,x=-1,E=-1,B=0,X=0,K=e,H=null;t:for(;;){for(var k;K!==n||c!==0&&K.nodeType!==3||(x=m+c),K!==s||a!==0&&K.nodeType!==3||(E=m+a),K.nodeType===3&&(m+=K.nodeValue.length),(k=K.firstChild)!==null;)H=K,K=k;for(;;){if(K===e)break t;if(H===n&&++B===c&&(x=m),H===s&&++X===a&&(E=m),(k=K.nextSibling)!==null)break;K=H,H=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(lu={focusedElem:e,selectionRange:n},fo=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(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&&s!==null){e=void 0,n=t,c=s.memoizedProps,s=s.memoizedState,a=n.stateNode;try{var ie=Ul(n.type,c);e=a.getSnapshotBeforeUpdate(ie,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(pe){ze(n,n.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function fm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:On(e,n),a&4&&gi(5,n);break;case 1:if(On(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){ze(n,n.return,m)}else{var c=Ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){ze(n,n.return,m)}}a&64&&im(n),a&512&&vi(n,n.return);break;case 3:if(On(e,n),a&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{Pd(e,t)}catch(m){ze(n,n.return,m)}}break;case 27:t===null&&a&4&&sm(n);case 26:case 5:On(e,n),t===null&&a&4&&om(n),a&512&&vi(n,n.return);break;case 12:On(e,n);break;case 31:On(e,n),a&4&&mm(e,n);break;case 13:On(e,n),a&4&&pm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sx.bind(null,n),Rx(e,n))));break;case 22:if(a=n.memoizedState!==null||An,!a){t=t!==null&&t.memoizedState!==null||et,c=An;var s=et;An=a,(et=t)&&!s?zn(e,n,(n.subtreeFlags&8772)!==0):On(e,n),An=c,et=s}break;case 30:break;default:On(e,n)}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fr(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 qe=null,vt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)hm(e,t,n),n=n.sibling}function hm(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(qa,n)}catch{}switch(n.tag){case 26:et||on(n,t),Rn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||on(n,t);var a=qe,c=vt;sl(n.type)&&(qe=n.stateNode,vt=!1),Rn(e,t,n),ji(n.stateNode),qe=a,vt=c;break;case 5:et||on(n,t);case 6:if(a=qe,c=vt,qe=null,Rn(e,t,n),qe=a,vt=c,qe!==null)if(vt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(s){ze(n,t,s)}else try{qe.removeChild(n.stateNode)}catch(s){ze(n,t,s)}break;case 18:qe!==null&&(vt?(e=qe,ip(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ja(e)):ip(qe,n.stateNode));break;case 4:a=qe,c=vt,qe=n.stateNode.containerInfo,vt=!0,Rn(e,t,n),qe=a,vt=c;break;case 0:case 11:case 14:case 15:nl(2,n,t),et||nl(4,n,t),Rn(e,t,n);break;case 1:et||(on(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&cm(n,t,a)),Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:et=(a=et)||n.memoizedState!==null,Rn(e,t,n),et=a;break;default:Rn(e,t,n)}}function mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ja(e)}catch(n){ze(t,t.return,n)}}}function pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ja(e)}catch(n){ze(t,t.return,n)}}function tx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new um),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new um),t;default:throw Error(r(435,e.tag))}}function Fc(e,t){var n=tx(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var c=ux.bind(null,e,a);a.then(c,c)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],s=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(sl(x.type)){qe=x.stateNode,vt=!1;break e}break;case 5:qe=x.stateNode,vt=!1;break e;case 3:case 4:qe=x.stateNode.containerInfo,vt=!0;break e}x=x.return}if(qe===null)throw Error(r(160));hm(s,m,c),qe=null,vt=!1,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gm(t,e),t=t.sibling}var Jt=null;function gm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),xt(e),a&4&&(nl(3,e,e.return),gi(3,e),nl(5,e,e.return));break;case 1:yt(t,e),xt(e),a&512&&(et||n===null||on(n,n.return)),a&64&&An&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var c=Jt;if(yt(t,e),xt(e),a&512&&(et||n===null||on(n,n.return)),a&4){var s=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(a){case"title":s=c.getElementsByTagName("title")[0],(!s||s[Ga]||s[ct]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=c.createElement(a),c.head.insertBefore(s,c.querySelector("head > title"))),ut(s,a,n),s[ct]=e,at(s),a=s;break e;case"link":var m=gp("link","href",c).get(a+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(s=m[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}s=c.createElement(a),ut(s,a,n),c.head.appendChild(s);break;case"meta":if(m=gp("meta","content",c).get(a+(n.content||""))){for(x=0;x<m.length;x++)if(s=m[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}s=c.createElement(a),ut(s,a,n),c.head.appendChild(s);break;default:throw Error(r(468,a))}s[ct]=e,at(s),a=s}e.stateNode=a}else vp(c,e.type,e.stateNode);else e.stateNode=pp(c,a,e.memoizedProps);else s!==a?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,a===null?vp(c,e.type,e.stateNode):pp(c,a,e.memoizedProps)):a===null&&e.stateNode!==null&&_s(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),xt(e),a&512&&(et||n===null||on(n,n.return)),n!==null&&a&4&&_s(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),xt(e),a&512&&(et||n===null||on(n,n.return)),e.flags&32){c=e.stateNode;try{Pl(c,"")}catch(ie){ze(e,e.return,ie)}}a&4&&e.stateNode!=null&&(c=e.memoizedProps,_s(e,c,n!==null?n.memoizedProps:c)),a&1024&&(Us=!0);break;case 6:if(yt(t,e),xt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ie){ze(e,e.return,ie)}}break;case 3:if(oo=null,c=Jt,Jt=io(t.containerInfo),yt(t,e),Jt=c,xt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(ie){ze(e,e.return,ie)}Us&&(Us=!1,vm(e));break;case 4:a=Jt,Jt=io(e.stateNode.containerInfo),yt(t,e),xt(e),Jt=a;break;case 12:yt(t,e),xt(e);break;case 31:yt(t,e),xt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Fc(e,a)));break;case 13:yt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Qc=Et()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Fc(e,a)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,B=An,X=et;if(An=B||c,et=X||E,yt(t,e),et=X,An=B,xt(e),a&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||An||et||Ll(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(s=E.stateNode,c)m=s.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=E.stateNode;var K=E.memoizedProps.style,H=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ie){ze(E,E.return,ie)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ie){ze(E,E.return,ie)}}}else if(t.tag===18){if(n===null){E=t;try{var k=E.stateNode;c?cp(k,!0):cp(E.stateNode,!1)}catch(ie){ze(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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Fc(e,n))));break;case 19:yt(t,e),xt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Fc(e,a)));break;case 30:break;case 21:break;default:yt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(rm(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,s=Ds(e);Gc(e,s,c);break;case 5:var m=n.stateNode;n.flags&32&&(Pl(m,""),n.flags&=-33);var x=Ds(e);Gc(e,x,m);break;case 3:case 4:var E=n.stateNode.containerInfo,B=Ds(e);Ms(e,B,E);break;default:throw Error(r(161))}}catch(X){ze(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function On(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fm(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Ll(t);break;case 1:on(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&cm(t,t.return,n),Ll(t);break;case 27:ji(t.stateNode);case 26:case 5:on(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,c=e,s=t,m=s.flags;switch(s.tag){case 0:case 11:case 15:zn(c,s,n),gi(4,s);break;case 1:if(zn(c,s,n),a=s,c=a.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){ze(a,a.return,B)}if(a=s,c=a.updateQueue,c!==null){var x=a.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)Zd(E[c],x)}catch(B){ze(a,a.return,B)}}n&&m&64&&im(s),vi(s,s.return);break;case 27:sm(s);case 26:case 5:zn(c,s,n),n&&a===null&&m&4&&om(s),vi(s,s.return);break;case 12:zn(c,s,n);break;case 31:zn(c,s,n),n&&m&4&&mm(c,s);break;case 13:zn(c,s,n),n&&m&4&&pm(c,s);break;case 22:s.memoizedState===null&&zn(c,s,n),vi(s,s.return);break;case 30:break;default:zn(c,s,n)}t=t.sibling}}function Ls(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&&li(n))}function Bs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function It(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ym(e,t,n,a),t=t.sibling}function ym(e,t,n,a){var c=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,n,a),c&2048&&gi(9,t);break;case 1:It(e,t,n,a);break;case 3:It(e,t,n,a),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(c&2048){It(e,t,n,a),e=t.stateNode;try{var s=t.memoizedProps,m=s.id,x=s.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){ze(t,t.return,E)}}else It(e,t,n,a);break;case 31:It(e,t,n,a);break;case 13:It(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,m=t.alternate,t.memoizedState!==null?s._visibility&2?It(e,t,n,a):yi(e,t):s._visibility&2?It(e,t,n,a):(s._visibility|=2,pa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Ls(m,t);break;case 24:It(e,t,n,a),c&2048&&Bs(t.alternate,t);break;default:It(e,t,n,a)}}function pa(e,t,n,a,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,m=t,x=n,E=a,B=m.flags;switch(m.tag){case 0:case 11:case 15:pa(s,m,x,E,c),gi(8,m);break;case 23:break;case 22:var X=m.stateNode;m.memoizedState!==null?X._visibility&2?pa(s,m,x,E,c):yi(s,m):(X._visibility|=2,pa(s,m,x,E,c)),c&&B&2048&&Ls(m.alternate,m);break;case 24:pa(s,m,x,E,c),c&&B&2048&&Bs(m.alternate,m);break;default:pa(s,m,x,E,c)}t=t.sibling}}function yi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,c=a.flags;switch(a.tag){case 22:yi(n,a),c&2048&&Ls(a.alternate,a);break;case 24:yi(n,a),c&2048&&Bs(a.alternate,a);break;default:yi(n,a)}t=t.sibling}}var xi=8192;function ga(e,t,n){if(e.subtreeFlags&xi)for(e=e.child;e!==null;)xm(e,t,n),e=e.sibling}function xm(e,t,n){switch(e.tag){case 26:ga(e,t,n),e.flags&xi&&e.memoizedState!==null&&qx(n,Jt,e.memoizedState,e.memoizedProps);break;case 5:ga(e,t,n);break;case 3:case 4:var a=Jt;Jt=io(e.stateNode.containerInfo),ga(e,t,n),Jt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=xi,xi=16777216,ga(e,t,n),xi=a):ga(e,t,n));break;default:ga(e,t,n)}}function bm(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 bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];it=a,wm(a,e)}bm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sm(e),e=e.sibling}function Sm(e){switch(e.tag){case 0:case 11:case 15:bi(e),e.flags&2048&&nl(9,e,e.return);break;case 3:bi(e);break;case 12:bi(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)):bi(e);break;default:bi(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 a=t[n];it=a,wm(a,e)}bm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(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 wm(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:nl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:li(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,it=a;else e:for(n=e;it!==null;){a=it;var c=a.sibling,s=a.return;if(dm(a),a===n){it=null;break e}if(c!==null){c.return=s,it=c;break e}it=s}}}var nx={getCacheForType:function(e){var t=rt(Ie),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Ie).controller.signal}},lx=typeof WeakMap=="function"?WeakMap:Map,Re=0,Le=null,Se=null,Ee=0,Oe=0,Ot=null,ll=!1,va=!1,Hs=!1,_n=0,Ge=0,al=0,Bl=0,ks=0,zt=0,ya=0,Si=null,bt=null,Ys=!1,Qc=0,Em=0,Zc=1/0,Pc=null,il=null,lt=0,cl=null,xa=null,Dn=0,qs=0,Vs=null,Cm=null,wi=0,Xs=null;function _t(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:_.T!==null?Ps():Yf()}function Nm(){if(zt===0)if((Ee&536870912)===0||Ne){var e=lc;lc<<=1,(lc&3932160)===0&&(lc=262144),zt=e}else zt=536870912;return e=At.current,e!==null&&(e.flags|=32),zt}function St(e,t,n){(e===Le&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(ba(e,0),ol(e,Ee,zt,!1)),Xa(e,n),((Re&2)===0||e!==Le)&&(e===Le&&((Re&2)===0&&(Bl|=n),Ge===4&&ol(e,Ee,zt,!1)),rn(e))}function jm(e,t,n){if((Re&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Va(e,t),c=a?cx(e,t):Fs(e,t,!0),s=a;do{if(c===0){va&&!a&&ol(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!ax(n)){c=Fs(e,t,!1),s=!1;continue}if(c===2){if(s=t,e.errorRecoveryDisabledLanes&s)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=Si;var E=x.current.memoizedState.isDehydrated;if(E&&(ba(x,m).flags|=256),m=Fs(x,m,!1),m!==2){if(Hs&&!E){x.errorRecoveryDisabledLanes|=s,Bl|=s,c=4;break e}s=bt,bt=c,s!==null&&(bt===null?bt=s:bt.push.apply(bt,s))}c=m}if(s=!1,c!==2)continue}}if(c===1){ba(e,0),ol(e,t,0,!0);break}e:{switch(a=e,s=c,s){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ol(a,t,zt,!ll);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=Qc+300-Et(),10<c)){if(ol(a,t,zt,!ll),ic(a,0,!0)!==0)break e;Dn=t,a.timeoutHandle=lp(Tm.bind(null,a,n,bt,Pc,Ys,t,zt,Bl,ya,ll,s,"Throttled",-0,0),c);break e}Tm(a,n,bt,Pc,Ys,t,zt,Bl,ya,ll,s,null,-0,0)}}break}while(!0);rn(e)}function Tm(e,t,n,a,c,s,m,x,E,B,X,K,H,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:yn},xm(t,s,K);var ie=(s&62914560)===s?Qc-Et():(s&4194048)===s?Em-Et():0;if(ie=Vx(K,ie),ie!==null){Dn=s,e.cancelPendingCommit=ie(Um.bind(null,e,t,s,n,a,c,m,x,E,X,K,null,H,k)),ol(e,s,m,!B);return}}Um(e,t,s,n,a,c,m,x,E)}function ax(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 a=0;a<n.length;a++){var c=n[a],s=c.getSnapshot;c=c.value;try{if(!jt(s(),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 ol(e,t,n,a){t&=~ks,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var c=t;0<c;){var s=31-Nt(c),m=1<<s;a[s]=-1,c&=~m}n!==0&&Bf(e,n,t)}function Jc(){return(Re&6)===0?(Ei(0),!1):!0}function Gs(){if(Se!==null){if(Oe===0)var e=Se.return;else e=Se,wn=Al=null,cs(e),ua=null,ii=0,e=Se;for(;e!==null;)am(e.alternate,e),e=e.return;Se=null}}function ba(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Cx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Dn=0,Gs(),Le=e,Se=n=bn(e.current,null),Ee=t,Oe=0,Ot=null,ll=!1,va=Va(e,t),Hs=!1,ya=zt=ks=Bl=al=Ge=0,bt=Si=null,Ys=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var c=31-Nt(a),s=1<<c;t|=e[c],a&=~s}return _n=t,vc(),n}function Am(e,t){xe=null,_.H=hi,t===sa||t===Nc?(t=Gd(),Oe=3):t===Zr?(t=Gd(),Oe=4):Oe=t===ws?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,Se===null&&(Ge=1,kc(e,Vt(t,e.current)))}function Rm(){var e=At.current;return e===null?!0:(Ee&4194048)===Ee?Kt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Kt:!1}function Om(){var e=_.H;return _.H=hi,e===null?hi:e}function zm(){var e=_.A;return _.A=nx,e}function Ic(){Ge=4,ll||(Ee&4194048)!==Ee&&At.current!==null||(va=!0),(al&134217727)===0&&(Bl&134217727)===0||Le===null||ol(Le,Ee,zt,!1)}function Fs(e,t,n){var a=Re;Re|=2;var c=Om(),s=zm();(Le!==e||Ee!==t)&&(Pc=null,ba(e,t)),t=!1;var m=Ge;e:do try{if(Oe!==0&&Se!==null){var x=Se,E=Ot;switch(Oe){case 8:Gs(),m=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var B=Oe;if(Oe=0,Ot=null,Sa(e,x,E,B),n&&va){m=0;break e}break;default:B=Oe,Oe=0,Ot=null,Sa(e,x,E,B)}}ix(),m=Ge;break}catch(X){Am(e,X)}while(!0);return t&&e.shellSuspendCounter++,wn=Al=null,Re=a,_.H=c,_.A=s,Se===null&&(Le=null,Ee=0,vc()),m}function ix(){for(;Se!==null;)_m(Se)}function cx(e,t){var n=Re;Re|=2;var a=Om(),c=zm();Le!==e||Ee!==t?(Pc=null,Zc=Et()+500,ba(e,t)):va=Va(e,t);e:do try{if(Oe!==0&&Se!==null){t=Se;var s=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,Sa(e,t,s,1);break;case 2:case 9:if(Vd(s)){Oe=0,Ot=null,Dm(t);break}t=function(){Oe!==2&&Oe!==9||Le!==e||(Oe=7),rn(e)},s.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Vd(s)?(Oe=0,Ot=null,Dm(t)):(Oe=0,Ot=null,Sa(e,t,s,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?yp(m):x.stateNode.complete){Oe=0,Ot=null;var E=x.sibling;if(E!==null)Se=E;else{var B=x.return;B!==null?(Se=B,Wc(B)):Se=null}break t}}Oe=0,Ot=null,Sa(e,t,s,5);break;case 6:Oe=0,Ot=null,Sa(e,t,s,6);break;case 8:Gs(),Ge=6;break e;default:throw Error(r(462))}}ox();break}catch(X){Am(e,X)}while(!0);return wn=Al=null,_.H=a,_.A=c,Re=n,Se!==null?0:(Le=null,Ee=0,vc(),Ge)}function ox(){for(;Se!==null&&!Oy();)_m(Se)}function _m(e){var t=nm(e.alternate,e,_n);e.memoizedProps=e.pendingProps,t===null?Wc(e):Se=t}function Dm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Jh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Jh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:cs(t);default:am(n,t),t=Se=zd(t,_n),t=nm(n,t,_n)}e.memoizedProps=e.pendingProps,t===null?Wc(e):Se=t}function Sa(e,t,n,a){wn=Al=null,cs(t),ua=null,ii=0;var c=t.return;try{if(P0(e,c,t,n,Ee)){Ge=1,kc(e,Vt(n,e.current)),Se=null;return}}catch(s){if(c!==null)throw Se=c,s;Ge=1,kc(e,Vt(n,e.current)),Se=null;return}t.flags&32768?(Ne||a===1?e=!0:va||(Ee&536870912)!==0?e=!1:(ll=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mm(t,e)):Wc(t)}function Wc(e){var t=e;do{if((t.flags&32768)!==0){Mm(t,ll);return}e=t.return;var n=W0(t.alternate,t,_n);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ge===0&&(Ge=5)}function Mm(e,t){do{var n=$0(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ge=6,Se=null}function Um(e,t,n,a,c,s,m,x,E){e.cancelPendingCommit=null;do $c();while(lt!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(s=t.lanes|t.childLanes,s|=Dr,Yy(e,n,s,m,x,E),e===Le&&(Se=Le=null,Ee=0),xa=t,cl=e,Dn=n,qs=s,Vs=c,Cm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fx(tc,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,c=U.p,U.p=2,m=Re,Re|=4;try{ex(e,t,n)}finally{Re=m,U.p=c,_.T=a}}lt=1,Lm(),Bm(),Hm()}}function Lm(){if(lt===1){lt=0;var e=cl,t=xa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var a=U.p;U.p=2;var c=Re;Re|=4;try{gm(t,e);var s=lu,m=wd(e.containerInfo),x=s.focusedElem,E=s.selectionRange;if(m!==x&&x&&x.ownerDocument&&Sd(x.ownerDocument.documentElement,x)){if(E!==null&&Ar(x)){var B=E.start,X=E.end;if(X===void 0&&(X=B),"selectionStart"in x)x.selectionStart=B,x.selectionEnd=Math.min(X,x.value.length);else{var K=x.ownerDocument||document,H=K&&K.defaultView||window;if(H.getSelection){var k=H.getSelection(),ie=x.textContent.length,pe=Math.min(E.start,ie),Ue=E.end===void 0?pe:Math.min(E.end,ie);!k.extend&&pe>Ue&&(m=Ue,Ue=pe,pe=m);var z=bd(x,pe),A=bd(x,Ue);if(z&&A&&(k.rangeCount!==1||k.anchorNode!==z.node||k.anchorOffset!==z.offset||k.focusNode!==A.node||k.focusOffset!==A.offset)){var L=K.createRange();L.setStart(z.node,z.offset),k.removeAllRanges(),pe>Ue?(k.addRange(L),k.extend(A.node,A.offset)):(L.setEnd(A.node,A.offset),k.addRange(L))}}}}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}}fo=!!nu,lu=nu=null}finally{Re=c,U.p=a,_.T=n}}e.current=t,lt=2}}function Bm(){if(lt===2){lt=0;var e=cl,t=xa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var a=U.p;U.p=2;var c=Re;Re|=4;try{fm(e,t.alternate,t)}finally{Re=c,U.p=a,_.T=n}}lt=3}}function Hm(){if(lt===4||lt===3){lt=0,zy();var e=cl,t=xa,n=Dn,a=Cm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?lt=5:(lt=0,xa=cl=null,km(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(il=null),sr(n),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,c=U.p,U.p=2,_.T=null;try{for(var s=e.onRecoverableError,m=0;m<a.length;m++){var x=a[m];s(x.value,{componentStack:x.stack})}}finally{_.T=t,U.p=c}}(Dn&3)!==0&&$c(),rn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Xs?wi++:(wi=0,Xs=e):wi=0,Ei(0)}}function km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function $c(){return Lm(),Bm(),Hm(),Ym()}function Ym(){if(lt!==5)return!1;var e=cl,t=qs;qs=0;var n=sr(Dn),a=_.T,c=U.p;try{U.p=32>n?32:n,_.T=null,n=Vs,Vs=null;var s=cl,m=Dn;if(lt=0,xa=cl=null,Dn=0,(Re&6)!==0)throw Error(r(331));var x=Re;if(Re|=4,Sm(s.current),ym(s,s.current,m,n),Re=x,Ei(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(qa,s)}catch{}return!0}finally{U.p=c,_.T=a,km(e,t)}}function qm(e,t,n){t=Vt(n,t),t=Ss(e.stateNode,t,2),e=$n(e,t,2),e!==null&&(Xa(e,2),rn(e))}function ze(e,t,n){if(e.tag===3)qm(e,e,n);else for(;t!==null;){if(t.tag===3){qm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(il===null||!il.has(a))){e=Vt(n,e),n=Vh(2),a=$n(t,n,2),a!==null&&(Xh(n,a,t,e),Xa(a,2),rn(a));break}}t=t.return}}function Ks(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new lx;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(n)||(Hs=!0,c.add(n),e=rx.bind(null,e,t,n),t.then(e,e))}function rx(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Ee&n)===n&&(Ge===4||Ge===3&&(Ee&62914560)===Ee&&300>Et()-Qc?(Re&2)===0&&ba(e,0):ks|=n,ya===Ee&&(ya=0)),rn(e)}function Vm(e,t){t===0&&(t=Lf()),e=Nl(e,t),e!==null&&(Xa(e,t),rn(e))}function sx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vm(e,n)}function ux(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Vm(e,n)}function fx(e,t){return Vl(e,t)}var eo=null,wa=null,Qs=!1,to=!1,Zs=!1,rl=0;function rn(e){e!==wa&&e.next===null&&(wa===null?eo=wa=e:wa=wa.next=e),to=!0,Qs||(Qs=!0,hx())}function Ei(e,t){if(!Zs&&to){Zs=!0;do for(var n=!1,a=eo;a!==null;){if(e!==0){var c=a.pendingLanes;if(c===0)var s=0;else{var m=a.suspendedLanes,x=a.pingedLanes;s=(1<<31-Nt(42|e)+1)-1,s&=c&~(m&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Km(a,s))}else s=Ee,s=ic(a,a===Le?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Va(a,s)||(n=!0,Km(a,s));a=a.next}while(n);Zs=!1}}function dx(){Xm()}function Xm(){to=Qs=!1;var e=0;rl!==0&&Ex()&&(e=rl);for(var t=Et(),n=null,a=eo;a!==null;){var c=a.next,s=Gm(a,t);s===0?(a.next=null,n===null?eo=c:n.next=c,c===null&&(wa=n)):(n=a,(e!==0||(s&3)!==0)&&(to=!0)),a=c}lt!==0&<!==5||Ei(e),rl!==0&&(rl=0)}function Gm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var m=31-Nt(s),x=1<<m,E=c[m];E===-1?((x&n)===0||(x&a)!==0)&&(c[m]=ky(x,t)):E<=t&&(e.expiredLanes|=x),s&=~x}if(t=Le,n=Ee,n=ic(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&cr(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Va(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&cr(a),sr(n)){case 2:case 8:n=Mf;break;case 32:n=tc;break;case 268435456:n=Uf;break;default:n=tc}return a=Fm.bind(null,e),n=Vl(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&cr(a),e.callbackPriority=2,e.callbackNode=null,2}function Fm(e,t){if(lt!==0&<!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($c()&&e.callbackNode!==n)return null;var a=Ee;return a=ic(e,e===Le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jm(e,a,t),Gm(e,Et()),e.callbackNode!=null&&e.callbackNode===n?Fm.bind(null,e):null)}function Km(e,t){if($c())return null;jm(e,t,!0)}function hx(){Nx(function(){(Re&6)!==0?Vl(Df,dx):Xm()})}function Ps(){if(rl===0){var e=oa;e===0&&(e=nc,nc<<=1,(nc&261888)===0&&(nc=256)),rl=e}return rl}function Qm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:sc(""+e)}function Zm(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 mx(e,t,n,a,c){if(t==="submit"&&n&&n.stateNode===c){var s=Qm((c[pt]||null).action),m=a.submitter;m&&(t=(t=m[pt]||null)?Qm(t.formAction):m.getAttribute("formAction"),t!==null&&(s=t,m=null));var x=new hc("action","action",null,a,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(rl!==0){var E=m?Zm(c,m):new FormData(c);ps(n,{pending:!0,data:E,method:c.method,action:s},null,E)}}else typeof s=="function"&&(x.preventDefault(),E=m?Zm(c,m):new FormData(c),ps(n,{pending:!0,data:E,method:c.method,action:s},s,E))},currentTarget:c}]})}}for(var Js=0;Js<_r.length;Js++){var Is=_r[Js],px=Is.toLowerCase(),gx=Is[0].toUpperCase()+Is.slice(1);Pt(px,"on"+gx)}Pt(Nd,"onAnimationEnd"),Pt(jd,"onAnimationIteration"),Pt(Td,"onAnimationStart"),Pt("dblclick","onDoubleClick"),Pt("focusin","onFocus"),Pt("focusout","onBlur"),Pt(_0,"onTransitionRun"),Pt(D0,"onTransitionStart"),Pt(M0,"onTransitionCancel"),Pt(Ad,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="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(" "),vx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ci));function Pm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],c=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var m=a.length-1;0<=m;m--){var x=a[m],E=x.instance,B=x.currentTarget;if(x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=B;try{s(c)}catch(X){gc(X)}c.currentTarget=null,s=E}else for(m=0;m<a.length;m++){if(x=a[m],E=x.instance,B=x.currentTarget,x=x.listener,E!==s&&c.isPropagationStopped())break e;s=x,c.currentTarget=B;try{s(c)}catch(X){gc(X)}c.currentTarget=null,s=E}}}}function we(e,t){var n=t[ur];n===void 0&&(n=t[ur]=new Set);var a=e+"__bubble";n.has(a)||(Jm(t,e,2,!1),n.add(a))}function Ws(e,t,n){var a=0;t&&(a|=4),Jm(n,e,a,t)}var no="_reactListening"+Math.random().toString(36).slice(2);function $s(e){if(!e[no]){e[no]=!0,Xf.forEach(function(n){n!=="selectionchange"&&(vx.has(n)||Ws(n,!1,e),Ws(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[no]||(t[no]=!0,Ws("selectionchange",!1,t))}}function Jm(e,t,n,a){switch(Np(t)){case 2:var c=Fx;break;case 8:c=Kx;break;default:c=mu}n=c.bind(null,t,n,e),c=void 0,!xr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?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 eu(e,t,n,a,c){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var x=a.stateNode.containerInfo;if(x===c)break;if(m===4)for(m=a.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=Gl(x),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){a=s=m;continue e}x=x.parentNode}}a=a.return}td(function(){var B=s,X=vr(n),K=[];e:{var H=Rd.get(e);if(H!==void 0){var k=hc,ie=e;switch(e){case"keypress":if(fc(n)===0)break e;case"keydown":case"keyup":k=u0;break;case"focusin":ie="focus",k=Er;break;case"focusout":ie="blur",k=Er;break;case"beforeblur":case"afterblur":k=Er;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=ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Wy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=h0;break;case Nd:case jd:case Td:k=t0;break;case Ad:k=p0;break;case"scroll":case"scrollend":k=Jy;break;case"wheel":k=v0;break;case"copy":case"cut":case"paste":k=l0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=cd;break;case"toggle":case"beforetoggle":k=x0}var pe=(t&4)!==0,Ue=!pe&&(e==="scroll"||e==="scrollend"),z=pe?H!==null?H+"Capture":null:H;pe=[];for(var A=B,L;A!==null;){var F=A;if(L=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||L===null||z===null||(F=Ka(A,z),F!=null&&pe.push(Ni(A,F,L))),Ue)break;A=A.return}0<pe.length&&(H=new k(H,ie,null,n,X),K.push({event:H,listeners:pe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",H&&n!==gr&&(ie=n.relatedTarget||n.fromElement)&&(Gl(ie)||ie[Xl]))break e;if((k||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,k?(ie=n.relatedTarget||n.toElement,k=B,ie=ie?Gl(ie):null,ie!==null&&(Ue=d(ie),pe=ie.tag,ie!==Ue||pe!==5&&pe!==27&&pe!==6)&&(ie=null)):(k=null,ie=B),k!==ie)){if(pe=ad,F="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=cd,F="onPointerLeave",z="onPointerEnter",A="pointer"),Ue=k==null?H:Fa(k),L=ie==null?H:Fa(ie),H=new pe(F,A+"leave",k,n,X),H.target=Ue,H.relatedTarget=L,F=null,Gl(X)===B&&(pe=new pe(z,A+"enter",ie,n,X),pe.target=L,pe.relatedTarget=Ue,F=pe),Ue=F,k&&ie)t:{for(pe=yx,z=k,A=ie,L=0,F=z;F;F=pe(F))L++;F=0;for(var de=A;de;de=pe(de))F++;for(;0<L-F;)z=pe(z),L--;for(;0<F-L;)A=pe(A),F--;for(;L--;){if(z===A||A!==null&&z===A.alternate){pe=z;break t}z=pe(z),A=pe(A)}pe=null}else pe=null;k!==null&&Im(K,H,k,pe,!1),ie!==null&&Ue!==null&&Im(K,Ue,ie,pe,!0)}}e:{if(H=B?Fa(B):window,k=H.nodeName&&H.nodeName.toLowerCase(),k==="select"||k==="input"&&H.type==="file")var Te=md;else if(dd(H))if(pd)Te=R0;else{Te=T0;var oe=j0}else k=H.nodeName,!k||k.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&pr(B.elementType)&&(Te=md):Te=A0;if(Te&&(Te=Te(e,B))){hd(K,Te,n,X);break e}oe&&oe(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&mr(H,"number",H.value)}switch(oe=B?Fa(B):window,e){case"focusin":(dd(oe)||oe.contentEditable==="true")&&($l=oe,Rr=B,ei=null);break;case"focusout":ei=Rr=$l=null;break;case"mousedown":Or=!0;break;case"contextmenu":case"mouseup":case"dragend":Or=!1,Ed(K,n,X);break;case"selectionchange":if(z0)break;case"keydown":case"keyup":Ed(K,n,X)}var be;if(Nr)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Wl?ud(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(od&&n.locale!=="ko"&&(Wl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Wl&&(be=nd()):(Kn=X,br="value"in Kn?Kn.value:Kn.textContent,Wl=!0)),oe=lo(B,Ce),0<oe.length&&(Ce=new id(Ce,e,null,n,X),K.push({event:Ce,listeners:oe}),be?Ce.data=be:(be=fd(n),be!==null&&(Ce.data=be)))),(be=S0?w0(e,n):E0(e,n))&&(Ce=lo(B,"onBeforeInput"),0<Ce.length&&(oe=new id("onBeforeInput","beforeinput",null,n,X),K.push({event:oe,listeners:Ce}),oe.data=be)),mx(K,e,B,n,X)}Pm(K,t)})}function Ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lo(e,t){for(var n=t+"Capture",a=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=Ka(e,n),c!=null&&a.unshift(Ni(e,c,s)),c=Ka(e,t),c!=null&&a.push(Ni(e,c,s))),e.tag===3)return a;e=e.return}return[]}function yx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Im(e,t,n,a,c){for(var s=t._reactName,m=[];n!==null&&n!==a;){var x=n,E=x.alternate,B=x.stateNode;if(x=x.tag,E!==null&&E===a)break;x!==5&&x!==26&&x!==27||B===null||(E=B,c?(B=Ka(n,s),B!=null&&m.unshift(Ni(n,B,E))):c||(B=Ka(n,s),B!=null&&m.push(Ni(n,B,E)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var xx=/\r\n?/g,bx=/\u0000|\uFFFD/g;function Wm(e){return(typeof e=="string"?e:""+e).replace(xx,`
|
|
9
|
-
`).replace(bx,"")}function $m(e,t){return t=Wm(t),Wm(e)===t}function Me(e,t,n,a,c,s){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Pl(e,""+a);break;case"className":oc(e,"class",a);break;case"tabIndex":oc(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":oc(e,n,a);break;case"style":$f(e,a,s);break;case"data":if(t!=="object"){oc(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=sc(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 s=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",c.name,c,null),Me(e,t,"formEncType",c.formEncType,c,null),Me(e,t,"formMethod",c.formMethod,c,null),Me(e,t,"formTarget",c.formTarget,c,null)):(Me(e,t,"encType",c.encType,c,null),Me(e,t,"method",c.method,c,null),Me(e,t,"target",c.target,c,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=sc(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=yn);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=sc(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":we("beforetoggle",e),we("toggle",e),cc(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":cc(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Zy.get(n)||n,cc(e,n,a))}}function tu(e,t,n,a,c,s){switch(n){case"style":$f(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&Pl(e,""+a);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"onClick":a!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[pt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,c);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):cc(e,n,a)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var a=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var m=n[s];if(m!=null)switch(s){case"src":a=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,s,m,n,null)}}c&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=s=m=c=null,E=null,B=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":c=X;break;case"type":m=X;break;case"checked":E=X;break;case"defaultChecked":B=X;break;case"value":s=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,t));break;default:Me(e,t,a,X,n,null)}}Pf(e,s,x,E,B,m,c,!1);return;case"select":we("invalid",e),a=m=s=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":s=x;break;case"defaultValue":m=x;break;case"multiple":a=x;default:Me(e,t,c,x,n,null)}t=s,n=m,e.multiple=!!a,t!=null?Zl(e,!!a,t,!1):n!=null&&Zl(e,!!a,n,!0);return;case"textarea":we("invalid",e),s=c=a=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":a=x;break;case"defaultValue":c=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Me(e,t,m,x,n,null)}If(e,a,c,s);return;case"option":for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null)&&(E==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Me(e,t,E,a,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(a=0;a<Ci.length;a++)we(Ci[a],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(B in n)if(n.hasOwnProperty(B)&&(a=n[B],a!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,B,a,n,null)}return;default:if(pr(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&tu(e,t,X,a,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!=null&&Me(e,t,x,a,n,null))}function Sx(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,m=null,x=null,E=null,B=null,X=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:a.hasOwnProperty(k)||Me(e,t,k,null,a,K)}}for(var H in a){var k=a[H];if(K=n[H],a.hasOwnProperty(H)&&(k!=null||K!=null))switch(H){case"type":s=k;break;case"name":c=k;break;case"checked":B=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(r(137,t));break;default:k!==K&&Me(e,t,H,k,a,K)}}hr(e,m,x,E,B,X,s,c);return;case"select":k=m=x=H=null;for(s in n)if(E=n[s],n.hasOwnProperty(s)&&E!=null)switch(s){case"value":break;case"multiple":k=E;default:a.hasOwnProperty(s)||Me(e,t,s,null,a,E)}for(c in a)if(s=a[c],E=n[c],a.hasOwnProperty(c)&&(s!=null||E!=null))switch(c){case"value":H=s;break;case"defaultValue":x=s;break;case"multiple":m=s;default:s!==E&&Me(e,t,c,s,a,E)}t=x,n=m,a=k,H!=null?Zl(e,!!n,H,!1):!!a!=!!n&&(t!=null?Zl(e,!!n,t,!0):Zl(e,!!n,n?[]:"",!1));return;case"textarea":k=H=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!a.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Me(e,t,x,null,a,c)}for(m in a)if(c=a[m],s=n[m],a.hasOwnProperty(m)&&(c!=null||s!=null))switch(m){case"value":H=c;break;case"defaultValue":k=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==s&&Me(e,t,m,c,a,s)}Jf(e,H,k);return;case"option":for(var ie in n)H=n[ie],n.hasOwnProperty(ie)&&H!=null&&!a.hasOwnProperty(ie)&&(ie==="selected"?e.selected=!1:Me(e,t,ie,null,a,H));for(E in a)H=a[E],k=n[E],a.hasOwnProperty(E)&&H!==k&&(H!=null||k!=null)&&(E==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Me(e,t,E,H,a,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 pe in n)H=n[pe],n.hasOwnProperty(pe)&&H!=null&&!a.hasOwnProperty(pe)&&Me(e,t,pe,null,a,H);for(B in a)if(H=a[B],k=n[B],a.hasOwnProperty(B)&&H!==k&&(H!=null||k!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Me(e,t,B,H,a,k)}return;default:if(pr(t)){for(var Ue in n)H=n[Ue],n.hasOwnProperty(Ue)&&H!==void 0&&!a.hasOwnProperty(Ue)&&tu(e,t,Ue,void 0,a,H);for(X in a)H=a[X],k=n[X],!a.hasOwnProperty(X)||H===k||H===void 0&&k===void 0||tu(e,t,X,H,a,k);return}}for(var z in n)H=n[z],n.hasOwnProperty(z)&&H!=null&&!a.hasOwnProperty(z)&&Me(e,t,z,null,a,H);for(K in a)H=a[K],k=n[K],!a.hasOwnProperty(K)||H===k||H==null&&k==null||Me(e,t,K,H,a,k)}function ep(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var c=n[a],s=c.transferSize,m=c.initiatorType,x=c.duration;if(s&&x&&ep(m)){for(m=0,x=c.responseEnd,a+=1;a<n.length;a++){var E=n[a],B=E.startTime;if(B>x)break;var X=E.transferSize,K=E.initiatorType;X&&ep(K)&&(E=E.responseEnd,m+=X*(E<x?1:(x-B)/(E-B)))}if(--a,t+=8*(s+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 nu=null,lu=null;function ao(e){return e.nodeType===9?e:e.ownerDocument}function tp(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 np(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 au(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 iu=null;function Ex(){var e=window.event;return e&&e.type==="popstate"?e===iu?!1:(iu=e,!0):(iu=null,!1)}var lp=typeof setTimeout=="function"?setTimeout:void 0,Cx=typeof clearTimeout=="function"?clearTimeout:void 0,ap=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof ap<"u"?function(e){return ap.resolve(null).then(e).catch(jx)}:lp;function jx(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function ip(e,t){var n=t,a=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(c),ja(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ji(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ji(n);for(var s=n.firstChild;s;){var m=s.nextSibling,x=s.nodeName;s[Ga]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=m}}else n==="body"&&ji(e.ownerDocument.body);n=c}while(n);ja(t)}function cp(e,t){var n=e;e=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function cu(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":cu(n),fr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Tx(e,t,n,a){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ga])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Qt(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=Qt(e.nextSibling),e===null))return null;return e}function op(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function ou(e){return e.data==="$?"||e.data==="$~"}function ru(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Rx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Qt(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 su=null;function rp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function sp(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 up(e,t,n){switch(t=ao(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fr(e)}var Zt=new Map,fp=new Set;function io(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=U.d;U.d={f:Ox,r:zx,D:_x,C:Dx,L:Mx,m:Ux,X:Bx,S:Lx,M:Hx};function Ox(){var e=Mn.f(),t=Jc();return e||t}function zx(e){var t=Fl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Mn.r(e)}var Ea=typeof document>"u"?null:document;function dp(e,t,n){var a=Ea;if(a&&typeof t=="string"&&t){var c=Yt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),fp.has(c)||(fp.add(c),e={rel:e,crossOrigin:n,href:t},a.querySelector(c)===null&&(t=a.createElement("link"),ut(t,"link",e),at(t),a.head.appendChild(t)))}}function _x(e){Mn.D(e),dp("dns-prefetch",e,null)}function Dx(e,t){Mn.C(e,t),dp("preconnect",e,t)}function Mx(e,t,n){Mn.L(e,t,n);var a=Ea;if(a&&e&&t){var c='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Yt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Yt(n.imageSizes)+'"]')):c+='[href="'+Yt(e)+'"]';var s=c;switch(t){case"style":s=Ca(e);break;case"script":s=Na(e)}Zt.has(s)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zt.set(s,e),a.querySelector(c)!==null||t==="style"&&a.querySelector(Ti(s))||t==="script"&&a.querySelector(Ai(s))||(t=a.createElement("link"),ut(t,"link",e),at(t),a.head.appendChild(t)))}}function Ux(e,t){Mn.m(e,t);var n=Ea;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Yt(a)+'"][href="'+Yt(e)+'"]',s=c;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Na(e)}if(!Zt.has(s)&&(e=S({rel:"modulepreload",href:e},t),Zt.set(s,e),n.querySelector(c)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ai(s)))return}a=n.createElement("link"),ut(a,"link",e),at(a),n.head.appendChild(a)}}}function Lx(e,t,n){Mn.S(e,t,n);var a=Ea;if(a&&e){var c=Kl(a).hoistableStyles,s=Ca(e);t=t||"default";var m=c.get(s);if(!m){var x={loading:0,preload:null};if(m=a.querySelector(Ti(s)))x.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zt.get(s))&&uu(e,n);var E=m=a.createElement("link");at(E),ut(E,"link",e),E._p=new Promise(function(B,X){E.onload=B,E.onerror=X}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,co(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:x},c.set(s,m)}}}function Bx(e,t){Mn.X(e,t);var n=Ea;if(n&&e){var a=Kl(n).hoistableScripts,c=Na(e),s=a.get(c);s||(s=n.querySelector(Ai(c)),s||(e=S({src:e,async:!0},t),(t=Zt.get(c))&&fu(e,t),s=n.createElement("script"),at(s),ut(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function Hx(e,t){Mn.M(e,t);var n=Ea;if(n&&e){var a=Kl(n).hoistableScripts,c=Na(e),s=a.get(c);s||(s=n.querySelector(Ai(c)),s||(e=S({src:e,async:!0,type:"module"},t),(t=Zt.get(c))&&fu(e,t),s=n.createElement("script"),at(s),ut(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(c,s))}}function hp(e,t,n,a){var c=(c=he.current)?io(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ca(n.href),n=Kl(c).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ca(n.href);var s=Kl(c).hoistableStyles,m=s.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,m),(s=c.querySelector(Ti(e)))&&!s._p&&(m.instance=s,m.state.loading=5),Zt.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},Zt.set(e,n),s||kx(c,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Na(n),n=Kl(c).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ca(e){return'href="'+Yt(e)+'"'}function Ti(e){return'link[rel="stylesheet"]['+e+"]"}function mp(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function kx(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ut(t,"link",n),at(t),e.head.appendChild(t))}function Na(e){return'[src="'+Yt(e)+'"]'}function Ai(e){return"script[async]"+e}function pp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Yt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var c=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ut(a,"style",c),co(a,n.precedence,e),t.instance=a;case"stylesheet":c=Ca(n.href);var s=e.querySelector(Ti(c));if(s)return t.state.loading|=4,t.instance=s,at(s),s;a=mp(n),(c=Zt.get(c))&&uu(a,c),s=(e.ownerDocument||e).createElement("link"),at(s);var m=s;return m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ut(s,"link",a),t.state.loading|=4,co(s,n.precedence,e),t.instance=s;case"script":return s=Na(n.src),(c=e.querySelector(Ai(s)))?(t.instance=c,at(c),c):(a=n,(c=Zt.get(s))&&(a=S({},n),fu(a,c)),e=e.ownerDocument||e,c=e.createElement("script"),at(c),ut(c,"link",a),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,co(a,n.precedence,e));return t.instance}function co(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=a.length?a[a.length-1]:null,s=c,m=0;m<a.length;m++){var x=a[m];if(x.dataset.precedence===t)s=x;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oo=null;function gp(e,t,n){if(oo===null){var a=new Map,c=oo=new Map;c.set(n,a)}else c=oo,a=c.get(n),a||(a=new Map,c.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[Ga]||s[ct]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var m=s.getAttribute(t)||"";m=e+m;var x=a.get(m);x?x.push(s):a.set(m,[s])}}return a}function vp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Yx(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 yp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qx(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=Ca(a.href),s=t.querySelector(Ti(c));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ro.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,at(s);return}s=t.ownerDocument||t,a=mp(a),(c=Zt.get(c))&&uu(a,c),s=s.createElement("link"),at(s);var m=s;m._p=new Promise(function(x,E){m.onload=x,m.onerror=E}),ut(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ro.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var du=0;function Vx(e,t){return e.stylesheets&&e.count===0&&uo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&uo(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&du===0&&(du=62500*wx());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uo(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>du?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(c)}}:null}function ro(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var so=null;function uo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,so=new Map,t.forEach(Xx,e),so=null,ro.call(e))}function Xx(e,t){if(!(t.state.loading&4)){var n=so.get(e);if(n)var a=n.get(null);else{n=new Map,so.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var m=c[s];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}c=t.instance,m=c.getAttribute("data-precedence"),s=n.get(m)||a,s===a&&n.set(null,c),n.set(m,c),this.count++,a=ro.bind(this),c.addEventListener("load",a),c.addEventListener("error",a),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ri={$$typeof:M,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Gx(e,t,n,a,c,s,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=or(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=or(0),this.hiddenUpdates=or(null),this.identifierPrefix=a,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function xp(e,t,n,a,c,s,m,x,E,B,X,K){return e=new Gx(e,t,n,m,E,B,X,K,x),t=1,s===!0&&(t|=24),s=Tt(3,null,null,t),e.current=s,s.stateNode=e,t=Fr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},Pr(s),e}function bp(e){return e?(e=na,e):na}function Sp(e,t,n,a,c,s){c=bp(c),a.context===null?a.context=c:a.pendingContext=c,a=Wn(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=$n(e,a,t),n!==null&&(St(n,e,t),oi(n,e,t))}function wp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hu(e,t){wp(e,t),(e=e.alternate)&&wp(e,t)}function Ep(e){if(e.tag===13||e.tag===31){var t=Nl(e,67108864);t!==null&&St(t,e,67108864),hu(e,67108864)}}function Cp(e){if(e.tag===13||e.tag===31){var t=_t();t=rr(t);var n=Nl(e,t);n!==null&&St(n,e,t),hu(e,t)}}var fo=!0;function Fx(e,t,n,a){var c=_.T;_.T=null;var s=U.p;try{U.p=2,mu(e,t,n,a)}finally{U.p=s,_.T=c}}function Kx(e,t,n,a){var c=_.T;_.T=null;var s=U.p;try{U.p=8,mu(e,t,n,a)}finally{U.p=s,_.T=c}}function mu(e,t,n,a){if(fo){var c=pu(a);if(c===null)eu(e,t,a,ho,n),jp(e,a);else if(Zx(c,e,t,n,a))a.stopPropagation();else if(jp(e,a),t&4&&-1<Qx.indexOf(e)){for(;c!==null;){var s=Fl(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var m=bl(s.pendingLanes);if(m!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var E=1<<31-Nt(m);x.entanglements[1]|=E,m&=~E}rn(s),(Re&6)===0&&(Zc=Et()+500,Ei(0))}}break;case 31:case 13:x=Nl(s,2),x!==null&&St(x,s,2),Jc(),hu(s,2)}if(s=pu(a),s===null&&eu(e,t,a,ho,n),s===c)break;c=s}c!==null&&a.stopPropagation()}else eu(e,t,a,null,n)}}function pu(e){return e=vr(e),gu(e)}var ho=null;function gu(e){if(ho=null,e=Gl(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 ho=e,null}function Np(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(_y()){case Df:return 2;case Mf:return 8;case tc:case Dy:return 32;case Uf:return 268435456;default:return 32}default:return 32}}var vu=!1,ul=null,fl=null,dl=null,Oi=new Map,zi=new Map,hl=[],Qx="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 jp(e,t){switch(e){case"focusin":case"focusout":ul=null;break;case"dragenter":case"dragleave":fl=null;break;case"mouseover":case"mouseout":dl=null;break;case"pointerover":case"pointerout":Oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zi.delete(t.pointerId)}}function _i(e,t,n,a,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Fl(t),t!==null&&Ep(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Zx(e,t,n,a,c){switch(t){case"focusin":return ul=_i(ul,e,t,n,a,c),!0;case"dragenter":return fl=_i(fl,e,t,n,a,c),!0;case"mouseover":return dl=_i(dl,e,t,n,a,c),!0;case"pointerover":var s=c.pointerId;return Oi.set(s,_i(Oi.get(s)||null,e,t,n,a,c)),!0;case"gotpointercapture":return s=c.pointerId,zi.set(s,_i(zi.get(s)||null,e,t,n,a,c)),!0}return!1}function Tp(e){var t=Gl(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,qf(e.priority,function(){Cp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,qf(e.priority,function(){Cp(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 mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);gr=a,n.target.dispatchEvent(a),gr=null}else return t=Fl(n),t!==null&&Ep(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){mo(e)&&n.delete(t)}function Px(){vu=!1,ul!==null&&mo(ul)&&(ul=null),fl!==null&&mo(fl)&&(fl=null),dl!==null&&mo(dl)&&(dl=null),Oi.forEach(Ap),zi.forEach(Ap)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,vu||(vu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Px)))}var go=null;function Rp(e){go!==e&&(go=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){go===e&&(go=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],c=e[t+2];if(typeof a!="function"){if(gu(a||n)===null)continue;break}var s=Fl(n);s!==null&&(e.splice(t,3),t-=3,ps(s,{pending:!0,data:c,method:n.method,action:a},a,c))}}))}function ja(e){function t(E){return po(E,e)}ul!==null&&po(ul,e),fl!==null&&po(fl,e),dl!==null&&po(dl,e),Oi.forEach(t),zi.forEach(t);for(var n=0;n<hl.length;n++){var a=hl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<hl.length&&(n=hl[0],n.blockedOn===null);)Tp(n),n.blockedOn===null&&hl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var c=n[a],s=n[a+1],m=c[pt]||null;if(typeof s=="function")m||Rp(n);else if(m){var x=null;if(s&&s.hasAttribute("formAction")){if(c=s,m=s[pt]||null)x=m.formAction;else if(gu(c)!==null)continue}else x=m.action;typeof x=="function"?n[a+1]=x:(n.splice(a,3),a-=3),Rp(n)}}}function Op(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function yu(e){this._internalRoot=e}vo.prototype.render=yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=_t();Sp(n,a,e,t,null,null)},vo.prototype.unmount=yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sp(e.current,2,null,e,null,null),Jc(),t[Xl]=null}};function vo(e){this._internalRoot=e}vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hl.length&&t!==0&&t<hl[n].priority;n++);hl.splice(n,0,e),n===0&&Tp(e)}};var zp=i.version;if(zp!=="19.2.3")throw Error(r(527,zp,"19.2.3"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?b(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 yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yo.isDisabled&&yo.supportsFiber)try{qa=yo.inject(Jx),Ct=yo}catch{}}return Mi.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,a="",c=Hh,s=kh,m=Yh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=xp(e,1,!1,null,null,n,a,null,c,s,m,Op),e[Xl]=t.current,$s(e),new yu(t)},Mi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var a=!1,c="",s=Hh,m=kh,x=Yh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=xp(e,1,!0,t,n??null,a,c,E,s,m,x,Op),t.context=bp(null),n=t.current,a=_t(),a=rr(a),c=Wn(a),c.callback=null,$n(n,c,a),n=a,t.current.lanes=n,Xa(t,n),rn(t),e[Xl]=t.current,$s(e),new vo(t)},Mi.version="19.2.3",Mi}var qp;function cb(){if(qp)return Su.exports;qp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Su.exports=ib(),Su.exports}var ob=cb();var Vp="popstate";function rb(l={}){function i(r,u){let{pathname:d,search:h,hash:p}=r.location;return Vu("",{pathname:d,search:h,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function o(r,u){return typeof u=="string"?u:Gi(u)}return ub(i,o,null,l)}function Ve(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Bt(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function sb(){return Math.random().toString(36).substring(2,10)}function Xp(l,i){return{usr:l.state,key:l.key,idx:i}}function Vu(l,i,o=null,r){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Ua(i):i,state:o,key:i&&i.key||r||sb()}}function Gi({pathname:l="/",search:i="",hash:o=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(l+=o.charAt(0)==="#"?o:"#"+o),l}function Ua(l){let i={};if(l){let o=l.indexOf("#");o>=0&&(i.hash=l.substring(o),l=l.substring(0,o));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function ub(l,i,o,r={}){let{window:u=document.defaultView,v5Compat:d=!1}=r,h=u.history,p="POP",g=null,y=b();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function b(){return(h.state||{idx:null}).idx}function S(){p="POP";let T=b(),R=T==null?null:T-y;y=T,g&&g({action:p,location:w.location,delta:R})}function C(T,R){p="PUSH";let O=Vu(w.location,T,R);y=b()+1;let M=Xp(O,y),q=w.createHref(O);try{h.pushState(M,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;u.location.assign(q)}d&&g&&g({action:p,location:w.location,delta:1})}function N(T,R){p="REPLACE";let O=Vu(w.location,T,R);y=b();let M=Xp(O,y),q=w.createHref(O);h.replaceState(M,"",q),d&&g&&g({action:p,location:w.location,delta:0})}function D(T){return fb(T)}let w={get action(){return p},get location(){return l(u,h)},listen(T){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(Vp,S),g=T,()=>{u.removeEventListener(Vp,S),g=null}},createHref(T){return i(u,T)},createURL:D,encodeLocation(T){let R=D(T);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:C,replace:N,go(T){return h.go(T)}};return w}function fb(l,i=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(o,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:Gi(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function Ug(l,i,o="/"){return db(l,i,o,!1)}function db(l,i,o,r){let u=typeof i=="string"?Ua(i):i,d=Hn(u.pathname||"/",o);if(d==null)return null;let h=Lg(l);hb(h);let p=null;for(let g=0;p==null&&g<h.length;++g){let y=Cb(d);p=wb(h[g],y,r)}return p}function Lg(l,i=[],o=[],r="",u=!1){let d=(h,p,g=u,y)=>{let b={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&g)return;Ve(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let S=Bn([r,b.relativePath]),C=o.concat(b);h.children&&h.children.length>0&&(Ve(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Lg(h.children,i,C,S,g)),!(h.path==null&&!h.index)&&i.push({path:S,score:bb(S,h.index),routesMeta:C})};return l.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let g of Bg(h.path))d(h,p,!0,g)}),i}function Bg(l){let i=l.split("/");if(i.length===0)return[];let[o,...r]=i,u=o.endsWith("?"),d=o.replace(/\?$/,"");if(r.length===0)return u?[d,""]:[d];let h=Bg(r.join("/")),p=[];return p.push(...h.map(g=>g===""?d:[d,g].join("/"))),u&&p.push(...h),p.map(g=>l.startsWith("/")&&g===""?"/":g)}function hb(l){l.sort((i,o)=>i.score!==o.score?o.score-i.score:Sb(i.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var mb=/^:[\w-]+$/,pb=3,gb=2,vb=1,yb=10,xb=-2,Gp=l=>l==="*";function bb(l,i){let o=l.split("/"),r=o.length;return o.some(Gp)&&(r+=xb),i&&(r+=gb),o.filter(u=>!Gp(u)).reduce((u,d)=>u+(mb.test(d)?pb:d===""?vb:yb),r)}function Sb(l,i){return l.length===i.length&&l.slice(0,-1).every((r,u)=>r===i[u])?l[l.length-1]-i[i.length-1]:0}function wb(l,i,o=!1){let{routesMeta:r}=l,u={},d="/",h=[];for(let p=0;p<r.length;++p){let g=r[p],y=p===r.length-1,b=d==="/"?i:i.slice(d.length)||"/",S=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:y},b),C=g.route;if(!S&&y&&o&&!r[r.length-1].route.index&&(S=Mo({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!S)return null;Object.assign(u,S.params),h.push({params:u,pathname:Bn([d,S.pathname]),pathnameBase:Ab(Bn([d,S.pathnameBase])),route:C}),S.pathnameBase!=="/"&&(d=Bn([d,S.pathnameBase]))}return h}function Mo(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[o,r]=Eb(l.path,l.caseSensitive,l.end),u=i.match(o);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:r.reduce((y,{paramName:b,isOptional:S},C)=>{if(b==="*"){let D=p[C]||"";h=d.slice(0,d.length-D.length).replace(/(.)\/+$/,"$1")}const N=p[C];return S&&!N?y[b]=void 0:y[b]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:l}}function Eb(l,i=!1,o=!0){Bt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],u="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,g)=>(r.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),u+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":l!==""&&l!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function Cb(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Bt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function Hn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,r=l.charAt(o);return r&&r!=="/"?null:l.slice(o)||"/"}var Hg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nb=l=>Hg.test(l);function jb(l,i="/"){let{pathname:o,search:r="",hash:u=""}=typeof l=="string"?Ua(l):l,d;if(o)if(Nb(o))d=o;else{if(o.includes("//")){let h=o;o=o.replace(/\/\/+/g,"/"),Bt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${o}`)}o.startsWith("/")?d=Fp(o.substring(1),"/"):d=Fp(o,i)}else d=i;return{pathname:d,search:Rb(r),hash:Ob(u)}}function Fp(l,i){let o=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function Nu(l,i,o,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tb(l){return l.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function of(l){let i=Tb(l);return i.map((o,r)=>r===i.length-1?o.pathname:o.pathnameBase)}function rf(l,i,o,r=!1){let u;typeof l=="string"?u=Ua(l):(u={...l},Ve(!u.pathname||!u.pathname.includes("?"),Nu("?","pathname","search",u)),Ve(!u.pathname||!u.pathname.includes("#"),Nu("#","pathname","hash",u)),Ve(!u.search||!u.search.includes("#"),Nu("#","search","hash",u)));let d=l===""||u.pathname==="",h=d?"/":u.pathname,p;if(h==null)p=o;else{let S=i.length-1;if(!r&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),S-=1;u.pathname=C.join("/")}p=S>=0?i[S]:"/"}let g=jb(u,p),y=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(y||b)&&(g.pathname+="/"),g}var Bn=l=>l.join("/").replace(/\/\/+/g,"/"),Ab=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Rb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Ob=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,zb=class{constructor(l,i,o,r=!1){this.status=l,this.statusText=i||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function _b(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Db(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yg(l,i){let o=l;if(typeof o!="string"||!Hg.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,u=!1;if(kg)try{let d=new URL(window.location.href),h=o.startsWith("//")?new URL(d.protocol+o):new URL(o),p=Hn(h.pathname,i);h.origin===d.origin&&p!=null?o=p+h.search+h.hash:u=!0}catch{Bt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qg=["POST","PUT","PATCH","DELETE"];new Set(qg);var Mb=["GET",...qg];new Set(Mb);var La=v.createContext(null);La.displayName="DataRouter";var Qo=v.createContext(null);Qo.displayName="DataRouterState";var Ub=v.createContext(!1),Vg=v.createContext({isTransitioning:!1});Vg.displayName="ViewTransition";var Lb=v.createContext(new Map);Lb.displayName="Fetchers";var Bb=v.createContext(null);Bb.displayName="Await";var Ht=v.createContext(null);Ht.displayName="Navigation";var Zi=v.createContext(null);Zi.displayName="Location";var hn=v.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var sf=v.createContext(null);sf.displayName="RouteError";var Xg="REACT_ROUTER_ERROR",Hb="REDIRECT",kb="ROUTE_ERROR_RESPONSE";function Yb(l){if(l.startsWith(`${Xg}:${Hb}:{`))try{let i=JSON.parse(l.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 qb(l){if(l.startsWith(`${Xg}:${kb}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new zb(i.status,i.statusText,i.data)}catch{}}function Vb(l,{relative:i}={}){Ve(Ba(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=v.useContext(Ht),{hash:u,pathname:d,search:h}=Pi(l,{relative:i}),p=d;return o!=="/"&&(p=d==="/"?o:Bn([o,d])),r.createHref({pathname:p,search:h,hash:u})}function Ba(){return v.useContext(Zi)!=null}function mn(){return Ve(Ba(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Zi).location}var Gg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fg(l){v.useContext(Ht).static||v.useLayoutEffect(l)}function Xn(){let{isDataRoute:l}=v.useContext(hn);return l?tS():Xb()}function Xb(){Ve(Ba(),"useNavigate() may be used only in the context of a <Router> component.");let l=v.useContext(La),{basename:i,navigator:o}=v.useContext(Ht),{matches:r}=v.useContext(hn),{pathname:u}=mn(),d=JSON.stringify(of(r)),h=v.useRef(!1);return Fg(()=>{h.current=!0}),v.useCallback((g,y={})=>{if(Bt(h.current,Gg),!h.current)return;if(typeof g=="number"){o.go(g);return}let b=rf(g,JSON.parse(d),u,y.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Bn([i,b.pathname])),(y.replace?o.replace:o.push)(b,y.state,y)},[i,o,d,u,l])}v.createContext(null);function Pi(l,{relative:i}={}){let{matches:o}=v.useContext(hn),{pathname:r}=mn(),u=JSON.stringify(of(o));return v.useMemo(()=>rf(l,JSON.parse(u),r,i==="path"),[l,u,r,i])}function Gb(l,i){return Kg(l,i)}function Kg(l,i,o,r,u){Ve(Ba(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=v.useContext(Ht),{matches:h}=v.useContext(hn),p=h[h.length-1],g=p?p.params:{},y=p?p.pathname:"/",b=p?p.pathnameBase:"/",S=p&&p.route;{let O=S&&S.path||"";Zg(y,!S||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.
|
|
5
|
+
`);for(o=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===C.length||o===B.length)for(l=C.length-1,o=B.length-1;1<=l&&0<=o&&C[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(C[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||C[l]!==B[o]){var V=`
|
|
6
|
+
`+C[l].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=l&&0<=o);break}}}finally{Be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ye(n):""}function Ie(e,t){switch(e.tag){case 26:case 27:case 5:return Ye(e.type);case 16:return Ye("Lazy");case 13:return e.child!==t&&t!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return ht(e.type,!1);case 11:return ht(e.type.render,!1);case 1:return ht(e.type,!0);case 31:return Ye("Activity");default:return""}}function yn(e){try{var t="",n=null;do t+=Ie(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var xn=Object.prototype.hasOwnProperty,Ka=a.unstable_scheduleCallback,cc=a.unstable_cancelCallback,Vy=a.unstable_shouldYield,Xy=a.unstable_requestPaint,Ct=a.unstable_now,Gy=a.unstable_getCurrentPriorityLevel,Ff=a.unstable_ImmediatePriority,Vf=a.unstable_UserBlockingPriority,lr=a.unstable_NormalPriority,Py=a.unstable_LowPriority,Xf=a.unstable_IdlePriority,Ky=a.log,Qy=a.unstable_setDisableYieldValue,Pl=null,Nt=null;function Kn(e){if(typeof Ky=="function"&&Qy(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Pl,e)}catch{}}var jt=Math.clz32?Math.clz32:Jy,Zy=Math.log,Iy=Math.LN2;function Jy(e){return e>>>=0,e===0?32:31-(Zy(e)/Iy|0)|0}var ir=256,rr=262144,or=4194304;function Ca(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 cr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,s=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~s,l!==0?o=Ca(l):(m&=x,m!==0?o=Ca(m):n||(n=x&~e,n!==0&&(o=Ca(n))))):(x=l&~s,x!==0?o=Ca(x):m!==0?o=Ca(m):n||(n=l&~e,n!==0&&(o=Ca(n)))),o===0?0:t!==0&&t!==o&&(t&s)===0&&(s=o&-o,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:o}function Kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wy(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 Gf(){var e=or;return or<<=1,(or&62914560)===0&&(or=4194304),e}function sc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ql(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $y(e,t,n,l,o,s){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,C=e.expirationTimes,B=e.hiddenUpdates;for(n=m&~n;0<n;){var V=31-jt(n),P=1<<V;x[V]=0,C[V]=-1;var H=B[V];if(H!==null)for(B[V]=null,V=0;V<H.length;V++){var q=H[V];q!==null&&(q.lane&=-536870913)}n&=~P}l!==0&&Pf(e,l,0),s!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=s&~(m&~t))}function Pf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-jt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Kf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-jt(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function Qf(e,t){var n=t&-t;return n=(n&42)!==0?1:uc(n),(n&(e.suspendedLanes|t))!==0?0:n}function uc(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 fc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zf(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:Mp(e.type))}function If(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}var Qn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Qn,pt="__reactProps$"+Qn,Qa="__reactContainer$"+Qn,dc="__reactEvents$"+Qn,e0="__reactListeners$"+Qn,t0="__reactHandles$"+Qn,Jf="__reactResources$"+Qn,Zl="__reactMarker$"+Qn;function hc(e){delete e[rt],delete e[pt],delete e[dc],delete e[e0],delete e[t0]}function Za(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qa]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yp(e);e!==null;){if(n=e[rt])return n;e=yp(e)}return t}e=n,n=e.parentNode}return null}function Ia(e){if(e=e[rt]||e[Qa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Ja(e){var t=e[Jf];return t||(t=e[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Zl]=!0}var Wf=new Set,$f={};function Na(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for($f[e]=t,e=0;e<t.length;e++)Wf.add(t[e])}var n0=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]*$"),ed={},td={};function a0(e){return xn.call(td,e)?!0:xn.call(ed,e)?!1:n0.test(e)?td[e]=!0:(ed[e]=!0,!1)}function sr(e,t,n){if(a0(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 ur(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 bn(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 kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l0(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 o=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,s.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 mc(e){if(!e._valueTracker){var t=nd(e)?"checked":"value";e._valueTracker=l0(e,t,""+e[t])}}function ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=nd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function fr(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 i0=/[\n"\\]/g;function Yt(e){return e.replace(i0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function pc(e,t,n,l,o,s,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=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?gc(e,m,kt(t)):n!=null?gc(e,m,kt(n)):l!=null&&e.removeAttribute("value"),o==null&&s!=null&&(e.defaultChecked=!!s),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+kt(x):e.removeAttribute("name")}function ld(e,t,n,l,o,s,m,x){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){mc(e);return}n=n!=null?""+kt(n):"",t=t!=null?""+kt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,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),mc(e)}function gc(e,t,n){t==="number"&&fr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function $a(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+kt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function id(e,t,n){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+kt(n):""}function rd(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(c(92));if(pe(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=kt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),mc(e)}function el(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var r0=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 od(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||r0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cd(e,t,n){if(t!=null&&typeof t!="object")throw Error(c(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 o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&od(e,o,l)}else for(var s in t)t.hasOwnProperty(s)&&od(e,s,t[s])}function vc(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 o0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),c0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dr(e){return c0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sn(){}var yc=null;function xc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tl=null,nl=null;function sd(e){var t=Ia(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(pc(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="'+Yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[pt]||null;if(!o)throw Error(c(90));pc(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&ad(l)}break e;case"textarea":id(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&$a(e,!!n.multiple,t,!1)}}}var bc=!1;function ud(e,t,n){if(bc)return e(t,n);bc=!0;try{var l=e(t);return l}finally{if(bc=!1,(tl!==null||nl!==null)&&($r(),tl&&(t=tl,e=nl,nl=tl=null,sd(t),e)))for(t=0;t<e.length;t++)sd(e[t])}}function Jl(e,t){var n=e.stateNode;if(n===null)return null;var l=n[pt]||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(c(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(wn)try{var Wl={};Object.defineProperty(Wl,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",Wl,Wl),window.removeEventListener("test",Wl,Wl)}catch{Sc=!1}var Zn=null,wc=null,hr=null;function fd(){if(hr)return hr;var e,t=wc,n=t.length,l,o="value"in Zn?Zn.value:Zn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===o[s-l];l++);return hr=o.slice(e,1<l?1-l:void 0)}function mr(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 pr(){return!0}function dd(){return!1}function gt(e){function t(n,l,o,s,m){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=s,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(s):s[x]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pr:dd,this.isPropagationStopped=dd,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=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gr=gt(ja),$l=b({},ja,{view:0,detail:0}),s0=gt($l),Ec,Cc,ei,vr=b({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,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!==ei&&(ei&&e.type==="mousemove"?(Ec=e.screenX-ei.screenX,Cc=e.screenY-ei.screenY):Cc=Ec=0,ei=e),Ec)},movementY:function(e){return"movementY"in e?e.movementY:Cc}}),hd=gt(vr),u0=b({},vr,{dataTransfer:0}),f0=gt(u0),d0=b({},$l,{relatedTarget:0}),Nc=gt(d0),h0=b({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),m0=gt(h0),p0=b({},ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g0=gt(p0),v0=b({},ja,{data:0}),md=gt(v0),y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x0={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"},b0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=b0[e])?!!t[e]:!1}function jc(){return S0}var w0=b({},$l,{key:function(e){if(e.key){var t=y0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?x0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(e){return e.type==="keypress"?mr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E0=gt(w0),C0=b({},vr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pd=gt(C0),N0=b({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),j0=gt(N0),A0=b({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),T0=gt(A0),R0=b({},vr,{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}),z0=gt(R0),O0=b({},ja,{newState:0,oldState:0}),_0=gt(O0),D0=[9,13,27,32],Ac=wn&&"CompositionEvent"in window,ti=null;wn&&"documentMode"in document&&(ti=document.documentMode);var M0=wn&&"TextEvent"in window&&!ti,gd=wn&&(!Ac||ti&&8<ti&&11>=ti),vd=" ",yd=!1;function xd(e,t){switch(e){case"keyup":return D0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function U0(e,t){switch(e){case"compositionend":return bd(t);case"keypress":return t.which!==32?null:(yd=!0,vd);case"textInput":return e=t.data,e===vd&&yd?null:e;default:return null}}function L0(e,t){if(al)return e==="compositionend"||!Ac&&xd(e,t)?(e=fd(),hr=wc=Zn=null,al=!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 gd&&t.locale!=="ko"?null:t.data;default:return null}}var B0={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 Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B0[e.type]:t==="textarea"}function wd(e,t,n,l){tl?nl?nl.push(l):nl=[l]:tl=l,t=ro(t,"onChange"),0<t.length&&(n=new gr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var ni=null,ai=null;function H0(e){lp(e,0)}function yr(e){var t=Il(e);if(ad(t))return e}function Ed(e,t){if(e==="change")return t}var Cd=!1;if(wn){var Tc;if(wn){var Rc="oninput"in document;if(!Rc){var Nd=document.createElement("div");Nd.setAttribute("oninput","return;"),Rc=typeof Nd.oninput=="function"}Tc=Rc}else Tc=!1;Cd=Tc&&(!document.documentMode||9<document.documentMode)}function jd(){ni&&(ni.detachEvent("onpropertychange",Ad),ai=ni=null)}function Ad(e){if(e.propertyName==="value"&&yr(ai)){var t=[];wd(t,ai,e,xc(e)),ud(H0,t)}}function k0(e,t,n){e==="focusin"?(jd(),ni=t,ai=n,ni.attachEvent("onpropertychange",Ad)):e==="focusout"&&jd()}function Y0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yr(ai)}function q0(e,t){if(e==="click")return yr(t)}function F0(e,t){if(e==="input"||e==="change")return yr(t)}function V0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:V0;function li(e,t){if(At(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 o=n[l];if(!xn.call(t,o)||!At(e[o],t[o]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n=Td(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=Td(n)}}function zd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fr(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=fr(e.document)}return t}function zc(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 X0=wn&&"documentMode"in document&&11>=document.documentMode,ll=null,Oc=null,ii=null,_c=!1;function _d(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_c||ll==null||ll!==fr(l)||(l=ll,"selectionStart"in l&&zc(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}),ii&&li(ii,l)||(ii=l,l=ro(Oc,"onSelect"),0<l.length&&(t=new gr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ll)))}function Aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var il={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},Dc={},Dd={};wn&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function Ta(e){if(Dc[e])return Dc[e];if(!il[e])return e;var t=il[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dd)return Dc[e]=t[n];return e}var Md=Ta("animationend"),Ud=Ta("animationiteration"),Ld=Ta("animationstart"),G0=Ta("transitionrun"),P0=Ta("transitionstart"),K0=Ta("transitioncancel"),Bd=Ta("transitionend"),Hd=new Map,Mc="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(" ");Mc.push("scrollEnd");function It(e,t){Hd.set(e,t),Na(t,[e])}var xr=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)},qt=[],rl=0,Uc=0;function br(){for(var e=rl,t=Uc=rl=0;t<e;){var n=qt[t];qt[t++]=null;var l=qt[t];qt[t++]=null;var o=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,l!==null&&o!==null){var m=l.pending;m===null?o.next=o:(o.next=m.next,m.next=o),l.pending=o}s!==0&&kd(n,o,s)}}function Sr(e,t,n,l){qt[rl++]=e,qt[rl++]=t,qt[rl++]=n,qt[rl++]=l,Uc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Lc(e,t,n,l){return Sr(e,t,n,l),wr(e)}function Ra(e,t){return Sr(e,null,null,t),wr(e)}function kd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(o=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,o&&t!==null&&(o=31-jt(n),e=s.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),s):null}function wr(e){if(50<Ai)throw Ai=0,Gs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ol={};function Q0(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 Tt(e,t,n,l){return new Q0(e,t,n,l)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var n=e.alternate;return n===null?(n=Tt(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 Yd(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 Er(e,t,n,l,o,s){var m=0;if(l=e,typeof e=="function")Bc(e)&&(m=1);else if(typeof e=="string")m=$x(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=Tt(31,n,t,o),e.elementType=re,e.lanes=s,e;case w:return za(n.children,o,s,t);case A:m=8,o|=24;break;case T:return e=Tt(12,n,t,o|2),e.elementType=T,e.lanes=s,e;case K:return e=Tt(13,n,t,o),e.elementType=K,e.lanes=s,e;case Z:return e=Tt(19,n,t,o),e.elementType=Z,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:m=10;break e;case z:m=9;break e;case F:m=11;break e;case k:m=14;break e;case ee:m=16,l=null;break e}m=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Tt(m,n,t,o),t.elementType=e,t.type=l,t.lanes=s,t}function za(e,t,n,l){return e=Tt(7,e,l,t),e.lanes=n,e}function Hc(e,t,n){return e=Tt(6,e,null,t),e.lanes=n,e}function qd(e){var t=Tt(18,null,null,0);return t.stateNode=e,t}function kc(e,t,n){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fd=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var n=Fd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yn(t)},Fd.set(e,t),t)}return{value:e,source:t,stack:yn(t)}}var cl=[],sl=0,Cr=null,ri=0,Vt=[],Xt=0,In=null,ln=1,rn="";function Cn(e,t){cl[sl++]=ri,cl[sl++]=Cr,Cr=e,ri=t}function Vd(e,t,n){Vt[Xt++]=ln,Vt[Xt++]=rn,Vt[Xt++]=In,In=e;var l=ln;e=rn;var o=32-jt(l)-1;l&=~(1<<o),n+=1;var s=32-jt(t)+o;if(30<s){var m=o-o%5;s=(l&(1<<m)-1).toString(32),l>>=m,o-=m,ln=1<<32-jt(t)+o|n<<o|l,rn=s+e}else ln=1<<s|n<<o|l,rn=e}function Yc(e){e.return!==null&&(Cn(e,1),Vd(e,1,0))}function qc(e){for(;e===Cr;)Cr=cl[--sl],cl[sl]=null,ri=cl[--sl],cl[sl]=null;for(;e===In;)In=Vt[--Xt],Vt[Xt]=null,rn=Vt[--Xt],Vt[Xt]=null,ln=Vt[--Xt],Vt[Xt]=null}function Xd(e,t){Vt[Xt++]=ln,Vt[Xt++]=rn,Vt[Xt++]=In,ln=t.id,rn=t.overflow,In=e}var ot=null,He=null,Ne=!1,Jn=null,Gt=!1,Fc=Error(c(519));function Wn(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Ft(t,e)),Fc}function Gd(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[rt]=e,t[pt]=l,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Ri.length;n++)we(Ri[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),ld(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),rd(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||cp(t.textContent,n)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||Wn(e,!0)}function Pd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ot=ot.return}}function ul(e){if(e!==ot)return!1;if(!Ne)return Pd(e),Ne=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ru(e.type,e.memoizedProps)),n=!n),n&&He&&Wn(e),Pd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=vp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=vp(e)}else t===27?(t=He,da(e.type)?(e=fu,fu=null,He=e):He=t):He=ot?Kt(e.stateNode.nextSibling):null;return!0}function Oa(){He=ot=null,Ne=!1}function Vc(){var e=Jn;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),Jn=null),e}function oi(e){Jn===null?Jn=[e]:Jn.push(e)}var Xc=E(null),_a=null,Nn=null;function $n(e,t,n){J(Xc,t._currentValue),t._currentValue=n}function jn(e){e._currentValue=Xc.current,Y(Xc)}function Gc(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 Pc(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){var m=o.child;s=s.firstContext;e:for(;s!==null;){var x=s;s=o;for(var C=0;C<t.length;C++)if(x.context===t[C]){s.lanes|=n,x=s.alternate,x!==null&&(x.lanes|=n),Gc(s.return,n,e),l||(m=null);break e}s=x.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(c(341));m.lanes|=n,s=m.alternate,s!==null&&(s.lanes|=n),Gc(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function fl(e,t,n,l){e=null;for(var o=t,s=!1;o!==null;){if(!s){if((o.flags&524288)!==0)s=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(c(387));if(m=m.memoizedProps,m!==null){var x=o.type;At(o.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(o===W.current){if(m=o.alternate,m===null)throw Error(c(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Mi):e=[Mi])}o=o.return}e!==null&&Pc(t,e,n,l),t.flags|=262144}function Nr(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Da(e){_a=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Kd(_a,e)}function jr(e,t){return _a===null&&Da(e),Kd(e,t)}function Kd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Nn===null){if(e===null)throw Error(c(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return n}var Z0=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()})}},I0=a.unstable_scheduleCallback,J0=a.unstable_NormalPriority,Je={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new Z0,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&I0(J0,function(){e.controller.abort()})}var si=null,Qc=0,dl=0,hl=null;function W0(e,t){if(si===null){var n=si=[];Qc=0,dl=Js(),hl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Qc++,t.then(Qd,Qd),t}function Qd(){if(--Qc===0&&si!==null){hl!==null&&(hl.status="fulfilled");var e=si;si=null,dl=0,hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var Zd=D.S;D.S=function(e,t){_m=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&W0(e,t),Zd!==null&&Zd(e,t)};var Ma=E(null);function Zc(){var e=Ma.current;return e!==null?e:Ue.pooledCache}function Ar(e,t){t===null?J(Ma,Ma.current):J(Ma,t.pool)}function Id(){var e=Zc();return e===null?null:{parent:Je._currentValue,pool:e}}var ml=Error(c(460)),Ic=Error(c(474)),Tr=Error(c(542)),Rr={then:function(){}};function Jd(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(Sn,Sn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eh(e),e;default:if(typeof t.status=="string")t.then(Sn,Sn);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eh(e),e}throw La=t,ml}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(La=n,ml):n}}var La=null;function $d(){if(La===null)throw Error(c(459));var e=La;return La=null,e}function eh(e){if(e===ml||e===Tr)throw Error(c(483))}var pl=null,ui=0;function zr(e){var t=ui;return ui+=1,pl===null&&(pl=[]),Wd(pl,e,t)}function fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Or(e,t){throw t.$$typeof===j?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function th(e){function t(_,R){if(e){var L=_.deletions;L===null?(_.deletions=[R],_.flags|=16):L.push(R)}}function n(_,R){if(!e)return null;for(;R!==null;)t(_,R),R=R.sibling;return null}function l(_){for(var R=new Map;_!==null;)_.key!==null?R.set(_.key,_):R.set(_.index,_),_=_.sibling;return R}function o(_,R){return _=En(_,R),_.index=0,_.sibling=null,_}function s(_,R,L){return _.index=L,e?(L=_.alternate,L!==null?(L=L.index,L<R?(_.flags|=67108866,R):L):(_.flags|=67108866,R)):(_.flags|=1048576,R)}function m(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function x(_,R,L,X){return R===null||R.tag!==6?(R=Hc(L,_.mode,X),R.return=_,R):(R=o(R,L),R.return=_,R)}function C(_,R,L,X){var fe=L.type;return fe===w?V(_,R,L.props.children,X,L.key):R!==null&&(R.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ee&&Ua(fe)===R.type)?(R=o(R,L.props),fi(R,L),R.return=_,R):(R=Er(L.type,L.key,L.props,null,_.mode,X),fi(R,L),R.return=_,R)}function B(_,R,L,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==L.containerInfo||R.stateNode.implementation!==L.implementation?(R=kc(L,_.mode,X),R.return=_,R):(R=o(R,L.children||[]),R.return=_,R)}function V(_,R,L,X,fe){return R===null||R.tag!==7?(R=za(L,_.mode,X,fe),R.return=_,R):(R=o(R,L),R.return=_,R)}function P(_,R,L){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=Hc(""+R,_.mode,L),R.return=_,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case N:return L=Er(R.type,R.key,R.props,null,_.mode,L),fi(L,R),L.return=_,L;case O:return R=kc(R,_.mode,L),R.return=_,R;case ee:return R=Ua(R),P(_,R,L)}if(pe(R)||de(R))return R=za(R,_.mode,L,null),R.return=_,R;if(typeof R.then=="function")return P(_,zr(R),L);if(R.$$typeof===M)return P(_,jr(_,R),L);Or(_,R)}return null}function H(_,R,L,X){var fe=R!==null?R.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return fe!==null?null:x(_,R,""+L,X);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===fe?C(_,R,L,X):null;case O:return L.key===fe?B(_,R,L,X):null;case ee:return L=Ua(L),H(_,R,L,X)}if(pe(L)||de(L))return fe!==null?null:V(_,R,L,X,null);if(typeof L.then=="function")return H(_,R,zr(L),X);if(L.$$typeof===M)return H(_,R,jr(_,L),X);Or(_,L)}return null}function q(_,R,L,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return _=_.get(L)||null,x(R,_,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case N:return _=_.get(X.key===null?L:X.key)||null,C(R,_,X,fe);case O:return _=_.get(X.key===null?L:X.key)||null,B(R,_,X,fe);case ee:return X=Ua(X),q(_,R,L,X,fe)}if(pe(X)||de(X))return _=_.get(L)||null,V(R,_,X,fe,null);if(typeof X.then=="function")return q(_,R,L,zr(X),fe);if(X.$$typeof===M)return q(_,R,L,jr(R,X),fe);Or(R,X)}return null}function le(_,R,L,X){for(var fe=null,Ae=null,oe=R,be=R=0,Ce=null;oe!==null&&be<L.length;be++){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var Te=H(_,oe,L[be],X);if(Te===null){oe===null&&(oe=Ce);break}e&&oe&&Te.alternate===null&&t(_,oe),R=s(Te,R,be),Ae===null?fe=Te:Ae.sibling=Te,Ae=Te,oe=Ce}if(be===L.length)return n(_,oe),Ne&&Cn(_,be),fe;if(oe===null){for(;be<L.length;be++)oe=P(_,L[be],X),oe!==null&&(R=s(oe,R,be),Ae===null?fe=oe:Ae.sibling=oe,Ae=oe);return Ne&&Cn(_,be),fe}for(oe=l(oe);be<L.length;be++)Ce=q(oe,_,be,L[be],X),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?be:Ce.key),R=s(Ce,R,be),Ae===null?fe=Ce:Ae.sibling=Ce,Ae=Ce);return e&&oe.forEach(function(va){return t(_,va)}),Ne&&Cn(_,be),fe}function ge(_,R,L,X){if(L==null)throw Error(c(151));for(var fe=null,Ae=null,oe=R,be=R=0,Ce=null,Te=L.next();oe!==null&&!Te.done;be++,Te=L.next()){oe.index>be?(Ce=oe,oe=null):Ce=oe.sibling;var va=H(_,oe,Te.value,X);if(va===null){oe===null&&(oe=Ce);break}e&&oe&&va.alternate===null&&t(_,oe),R=s(va,R,be),Ae===null?fe=va:Ae.sibling=va,Ae=va,oe=Ce}if(Te.done)return n(_,oe),Ne&&Cn(_,be),fe;if(oe===null){for(;!Te.done;be++,Te=L.next())Te=P(_,Te.value,X),Te!==null&&(R=s(Te,R,be),Ae===null?fe=Te:Ae.sibling=Te,Ae=Te);return Ne&&Cn(_,be),fe}for(oe=l(oe);!Te.done;be++,Te=L.next())Te=q(oe,_,be,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&oe.delete(Te.key===null?be:Te.key),R=s(Te,R,be),Ae===null?fe=Te:Ae.sibling=Te,Ae=Te);return e&&oe.forEach(function(ub){return t(_,ub)}),Ne&&Cn(_,be),fe}function Me(_,R,L,X){if(typeof L=="object"&&L!==null&&L.type===w&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case N:e:{for(var fe=L.key;R!==null;){if(R.key===fe){if(fe=L.type,fe===w){if(R.tag===7){n(_,R.sibling),X=o(R,L.props.children),X.return=_,_=X;break e}}else if(R.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ee&&Ua(fe)===R.type){n(_,R.sibling),X=o(R,L.props),fi(X,L),X.return=_,_=X;break e}n(_,R);break}else t(_,R);R=R.sibling}L.type===w?(X=za(L.props.children,_.mode,X,L.key),X.return=_,_=X):(X=Er(L.type,L.key,L.props,null,_.mode,X),fi(X,L),X.return=_,_=X)}return m(_);case O:e:{for(fe=L.key;R!==null;){if(R.key===fe)if(R.tag===4&&R.stateNode.containerInfo===L.containerInfo&&R.stateNode.implementation===L.implementation){n(_,R.sibling),X=o(R,L.children||[]),X.return=_,_=X;break e}else{n(_,R);break}else t(_,R);R=R.sibling}X=kc(L,_.mode,X),X.return=_,_=X}return m(_);case ee:return L=Ua(L),Me(_,R,L,X)}if(pe(L))return le(_,R,L,X);if(de(L)){if(fe=de(L),typeof fe!="function")throw Error(c(150));return L=fe.call(L),ge(_,R,L,X)}if(typeof L.then=="function")return Me(_,R,zr(L),X);if(L.$$typeof===M)return Me(_,R,jr(_,L),X);Or(_,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,R!==null&&R.tag===6?(n(_,R.sibling),X=o(R,L),X.return=_,_=X):(n(_,R),X=Hc(L,_.mode,X),X.return=_,_=X),m(_)):n(_,R)}return function(_,R,L,X){try{ui=0;var fe=Me(_,R,L,X);return pl=null,fe}catch(oe){if(oe===ml||oe===Tr)throw oe;var Ae=Tt(29,oe,null,_.mode);return Ae.lanes=X,Ae.return=_,Ae}}}var Ba=th(!0),nh=th(!1),ea=!1;function Jc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(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 ta(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function na(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=wr(e),kd(e,null,n),t}return Sr(e,l,t,n),wr(e)}function di(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,Kf(e,n)}}function $c(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?o=s=m:s=s.next=m,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:s,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 es=!1;function hi(){if(es){var e=hl;if(e!==null)throw e}}function mi(e,t,n,l){es=!1;var o=e.updateQueue;ea=!1;var s=o.firstBaseUpdate,m=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var C=x,B=C.next;C.next=null,m===null?s=B:m.next=B,m=C;var V=e.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==m&&(x===null?V.firstBaseUpdate=B:x.next=B,V.lastBaseUpdate=C))}if(s!==null){var P=o.baseState;m=0,V=B=C=null,x=s;do{var H=x.lane&-536870913,q=H!==x.lane;if(q?(Ee&H)===H:(l&H)===H){H!==0&&H===dl&&(es=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var le=e,ge=x;H=t;var Me=n;switch(ge.tag){case 1:if(le=ge.payload,typeof le=="function"){P=le.call(Me,P,H);break e}P=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ge.payload,H=typeof le=="function"?le.call(Me,P,H):le,H==null)break e;P=b({},P,H);break e;case 2:ea=!0}}H=x.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[H]:q.push(H))}else q={lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(B=V=q,C=P):V=V.next=q,m|=H;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;q=x,x=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);V===null&&(C=P),o.baseState=C,o.firstBaseUpdate=B,o.lastBaseUpdate=V,s===null&&(o.shared.lanes=0),oa|=m,e.lanes=m,e.memoizedState=P}}function ah(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function lh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ah(n[e],t)}var gl=E(null),_r=E(0);function ih(e,t){e=Un,J(_r,e),J(gl,t),Un=e|t.baseLanes}function ts(){J(_r,Un),J(gl,gl.current)}function ns(){Un=_r.current,Y(gl),Y(_r)}var Rt=E(null),Pt=null;function aa(e){var t=e.alternate;J(Ke,Ke.current&1),J(Rt,e),Pt===null&&(t===null||gl.current!==null||t.memoizedState!==null)&&(Pt=e)}function as(e){J(Ke,Ke.current),J(Rt,e),Pt===null&&(Pt=e)}function rh(e){e.tag===22?(J(Ke,Ke.current),J(Rt,e),Pt===null&&(Pt=e)):la()}function la(){J(Ke,Ke.current),J(Rt,Rt.current)}function zt(e){Y(Rt),Pt===e&&(Pt=null),Y(Ke)}var Ke=E(0);function Dr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||su(n)||uu(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 An=0,xe=null,_e=null,We=null,Mr=!1,vl=!1,Ha=!1,Ur=0,pi=0,yl=null,ex=0;function Xe(){throw Error(c(321))}function ls(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function is(e,t,n,l,o,s){return An=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Vh:bs,Ha=!1,s=n(l,o),Ha=!1,vl&&(s=ch(t,n,l,o)),oh(e),s}function oh(e){D.H=yi;var t=_e!==null&&_e.next!==null;if(An=0,We=_e=xe=null,Mr=!1,pi=0,yl=null,t)throw Error(c(300));e===null||$e||(e=e.dependencies,e!==null&&Nr(e)&&($e=!0))}function ch(e,t,n,l){xe=e;var o=0;do{if(vl&&(yl=null),pi=0,vl=!1,25<=o)throw Error(c(301));if(o+=1,We=_e=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}D.H=Xh,s=t(n,l)}while(vl);return s}function tx(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?gi(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(xe.flags|=1024),t}function rs(){var e=Ur!==0;return Ur=0,e}function os(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(Mr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mr=!1}An=0,We=_e=xe=null,vl=!1,pi=Ur=0,yl=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?xe.memoizedState=We=e:We=We.next=e,We}function Qe(){if(_e===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=We===null?xe.memoizedState:We.next;if(t!==null)We=t,_e=e;else{if(e===null)throw xe.alternate===null?Error(c(467)):Error(c(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},We===null?xe.memoizedState=We=e:We=We.next=e}return We}function Lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(e){var t=pi;return pi+=1,yl===null&&(yl=[]),e=Wd(yl,e,t),t=xe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Vh:bs),e}function Br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gi(e);if(e.$$typeof===M)return ct(e)}throw Error(c(438,String(e)))}function ss(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Lr(),xe.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]=ae;return t.index++,n}function Tn(e,t){return typeof t=="function"?t(e):t}function Hr(e){var t=Qe();return us(t,_e,e)}function us(e,t,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var o=e.baseQueue,s=l.pending;if(s!==null){if(o!==null){var m=o.next;o.next=s.next,s.next=m}t.baseQueue=o=s,l.pending=null}if(s=e.baseState,o===null)e.memoizedState=s;else{t=o.next;var x=m=null,C=null,B=t,V=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(Ee&P)===P:(An&P)===P){var H=B.revertLane;if(H===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===dl&&(V=!0);else if((An&H)===H){B=B.next,H===dl&&(V=!0);continue}else P={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(x=C=P,m=s):C=C.next=P,xe.lanes|=H,oa|=H;P=B.action,Ha&&n(s,P),s=B.hasEagerState?B.eagerState:n(s,P)}else H={lane:P,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(x=C=H,m=s):C=C.next=H,xe.lanes|=P,oa|=P;B=B.next}while(B!==null&&B!==t);if(C===null?m=s:C.next=x,!At(s,e.memoizedState)&&($e=!0,V&&(n=hl,n!==null)))throw n;e.memoizedState=s,e.baseState=m,e.baseQueue=C,l.lastRenderedState=s}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function fs(e){var t=Qe(),n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do s=e(s,m.action),m=m.next;while(m!==o);At(s,t.memoizedState)||($e=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function sh(e,t,n){var l=xe,o=Qe(),s=Ne;if(s){if(n===void 0)throw Error(c(407));n=n()}else n=t();var m=!At((_e||o).memoizedState,n);if(m&&(o.memoizedState=n,$e=!0),o=o.queue,ms(dh.bind(null,l,o,e),[e]),o.getSnapshot!==t||m||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,xl(9,{destroy:void 0},fh.bind(null,l,o,n,t),null),Ue===null)throw Error(c(349));s||(An&127)!==0||uh(l,t,n)}return n}function uh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Lr(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fh(e,t,n,l){t.value=n,t.getSnapshot=l,hh(t)&&mh(e)}function dh(e,t,n){return n(function(){hh(t)&&mh(e)})}function hh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function mh(e){var t=Ra(e,2);t!==null&&St(t,e,2)}function ds(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Ha){Kn(!0);try{n()}finally{Kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:e},t}function ph(e,t,n,l){return e.baseState=n,us(e,_e,typeof l=="function"?l:Tn)}function nx(e,t,n,l,o){if(qr(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){s.listeners.push(m)}};D.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,gh(t,s)):(s.next=n.next,t.pending=n.next=s)}}function gh(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var s=D.T,m={};D.T=m;try{var x=n(o,l),C=D.S;C!==null&&C(m,x),vh(e,t,x)}catch(B){hs(e,t,B)}finally{s!==null&&m.types!==null&&(s.types=m.types),D.T=s}}else try{s=n(o,l),vh(e,t,s)}catch(B){hs(e,t,B)}}function vh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){yh(e,t,l)},function(l){return hs(e,t,l)}):yh(e,t,n)}function yh(e,t,n){t.status="fulfilled",t.value=n,xh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gh(e,n)))}function hs(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,xh(t),t=t.next;while(t!==l)}e.action=null}function xh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bh(e,t){return t}function Sh(e,t){if(Ne){var n=Ue.formState;if(n!==null){e:{var l=xe;if(Ne){if(He){t:{for(var o=He,s=Gt;o.nodeType!==8;){if(!s){o=null;break t}if(o=Kt(o.nextSibling),o===null){o=null;break t}}s=o.data,o=s==="F!"||s==="F"?o:null}if(o){He=Kt(o.nextSibling),l=o.data==="F!";break e}}Wn(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},n.queue=l,n=Yh.bind(null,xe,l),l.dispatch=n,l=ds(!1),s=xs.bind(null,xe,!1,l.queue),l=mt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=nx.bind(null,xe,o,s,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function wh(e){var t=Qe();return Eh(t,_e,e)}function Eh(e,t,n){if(t=us(e,t,bh)[0],e=Hr(Tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=gi(t)}catch(m){throw m===ml?Tr:m}else l=t;t=Qe();var o=t.queue,s=o.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,xl(9,{destroy:void 0},ax.bind(null,o,n),null)),[l,s,e]}function ax(e,t){e.action=t}function Ch(e){var t=Qe(),n=_e;if(n!==null)return Eh(t,n,e);Qe(),t=t.memoizedState,n=Qe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function xl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Lr(),xe.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 Nh(){return Qe().memoizedState}function kr(e,t,n,l){var o=mt();xe.flags|=e,o.memoizedState=xl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Yr(e,t,n,l){var o=Qe();l=l===void 0?null:l;var s=o.memoizedState.inst;_e!==null&&l!==null&&ls(l,_e.memoizedState.deps)?o.memoizedState=xl(t,s,n,l):(xe.flags|=e,o.memoizedState=xl(1|t,s,n,l))}function jh(e,t){kr(8390656,8,e,t)}function ms(e,t){Yr(2048,8,e,t)}function lx(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Lr(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ah(e){var t=Qe().memoizedState;return lx({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Th(e,t){return Yr(4,2,e,t)}function Rh(e,t){return Yr(4,4,e,t)}function zh(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 Oh(e,t,n){n=n!=null?n.concat([e]):null,Yr(4,4,zh.bind(null,t,e),n)}function ps(){}function _h(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&ls(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Dh(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&ls(t,l[1]))return l[0];if(l=e(),Ha){Kn(!0);try{e()}finally{Kn(!1)}}return n.memoizedState=[l,t],l}function gs(e,t,n){return n===void 0||(An&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Mm(),xe.lanes|=e,oa|=e,n)}function Mh(e,t,n,l){return At(n,t)?n:gl.current!==null?(e=gs(e,n,l),At(e,t)||($e=!0),e):(An&42)===0||(An&1073741824)!==0&&(Ee&261930)===0?($e=!0,e.memoizedState=n):(e=Mm(),xe.lanes|=e,oa|=e,t)}function Uh(e,t,n,l,o){var s=U.p;U.p=s!==0&&8>s?s:8;var m=D.T,x={};D.T=x,xs(e,!1,t,n);try{var C=o(),B=D.S;if(B!==null&&B(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=$0(C,l);vi(e,t,V,Dt(e))}else vi(e,t,l,Dt(e))}catch(P){vi(e,t,{then:function(){},status:"rejected",reason:P},Dt())}finally{U.p=s,m!==null&&x.types!==null&&(m.types=x.types),D.T=m}}function ix(){}function vs(e,t,n,l){if(e.tag!==5)throw Error(c(476));var o=Lh(e).queue;Uh(e,o,t,G,n===null?ix:function(){return Bh(e),n(l)})}function Lh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bh(e){var t=Lh(e);t.next===null&&(t=e.alternate.memoizedState),vi(e,t.next.queue,{},Dt())}function ys(){return ct(Mi)}function Hh(){return Qe().memoizedState}function kh(){return Qe().memoizedState}function rx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dt();e=ta(n);var l=na(t,e,n);l!==null&&(St(l,t,n),di(l,t,n)),t={cache:Kc()},e.payload=t;return}t=t.return}}function ox(e,t,n){var l=Dt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qr(e)?qh(t,n):(n=Lc(e,t,n,l),n!==null&&(St(n,e,l),Fh(n,t,l)))}function Yh(e,t,n){var l=Dt();vi(e,t,n,l)}function vi(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(qr(e))qh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var m=t.lastRenderedState,x=s(m,n);if(o.hasEagerState=!0,o.eagerState=x,At(x,m))return Sr(e,t,o,0),Ue===null&&br(),!1}catch{}if(n=Lc(e,t,o,l),n!==null)return St(n,e,l),Fh(n,t,l),!0}return!1}function xs(e,t,n,l){if(l={lane:2,revertLane:Js(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qr(e)){if(t)throw Error(c(479))}else t=Lc(e,n,l,2),t!==null&&St(t,e,2)}function qr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function qh(e,t){vl=Mr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Kf(e,n)}}var yi={readContext:ct,use:Br,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};yi.useEffectEvent=Xe;var Vh={readContext:ct,use:Br,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:jh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,kr(4194308,4,zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kr(4194308,4,e,t)},useInsertionEffect:function(e,t){kr(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(Ha){Kn(!0);try{e()}finally{Kn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var o=n(t);if(Ha){Kn(!0);try{n(t)}finally{Kn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=ox.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=ds(e);var t=e.queue,n=Yh.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ps,useDeferredValue:function(e,t){var n=mt();return gs(n,e,t)},useTransition:function(){var e=ds(!1);return e=Uh.bind(null,xe,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,o=mt();if(Ne){if(n===void 0)throw Error(c(407));n=n()}else{if(n=t(),Ue===null)throw Error(c(349));(Ee&127)!==0||uh(l,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,jh(dh.bind(null,l,s,e),[e]),l.flags|=2048,xl(9,{destroy:void 0},fh.bind(null,l,s,n,t),null),n},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(Ne){var n=rn,l=ln;n=(l&~(1<<32-jt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ur++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ex++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ys,useFormState:Sh,useActionState:Sh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xs.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ss,useCacheRefresh:function(){return mt().memoizedState=rx.bind(null,xe)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},bs={readContext:ct,use:Br,useCallback:_h,useContext:ct,useEffect:ms,useImperativeHandle:Oh,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Dh,useReducer:Hr,useRef:Nh,useState:function(){return Hr(Tn)},useDebugValue:ps,useDeferredValue:function(e,t){var n=Qe();return Mh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Hr(Tn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:sh,useId:Hh,useHostTransitionStatus:ys,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var n=Qe();return ph(n,_e,e,t)},useMemoCache:ss,useCacheRefresh:kh};bs.useEffectEvent=Ah;var Xh={readContext:ct,use:Br,useCallback:_h,useContext:ct,useEffect:ms,useImperativeHandle:Oh,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Dh,useReducer:fs,useRef:Nh,useState:function(){return fs(Tn)},useDebugValue:ps,useDeferredValue:function(e,t){var n=Qe();return _e===null?gs(n,e,t):Mh(n,_e.memoizedState,e,t)},useTransition:function(){var e=fs(Tn)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:sh,useId:Hh,useHostTransitionStatus:ys,useFormState:Ch,useActionState:Ch,useOptimistic:function(e,t){var n=Qe();return _e!==null?ph(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ss,useCacheRefresh:kh};Xh.useEffectEvent=Ah;function Ss(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 ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Dt(),o=ta(l);o.payload=t,n!=null&&(o.callback=n),t=na(e,o,l),t!==null&&(St(t,e,l),di(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Dt(),o=ta(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=na(e,o,l),t!==null&&(St(t,e,l),di(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),l=ta(n);l.tag=2,t!=null&&(l.callback=t),t=na(e,l,n),t!==null&&(St(t,e,n),di(t,e,n))}};function Gh(e,t,n,l,o,s,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,m):t.prototype&&t.prototype.isPureReactComponent?!li(n,l)||!li(o,s):!0}function Ph(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&&ws.enqueueReplaceState(t,t.state,null)}function ka(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 o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Kh(e){xr(e)}function Qh(e){console.error(e)}function Zh(e){xr(e)}function Fr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ih(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Es(e,t,n){return n=ta(n),n.tag=3,n.payload={element:null},n.callback=function(){Fr(e,t)},n}function Jh(e){return e=ta(e),e.tag=3,e}function Wh(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var s=l.value;e.payload=function(){return o(s)},e.callback=function(){Ih(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Ih(t,n,l),typeof o!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function cx(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&fl(t,n,o,!0),n=Rt.current,n!==null){switch(n.tag){case 31:case 13:return Pt===null?eo():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===Rr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Qs(e,l,o)),!1;case 22:return n.flags|=65536,l===Rr?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)),Qs(e,l,o)),!1}throw Error(c(435,n.tag))}return Qs(e,l,o),eo(),!1}if(Ne)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Fc&&(e=Error(c(422),{cause:l}),oi(Ft(e,n)))):(l!==Fc&&(t=Error(c(423),{cause:l}),oi(Ft(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Ft(l,n),o=Es(e.stateNode,l,o),$c(e,o),Ge!==4&&(Ge=2)),!1;var s=Error(c(520),{cause:l});if(s=Ft(s,n),ji===null?ji=[s]:ji.push(s),Ge!==4&&(Ge=2),t===null)return!0;l=Ft(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Es(n.stateNode,l,e),$c(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ca===null||!ca.has(s))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Jh(o),Wh(o,e,n,l),$c(n,o),!1}n=n.return}while(n!==null);return!1}var Cs=Error(c(461)),$e=!1;function st(e,t,n,l){t.child=e===null?nh(t,null,n,l):Ba(t,e.child,n,l)}function $h(e,t,n,l,o){n=n.render;var s=t.ref;if("ref"in l){var m={};for(var x in l)x!=="ref"&&(m[x]=l[x])}else m=l;return Da(t),l=is(e,t,n,m,s,o),x=rs(),e!==null&&!$e?(os(e,t,o),Rn(e,t,o)):(Ne&&x&&Yc(t),t.flags|=1,st(e,t,l,o),t.child)}function em(e,t,n,l,o){if(e===null){var s=n.type;return typeof s=="function"&&!Bc(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,tm(e,t,s,l,o)):(e=Er(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!_s(e,o)){var m=s.memoizedProps;if(n=n.compare,n=n!==null?n:li,n(m,l)&&e.ref===t.ref)return Rn(e,t,o)}return t.flags|=1,e=En(s,l),e.ref=t.ref,e.return=t,t.child=e}function tm(e,t,n,l,o){if(e!==null){var s=e.memoizedProps;if(li(s,l)&&e.ref===t.ref)if($e=!1,t.pendingProps=l=s,_s(e,o))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,Rn(e,t,o)}return Ns(e,t,n,l,o)}function nm(e,t,n,l){var o=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~s}else l=0,t.child=null;return am(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ar(t,s!==null?s.cachePool:null),s!==null?ih(t,s):ts(),rh(t);else return l=t.lanes=536870912,am(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(Ar(t,s.cachePool),ih(t,s),la(),t.memoizedState=null):(e!==null&&Ar(t,null),ts(),la());return st(e,t,o,n),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function am(e,t,n,l,o){var s=Zc();return s=s===null?null:{parent:Je._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Ar(t,null),ts(),rh(t),e!==null&&fl(e,t,l,!0),t.childLanes=o,null}function Vr(e,t){return t=Gr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lm(e,t,n){return Ba(t,e.child,null,n),e=Vr(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function sx(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=Vr(t,l),t.lanes=536870912,xi(null,e);if(as(t),(e=He)?(e=gp(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:ln,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=qd(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Wn(t);return t.lanes=536870912,null}return Vr(t,l)}var s=e.memoizedState;if(s!==null){var m=s.dehydrated;if(as(t),o)if(t.flags&256)t.flags&=-257,t=lm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if($e||fl(e,t,n,!1),o=(n&e.childLanes)!==0,$e||o){if(l=Ue,l!==null&&(m=Qf(l,n),m!==0&&m!==s.retryLane))throw s.retryLane=m,Ra(e,m),St(l,e,m),Cs;eo(),t=lm(e,t,n)}else e=s.treeContext,He=Kt(m.nextSibling),ot=t,Ne=!0,Jn=null,Gt=!1,e!==null&&Xd(t,e),t=Vr(t,l),t.flags|=4096;return t}return e=En(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xr(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(c(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ns(e,t,n,l,o){return Da(t),n=is(e,t,n,l,void 0,o),l=rs(),e!==null&&!$e?(os(e,t,o),Rn(e,t,o)):(Ne&&l&&Yc(t),t.flags|=1,st(e,t,n,o),t.child)}function im(e,t,n,l,o,s){return Da(t),t.updateQueue=null,n=ch(t,l,n,o),oh(e),l=rs(),e!==null&&!$e?(os(e,t,s),Rn(e,t,s)):(Ne&&l&&Yc(t),t.flags|=1,st(e,t,n,s),t.child)}function rm(e,t,n,l,o){if(Da(t),t.stateNode===null){var s=ol,m=n.contextType;typeof m=="object"&&m!==null&&(s=ct(m)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ws,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Jc(t),m=n.contextType,s.context=typeof m=="object"&&m!==null?ct(m):ol,s.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Ss(t,n,m,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(m=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),m!==s.state&&ws.enqueueReplaceState(s,s.state,null),mi(t,l,s,o),hi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var x=t.memoizedProps,C=ka(n,x);s.props=C;var B=s.context,V=n.contextType;m=ol,typeof V=="object"&&V!==null&&(m=ct(V));var P=n.getDerivedStateFromProps;V=typeof P=="function"||typeof s.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,V||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(x||B!==m)&&Ph(t,s,l,m),ea=!1;var H=t.memoizedState;s.state=H,mi(t,l,s,o),hi(),B=t.memoizedState,x||H!==B||ea?(typeof P=="function"&&(Ss(t,n,P,l),B=t.memoizedState),(C=ea||Gh(t,n,C,l,H,B,m))?(V||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),s.props=l,s.state=B,s.context=m,l=C):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,Wc(e,t),m=t.memoizedProps,V=ka(n,m),s.props=V,P=t.pendingProps,H=s.context,B=n.contextType,C=ol,typeof B=="object"&&B!==null&&(C=ct(B)),x=n.getDerivedStateFromProps,(B=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m!==P||H!==C)&&Ph(t,s,l,C),ea=!1,H=t.memoizedState,s.state=H,mi(t,l,s,o),hi();var q=t.memoizedState;m!==P||H!==q||ea||e!==null&&e.dependencies!==null&&Nr(e.dependencies)?(typeof x=="function"&&(Ss(t,n,x,l),q=t.memoizedState),(V=ea||Gh(t,n,V,l,H,q,C)||e!==null&&e.dependencies!==null&&Nr(e.dependencies))?(B||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,q,C),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,q,C)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),s.props=l,s.state=q,s.context=C,l=V):(typeof s.componentDidUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Xr(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Ba(t,e.child,null,o),t.child=Ba(t,null,n,o)):st(e,t,n,o),t.memoizedState=s.state,e=t.child):e=Rn(e,t,o),e}function om(e,t,n,l){return Oa(),t.flags|=256,st(e,t,n,l),t.child}var js={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function As(e){return{baseLanes:e,cachePool:Id()}}function Ts(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_t),e}function cm(e,t,n){var l=t.pendingProps,o=!1,s=(t.flags&128)!==0,m;if((m=s)||(m=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(o?aa(t):la(),(e=He)?(e=gp(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:ln,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},n=qd(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Wn(t);return uu(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(la(),o=t.mode,x=Gr({mode:"hidden",children:x},o),l=za(l,o,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=As(n),l.childLanes=Ts(e,m,n),t.memoizedState=js,xi(null,l)):(aa(t),Rs(t,x))}var C=e.memoizedState;if(C!==null&&(x=C.dehydrated,x!==null)){if(s)t.flags&256?(aa(t),t.flags&=-257,t=zs(e,t,n)):t.memoizedState!==null?(la(),t.child=e.child,t.flags|=128,t=null):(la(),x=l.fallback,o=t.mode,l=Gr({mode:"visible",children:l.children},o),x=za(x,o,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,Ba(t,e.child,null,n),l=t.child,l.memoizedState=As(n),l.childLanes=Ts(e,m,n),t.memoizedState=js,t=xi(null,l));else if(aa(t),uu(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var B=m.dgst;m=B,l=Error(c(419)),l.stack="",l.digest=m,oi({value:l,source:null,stack:null}),t=zs(e,t,n)}else if($e||fl(e,t,n,!1),m=(n&e.childLanes)!==0,$e||m){if(m=Ue,m!==null&&(l=Qf(m,n),l!==0&&l!==C.retryLane))throw C.retryLane=l,Ra(e,l),St(m,e,l),Cs;su(x)||eo(),t=zs(e,t,n)}else su(x)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,He=Kt(x.nextSibling),ot=t,Ne=!0,Jn=null,Gt=!1,e!==null&&Xd(t,e),t=Rs(t,l.children),t.flags|=4096);return t}return o?(la(),x=l.fallback,o=t.mode,C=e.child,B=C.sibling,l=En(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,B!==null?x=En(B,x):(x=za(x,o,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,xi(null,l),l=t.child,x=e.child.memoizedState,x===null?x=As(n):(o=x.cachePool,o!==null?(C=Je._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Id(),x={baseLanes:x.baseLanes|n,cachePool:o}),l.memoizedState=x,l.childLanes=Ts(e,m,n),t.memoizedState=js,xi(e.child,l)):(aa(t),n=e.child,e=n.sibling,n=En(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 Rs(e,t){return t=Gr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gr(e,t){return e=Tt(22,e,null,t),e.lanes=0,e}function zs(e,t,n){return Ba(t,e.child,null,n),e=Rs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Gc(e.return,t,n)}function Os(e,t,n,l,o,s){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:s}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=o,m.treeForkCount=s)}function um(e,t,n){var l=t.pendingProps,o=l.revealOrder,s=l.tail;l=l.children;var m=Ke.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,J(Ke,m),st(e,t,l,n),l=Ne?ri:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sm(e,n,t);else if(e.tag===19)sm(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(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Dr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Os(t,!1,o,n,s,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Dr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Os(t,!0,n,null,s,l);break;case"together":Os(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,n=En(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=En(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Nr(e)))}function ux(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),$n(t,Je,e.memoizedState.cache),Oa();break;case 27:case 5:se(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,as(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(aa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?cm(e,t,n):(aa(t),e=Rn(e,t,n),e!==null?e.sibling:null);aa(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(fl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return um(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),J(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,nm(e,t,n,t.pendingProps);case 24:$n(t,Je,e.memoizedState.cache)}return Rn(e,t,n)}function fm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!_s(e,n)&&(t.flags&128)===0)return $e=!1,ux(e,t,n);$e=(e.flags&131072)!==0}else $e=!1,Ne&&(t.flags&1048576)!==0&&Vd(t,ri,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")Bc(e)?(l=ka(e,l),t.tag=1,t=rm(null,t,e,l,n)):(t.tag=0,t=Ns(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===F){t.tag=11,t=$h(null,t,e,l,n);break e}else if(o===k){t.tag=14,t=em(null,t,e,l,n);break e}}throw t=ne(e)||e,Error(c(306,t,""))}}return t;case 0:return Ns(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=ka(l,t.pendingProps),rm(e,t,l,o,n);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;o=s.element,Wc(e,t),mi(t,l,null,n);var m=t.memoizedState;if(l=m.cache,$n(t,Je,l),l!==s.cache&&Pc(t,[Je],n,!0),hi(),l=m.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=om(e,t,l,n);break e}else if(l!==o){o=Ft(Error(c(424)),t),oi(o),t=om(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,He=Kt(e.firstChild),ot=t,Ne=!0,Jn=null,Gt=!0,n=nh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oa(),l===o){t=Rn(e,t,n);break e}st(e,t,l,n)}t=t.child}return t;case 26:return Xr(e,t),e===null?(n=wp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ne||(n=t.type,e=t.pendingProps,l=oo(ie.current).createElement(n),l[rt]=t,l[pt]=e,ut(l,n,e),lt(l),t.stateNode=l):t.memoizedState=wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return se(t),e===null&&Ne&&(l=t.stateNode=xp(t.type,t.pendingProps,ie.current),ot=t,Gt=!0,o=He,da(t.type)?(fu=o,He=Kt(l.firstChild)):He=o),st(e,t,t.pendingProps.children,n),Xr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((o=l=He)&&(l=Yx(l,t.type,t.pendingProps,Gt),l!==null?(t.stateNode=l,ot=t,He=Kt(l.firstChild),Gt=!1,o=!0):o=!1),o||Wn(t)),se(t),o=t.type,s=t.pendingProps,m=e!==null?e.memoizedProps:null,l=s.children,ru(o,s)?l=null:m!==null&&ru(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=is(e,t,tx,null,null,n),Mi._currentValue=o),Xr(e,t),st(e,t,l,n),t.child;case 6:return e===null&&Ne&&((e=n=He)&&(n=qx(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,ot=t,He=null,e=!0):e=!1),e||Wn(t)),null;case 13:return cm(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ba(t,null,l,n):st(e,t,l,n),t.child;case 11:return $h(e,t,t.type,t.pendingProps,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,$n(t,t.type,l.value),st(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Da(t),o=ct(o),l=l(o),t.flags|=1,st(e,t,l,n),t.child;case 14:return em(e,t,t.type,t.pendingProps,n);case 15:return tm(e,t,t.type,t.pendingProps,n);case 19:return um(e,t,n);case 31:return sx(e,t,n);case 22:return nm(e,t,n,t.pendingProps);case 24:return Da(t),l=ct(Je),e===null?(o=Zc(),o===null&&(o=Ue,s=Kc(),o.pooledCache=s,s.refCount++,s!==null&&(o.pooledCacheLanes|=n),o=s),t.memoizedState={parent:l,cache:o},Jc(t),$n(t,Je,o)):((e.lanes&n)!==0&&(Wc(e,t),mi(t,null,null,n),hi()),o=e.memoizedState,s=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),$n(t,Je,l)):(l=s.cache,$n(t,Je,l),l!==o.cache&&Pc(t,[Je],n,!0))),st(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function zn(e){e.flags|=4}function Ds(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Hm())e.flags|=8192;else throw La=Rr,Ic}else e.flags&=-16777217}function dm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ap(t))if(Hm())e.flags|=8192;else throw La=Rr,Ic}function Pr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gf():536870912,e.lanes|=t,El|=t)}function bi(e,t){if(!Ne)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 ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function fx(e,t,n){var l=t.pendingProps;switch(qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),jn(Je),Q(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Vc())),ke(t),null;case 26:var o=t.type,s=t.memoizedState;return e===null?(zn(t),s!==null?(ke(t),dm(t,s)):(ke(t),Ds(t,o,null,l,n))):s?s!==e.memoizedState?(zn(t),ke(t),dm(t,s)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&zn(t),ke(t),Ds(t,o,e,l,n)),null;case 27:if(he(t),n=ie.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&zn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return ke(t),null}e=I.current,ul(t)?Gd(t):(e=xp(o,l,n),t.stateNode=e,zn(t))}return ke(t),null;case 5:if(he(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&zn(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return ke(t),null}if(s=I.current,ul(t))Gd(t);else{var m=oo(ie.current);switch(s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?m.createElement(o,{is:l.is}):m.createElement(o)}}s[rt]=t,s[pt]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)s.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=s;e:switch(ut(s,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&zn(t)}}return ke(t),Ds(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&zn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=ie.current,ul(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=ot,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||cp(e.nodeValue,n)),e||Wn(t,!0)}else e=oo(e).createTextNode(l),e[rt]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ul(t),n!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[rt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=Vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ul(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(c(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(c(317));o[rt]=t}else Oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),o=!1}else o=Vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pr(t,t.updateQueue),ke(t),null);case 4:return Q(),e===null&&tu(t.stateNode.containerInfo),ke(t),null;case 10:return jn(t.type),ke(t),null;case 19:if(Y(Ke),l=t.memoizedState,l===null)return ke(t),null;if(o=(t.flags&128)!==0,s=l.rendering,s===null)if(o)bi(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Dr(e),s!==null){for(t.flags|=128,bi(l,!1),e=s.updateQueue,t.updateQueue=e,Pr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yd(n,e),n=n.sibling;return J(Ke,Ke.current&1|2),Ne&&Cn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ct()>Jr&&(t.flags|=128,o=!0,bi(l,!1),t.lanes=4194304)}else{if(!o)if(e=Dr(s),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Pr(t,e),bi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ne)return ke(t),null}else 2*Ct()-l.renderingStartTime>Jr&&n!==536870912&&(t.flags|=128,o=!0,bi(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ct(),e.sibling=null,n=Ke.current,J(Ke,o?n&1|2:n&1),Ne&&Cn(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return zt(t),ns(),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&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Pr(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&&Y(Ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),jn(Je),ke(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function dx(e,t){switch(qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jn(Je),Q(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ke),null;case 4:return Q(),null;case 10:return jn(t.type),null;case 22:case 23:return zt(t),ns(),e!==null&&Y(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return jn(Je),null;case 25:return null;default:return null}}function hm(e,t){switch(qc(t),t.tag){case 3:jn(Je),Q();break;case 26:case 27:case 5:he(t);break;case 4:Q();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:Y(Ke);break;case 10:jn(t.type);break;case 22:case 23:zt(t),ns(),e!==null&&Y(Ma);break;case 24:jn(Je)}}function Si(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var s=n.create,m=n.inst;l=s(),m.destroy=l}n=n.next}while(n!==o)}}catch(x){Oe(t,t.return,x)}}function ia(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var s=o.next;l=s;do{if((l.tag&e)===e){var m=l.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,o=t;var C=n,B=x;try{B()}catch(V){Oe(o,C,V)}}}l=l.next}while(l!==s)}}catch(V){Oe(t,t.return,V)}}function mm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{lh(t,n)}catch(l){Oe(e,e.return,l)}}}function pm(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function wi(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(o){Oe(e,t,o)}}function on(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Oe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Oe(e,t,o)}else n.current=null}function gm(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(o){Oe(e,e.return,o)}}function Ms(e,t,n){try{var l=e.stateNode;Mx(l,e.type,n,t),l[pt]=t}catch(o){Oe(e,e.return,o)}}function vm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&da(e.type)||e.tag===4}function Us(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vm(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&&da(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 Ls(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=Sn));else if(l!==4&&(l===27&&da(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}function Kr(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&&da(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kr(e,t,n),e=e.sibling;e!==null;)Kr(e,t,n),e=e.sibling}function ym(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,l,n),t[rt]=e,t[pt]=n}catch(s){Oe(e,e.return,s)}}var On=!1,et=!1,Bs=!1,xm=typeof WeakSet=="function"?WeakSet:Set,it=null;function hx(e,t){if(e=e.containerInfo,lu=po,e=Od(e),zc(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 o=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var m=0,x=-1,C=-1,B=0,V=0,P=e,H=null;t:for(;;){for(var q;P!==n||o!==0&&P.nodeType!==3||(x=m+o),P!==s||l!==0&&P.nodeType!==3||(C=m+l),P.nodeType===3&&(m+=P.nodeValue.length),(q=P.firstChild)!==null;)H=P,P=q;for(;;){if(P===e)break t;if(H===n&&++B===o&&(x=m),H===s&&++V===l&&(C=m),(q=P.nextSibling)!==null)break;P=H,H=P.parentNode}P=q}n=x===-1||C===-1?null:{start:x,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(iu={focusedElem:e,selectionRange:n},po=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,o=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var le=ka(n.type,o);e=l.getSnapshotBeforeUpdate(le,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Oe(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cu(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(c(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function bm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),l&4&&Si(5,n);break;case 1:if(Dn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var o=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&mm(n),l&512&&wi(n,n.return);break;case 3:if(Dn(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{lh(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&ym(n);case 26:case 5:Dn(e,n),t===null&&l&4&&gm(n),l&512&&wi(n,n.return);break;case 12:Dn(e,n);break;case 31:Dn(e,n),l&4&&Em(e,n);break;case 13:Dn(e,n),l&4&&Cm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wx.bind(null,n),Fx(e,n))));break;case 22:if(l=n.memoizedState!==null||On,!l){t=t!==null&&t.memoizedState!==null||et,o=On;var s=et;On=l,(et=t)&&!s?Mn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),On=o,et=s}break;case 30:break;default:Dn(e,n)}}function Sm(e){var t=e.alternate;t!==null&&(e.alternate=null,Sm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hc(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 qe=null,vt=!1;function _n(e,t,n){for(n=n.child;n!==null;)wm(e,t,n),n=n.sibling}function wm(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 26:et||on(n,t),_n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:et||on(n,t);var l=qe,o=vt;da(n.type)&&(qe=n.stateNode,vt=!1),_n(e,t,n),Oi(n.stateNode),qe=l,vt=o;break;case 5:et||on(n,t);case 6:if(l=qe,o=vt,qe=null,_n(e,t,n),qe=l,vt=o,qe!==null)if(vt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(s){Oe(n,t,s)}else try{qe.removeChild(n.stateNode)}catch(s){Oe(n,t,s)}break;case 18:qe!==null&&(vt?(e=qe,mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ol(e)):mp(qe,n.stateNode));break;case 4:l=qe,o=vt,qe=n.stateNode.containerInfo,vt=!0,_n(e,t,n),qe=l,vt=o;break;case 0:case 11:case 14:case 15:ia(2,n,t),et||ia(4,n,t),_n(e,t,n);break;case 1:et||(on(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&pm(n,t,l)),_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:et=(l=et)||n.memoizedState!==null,_n(e,t,n),et=l;break;default:_n(e,t,n)}}function Em(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ol(e)}catch(n){Oe(t,t.return,n)}}}function Cm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ol(e)}catch(n){Oe(t,t.return,n)}}function mx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xm),t;default:throw Error(c(435,e.tag))}}function Qr(e,t){var n=mx(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Ex.bind(null,e,l);l.then(o,o)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],s=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(da(x.type)){qe=x.stateNode,vt=!1;break e}break;case 5:qe=x.stateNode,vt=!1;break e;case 3:case 4:qe=x.stateNode.containerInfo,vt=!0;break e}x=x.return}if(qe===null)throw Error(c(160));wm(s,m,o),qe=null,vt=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nm(t,e),t=t.sibling}var Jt=null;function Nm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),xt(e),l&4&&(ia(3,e,e.return),Si(3,e),ia(5,e,e.return));break;case 1:yt(t,e),xt(e),l&512&&(et||n===null||on(n,n.return)),l&64&&On&&(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 o=Jt;if(yt(t,e),xt(e),l&512&&(et||n===null||on(n,n.return)),l&4){var s=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,o=o.ownerDocument||o;t:switch(l){case"title":s=o.getElementsByTagName("title")[0],(!s||s[Zl]||s[rt]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=o.createElement(l),o.head.insertBefore(s,o.querySelector("head > title"))),ut(s,l,n),s[rt]=e,lt(s),l=s;break e;case"link":var m=Np("link","href",o).get(l+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(s=m[x],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}s=o.createElement(l),ut(s,l,n),o.head.appendChild(s);break;case"meta":if(m=Np("meta","content",o).get(l+(n.content||""))){for(x=0;x<m.length;x++)if(s=m[x],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}s=o.createElement(l),ut(s,l,n),o.head.appendChild(s);break;default:throw Error(c(468,l))}s[rt]=e,lt(s),l=s}e.stateNode=l}else jp(o,e.type,e.stateNode);else e.stateNode=Cp(o,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?jp(o,e.type,e.stateNode):Cp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ms(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),xt(e),l&512&&(et||n===null||on(n,n.return)),n!==null&&l&4&&Ms(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),xt(e),l&512&&(et||n===null||on(n,n.return)),e.flags&32){o=e.stateNode;try{el(o,"")}catch(le){Oe(e,e.return,le)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Ms(e,o,n!==null?n.memoizedProps:o)),l&1024&&(Bs=!0);break;case 6:if(yt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(le){Oe(e,e.return,le)}}break;case 3:if(uo=null,o=Jt,Jt=co(t.containerInfo),yt(t,e),Jt=o,xt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ol(t.containerInfo)}catch(le){Oe(e,e.return,le)}Bs&&(Bs=!1,jm(e));break;case 4:l=Jt,Jt=co(e.stateNode.containerInfo),yt(t,e),xt(e),Jt=l;break;case 12:yt(t,e),xt(e);break;case 31:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 13:yt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ir=Ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,B=On,V=et;if(On=B||o,et=V||C,yt(t,e),et=V,On=B,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||On||et||Ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(s=C.stateNode,o)m=s.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=C.stateNode;var P=C.memoizedProps.style,H=P!=null&&P.hasOwnProperty("display")?P.display:null;x.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(le){Oe(C,C.return,le)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(le){Oe(C,C.return,le)}}}else if(t.tag===18){if(n===null){C=t;try{var q=C.stateNode;o?pp(q,!0):pp(C.stateNode,!1)}catch(le){Oe(C,C.return,le)}}}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,Qr(e,n))));break;case 19:yt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 30:break;case 21:break;default:yt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(vm(l)){n=l;break}l=l.return}if(n==null)throw Error(c(160));switch(n.tag){case 27:var o=n.stateNode,s=Us(e);Kr(e,s,o);break;case 5:var m=n.stateNode;n.flags&32&&(el(m,""),n.flags&=-33);var x=Us(e);Kr(e,x,m);break;case 3:case 4:var C=n.stateNode.containerInfo,B=Us(e);Ls(e,B,C);break;default:throw Error(c(161))}}catch(V){Oe(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bm(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ia(4,t,t.return),Ya(t);break;case 1:on(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&pm(t,t.return,n),Ya(t);break;case 27:Oi(t.stateNode);case 26:case 5:on(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Mn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,s=t,m=s.flags;switch(s.tag){case 0:case 11:case 15:Mn(o,s,n),Si(4,s);break;case 1:if(Mn(o,s,n),l=s,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Oe(l,l.return,B)}if(l=s,o=l.updateQueue,o!==null){var x=l.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)ah(C[o],x)}catch(B){Oe(l,l.return,B)}}n&&m&64&&mm(s),wi(s,s.return);break;case 27:ym(s);case 26:case 5:Mn(o,s,n),n&&l===null&&m&4&&gm(s),wi(s,s.return);break;case 12:Mn(o,s,n);break;case 31:Mn(o,s,n),n&&m&4&&Em(o,s);break;case 13:Mn(o,s,n),n&&m&4&&Cm(o,s);break;case 22:s.memoizedState===null&&Mn(o,s,n),wi(s,s.return);break;case 30:break;default:Mn(o,s,n)}t=t.sibling}}function Hs(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&&ci(n))}function ks(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function Wt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Am(e,t,n,l),t=t.sibling}function Am(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,n,l),o&2048&&Si(9,t);break;case 1:Wt(e,t,n,l);break;case 3:Wt(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(o&2048){Wt(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,m=s.id,x=s.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Oe(t,t.return,C)}}else Wt(e,t,n,l);break;case 31:Wt(e,t,n,l);break;case 13:Wt(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,m=t.alternate,t.memoizedState!==null?s._visibility&2?Wt(e,t,n,l):Ei(e,t):s._visibility&2?Wt(e,t,n,l):(s._visibility|=2,bl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Hs(m,t);break;case 24:Wt(e,t,n,l),o&2048&&ks(t.alternate,t);break;default:Wt(e,t,n,l)}}function bl(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,m=t,x=n,C=l,B=m.flags;switch(m.tag){case 0:case 11:case 15:bl(s,m,x,C,o),Si(8,m);break;case 23:break;case 22:var V=m.stateNode;m.memoizedState!==null?V._visibility&2?bl(s,m,x,C,o):Ei(s,m):(V._visibility|=2,bl(s,m,x,C,o)),o&&B&2048&&Hs(m.alternate,m);break;case 24:bl(s,m,x,C,o),o&&B&2048&&ks(m.alternate,m);break;default:bl(s,m,x,C,o)}t=t.sibling}}function Ei(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:Ei(n,l),o&2048&&Hs(l.alternate,l);break;case 24:Ei(n,l),o&2048&&ks(l.alternate,l);break;default:Ei(n,l)}t=t.sibling}}var Ci=8192;function Sl(e,t,n){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)Tm(e,t,n),e=e.sibling}function Tm(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&Ci&&e.memoizedState!==null&&eb(n,Jt,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var l=Jt;Jt=co(e.stateNode.containerInfo),Sl(e,t,n),Jt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ci,Ci=16777216,Sl(e,t,n),Ci=l):Sl(e,t,n));break;default:Sl(e,t,n)}}function Rm(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 Ni(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];it=l,Om(l,e)}Rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zm(e),e=e.sibling}function zm(e){switch(e.tag){case 0:case 11:case 15:Ni(e),e.flags&2048&&ia(9,e,e.return);break;case 3:Ni(e);break;case 12:Ni(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zr(e)):Ni(e);break;default:Ni(e)}}function Zr(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];it=l,Om(l,e)}Rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ia(8,t,t.return),Zr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zr(t));break;default:Zr(t)}e=e.sibling}}function Om(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:ia(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:ci(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,it=l;else e:for(n=e;it!==null;){l=it;var o=l.sibling,s=l.return;if(Sm(l),l===n){it=null;break e}if(o!==null){o.return=s,it=o;break e}it=s}}}var px={getCacheForType:function(e){var t=ct(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Je).controller.signal}},gx=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ue=null,Se=null,Ee=0,ze=0,Ot=null,ra=!1,wl=!1,Ys=!1,Un=0,Ge=0,oa=0,qa=0,qs=0,_t=0,El=0,ji=null,bt=null,Fs=!1,Ir=0,_m=0,Jr=1/0,Wr=null,ca=null,at=0,sa=null,Cl=null,Ln=0,Vs=0,Xs=null,Dm=null,Ai=0,Gs=null;function Dt(){return(Re&2)!==0&&Ee!==0?Ee&-Ee:D.T!==null?Js():Zf()}function Mm(){if(_t===0)if((Ee&536870912)===0||Ne){var e=rr;rr<<=1,(rr&3932160)===0&&(rr=262144),_t=e}else _t=536870912;return e=Rt.current,e!==null&&(e.flags|=32),_t}function St(e,t,n){(e===Ue&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Nl(e,0),ua(e,Ee,_t,!1)),Ql(e,n),((Re&2)===0||e!==Ue)&&(e===Ue&&((Re&2)===0&&(qa|=n),Ge===4&&ua(e,Ee,_t,!1)),cn(e))}function Um(e,t,n){if((Re&6)!==0)throw Error(c(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Kl(e,t),o=l?xx(e,t):Ks(e,t,!0),s=l;do{if(o===0){wl&&!l&&ua(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!vx(n)){o=Ks(e,t,!1),s=!1;continue}if(o===2){if(s=t,e.errorRecoveryDisabledLanes&s)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;o=ji;var C=x.current.memoizedState.isDehydrated;if(C&&(Nl(x,m).flags|=256),m=Ks(x,m,!1),m!==2){if(Ys&&!C){x.errorRecoveryDisabledLanes|=s,qa|=s,o=4;break e}s=bt,bt=o,s!==null&&(bt===null?bt=s:bt.push.apply(bt,s))}o=m}if(s=!1,o!==2)continue}}if(o===1){Nl(e,0),ua(e,t,0,!0);break}e:{switch(l=e,s=o,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ua(l,t,_t,!ra);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(o=Ir+300-Ct(),10<o)){if(ua(l,t,_t,!ra),cr(l,0,!0)!==0)break e;Ln=t,l.timeoutHandle=dp(Lm.bind(null,l,n,bt,Wr,Fs,t,_t,qa,El,ra,s,"Throttled",-0,0),o);break e}Lm(l,n,bt,Wr,Fs,t,_t,qa,El,ra,s,null,-0,0)}}break}while(!0);cn(e)}function Lm(e,t,n,l,o,s,m,x,C,B,V,P,H,q){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Tm(t,s,P);var le=(s&62914560)===s?Ir-Ct():(s&4194048)===s?_m-Ct():0;if(le=tb(P,le),le!==null){Ln=s,e.cancelPendingCommit=le(Xm.bind(null,e,t,s,n,l,o,m,x,C,V,P,null,H,q)),ua(e,s,m,!B);return}}Xm(e,t,s,n,l,o,m,x,C)}function vx(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 o=n[l],s=o.getSnapshot;o=o.value;try{if(!At(s(),o))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 ua(e,t,n,l){t&=~qs,t&=~qa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var s=31-jt(o),m=1<<s;l[s]=-1,o&=~m}n!==0&&Pf(e,n,t)}function $r(){return(Re&6)===0?(Ti(0),!1):!0}function Ps(){if(Se!==null){if(ze===0)var e=Se.return;else e=Se,Nn=_a=null,cs(e),pl=null,ui=0,e=Se;for(;e!==null;)hm(e.alternate,e),e=e.return;Se=null}}function Nl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Bx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ln=0,Ps(),Ue=e,Se=n=En(e.current,null),Ee=t,ze=0,Ot=null,ra=!1,wl=Kl(e,t),Ys=!1,El=_t=qs=qa=oa=Ge=0,bt=ji=null,Fs=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-jt(l),s=1<<o;t|=e[o],l&=~s}return Un=t,br(),n}function Bm(e,t){xe=null,D.H=yi,t===ml||t===Tr?(t=$d(),ze=3):t===Ic?(t=$d(),ze=4):ze=t===Cs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,Se===null&&(Ge=1,Fr(e,Ft(t,e.current)))}function Hm(){var e=Rt.current;return e===null?!0:(Ee&4194048)===Ee?Pt===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===Pt:!1}function km(){var e=D.H;return D.H=yi,e===null?yi:e}function Ym(){var e=D.A;return D.A=px,e}function eo(){Ge=4,ra||(Ee&4194048)!==Ee&&Rt.current!==null||(wl=!0),(oa&134217727)===0&&(qa&134217727)===0||Ue===null||ua(Ue,Ee,_t,!1)}function Ks(e,t,n){var l=Re;Re|=2;var o=km(),s=Ym();(Ue!==e||Ee!==t)&&(Wr=null,Nl(e,t)),t=!1;var m=Ge;e:do try{if(ze!==0&&Se!==null){var x=Se,C=Ot;switch(ze){case 8:Ps(),m=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var B=ze;if(ze=0,Ot=null,jl(e,x,C,B),n&&wl){m=0;break e}break;default:B=ze,ze=0,Ot=null,jl(e,x,C,B)}}yx(),m=Ge;break}catch(V){Bm(e,V)}while(!0);return t&&e.shellSuspendCounter++,Nn=_a=null,Re=l,D.H=o,D.A=s,Se===null&&(Ue=null,Ee=0,br()),m}function yx(){for(;Se!==null;)qm(Se)}function xx(e,t){var n=Re;Re|=2;var l=km(),o=Ym();Ue!==e||Ee!==t?(Wr=null,Jr=Ct()+500,Nl(e,t)):wl=Kl(e,t);e:do try{if(ze!==0&&Se!==null){t=Se;var s=Ot;t:switch(ze){case 1:ze=0,Ot=null,jl(e,t,s,1);break;case 2:case 9:if(Jd(s)){ze=0,Ot=null,Fm(t);break}t=function(){ze!==2&&ze!==9||Ue!==e||(ze=7),cn(e)},s.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Jd(s)?(ze=0,Ot=null,Fm(t)):(ze=0,Ot=null,jl(e,t,s,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var x=Se;if(m?Ap(m):x.stateNode.complete){ze=0,Ot=null;var C=x.sibling;if(C!==null)Se=C;else{var B=x.return;B!==null?(Se=B,to(B)):Se=null}break t}}ze=0,Ot=null,jl(e,t,s,5);break;case 6:ze=0,Ot=null,jl(e,t,s,6);break;case 8:Ps(),Ge=6;break e;default:throw Error(c(462))}}bx();break}catch(V){Bm(e,V)}while(!0);return Nn=_a=null,D.H=l,D.A=o,Re=n,Se!==null?0:(Ue=null,Ee=0,br(),Ge)}function bx(){for(;Se!==null&&!Vy();)qm(Se)}function qm(e){var t=fm(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?to(e):Se=t}function Fm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=im(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=im(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:cs(t);default:hm(n,t),t=Se=Yd(t,Un),t=fm(n,t,Un)}e.memoizedProps=e.pendingProps,t===null?to(e):Se=t}function jl(e,t,n,l){Nn=_a=null,cs(t),pl=null,ui=0;var o=t.return;try{if(cx(e,o,t,n,Ee)){Ge=1,Fr(e,Ft(n,e.current)),Se=null;return}}catch(s){if(o!==null)throw Se=o,s;Ge=1,Fr(e,Ft(n,e.current)),Se=null;return}t.flags&32768?(Ne||l===1?e=!0:wl||(Ee&536870912)!==0?e=!1:(ra=e=!0,(l===2||l===9||l===3||l===6)&&(l=Rt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Vm(t,e)):to(t)}function to(e){var t=e;do{if((t.flags&32768)!==0){Vm(t,ra);return}e=t.return;var n=fx(t.alternate,t,Un);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ge===0&&(Ge=5)}function Vm(e,t){do{var n=dx(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ge=6,Se=null}function Xm(e,t,n,l,o,s,m,x,C){e.cancelPendingCommit=null;do no();while(at!==0);if((Re&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=Uc,$y(e,n,s,m,x,C),e===Ue&&(Se=Ue=null,Ee=0),Cl=t,sa=e,Ln=n,Vs=s,Xs=o,Dm=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Cx(lr,function(){return Zm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,o=U.p,U.p=2,m=Re,Re|=4;try{hx(e,t,n)}finally{Re=m,U.p=o,D.T=l}}at=1,Gm(),Pm(),Km()}}function Gm(){if(at===1){at=0;var e=sa,t=Cl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var l=U.p;U.p=2;var o=Re;Re|=4;try{Nm(t,e);var s=iu,m=Od(e.containerInfo),x=s.focusedElem,C=s.selectionRange;if(m!==x&&x&&x.ownerDocument&&zd(x.ownerDocument.documentElement,x)){if(C!==null&&zc(x)){var B=C.start,V=C.end;if(V===void 0&&(V=B),"selectionStart"in x)x.selectionStart=B,x.selectionEnd=Math.min(V,x.value.length);else{var P=x.ownerDocument||document,H=P&&P.defaultView||window;if(H.getSelection){var q=H.getSelection(),le=x.textContent.length,ge=Math.min(C.start,le),Me=C.end===void 0?ge:Math.min(C.end,le);!q.extend&&ge>Me&&(m=Me,Me=ge,ge=m);var _=Rd(x,ge),R=Rd(x,Me);if(_&&R&&(q.rangeCount!==1||q.anchorNode!==_.node||q.anchorOffset!==_.offset||q.focusNode!==R.node||q.focusOffset!==R.offset)){var L=P.createRange();L.setStart(_.node,_.offset),q.removeAllRanges(),ge>Me?(q.addRange(L),q.extend(R.node,R.offset)):(L.setEnd(R.node,R.offset),q.addRange(L))}}}}for(P=[],q=x;q=q.parentNode;)q.nodeType===1&&P.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<P.length;x++){var X=P[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}po=!!lu,iu=lu=null}finally{Re=o,U.p=l,D.T=n}}e.current=t,at=2}}function Pm(){if(at===2){at=0;var e=sa,t=Cl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var l=U.p;U.p=2;var o=Re;Re|=4;try{bm(e,t.alternate,t)}finally{Re=o,U.p=l,D.T=n}}at=3}}function Km(){if(at===4||at===3){at=0,Xy();var e=sa,t=Cl,n=Ln,l=Dm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Cl=sa=null,Qm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ca=null),fc(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Pl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,o=U.p,U.p=2,D.T=null;try{for(var s=e.onRecoverableError,m=0;m<l.length;m++){var x=l[m];s(x.value,{componentStack:x.stack})}}finally{D.T=t,U.p=o}}(Ln&3)!==0&&no(),cn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===Gs?Ai++:(Ai=0,Gs=e):Ai=0,Ti(0)}}function Qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function no(){return Gm(),Pm(),Km(),Zm()}function Zm(){if(at!==5)return!1;var e=sa,t=Vs;Vs=0;var n=fc(Ln),l=D.T,o=U.p;try{U.p=32>n?32:n,D.T=null,n=Xs,Xs=null;var s=sa,m=Ln;if(at=0,Cl=sa=null,Ln=0,(Re&6)!==0)throw Error(c(331));var x=Re;if(Re|=4,zm(s.current),Am(s,s.current,m,n),Re=x,Ti(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Pl,s)}catch{}return!0}finally{U.p=o,D.T=l,Qm(e,t)}}function Im(e,t,n){t=Ft(n,t),t=Es(e.stateNode,t,2),e=na(e,t,2),e!==null&&(Ql(e,2),cn(e))}function Oe(e,t,n){if(e.tag===3)Im(e,e,n);else for(;t!==null;){if(t.tag===3){Im(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ca===null||!ca.has(l))){e=Ft(n,e),n=Jh(2),l=na(t,n,2),l!==null&&(Wh(n,l,t,e),Ql(l,2),cn(l));break}}t=t.return}}function Qs(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new gx;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Ys=!0,o.add(n),e=Sx.bind(null,e,t,n),t.then(e,e))}function Sx(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(Ee&n)===n&&(Ge===4||Ge===3&&(Ee&62914560)===Ee&&300>Ct()-Ir?(Re&2)===0&&Nl(e,0):qs|=n,El===Ee&&(El=0)),cn(e)}function Jm(e,t){t===0&&(t=Gf()),e=Ra(e,t),e!==null&&(Ql(e,t),cn(e))}function wx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jm(e,n)}function Ex(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),Jm(e,n)}function Cx(e,t){return Ka(e,t)}var ao=null,Al=null,Zs=!1,lo=!1,Is=!1,fa=0;function cn(e){e!==Al&&e.next===null&&(Al===null?ao=Al=e:Al=Al.next=e),lo=!0,Zs||(Zs=!0,jx())}function Ti(e,t){if(!Is&&lo){Is=!0;do for(var n=!1,l=ao;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var s=0;else{var m=l.suspendedLanes,x=l.pingedLanes;s=(1<<31-jt(42|e)+1)-1,s&=o&~(m&~x),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,tp(l,s))}else s=Ee,s=cr(l,l===Ue?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Kl(l,s)||(n=!0,tp(l,s));l=l.next}while(n);Is=!1}}function Nx(){Wm()}function Wm(){lo=Zs=!1;var e=0;fa!==0&&Lx()&&(e=fa);for(var t=Ct(),n=null,l=ao;l!==null;){var o=l.next,s=$m(l,t);s===0?(l.next=null,n===null?ao=o:n.next=o,o===null&&(Al=n)):(n=l,(e!==0||(s&3)!==0)&&(lo=!0)),l=o}at!==0&&at!==5||Ti(e),fa!==0&&(fa=0)}function $m(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var m=31-jt(s),x=1<<m,C=o[m];C===-1?((x&n)===0||(x&l)!==0)&&(o[m]=Wy(x,t)):C<=t&&(e.expiredLanes|=x),s&=~x}if(t=Ue,n=Ee,n=cr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&cc(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Kl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&cc(l),fc(n)){case 2:case 8:n=Vf;break;case 32:n=lr;break;case 268435456:n=Xf;break;default:n=lr}return l=ep.bind(null,e),n=Ka(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&cc(l),e.callbackPriority=2,e.callbackNode=null,2}function ep(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var l=Ee;return l=cr(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Um(e,l,t),$m(e,Ct()),e.callbackNode!=null&&e.callbackNode===n?ep.bind(null,e):null)}function tp(e,t){if(no())return null;Um(e,t,!0)}function jx(){Hx(function(){(Re&6)!==0?Ka(Ff,Nx):Wm()})}function Js(){if(fa===0){var e=dl;e===0&&(e=ir,ir<<=1,(ir&261888)===0&&(ir=256)),fa=e}return fa}function np(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:dr(""+e)}function ap(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 Ax(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var s=np((o[pt]||null).action),m=l.submitter;m&&(t=(t=m[pt]||null)?np(t.formAction):m.getAttribute("formAction"),t!==null&&(s=t,m=null));var x=new gr("action","action",null,l,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(fa!==0){var C=m?ap(o,m):new FormData(o);vs(n,{pending:!0,data:C,method:o.method,action:s},null,C)}}else typeof s=="function"&&(x.preventDefault(),C=m?ap(o,m):new FormData(o),vs(n,{pending:!0,data:C,method:o.method,action:s},s,C))},currentTarget:o}]})}}for(var Ws=0;Ws<Mc.length;Ws++){var $s=Mc[Ws],Tx=$s.toLowerCase(),Rx=$s[0].toUpperCase()+$s.slice(1);It(Tx,"on"+Rx)}It(Md,"onAnimationEnd"),It(Ud,"onAnimationIteration"),It(Ld,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(G0,"onTransitionRun"),It(P0,"onTransitionStart"),It(K0,"onTransitionCancel"),It(Bd,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),zx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function lp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var m=l.length-1;0<=m;m--){var x=l[m],C=x.instance,B=x.currentTarget;if(x=x.listener,C!==s&&o.isPropagationStopped())break e;s=x,o.currentTarget=B;try{s(o)}catch(V){xr(V)}o.currentTarget=null,s=C}else for(m=0;m<l.length;m++){if(x=l[m],C=x.instance,B=x.currentTarget,x=x.listener,C!==s&&o.isPropagationStopped())break e;s=x,o.currentTarget=B;try{s(o)}catch(V){xr(V)}o.currentTarget=null,s=C}}}}function we(e,t){var n=t[dc];n===void 0&&(n=t[dc]=new Set);var l=e+"__bubble";n.has(l)||(ip(t,e,2,!1),n.add(l))}function eu(e,t,n){var l=0;t&&(l|=4),ip(n,e,l,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function tu(e){if(!e[io]){e[io]=!0,Wf.forEach(function(n){n!=="selectionchange"&&(zx.has(n)||eu(n,!1,e),eu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,eu("selectionchange",!1,t))}}function ip(e,t,n,l){switch(Mp(t)){case 2:var o=lb;break;case 8:o=ib;break;default:o=gu}n=o.bind(null,t,n,e),o=void 0,!Sc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function nu(e,t,n,l,o){var s=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===o)break;if(m===4)for(m=l.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;x!==null;){if(m=Za(x),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){l=s=m;continue e}x=x.parentNode}}l=l.return}ud(function(){var B=s,V=xc(n),P=[];e:{var H=Hd.get(e);if(H!==void 0){var q=gr,le=e;switch(e){case"keypress":if(mr(n)===0)break e;case"keydown":case"keyup":q=E0;break;case"focusin":le="focus",q=Nc;break;case"focusout":le="blur",q=Nc;break;case"beforeblur":case"afterblur":q=Nc;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":q=hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=j0;break;case Md:case Ud:case Ld:q=m0;break;case Bd:q=T0;break;case"scroll":case"scrollend":q=s0;break;case"wheel":q=z0;break;case"copy":case"cut":case"paste":q=g0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=pd;break;case"toggle":case"beforetoggle":q=_0}var ge=(t&4)!==0,Me=!ge&&(e==="scroll"||e==="scrollend"),_=ge?H!==null?H+"Capture":null:H;ge=[];for(var R=B,L;R!==null;){var X=R;if(L=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||L===null||_===null||(X=Jl(R,_),X!=null&&ge.push(zi(R,X,L))),Me)break;R=R.return}0<ge.length&&(H=new q(H,le,null,n,V),P.push({event:H,listeners:ge}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&n!==yc&&(le=n.relatedTarget||n.fromElement)&&(Za(le)||le[Qa]))break e;if((q||H)&&(H=V.window===V?V:(H=V.ownerDocument)?H.defaultView||H.parentWindow:window,q?(le=n.relatedTarget||n.toElement,q=B,le=le?Za(le):null,le!==null&&(Me=d(le),ge=le.tag,le!==Me||ge!==5&&ge!==27&&ge!==6)&&(le=null)):(q=null,le=B),q!==le)){if(ge=hd,X="onMouseLeave",_="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ge=pd,X="onPointerLeave",_="onPointerEnter",R="pointer"),Me=q==null?H:Il(q),L=le==null?H:Il(le),H=new ge(X,R+"leave",q,n,V),H.target=Me,H.relatedTarget=L,X=null,Za(V)===B&&(ge=new ge(_,R+"enter",le,n,V),ge.target=L,ge.relatedTarget=Me,X=ge),Me=X,q&&le)t:{for(ge=Ox,_=q,R=le,L=0,X=_;X;X=ge(X))L++;X=0;for(var fe=R;fe;fe=ge(fe))X++;for(;0<L-X;)_=ge(_),L--;for(;0<X-L;)R=ge(R),X--;for(;L--;){if(_===R||R!==null&&_===R.alternate){ge=_;break t}_=ge(_),R=ge(R)}ge=null}else ge=null;q!==null&&rp(P,H,q,ge,!1),le!==null&&Me!==null&&rp(P,Me,le,ge,!0)}}e:{if(H=B?Il(B):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var Ae=Ed;else if(Sd(H))if(Cd)Ae=F0;else{Ae=Y0;var oe=k0}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&vc(B.elementType)&&(Ae=Ed):Ae=q0;if(Ae&&(Ae=Ae(e,B))){wd(P,Ae,n,V);break e}oe&&oe(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&gc(H,"number",H.value)}switch(oe=B?Il(B):window,e){case"focusin":(Sd(oe)||oe.contentEditable==="true")&&(ll=oe,Oc=B,ii=null);break;case"focusout":ii=Oc=ll=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,_d(P,n,V);break;case"selectionchange":if(X0)break;case"keydown":case"keyup":_d(P,n,V)}var be;if(Ac)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else al?xd(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(gd&&n.locale!=="ko"&&(al||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&al&&(be=fd()):(Zn=V,wc="value"in Zn?Zn.value:Zn.textContent,al=!0)),oe=ro(B,Ce),0<oe.length&&(Ce=new md(Ce,e,null,n,V),P.push({event:Ce,listeners:oe}),be?Ce.data=be:(be=bd(n),be!==null&&(Ce.data=be)))),(be=M0?U0(e,n):L0(e,n))&&(Ce=ro(B,"onBeforeInput"),0<Ce.length&&(oe=new md("onBeforeInput","beforeinput",null,n,V),P.push({event:oe,listeners:Ce}),oe.data=be)),Ax(P,e,B,n,V)}lp(P,t)})}function zi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ro(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,s=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||s===null||(o=Jl(e,n),o!=null&&l.unshift(zi(e,o,s)),o=Jl(e,t),o!=null&&l.push(zi(e,o,s))),e.tag===3)return l;e=e.return}return[]}function Ox(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(e,t,n,l,o){for(var s=t._reactName,m=[];n!==null&&n!==l;){var x=n,C=x.alternate,B=x.stateNode;if(x=x.tag,C!==null&&C===l)break;x!==5&&x!==26&&x!==27||B===null||(C=B,o?(B=Jl(n,s),B!=null&&m.unshift(zi(n,B,C))):o||(B=Jl(n,s),B!=null&&m.push(zi(n,B,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var _x=/\r\n?/g,Dx=/\u0000|\uFFFD/g;function op(e){return(typeof e=="string"?e:""+e).replace(_x,`
|
|
9
|
+
`).replace(Dx,"")}function cp(e,t){return t=op(t),op(e)===t}function De(e,t,n,l,o,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||el(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&el(e,""+l);break;case"className":ur(e,"class",l);break;case"tabIndex":ur(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ur(e,n,l);break;case"style":cd(e,l,s);break;case"data":if(t!=="object"){ur(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=dr(""+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 s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",o.name,o,null),De(e,t,"formEncType",o.formEncType,o,null),De(e,t,"formMethod",o.formMethod,o,null),De(e,t,"formTarget",o.formTarget,o,null)):(De(e,t,"encType",o.encType,o,null),De(e,t,"method",o.method,o,null),De(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=dr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Sn);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(c(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=dr(""+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":we("beforetoggle",e),we("toggle",e),sr(e,"popover",l);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":sr(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=o0.get(n)||n,sr(e,n,l))}}function au(e,t,n,l,o,s){switch(n){case"style":cd(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(c(60));e.innerHTML=n}}break;case"children":typeof l=="string"?el(e,l):(typeof l=="number"||typeof l=="bigint")&&el(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$f.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),s=e[pt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,o),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):sr(e,n,l)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,o=!1,s;for(s in n)if(n.hasOwnProperty(s)){var m=n[s];if(m!=null)switch(s){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:De(e,t,s,m,n,null)}}o&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var x=s=m=o=null,C=null,B=null;for(l in n)if(n.hasOwnProperty(l)){var V=n[l];if(V!=null)switch(l){case"name":o=V;break;case"type":m=V;break;case"checked":C=V;break;case"defaultChecked":B=V;break;case"value":s=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(c(137,t));break;default:De(e,t,l,V,n,null)}}ld(e,s,x,C,B,m,o,!1);return;case"select":we("invalid",e),l=m=s=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":s=x;break;case"defaultValue":m=x;break;case"multiple":l=x;default:De(e,t,o,x,n,null)}t=s,n=m,e.multiple=!!l,t!=null?$a(e,!!l,t,!1):n!=null&&$a(e,!!l,n,!0);return;case"textarea":we("invalid",e),s=o=l=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":l=x;break;case"defaultValue":o=x;break;case"children":s=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(c(91));break;default:De(e,t,m,x,n,null)}rd(e,l,o,s);return;case"option":for(C in n)n.hasOwnProperty(C)&&(l=n[C],l!=null)&&(C==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":De(e,t,C,l,n,null));return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<Ri.length;l++)we(Ri[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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(B in n)if(n.hasOwnProperty(B)&&(l=n[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:De(e,t,B,l,n,null)}return;default:if(vc(t)){for(V in n)n.hasOwnProperty(V)&&(l=n[V],l!==void 0&&au(e,t,V,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&De(e,t,x,l,n,null))}function Mx(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 o=null,s=null,m=null,x=null,C=null,B=null,V=null;for(q in n){var P=n[q];if(n.hasOwnProperty(q)&&P!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=P;default:l.hasOwnProperty(q)||De(e,t,q,null,l,P)}}for(var H in l){var q=l[H];if(P=n[H],l.hasOwnProperty(H)&&(q!=null||P!=null))switch(H){case"type":s=q;break;case"name":o=q;break;case"checked":B=q;break;case"defaultChecked":V=q;break;case"value":m=q;break;case"defaultValue":x=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,t));break;default:q!==P&&De(e,t,H,q,l,P)}}pc(e,m,x,C,B,V,s,o);return;case"select":q=m=x=H=null;for(s in n)if(C=n[s],n.hasOwnProperty(s)&&C!=null)switch(s){case"value":break;case"multiple":q=C;default:l.hasOwnProperty(s)||De(e,t,s,null,l,C)}for(o in l)if(s=l[o],C=n[o],l.hasOwnProperty(o)&&(s!=null||C!=null))switch(o){case"value":H=s;break;case"defaultValue":x=s;break;case"multiple":m=s;default:s!==C&&De(e,t,o,s,l,C)}t=x,n=m,l=q,H!=null?$a(e,!!n,H,!1):!!l!=!!n&&(t!=null?$a(e,!!n,t,!0):$a(e,!!n,n?[]:"",!1));return;case"textarea":q=H=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:De(e,t,x,null,l,o)}for(m in l)if(o=l[m],s=n[m],l.hasOwnProperty(m)&&(o!=null||s!=null))switch(m){case"value":H=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(c(91));break;default:o!==s&&De(e,t,m,o,l,s)}id(e,H,q);return;case"option":for(var le in n)H=n[le],n.hasOwnProperty(le)&&H!=null&&!l.hasOwnProperty(le)&&(le==="selected"?e.selected=!1:De(e,t,le,null,l,H));for(C in l)H=l[C],q=n[C],l.hasOwnProperty(C)&&H!==q&&(H!=null||q!=null)&&(C==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":De(e,t,C,H,l,q));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 ge in n)H=n[ge],n.hasOwnProperty(ge)&&H!=null&&!l.hasOwnProperty(ge)&&De(e,t,ge,null,l,H);for(B in l)if(H=l[B],q=n[B],l.hasOwnProperty(B)&&H!==q&&(H!=null||q!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:De(e,t,B,H,l,q)}return;default:if(vc(t)){for(var Me in n)H=n[Me],n.hasOwnProperty(Me)&&H!==void 0&&!l.hasOwnProperty(Me)&&au(e,t,Me,void 0,l,H);for(V in l)H=l[V],q=n[V],!l.hasOwnProperty(V)||H===q||H===void 0&&q===void 0||au(e,t,V,H,l,q);return}}for(var _ in n)H=n[_],n.hasOwnProperty(_)&&H!=null&&!l.hasOwnProperty(_)&&De(e,t,_,null,l,H);for(P in l)H=l[P],q=n[P],!l.hasOwnProperty(P)||H===q||H==null&&q==null||De(e,t,P,H,l,q)}function sp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ux(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],s=o.transferSize,m=o.initiatorType,x=o.duration;if(s&&x&&sp(m)){for(m=0,x=o.responseEnd,l+=1;l<n.length;l++){var C=n[l],B=C.startTime;if(B>x)break;var V=C.transferSize,P=C.initiatorType;V&&sp(P)&&(C=C.responseEnd,m+=V*(C<x?1:(x-B)/(C-B)))}if(--l,t+=8*(s+m)/(o.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 lu=null,iu=null;function oo(e){return e.nodeType===9?e:e.ownerDocument}function up(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 fp(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 ru(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 ou=null;function Lx(){var e=window.event;return e&&e.type==="popstate"?e===ou?!1:(ou=e,!0):(ou=null,!1)}var dp=typeof setTimeout=="function"?setTimeout:void 0,Bx=typeof clearTimeout=="function"?clearTimeout:void 0,hp=typeof Promise=="function"?Promise:void 0,Hx=typeof queueMicrotask=="function"?queueMicrotask:typeof hp<"u"?function(e){return hp.resolve(null).then(e).catch(kx)}:dp;function kx(e){setTimeout(function(){throw e})}function da(e){return e==="head"}function mp(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),Ol(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Oi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Oi(n);for(var s=n.firstChild;s;){var m=s.nextSibling,x=s.nodeName;s[Zl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=m}}else n==="body"&&Oi(e.ownerDocument.body);n=o}while(n);Ol(t)}function pp(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 cu(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":cu(n),hc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Yx(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Zl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Kt(e.nextSibling),e===null)break}return null}function qx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Kt(e.nextSibling),e===null))return null;return e}function gp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Kt(e.nextSibling),e===null))return null;return e}function su(e){return e.data==="$?"||e.data==="$~"}function uu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fx(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 Kt(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 fu=null;function vp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Kt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function yp(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 xp(e,t,n){switch(t=oo(n),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hc(e)}var Qt=new Map,bp=new Set;function co(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=U.d;U.d={f:Vx,r:Xx,D:Gx,C:Px,L:Kx,m:Qx,X:Ix,S:Zx,M:Jx};function Vx(){var e=Bn.f(),t=$r();return e||t}function Xx(e){var t=Ia(e);t!==null&&t.tag===5&&t.type==="form"?Bh(t):Bn.r(e)}var Tl=typeof document>"u"?null:document;function Sp(e,t,n){var l=Tl;if(l&&typeof t=="string"&&t){var o=Yt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),bp.has(o)||(bp.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function Gx(e){Bn.D(e),Sp("dns-prefetch",e,null)}function Px(e,t){Bn.C(e,t),Sp("preconnect",e,t)}function Kx(e,t,n){Bn.L(e,t,n);var l=Tl;if(l&&e&&t){var o='link[rel="preload"][as="'+Yt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Yt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Yt(n.imageSizes)+'"]')):o+='[href="'+Yt(e)+'"]';var s=o;switch(t){case"style":s=Rl(e);break;case"script":s=zl(e)}Qt.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qt.set(s,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(_i(s))||t==="script"&&l.querySelector(Di(s))||(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function Qx(e,t){Bn.m(e,t);var n=Tl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Yt(l)+'"][href="'+Yt(e)+'"]',s=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=zl(e)}if(!Qt.has(s)&&(e=b({rel:"modulepreload",href:e},t),Qt.set(s,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Di(s)))return}l=n.createElement("link"),ut(l,"link",e),lt(l),n.head.appendChild(l)}}}function Zx(e,t,n){Bn.S(e,t,n);var l=Tl;if(l&&e){var o=Ja(l).hoistableStyles,s=Rl(e);t=t||"default";var m=o.get(s);if(!m){var x={loading:0,preload:null};if(m=l.querySelector(_i(s)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qt.get(s))&&du(e,n);var C=m=l.createElement("link");lt(C),ut(C,"link",e),C._p=new Promise(function(B,V){C.onload=B,C.onerror=V}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,so(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:x},o.set(s,m)}}}function Ix(e,t){Bn.X(e,t);var n=Tl;if(n&&e){var l=Ja(n).hoistableScripts,o=zl(e),s=l.get(o);s||(s=n.querySelector(Di(o)),s||(e=b({src:e,async:!0},t),(t=Qt.get(o))&&hu(e,t),s=n.createElement("script"),lt(s),ut(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(o,s))}}function Jx(e,t){Bn.M(e,t);var n=Tl;if(n&&e){var l=Ja(n).hoistableScripts,o=zl(e),s=l.get(o);s||(s=n.querySelector(Di(o)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Qt.get(o))&&hu(e,t),s=n.createElement("script"),lt(s),ut(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(o,s))}}function wp(e,t,n,l){var o=(o=ie.current)?co(o):null;if(!o)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Rl(n.href),n=Ja(o).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=Rl(n.href);var s=Ja(o).hoistableStyles,m=s.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,m),(s=o.querySelector(_i(e)))&&!s._p&&(m.instance=s,m.state.loading=5),Qt.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},Qt.set(e,n),s||Wx(o,e,n,m.state))),t&&l===null)throw Error(c(528,""));return m}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zl(n),n=Ja(o).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(c(444,e))}}function Rl(e){return'href="'+Yt(e)+'"'}function _i(e){return'link[rel="stylesheet"]['+e+"]"}function Ep(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Wx(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}),ut(t,"link",n),lt(t),e.head.appendChild(t))}function zl(e){return'[src="'+Yt(e)+'"]'}function Di(e){return"script[async]"+e}function Cp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Yt(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var o=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ut(l,"style",o),so(l,n.precedence,e),t.instance=l;case"stylesheet":o=Rl(n.href);var s=e.querySelector(_i(o));if(s)return t.state.loading|=4,t.instance=s,lt(s),s;l=Ep(n),(o=Qt.get(o))&&du(l,o),s=(e.ownerDocument||e).createElement("link"),lt(s);var m=s;return m._p=new Promise(function(x,C){m.onload=x,m.onerror=C}),ut(s,"link",l),t.state.loading|=4,so(s,n.precedence,e),t.instance=s;case"script":return s=zl(n.src),(o=e.querySelector(Di(s)))?(t.instance=o,lt(o),o):(l=n,(o=Qt.get(s))&&(l=b({},n),hu(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),ut(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,so(l,n.precedence,e));return t.instance}function so(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,s=o,m=0;m<l.length;m++){var x=l[m];if(x.dataset.precedence===t)s=x;else if(s!==o)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uo=null;function Np(e,t,n){if(uo===null){var l=new Map,o=uo=new Map;o.set(n,l)}else o=uo,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var s=n[o];if(!(s[Zl]||s[rt]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var m=s.getAttribute(t)||"";m=e+m;var x=l.get(m);x?x.push(s):l.set(m,[s])}}return l}function jp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function $x(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 Ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function eb(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 o=Rl(l.href),s=t.querySelector(_i(o));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,lt(s);return}s=t.ownerDocument||t,l=Ep(l),(o=Qt.get(o))&&du(l,o),s=s.createElement("link"),lt(s);var m=s;m._p=new Promise(function(x,C){m.onload=x,m.onerror=C}),ut(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var mu=0;function tb(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&mu===0&&(mu=62500*Ux());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>mu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ho=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ho=new Map,t.forEach(nb,e),ho=null,fo.call(e))}function nb(e,t){if(!(t.state.loading&4)){var n=ho.get(e);if(n)var l=n.get(null);else{n=new Map,ho.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<o.length;s++){var m=o[s];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}o=t.instance,m=o.getAttribute("data-precedence"),s=n.get(m)||l,s===l&&n.set(null,o),n.set(m,o),this.count++,l=fo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),s?s.parentNode.insertBefore(o,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Mi={$$typeof:M,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function ab(e,t,n,l,o,s,m,x,C){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=sc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sc(0),this.hiddenUpdates=sc(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=s,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Tp(e,t,n,l,o,s,m,x,C,B,V,P){return e=new ab(e,t,n,m,C,B,V,P,x),t=1,s===!0&&(t|=24),s=Tt(3,null,null,t),e.current=s,s.stateNode=e,t=Kc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},Jc(s),e}function Rp(e){return e?(e=ol,e):ol}function zp(e,t,n,l,o,s){o=Rp(o),l.context===null?l.context=o:l.pendingContext=o,l=ta(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=na(e,l,t),n!==null&&(St(n,e,t),di(n,e,t))}function Op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pu(e,t){Op(e,t),(e=e.alternate)&&Op(e,t)}function _p(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&St(t,e,67108864),pu(e,67108864)}}function Dp(e){if(e.tag===13||e.tag===31){var t=Dt();t=uc(t);var n=Ra(e,t);n!==null&&St(n,e,t),pu(e,t)}}var po=!0;function lb(e,t,n,l){var o=D.T;D.T=null;var s=U.p;try{U.p=2,gu(e,t,n,l)}finally{U.p=s,D.T=o}}function ib(e,t,n,l){var o=D.T;D.T=null;var s=U.p;try{U.p=8,gu(e,t,n,l)}finally{U.p=s,D.T=o}}function gu(e,t,n,l){if(po){var o=vu(l);if(o===null)nu(e,t,l,go,n),Up(e,l);else if(ob(o,e,t,n,l))l.stopPropagation();else if(Up(e,l),t&4&&-1<rb.indexOf(e)){for(;o!==null;){var s=Ia(o);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var m=Ca(s.pendingLanes);if(m!==0){var x=s;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var C=1<<31-jt(m);x.entanglements[1]|=C,m&=~C}cn(s),(Re&6)===0&&(Jr=Ct()+500,Ti(0))}}break;case 31:case 13:x=Ra(s,2),x!==null&&St(x,s,2),$r(),pu(s,2)}if(s=vu(l),s===null&&nu(e,t,l,go,n),s===o)break;o=s}o!==null&&l.stopPropagation()}else nu(e,t,l,null,n)}}function vu(e){return e=xc(e),yu(e)}var go=null;function yu(e){if(go=null,e=Za(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 go=e,null}function Mp(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(Gy()){case Ff:return 2;case Vf:return 8;case lr:case Py:return 32;case Xf:return 268435456;default:return 32}default:return 32}}var xu=!1,ha=null,ma=null,pa=null,Ui=new Map,Li=new Map,ga=[],rb="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 Up(e,t){switch(e){case"focusin":case"focusout":ha=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":Ui.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(t.pointerId)}}function Bi(e,t,n,l,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Ia(t),t!==null&&_p(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ob(e,t,n,l,o){switch(t){case"focusin":return ha=Bi(ha,e,t,n,l,o),!0;case"dragenter":return ma=Bi(ma,e,t,n,l,o),!0;case"mouseover":return pa=Bi(pa,e,t,n,l,o),!0;case"pointerover":var s=o.pointerId;return Ui.set(s,Bi(Ui.get(s)||null,e,t,n,l,o)),!0;case"gotpointercapture":return s=o.pointerId,Li.set(s,Bi(Li.get(s)||null,e,t,n,l,o)),!0}return!1}function Lp(e){var t=Za(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,If(e.priority,function(){Dp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,If(e.priority,function(){Dp(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 vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);yc=l,n.target.dispatchEvent(l),yc=null}else return t=Ia(n),t!==null&&_p(t),e.blockedOn=n,!1;t.shift()}return!0}function Bp(e,t,n){vo(e)&&n.delete(t)}function cb(){xu=!1,ha!==null&&vo(ha)&&(ha=null),ma!==null&&vo(ma)&&(ma=null),pa!==null&&vo(pa)&&(pa=null),Ui.forEach(Bp),Li.forEach(Bp)}function yo(e,t){e.blockedOn===t&&(e.blockedOn=null,xu||(xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,cb)))}var xo=null;function Hp(e){xo!==e&&(xo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){xo===e&&(xo=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(yu(l||n)===null)continue;break}var s=Ia(n);s!==null&&(e.splice(t,3),t-=3,vs(s,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function Ol(e){function t(C){return yo(C,e)}ha!==null&&yo(ha,e),ma!==null&&yo(ma,e),pa!==null&&yo(pa,e),Ui.forEach(t),Li.forEach(t);for(var n=0;n<ga.length;n++){var l=ga[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ga.length&&(n=ga[0],n.blockedOn===null);)Lp(n),n.blockedOn===null&&ga.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],s=n[l+1],m=o[pt]||null;if(typeof s=="function")m||Hp(n);else if(m){var x=null;if(s&&s.hasAttribute("formAction")){if(o=s,m=s[pt]||null)x=m.formAction;else if(yu(o)!==null)continue}else x=m.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),Hp(n)}}}function kp(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=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),o!==null&&(o(),o=null)}}}function bu(e){this._internalRoot=e}bo.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var n=t.current,l=Dt();zp(n,l,e,t,null,null)},bo.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zp(e.current,2,null,e,null,null),$r(),t[Qa]=null}};function bo(e){this._internalRoot=e}bo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ga.length&&t!==0&&t<ga[n].priority;n++);ga.splice(n,0,e),n===0&&Lp(e)}};var Yp=i.version;if(Yp!=="19.2.3")throw Error(c(527,Yp,"19.2.3"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var sb={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var So=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!So.isDisabled&&So.supportsFiber)try{Pl=So.inject(sb),Nt=So}catch{}}return ki.createRoot=function(e,t){if(!u(e))throw Error(c(299));var n=!1,l="",o=Kh,s=Qh,m=Zh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Tp(e,1,!1,null,null,n,l,null,o,s,m,kp),e[Qa]=t.current,tu(e),new bu(t)},ki.hydrateRoot=function(e,t,n){if(!u(e))throw Error(c(299));var l=!1,o="",s=Kh,m=Qh,x=Zh,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Tp(e,1,!0,t,n??null,l,o,C,s,m,x,kp),t.context=Rp(null),n=t.current,l=Dt(),l=uc(l),o=ta(l),o.callback=null,na(n,o,l),n=l,t.current.lanes=n,Ql(t,n),cn(t),e[Qa]=t.current,tu(e),new bo(t)},ki.version="19.2.3",ki}var Ip;function xb(){if(Ip)return Eu.exports;Ip=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(),Eu.exports=yb(),Eu.exports}var bb=xb();var Jp="popstate";function Sb(a={}){function i(c,u){let{pathname:d,search:h,hash:p}=c.location;return Gu("",{pathname:d,search:h,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(c,u){return typeof u=="string"?u:Ii(u)}return Eb(i,r,null,a)}function Ve(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function Bt(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function wb(){return Math.random().toString(36).substring(2,10)}function Wp(a,i){return{usr:a.state,key:a.key,idx:i}}function Gu(a,i,r=null,c){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?kl(i):i,state:r,key:i&&i.key||c||wb()}}function Ii({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 kl(a){let i={};if(a){let r=a.indexOf("#");r>=0&&(i.hash=a.substring(r),a=a.substring(0,r));let c=a.indexOf("?");c>=0&&(i.search=a.substring(c),a=a.substring(0,c)),a&&(i.pathname=a)}return i}function Eb(a,i,r,c={}){let{window:u=document.defaultView,v5Compat:d=!1}=c,h=u.history,p="POP",g=null,v=S();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function S(){return(h.state||{idx:null}).idx}function b(){p="POP";let A=S(),T=A==null?null:A-v;v=A,g&&g({action:p,location:w.location,delta:T})}function j(A,T){p="PUSH";let z=Gu(w.location,A,T);v=S()+1;let M=Wp(z,v),F=w.createHref(z);try{h.pushState(M,"",F)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;u.location.assign(F)}d&&g&&g({action:p,location:w.location,delta:1})}function N(A,T){p="REPLACE";let z=Gu(w.location,A,T);v=S();let M=Wp(z,v),F=w.createHref(z);h.replaceState(M,"",F),d&&g&&g({action:p,location:w.location,delta:0})}function O(A){return Cb(A)}let w={get action(){return p},get location(){return a(u,h)},listen(A){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(Jp,b),g=A,()=>{u.removeEventListener(Jp,b),g=null}},createHref(A){return i(u,A)},createURL:O,encodeLocation(A){let T=O(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:j,replace:N,go(A){return h.go(A)}};return w}function Cb(a,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(r,"No window.location.(origin|href) available to create URL");let c=typeof a=="string"?a:Ii(a);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Vg(a,i,r="/"){return Nb(a,i,r,!1)}function Nb(a,i,r,c){let u=typeof i=="string"?kl(i):i,d=qn(u.pathname||"/",r);if(d==null)return null;let h=Xg(a);jb(h);let p=null;for(let g=0;p==null&&g<h.length;++g){let v=Bb(d);p=Ub(h[g],v,c)}return p}function Xg(a,i=[],r=[],c="",u=!1){let d=(h,p,g=u,v)=>{let S={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(c)&&g)return;Ve(S.relativePath.startsWith(c),`Absolute route path "${S.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(c.length)}let b=Yn([c,S.relativePath]),j=r.concat(S);h.children&&h.children.length>0&&(Ve(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Xg(h.children,i,j,b,g)),!(h.path==null&&!h.index)&&i.push({path:b,score:Db(b,h.index),routesMeta:j})};return a.forEach((h,p)=>{if(h.path===""||!h.path?.includes("?"))d(h,p);else for(let g of Gg(h.path))d(h,p,!0,g)}),i}function Gg(a){let i=a.split("/");if(i.length===0)return[];let[r,...c]=i,u=r.endsWith("?"),d=r.replace(/\?$/,"");if(c.length===0)return u?[d,""]:[d];let h=Gg(c.join("/")),p=[];return p.push(...h.map(g=>g===""?d:[d,g].join("/"))),u&&p.push(...h),p.map(g=>a.startsWith("/")&&g===""?"/":g)}function jb(a){a.sort((i,r)=>i.score!==r.score?r.score-i.score:Mb(i.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var Ab=/^:[\w-]+$/,Tb=3,Rb=2,zb=1,Ob=10,_b=-2,$p=a=>a==="*";function Db(a,i){let r=a.split("/"),c=r.length;return r.some($p)&&(c+=_b),i&&(c+=Rb),r.filter(u=>!$p(u)).reduce((u,d)=>u+(Ab.test(d)?Tb:d===""?zb:Ob),c)}function Mb(a,i){return a.length===i.length&&a.slice(0,-1).every((c,u)=>c===i[u])?a[a.length-1]-i[i.length-1]:0}function Ub(a,i,r=!1){let{routesMeta:c}=a,u={},d="/",h=[];for(let p=0;p<c.length;++p){let g=c[p],v=p===c.length-1,S=d==="/"?i:i.slice(d.length)||"/",b=Bo({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},S),j=g.route;if(!b&&v&&r&&!c[c.length-1].route.index&&(b=Bo({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},S)),!b)return null;Object.assign(u,b.params),h.push({params:u,pathname:Yn([d,b.pathname]),pathnameBase:qb(Yn([d,b.pathnameBase])),route:j}),b.pathnameBase!=="/"&&(d=Yn([d,b.pathnameBase]))}return h}function Bo(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,c]=Lb(a.path,a.caseSensitive,a.end),u=i.match(r);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:c.reduce((v,{paramName:S,isOptional:b},j)=>{if(S==="*"){let O=p[j]||"";h=d.slice(0,d.length-O.length).replace(/(.)\/+$/,"$1")}const N=p[j];return b&&!N?v[S]=void 0:v[S]=(N||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:h,pattern:a}}function Lb(a,i=!1,r=!0){Bt(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 c=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,g)=>(c.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(c.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),c]}function Bb(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Bt(!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 qn(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=a.charAt(r);return c&&c!=="/"?null:a.slice(r)||"/"}var Pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hb=a=>Pg.test(a);function kb(a,i="/"){let{pathname:r,search:c="",hash:u=""}=typeof a=="string"?kl(a):a,d;if(r)if(Hb(r))d=r;else{if(r.includes("//")){let h=r;r=r.replace(/\/\/+/g,"/"),Bt(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${r}`)}r.startsWith("/")?d=eg(r.substring(1),"/"):d=eg(r,i)}else d=i;return{pathname:d,search:Fb(c),hash:Vb(u)}}function eg(a,i){let r=i.replace(/\/+$/,"").split("/");return a.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Au(a,i,r,c){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. 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 Yb(a){return a.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function ff(a){let i=Yb(a);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function df(a,i,r,c=!1){let u;typeof a=="string"?u=kl(a):(u={...a},Ve(!u.pathname||!u.pathname.includes("?"),Au("?","pathname","search",u)),Ve(!u.pathname||!u.pathname.includes("#"),Au("#","pathname","hash",u)),Ve(!u.search||!u.search.includes("#"),Au("#","search","hash",u)));let d=a===""||u.pathname==="",h=d?"/":u.pathname,p;if(h==null)p=r;else{let b=i.length-1;if(!c&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),b-=1;u.pathname=j.join("/")}p=b>=0?i[b]:"/"}let g=kb(u,p),v=h&&h!=="/"&&h.endsWith("/"),S=(d||h===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(v||S)&&(g.pathname+="/"),g}var Yn=a=>a.join("/").replace(/\/\/+/g,"/"),qb=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Fb=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Vb=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Xb=class{constructor(a,i,r,c=!1){this.status=a,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Gb(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Pb(a){return a.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qg(a,i){let r=a;if(typeof r!="string"||!Pg.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,u=!1;if(Kg)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),p=qn(h.pathname,i);h.origin===d.origin&&p!=null?r=p+h.search+h.hash:u=!0}catch{Bt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Zg=["POST","PUT","PATCH","DELETE"];new Set(Zg);var Kb=["GET",...Zg];new Set(Kb);var Yl=y.createContext(null);Yl.displayName="DataRouter";var Qo=y.createContext(null);Qo.displayName="DataRouterState";var Qb=y.createContext(!1),Ig=y.createContext({isTransitioning:!1});Ig.displayName="ViewTransition";var Zb=y.createContext(new Map);Zb.displayName="Fetchers";var Ib=y.createContext(null);Ib.displayName="Await";var Ht=y.createContext(null);Ht.displayName="Navigation";var $i=y.createContext(null);$i.displayName="Location";var mn=y.createContext({outlet:null,matches:[],isDataRoute:!1});mn.displayName="Route";var hf=y.createContext(null);hf.displayName="RouteError";var Jg="REACT_ROUTER_ERROR",Jb="REDIRECT",Wb="ROUTE_ERROR_RESPONSE";function $b(a){if(a.startsWith(`${Jg}:${Jb}:{`))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 eS(a){if(a.startsWith(`${Jg}:${Wb}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Xb(i.status,i.statusText,i.data)}catch{}}function tS(a,{relative:i}={}){Ve(ql(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=y.useContext(Ht),{hash:u,pathname:d,search:h}=er(a,{relative:i}),p=d;return r!=="/"&&(p=d==="/"?r:Yn([r,d])),c.createHref({pathname:p,search:h,hash:u})}function ql(){return y.useContext($i)!=null}function pn(){return Ve(ql(),"useLocation() may be used only in the context of a <Router> component."),y.useContext($i).location}var Wg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $g(a){y.useContext(Ht).static||y.useLayoutEffect(a)}function gn(){let{isDataRoute:a}=y.useContext(mn);return a?mS():nS()}function nS(){Ve(ql(),"useNavigate() may be used only in the context of a <Router> component.");let a=y.useContext(Yl),{basename:i,navigator:r}=y.useContext(Ht),{matches:c}=y.useContext(mn),{pathname:u}=pn(),d=JSON.stringify(ff(c)),h=y.useRef(!1);return $g(()=>{h.current=!0}),y.useCallback((g,v={})=>{if(Bt(h.current,Wg),!h.current)return;if(typeof g=="number"){r.go(g);return}let S=df(g,JSON.parse(d),u,v.relative==="path");a==null&&i!=="/"&&(S.pathname=S.pathname==="/"?i:Yn([i,S.pathname])),(v.replace?r.replace:r.push)(S,v.state,v)},[i,r,d,u,a])}y.createContext(null);function er(a,{relative:i}={}){let{matches:r}=y.useContext(mn),{pathname:c}=pn(),u=JSON.stringify(ff(r));return y.useMemo(()=>df(a,JSON.parse(u),c,i==="path"),[a,u,c,i])}function aS(a,i){return ev(a,i)}function ev(a,i,r,c,u){Ve(ql(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=y.useContext(Ht),{matches:h}=y.useContext(mn),p=h[h.length-1],g=p?p.params:{},v=p?p.pathname:"/",S=p?p.pathnameBase:"/",b=p&&p.route;{let z=b&&b.path||"";nv(v,!b||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${z}">) 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=mn(),N;if(i){let O=typeof i=="string"?Ua(i):i;Ve(b==="/"||O.pathname?.startsWith(b),`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 "${b}" but pathname "${O.pathname}" was given in the \`location\` prop.`),N=O}else N=C;let D=N.pathname||"/",w=D;if(b!=="/"){let O=b.replace(/^\//,"").split("/");w="/"+D.replace(/^\//,"").split("/").slice(O.length).join("/")}let T=Ug(l,{pathname:w});Bt(S||T!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Bt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.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=Pb(T&&T.map(O=>Object.assign({},O,{params:Object.assign({},g,O.params),pathname:Bn([b,d.encodeLocation?d.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?b:Bn([b,d.encodeLocation?d.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),h,o,r,u);return i&&R?v.createElement(Zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},R):R}function Fb(){let l=eS(),i=_b(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),o=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:d},"ErrorBoundary")," or"," ",v.createElement("code",{style:d},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},i),o?v.createElement("pre",{style:u},o):null,h)}var Kb=v.createElement(Fb,null),Qg=class extends v.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const o=qb(l.digest);o&&(l=o)}let i=l!==void 0?v.createElement(hn.Provider,{value:this.props.routeContext},v.createElement(sf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?v.createElement(Qb,{error:l},i):i}};Qg.contextType=Ub;var ju=new WeakMap;function Qb({children:l,error:i}){let{basename:o}=v.useContext(Ht);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Yb(i.digest);if(r){let u=ju.get(i);if(u)throw u;let d=Yg(r.location,o);if(kg&&!ju.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw ju.set(i,h),h}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return l}function Zb({routeContext:l,match:i,children:o}){let r=v.useContext(La);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),v.createElement(hn.Provider,{value:l},o)}function Pb(l,i=[],o=null,r=null,u=null){if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let d=l,h=o?.errors;if(h!=null){let b=d.findIndex(S=>S.route.id&&h?.[S.route.id]!==void 0);Ve(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,b+1))}let p=!1,g=-1;if(o)for(let b=0;b<d.length;b++){let S=d[b];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=b),S.route.id){let{loaderData:C,errors:N}=o,D=S.route.loader&&!C.hasOwnProperty(S.route.id)&&(!N||N[S.route.id]===void 0);if(S.route.lazy||D){p=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}let y=o&&r?(b,S)=>{r(b,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Db(o.matches),errorInfo:S})}:void 0;return d.reduceRight((b,S,C)=>{let N,D=!1,w=null,T=null;o&&(N=h&&S.route.id?h[S.route.id]:void 0,w=S.route.errorElement||Kb,p&&(g<0&&C===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,T=null):g===C&&(D=!0,T=S.route.hydrateFallbackElement||null)));let R=i.concat(d.slice(0,C+1)),O=()=>{let M;return N?M=w:D?M=T:S.route.Component?M=v.createElement(S.route.Component,null):S.route.element?M=S.route.element:M=b,v.createElement(Zb,{match:S,routeContext:{outlet:b,matches:R,isDataRoute:o!=null},children:M})};return o&&(S.route.ErrorBoundary||S.route.errorElement||C===0)?v.createElement(Qg,{location:o.location,revalidation:o.revalidation,component:w,error:N,children:O(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:y}):O()},null)}function uf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jb(l){let i=v.useContext(La);return Ve(i,uf(l)),i}function Ib(l){let i=v.useContext(Qo);return Ve(i,uf(l)),i}function Wb(l){let i=v.useContext(hn);return Ve(i,uf(l)),i}function ff(l){let i=Wb(l),o=i.matches[i.matches.length-1];return Ve(o.route.id,`${l} can only be used on routes that contain a unique "id"`),o.route.id}function $b(){return ff("useRouteId")}function eS(){let l=v.useContext(sf),i=Ib("useRouteError"),o=ff("useRouteError");return l!==void 0?l:i.errors?.[o]}function tS(){let{router:l}=Jb("useNavigate"),i=ff("useNavigate"),o=v.useRef(!1);return Fg(()=>{o.current=!0}),v.useCallback(async(u,d={})=>{Bt(o.current,Gg),o.current&&(typeof u=="number"?await l.navigate(u):await l.navigate(u,{fromRouteId:i,...d}))},[l,i])}var Kp={};function Zg(l,i,o){!i&&!Kp[l]&&(Kp[l]=!0,Bt(!1,o))}v.memo(nS);function nS({routes:l,future:i,state:o,onError:r}){return Kg(l,void 0,o,r,i)}function kn({to:l,replace:i,state:o,relative:r}){Ve(Ba(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=v.useContext(Ht);Bt(!u,"<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}=v.useContext(hn),{pathname:h}=mn(),p=Xn(),g=rf(l,of(d),h,r==="path"),y=JSON.stringify(g);return v.useEffect(()=>{p(JSON.parse(y),{replace:i,state:o,relative:r})},[p,y,r,i,o]),null}function Dt(l){Ve(!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 lS({basename:l="/",children:i=null,location:o,navigationType:r="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){Ve(!Ba(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:p,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[p,u,d,h]);typeof o=="string"&&(o=Ua(o));let{pathname:y="/",search:b="",hash:S="",state:C=null,key:N="default"}=o,D=v.useMemo(()=>{let w=Hn(y,p);return w==null?null:{location:{pathname:w,search:b,hash:S,state:C,key:N},navigationType:r}},[p,y,b,S,C,N,r]);return Bt(D!=null,`<Router basename="${p}"> is not able to match the URL "${y}${b}${S}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:v.createElement(Ht.Provider,{value:g},v.createElement(Zi.Provider,{children:i,value:D}))}function aS({children:l,location:i}){return Gb(Xu(l),i)}function Xu(l,i=[]){let o=[];return v.Children.forEach(l,(r,u)=>{if(!v.isValidElement(r))return;let d=[...i,u];if(r.type===v.Fragment){o.push.apply(o,Xu(r.props.children,d));return}Ve(r.type===Dt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Xu(r.props.children,d)),o.push(h)}),o}var Ro="get",Oo="application/x-www-form-urlencoded";function Zo(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function iS(l){return Zo(l)&&l.tagName.toLowerCase()==="button"}function cS(l){return Zo(l)&&l.tagName.toLowerCase()==="form"}function oS(l){return Zo(l)&&l.tagName.toLowerCase()==="input"}function rS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function sS(l,i){return l.button===0&&(!i||i==="_self")&&!rS(l)}function Gu(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((i,o)=>{let r=l[o];return i.concat(Array.isArray(r)?r.map(u=>[o,u]):[[o,r]])},[]))}function uS(l,i){let o=Gu(l);return i&&i.forEach((r,u)=>{o.has(u)||i.getAll(u).forEach(d=>{o.append(u,d)})}),o}var xo=null;function fS(){if(xo===null)try{new FormData(document.createElement("form"),0),xo=!1}catch{xo=!0}return xo}var dS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tu(l){return l!=null&&!dS.has(l)?(Bt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Oo}"`),null):l}function hS(l,i){let o,r,u,d,h;if(cS(l)){let p=l.getAttribute("action");r=p?Hn(p,i):null,o=l.getAttribute("method")||Ro,u=Tu(l.getAttribute("enctype"))||Oo,d=new FormData(l)}else if(iS(l)||oS(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=l.getAttribute("formaction")||p.getAttribute("action");if(r=g?Hn(g,i):null,o=l.getAttribute("formmethod")||p.getAttribute("method")||Ro,u=Tu(l.getAttribute("formenctype"))||Tu(p.getAttribute("enctype"))||Oo,d=new FormData(p,l),!fS()){let{name:y,type:b,value:S}=l;if(b==="image"){let C=y?`${y}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else y&&d.append(y,S)}}else{if(Zo(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ro,r=null,u=Oo,h=l}return d&&u==="text/plain"&&(h=d,d=void 0),{action:r,method:o.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function df(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function mS(l,i,o,r){let u=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${r}`:u.pathname=`${u.pathname}.${r}`:u.pathname==="/"?u.pathname=`_root.${r}`:i&&Hn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${r}`,u}async function pS(l,i){if(l.id in i)return i[l.id];try{let o=await import(l.module);return i[l.id]=o,o}catch(o){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gS(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function vS(l,i,o){let r=await Promise.all(l.map(async u=>{let d=i.routes[u.route.id];if(d){let h=await pS(d,o);return h.links?h.links():[]}return[]}));return SS(r.flat(1).filter(gS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Qp(l,i,o,r,u,d){let h=(g,y)=>o[y]?g.route.id!==o[y].route.id:!0,p=(g,y)=>o[y].pathname!==g.pathname||o[y].route.path?.endsWith("*")&&o[y].params["*"]!==g.params["*"];return d==="assets"?i.filter((g,y)=>h(g,y)||p(g,y)):d==="data"?i.filter((g,y)=>{let b=r.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(h(g,y)||p(g,y))return!0;if(g.route.shouldRevalidate){let S=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function yS(l,i,{includeHydrateFallback:o}={}){return xS(l.map(r=>{let u=i.routes[r.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function xS(l){return[...new Set(l)]}function bS(l){let i={},o=Object.keys(l).sort();for(let r of o)i[r]=l[r];return i}function SS(l,i){let o=new Set;return new Set(i),l.reduce((r,u)=>{let d=JSON.stringify(bS(u));return o.has(d)||(o.add(d),r.push({key:d,link:u})),r},[])}function Pg(){let l=v.useContext(La);return df(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function wS(){let l=v.useContext(Qo);return df(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var hf=v.createContext(void 0);hf.displayName="FrameworkContext";function Jg(){let l=v.useContext(hf);return df(l,"You must render this element inside a <HydratedRouter> element"),l}function ES(l,i){let o=v.useContext(hf),[r,u]=v.useState(!1),[d,h]=v.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:y,onMouseLeave:b,onTouchStart:S}=i,C=v.useRef(null);v.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let w=R=>{R.forEach(O=>{h(O.isIntersecting)})},T=new IntersectionObserver(w,{threshold:.5});return C.current&&T.observe(C.current),()=>{T.disconnect()}}},[l]),v.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let N=()=>{u(!0)},D=()=>{u(!1),h(!1)};return o?l!=="intent"?[d,C,{}]:[d,C,{onFocus:Ui(p,N),onBlur:Ui(g,D),onMouseEnter:Ui(y,N),onMouseLeave:Ui(b,D),onTouchStart:Ui(S,N)}]:[!1,C,{}]}function Ui(l,i){return o=>{l&&l(o),o.defaultPrevented||i(o)}}function CS({page:l,...i}){let{router:o}=Pg(),r=v.useMemo(()=>Ug(o.routes,l,o.basename),[o.routes,l,o.basename]);return r?v.createElement(jS,{page:l,matches:r,...i}):null}function NS(l){let{manifest:i,routeModules:o}=Jg(),[r,u]=v.useState([]);return v.useEffect(()=>{let d=!1;return vS(l,i,o).then(h=>{d||u(h)}),()=>{d=!0}},[l,i,o]),r}function jS({page:l,matches:i,...o}){let r=mn(),{future:u,manifest:d,routeModules:h}=Jg(),{basename:p}=Pg(),{loaderData:g,matches:y}=wS(),b=v.useMemo(()=>Qp(l,i,y,d,r,"data"),[l,i,y,d,r]),S=v.useMemo(()=>Qp(l,i,y,d,r,"assets"),[l,i,y,d,r]),C=v.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let w=new Set,T=!1;if(i.forEach(O=>{let M=d.routes[O.route.id];!M||!M.hasLoader||(!b.some(q=>q.route.id===O.route.id)&&O.route.id in g&&h[O.route.id]?.shouldRevalidate||M.hasClientLoader?T=!0:w.add(O.route.id))}),w.size===0)return[];let R=mS(l,p,u.unstable_trailingSlashAwareDataRequests,"data");return T&&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,u.unstable_trailingSlashAwareDataRequests,g,r,d,b,i,l,h]),N=v.useMemo(()=>yS(S,d),[S,d]),D=NS(S);return v.createElement(v.Fragment,null,C.map(w=>v.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...o})),N.map(w=>v.createElement("link",{key:w,rel:"modulepreload",href:w,...o})),D.map(({key:w,link:T})=>v.createElement("link",{key:w,nonce:o.nonce,...T})))}function TS(...l){return i=>{l.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 RS({basename:l,children:i,unstable_useTransitions:o,window:r}){let u=v.useRef();u.current==null&&(u.current=rb({window:r,v5Compat:!0}));let d=u.current,[h,p]=v.useState({action:d.action,location:d.location}),g=v.useCallback(y=>{o===!1?p(y):v.startTransition(()=>p(y))},[o]);return v.useLayoutEffect(()=>d.listen(g),[d,g]),v.createElement(lS,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:o})}var Ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uo=v.forwardRef(function({onClick:i,discover:o="render",prefetch:r="none",relative:u,reloadDocument:d,replace:h,state:p,target:g,to:y,preventScrollReset:b,viewTransition:S,unstable_defaultShouldRevalidate:C,...N},D){let{basename:w,unstable_useTransitions:T}=v.useContext(Ht),R=typeof y=="string"&&Ig.test(y),O=Yg(y,w);y=O.to;let M=Vb(y,{relative:u}),[q,Q,P]=ES(r,N),Y=DS(y,{replace:h,state:p,target:g,preventScrollReset:b,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function ne(se){i&&i(se),se.defaultPrevented||Y(se)}let le=v.createElement("a",{...N,...P,href:O.absoluteURL||M,onClick:O.isExternal||d?i:ne,ref:TS(D,Q),target:g,"data-discover":!R&&o==="render"?"true":void 0});return q&&!R?v.createElement(v.Fragment,null,le,v.createElement(CS,{page:M})):le});Uo.displayName="Link";var OS=v.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:r="",end:u=!1,style:d,to:h,viewTransition:p,children:g,...y},b){let S=Pi(h,{relative:y.relative}),C=mn(),N=v.useContext(Qo),{navigator:D,basename:w}=v.useContext(Ht),T=N!=null&&kS(S)&&p===!0,R=D.encodeLocation?D.encodeLocation(S).pathname:S.pathname,O=C.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(O=O.toLowerCase(),M=M?M.toLowerCase():null,R=R.toLowerCase()),M&&w&&(M=Hn(M,w)||M);const q=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let Q=O===R||!u&&O.startsWith(R)&&O.charAt(q)==="/",P=M!=null&&(M===R||!u&&M.startsWith(R)&&M.charAt(R.length)==="/"),Y={isActive:Q,isPending:P,isTransitioning:T},ne=Q?i:void 0,le;typeof r=="function"?le=r(Y):le=[r,Q?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(Y):d;return v.createElement(Uo,{...y,"aria-current":ne,className:le,ref:b,style:se,to:h,viewTransition:p},typeof g=="function"?g(Y):g)});OS.displayName="NavLink";var zS=v.forwardRef(({discover:l="render",fetcherKey:i,navigate:o,reloadDocument:r,replace:u,state:d,method:h=Ro,action:p,onSubmit:g,relative:y,preventScrollReset:b,viewTransition:S,unstable_defaultShouldRevalidate:C,...N},D)=>{let{unstable_useTransitions:w}=v.useContext(Ht),T=BS(),R=HS(p,{relative:y}),O=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Ig.test(p),q=Q=>{if(g&&g(Q),Q.defaultPrevented)return;Q.preventDefault();let P=Q.nativeEvent.submitter,Y=P?.getAttribute("formmethod")||h,ne=()=>T(P||Q.currentTarget,{fetcherKey:i,method:Y,navigate:o,replace:u,state:d,relative:y,preventScrollReset:b,viewTransition:S,unstable_defaultShouldRevalidate:C});w&&o!==!1?v.startTransition(()=>ne()):ne()};return v.createElement("form",{ref:D,method:O,action:R,onSubmit:r?g:q,...N,"data-discover":!M&&l==="render"?"true":void 0})});zS.displayName="Form";function _S(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wg(l){let i=v.useContext(La);return Ve(i,_S(l)),i}function DS(l,{target:i,replace:o,state:r,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let y=Xn(),b=mn(),S=Pi(l,{relative:d});return v.useCallback(C=>{if(sS(C,i)){C.preventDefault();let N=o!==void 0?o:Gi(b)===Gi(S),D=()=>y(l,{replace:N,state:r,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});g?v.startTransition(()=>D()):D()}},[b,y,S,o,r,i,l,u,d,h,p,g])}function MS(l){Bt(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=v.useRef(Gu(l)),o=v.useRef(!1),r=mn(),u=v.useMemo(()=>uS(r.search,o.current?null:i.current),[r.search]),d=Xn(),h=v.useCallback((p,g)=>{const y=Gu(typeof p=="function"?p(new URLSearchParams(u)):p);o.current=!0,d("?"+y,g)},[d,u]);return[u,h]}var US=0,LS=()=>`__${String(++US)}__`;function BS(){let{router:l}=Wg("useSubmit"),{basename:i}=v.useContext(Ht),o=$b(),r=l.fetch,u=l.navigate;return v.useCallback(async(d,h={})=>{let{action:p,method:g,encType:y,formData:b,body:S}=hS(d,i);if(h.navigate===!1){let C=h.fetcherKey||LS();await r(C,o,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:S,formMethod:h.method||g,formEncType:h.encType||y,flushSync:h.flushSync})}else await u(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:S,formMethod:h.method||g,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,u,i,o])}function HS(l,{relative:i}={}){let{basename:o}=v.useContext(Ht),r=v.useContext(hn);Ve(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),d={...Pi(l||".",{relative:i})},h=mn();if(l==null){d.search=h.search;let p=new URLSearchParams(d.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(S=>S).forEach(S=>p.append("index",S));let b=p.toString();d.search=b?`?${b}`:""}}return(!l||l===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Bn([o,d.pathname])),Gi(d)}function kS(l,{relative:i}={}){let o=v.useContext(Vg);Ve(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Wg("useViewTransitionState"),u=Pi(l,{relative:i});if(!o.isTransitioning)return!1;let d=Hn(o.currentLocation.pathname,r)||o.currentLocation.pathname,h=Hn(o.nextLocation.pathname,r)||o.nextLocation.pathname;return Mo(u.pathname,h)!=null||Mo(u.pathname,d)!=null}var Ji=Mg();const YS=_g(Ji),mf="css-account",pf="xpod.cssAccountToken",qS="CSS-Account-Token";function gf(){return typeof window<"u"&&typeof document<"u"}function VS(){if(!gf())return;const l=document.cookie.split(";");for(const i of l){const[o,...r]=i.trim().split("=");if(o===mf){const u=r.join("=");try{return u?decodeURIComponent(u):void 0}catch{return}}}}function $g(l){gf()&&(document.cookie=`${mf}=${encodeURIComponent(l)}; Path=/; SameSite=Lax`)}function XS(){gf()&&(document.cookie=`${mf}=; Path=/; SameSite=Lax; Max-Age=0`)}function GS(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(pf)||void 0}catch{return}}function FS(l){if(!(typeof window>"u"))try{window.sessionStorage.setItem(pf,l)}catch{}}function KS(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(pf)}catch{}}function Au(l){l&&(FS(l),$g(l))}function vf(){KS(),XS()}function QS(){const l=VS();if(l)return l;const i=GS();if(i)return $g(i),i}function en(l,i={Accept:"application/json"}){const o={...i};return l&&!ZS(o,"Authorization")&&(o.Authorization=`${qS} ${l}`),o}function Pe(l={Accept:"application/json"}){return en(QS(),l)}function ZS(l,i){const o=i.toLowerCase();return Object.keys(l).some(r=>r.toLowerCase()===o)}const ev=v.createContext(null);function ln(){const l=v.useContext(ev);if(!l)throw new Error("useAuth must be used within AuthProvider");return l}function PS({children:l}){const i="/.account/",[o,r]=v.useState(null),[u,d]=v.useState(!0),[h,p]=v.useState(null),[g,y]=v.useState(!1),b=!!o?.account?.logout,S=u,C=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:Pe(),credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},N=async()=>{try{const w=await fetch(i,{headers:Pe(),credentials:"include"});if(w.ok){const T=await w.json();let R=!1;T.controls?.account?.logout&&(R=await C()),y(R),r(T.controls||{})}else{if(w.status===401||w.status===403){vf(),y(!1),r({});return}p(`Failed to load configuration (Status: ${w.status})`)}}catch{p("Network error: Could not connect to authentication server")}};v.useEffect(()=>{(async()=>(await N(),d(!1)))()},[i]);const D=async()=>{await N()};return f.jsx(ev.Provider,{value:{controls:o,isInitializing:u,initError:h,idpIndex:i,isLoggedIn:b,authenticating:S,hasOidcPending:g,refetchControls:D},children:l})}const tv=(...l)=>l.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();const JS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const IS=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,r)=>r?r.toUpperCase():o.toLowerCase());const Zp=l=>{const i=IS(l);return i.charAt(0).toUpperCase()+i.slice(1)};var WS={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 $S=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const e1=v.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:u="",children:d,iconNode:h,...p},g)=>v.createElement("svg",{ref:g,...WS,width:i,height:i,stroke:l,strokeWidth:r?Number(o)*24/Number(i):o,className:tv("lucide",u),...!d&&!$S(p)&&{"aria-hidden":"true"},...p},[...h.map(([y,b])=>v.createElement(y,b)),...Array.isArray(d)?d:[d]]));const Fe=(l,i)=>{const o=v.forwardRef(({className:r,...u},d)=>v.createElement(e1,{ref:d,iconNode:i,className:tv(`lucide-${JS(Zp(l))}`,`lucide-${l}`,r),...u}));return o.displayName=Zp(l),o};const t1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],nv=Fe("arrow-left",t1);const n1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Po=Fe("arrow-right",n1);const l1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ln=Fe("check",l1);const a1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lv=Fe("chevron-down",a1);const i1=[["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"}]],av=Fe("circle-alert",i1);const c1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],iv=Fe("clock",c1);const o1=[["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"}]],bo=Fe("copy",o1);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"}]],s1=Fe("database",r1);const u1=[["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"}]],Pp=Fe("external-link",u1);const f1=[["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=Fe("globe",f1);const h1=[["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"}]],m1=Fe("hard-drive",h1);const p1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],g1=Fe("info",p1);const v1=[["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"}]],Ru=Fe("key",v1);const y1=[["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"}]],cv=Fe("layers",y1);const x1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Da=Fe("loader-circle",x1);const b1=[["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"}]],Xi=Fe("lock",b1);const S1=[["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"}]],w1=Fe("log-out",S1);const E1=[["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"}]],Fu=Fe("mail",E1);const C1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ou=Fe("plus",C1);const N1=[["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"}]],Fi=Fe("shield",N1);const j1=[["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"}]],Jp=Fe("trash-2",j1);const T1=[["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"}]],ov=Fe("user",T1);function rv(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(Da,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Ii({children:l,title:i,subtitle:o,icon:r,showBack:u,onBack:d}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.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:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[u?f.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:f.jsx(nv,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:r?f.jsx(r,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),o&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:o})]}),l]})]})}function A1({message:l}){return f.jsx(Ii,{title:"Error",subtitle:l,icon:av,children:f.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 Ku="xpod:returnTo";function Oa(l){try{l&&sessionStorage.setItem(Ku,l)}catch{}}function R1(){try{const l=sessionStorage.getItem(Ku);return l&&sessionStorage.removeItem(Ku),l}catch{return null}}function O1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function z1(l,i,o=!1){return l&&i&&!o}function Ip({children:l,allowOidcPending:i=!1}){const{isLoggedIn:o,hasOidcPending:r}=ln(),u=mn();return z1(o,r,i)?f.jsx(kn,{to:"/.account/oidc/consent/",replace:!0}):o?f.jsx(f.Fragment,{children:l}):(Oa(u.pathname+u.search),f.jsx(kn,{to:"/.account/login/password/",replace:!0}))}function sv(l){var i,o,r="";if(typeof l=="string"||typeof l=="number")r+=l;else if(typeof l=="object")if(Array.isArray(l)){var u=l.length;for(i=0;i<u;i++)l[i]&&(o=sv(l[i]))&&(r&&(r+=" "),r+=o)}else for(o in l)l[o]&&(r&&(r+=" "),r+=o);return r}function nt(){for(var l,i,o=0,r="",u=arguments.length;o<u;o++)(l=arguments[o])&&(i=sv(l))&&(r&&(r+=" "),r+=i);return r}const Wp=3,Lo=63,_1=/^[a-z0-9-]+$/;function Ki(l){return l.trim().toLowerCase()}function Bo(l){const i=Ki(l);if(!i)return"Username is required";if(i.length<Wp||i.length>Lo)return`Username must be ${Wp}-${Lo} characters`;if(!_1.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 D1(l,i=5){const r=Ki(l).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Lo-3)||"user",u=Array.from({length:Math.max(i,3)},(d,h)=>`${r}-${h+1}`);return Array.from(new Set(u.map(d=>d.slice(0,Lo)).filter(d=>!Bo(d)))).slice(0,i)}function M1(l){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(l);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function uv(l,i,o){const r=`${M1(i)}/${encodeURIComponent(l)}`;try{const u=await o(r,{headers:{Accept:"application/json"},credentials:"include"});if(u.status===404)return!1;if(u.ok||u.status===409)return!0}catch{}}async function U1(l,i,o,r=3){const u=D1(l,Math.max(r*2,5)),d=[];for(const h of u)if(await uv(h,i,o)===!1&&d.push(h),d.length>=r)break;return d}async function $p(l,i,o=fetch){const r=Ki(l),u=Bo(r);if(u)return{available:!1,suggestions:[],error:u};const d=await uv(r,i,o);return d===!1?{available:!0,suggestions:[]}:d===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await U1(r,i,o)}}function Ho(){try{const l=sessionStorage.getItem("provisionCode")?.trim();return l||void 0}catch{return}}function L1(){try{sessionStorage.removeItem("provisionCode")}catch{}}function fv(l,i=Ho()){const o={name:l.trim()};return i&&(o.settings={provisionCode:i}),o}function Jo(l){return l.replace(/\/+$/u,"")+"/"}function Yn(l){if(l)try{return new URL(l)}catch{return}}function dv(l){const i=Yn(l);if(i)return Jo(i.toString())}function B1(l){return dv(l)}function ko(l,i){const o=Yn(l),r=Yn(i);if(!o||!r||o.origin!==r.origin)return!1;const u=q1(r.pathname);return o.pathname===u||o.pathname.startsWith(u)}function Yo(l,i){const o=Yn(l),r=Yn(i);return!o||!r?"custom":o.origin===r.origin?"cloud":"local"}function yf(l){if(!l)return;const i=l.indexOf(".");if(!(i<=0))try{const o=l.slice(0,i),r=JSON.parse(Y1(o)),u=r.spDomain?`https://${r.spDomain}`:r.spUrl,d=dv(u);return d?{root:d,lookupUrl:r.spUrl?Jo(r.spUrl):void 0,serviceToken:r.serviceToken,mode:"local"}:void 0}catch{return}}function H1(l,i){const o=yf(i);if(o)return o;const r=B1(l);if(r)return{root:r,mode:"cloud"}}async function xf(l,i,o){if(!o.lookupUrl||!o.serviceToken||i.length===0)return[];const r=await l(new URL("/provision/webids",o.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${o.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:i})});if(!r.ok)return[];const u=await r.json().catch(()=>null);if(!Array.isArray(u?.entries))return[];const d=new Set(i);return u.entries.filter(h=>typeof h.webId=="string"&&typeof h.storageUrl=="string"&&d.has(h.webId)&&ko(h.storageUrl,o.root)).map(h=>({webId:h.webId,storageUrl:Jo(h.storageUrl),storageMode:h.storageMode??Yo(h.webId,h.storageUrl)}))}function k1(l,i,o){const r=i.filter(d=>ko(d,o.root));if(r.length===0)return[];const u=[];for(const d of l){const h=Yo(d,o.root);if(o.mode!=="local"&&h!==o.mode)continue;const p=h==="cloud"?r.filter(g=>V1(g,d)):r.filter(g=>X1(g,d));for(const g of p)u.push({webId:d,storageUrl:Jo(g),storageMode:Yo(d,g)})}return hv(u)}function hv(l){const i=new Set,o=[];for(const r of l){const u=`${r.webId}
|
|
12
|
-
${r.storageUrl}`;i.has(u)||(i.add(u),o.push(r))}return o}function Y1(l){const i=l.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(l.length/4)*4,"=");return atob(i)}function q1(l){return!l||l==="/"?"/":l.endsWith("/")?l:`${l}/`}function V1(l,i){const o=Yn(l),r=Yn(i);if(!o||!r||o.origin!==r.origin)return!1;const[u]=o.pathname.split("/").filter(Boolean),[d]=r.pathname.split("/").filter(Boolean);return!!(u&&d&&u===d)}function X1(l,i){const o=Yn(l),r=Yn(i);if(!o||!r)return!1;const[u]=o.pathname.split("/").filter(Boolean),[d]=r.pathname.split("/").filter(Boolean);return!!(u&&d&&u===d)}class Io extends Error{code;constructor(i,o){super(i),this.name="RegistrationError",this.code=o}}async function bf(l){const i=await l.json().catch(()=>{});return i?.message||i?.error}function G1(l){return l.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function F1(l,i){if(!l)return!1;const o=G1(l);if(o)return Sf(o,i);const r=l.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return r?r===i:/Username already taken/i.test(l)}function K1(l){return l?/already is a login for this e-mail address/i.test(l)||/email(?: address)? is already/i.test(l)||/already registered/i.test(l):!1}function Sf(l,i){try{return new URL(l,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===i}catch{return!1}}async function Q1(l,i,o,r,u,d){if(d)return Z1(l,o,r,u,d);const h=await l(i,{headers:en(u),credentials:"include"});if(!h.ok)return!1;const p=await h.json().catch(()=>({}));return Object.keys(p.pods??{}).some(g=>Sf(g,r))}async function Z1(l,i,o,r,u){const d=yf(u);if(!d||!i)return!1;const h=await l(i,{headers:en(r),credentials:"include"});if(!h.ok)return!1;const p=await h.json().catch(()=>({})),g=Object.keys(p.webIdLinks??{});return(await xf(l,g,d)).some(b=>Sf(b.storageUrl,o))}async function P1(l){const i=l.fetchImpl??fetch;let o=await i(l.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 r=await o.json().catch(()=>({})),u=typeof r.authorization=="string"?r.authorization:"";if(!u)throw new Error("Account token not returned");if(o=await i(l.idpIndex,{headers:en(u),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:{...en(u),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:l.email,password:l.password})}),!o.ok){const g=await bf(o);throw K1(g)?new Io("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(g||"Failed to set password")}return{accountToken:u,loginUrl:p}}async function J1(l){const o=await(l.fetchImpl??fetch)(l.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:l.email,password:l.password})});if(!o.ok){const d=await bf(o);throw l.duplicateEmailRecovery?new Io("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(d||"Auto-login failed")}const r=await o.json().catch(()=>({})),u=typeof r.authorization=="string"?r.authorization:"";if(!u)throw new Error("Account token not returned after login");return{accountToken:u}}async function eg(l,i,o,r,u=15e3,d){const h=Date.now()+u;let p=o?.pod,g=o?.webId;const y=yf(d);for(;Date.now()<h;){try{if(!p&&!g){const b=await l(i,{headers:en(r),credentials:"include"});if(b.ok){const S=await b.json().catch(()=>({}));p=S.controls?.account?.pod,g=S.controls?.account?.webId}}if(g){const b=await l(g,{headers:en(r),credentials:"include"});if(b.ok){const S=await b.json().catch(()=>({})),C=Object.keys(S.webIdLinks??{});if(y){if((await xf(l,C,y)).length>0)return!0}else if(!d&&C.length>0)return!0}}if(!d&&p){const b=await l(p,{headers:en(r),credentials:"include"});if(b.ok){const S=await b.json().catch(()=>({}));if(Object.keys(S.pods??{}).length>0)return!0}}}catch{}await new Promise(b=>setTimeout(b,500))}return!1}async function tg(l){const i=l.fetchImpl??fetch,{accountToken:o,idpIndex:r,username:u}=l,d=l.provisionCode??Ho();let h=await i(r,{headers:en(o),credentials:"include"});const p=await h.json().catch(()=>({})),g=p.controls?.account?.pod;if(!g)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await Q1(i,g,p.controls?.account?.webId,u,o,d))return await eg(i,r,p.controls?.account,o,15e3,d),{createdPod:!0,redirectedToConsent:await ng(i,o)};if(h=await i(g,{method:"POST",headers:{...en(o),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(fv(u,d))}),!h.ok){const y=await bf(h);throw F1(y,u)?new Io("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(y||"Failed to create pod")}return await h.json().catch(()=>({})),await eg(i,r,p.controls?.account,o,15e3,d),{createdPod:!0,redirectedToConsent:await ng(i,o)}}async function ng(l,i){const o=await l("/.account/oidc/consent/",{headers:en(i),credentials:"include"});return!!(o.ok&&(await o.json().catch(()=>({}))).client)}function Qu({initialIsRegister:l=!1}){const{controls:i,idpIndex:o,isLoggedIn:r,authenticating:u}=ln(),d=Xn(),[h,p]=v.useState(!1),[g,y]=v.useState(l),[b,S]=v.useState(""),[C,N]=v.useState(""),[D,w]=v.useState(""),[T,R]=v.useState(!1),[O,M]=v.useState(!1),[q,Q]=v.useState(null),[P,Y]=v.useState([]),[ne,le]=v.useState(null),[se,ue]=v.useState(""),[$,te]=v.useState(null),[ee,fe]=v.useState(null),_=C.length>0&&D.length>0&&C===D,U=Ki(b),V=g?Bo(U):void 0;if(v.useEffect(()=>{const Z=O1();Z&&Oa(Z)},[]),v.useEffect(()=>{if(!g){M(!1),Q(null),Y([]),le(null);return}if(!U){M(!1),Q(null),Y([]),le(null);return}if(V){M(!1),Q(!1),Y([]),le(V);return}let Z=!1;M(!0);const W=window.setTimeout(async()=>{const ce=await $p(U,o);Z||(M(!1),Q(ce.available),Y(ce.suggestions),le(ce.error??null))},300);return()=>{Z=!0,window.clearTimeout(W)}},[o,g,U,V]),r)return f.jsx(kn,{to:"/.account/account/",replace:!0});const ae=[{icon:iv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:cv,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:Fi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],ge=async Z=>{Z.preventDefault(),p(!0),te(null),fe(null);const W=new FormData(Z.currentTarget),ce=W.get("email"),he=W.get("password");try{if(g){const I=W.get("confirmPassword"),me=Ki(W.get("username")),J=Bo(me);if(he!==I){alert("Passwords do not match"),p(!1);return}if(J){alert(J),p(!1);return}const re=await $p(me,o),ve=i?.password?.login||"/.account/login/password/",je=async(Ye=!1)=>{const mt=await J1({duplicateEmailRecovery:Ye,email:ce,fetchImpl:fetch,loginUrl:ve,password:he});return Au(mt.accountToken),mt.accountToken};if(!re.available){let Ye;try{Ye=await je()}catch{}if(Ye){const mt=await tg({accountToken:Ye,idpIndex:o,username:me});window.location.href=mt.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/";return}Q(!1),Y(re.suggestions),le(re.error??"Username is already taken"),p(!1);return}if(re.error){Q(!1),le(re.error),p(!1);return}let _e;const Ke=await je().catch(()=>{});if(Ke)_e=Ke;else try{_e=(await P1({accountCreateUrl:i?.account?.create||"/.account/account/",email:ce,password:he,idpIndex:o})).accountToken,Au(_e)}catch(Ye){if(!(Ye instanceof Io)||Ye.code!=="EMAIL_ALREADY_REGISTERED")throw Ye;_e=await je(!0)}const Be=await tg({accountToken:_e,idpIndex:o,username:me});window.location.href=Be.redirectedToConsent?"/.account/oidc/consent/":"/.account/account/"}else{const I=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:he})}),me=await I.json().catch(()=>({}));if(I.ok){Au(typeof me.authorization=="string"?me.authorization:void 0);const J=I.headers.get("Location");if(me.location){window.location.href=me.location;return}if(J){window.location.href=J;return}const re=R1();if(re){window.location.href=re;return}try{if((await fetch("/.account/oidc/consent/",{headers:Pe(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/account/"}else fe(me.message||"Login failed")}}catch(I){I?.name==="RegistrationError"&&I.code==="EMAIL_ALREADY_REGISTERED"?te(I.message):I?.name==="RegistrationError"&&I.code==="USERNAME_ALREADY_TAKEN"?(Q(!1),le(I.message)):fe(I.message||"Operation failed")}finally{p(!1)}},j=()=>{y(!g),S(""),N(""),w(""),M(!1),Q(null),Y([]),le(null),ue(""),te(null),fe(null)},G=async()=>{if(i?.oidc?.cancel){R(!0);try{const W=await(await fetch(i.oidc.cancel,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();W.location&&(window.location.href=W.location)}catch{alert("Failed to cancel"),R(!1)}}};return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:ae.map(({icon:Z,title:W,desc:ce})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(Z,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:W}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:ce})]})]},W))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:g?"Create account":"Welcome back"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:g?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:ge,children:[ee&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:ee}),f.jsxs("div",{className:"space-y-3",children:[g&&f.jsxs("div",{className:"relative",children:[f.jsx(ov,{className:nt("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",V&&b.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:b,onChange:Z=>S(Z.target.value),className:nt("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",V&&b.length>0||q===!1?"border-amber-300 focus:border-amber-500":q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:se,onChange:Z=>{ue(Z.target.value),$&&te(null)},className:nt("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",$?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),$&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[$," ",f.jsx("button",{type:"button",onClick:()=>{y(!1),te(null),fe(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Xi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",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 border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),g&&f.jsxs("div",{className:"relative",children:[_?f.jsx(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Xi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:D,onChange:Z=>w(Z.target.value),className:nt("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",_?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),g&&f.jsx("p",{className:nt("text-[11px] leading-relaxed",V&&b.length>0||q===!1?"text-amber-600":q?"text-emerald-600":"text-zinc-500"),children:V&&b.length>0?V:O?"Checking username availability...":ne||(U&&q===!1?"Username is already taken.":U&&q?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),g&&P.length>0&&!V&&q===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:P.map(Z=>f.jsx("button",{type:"button",onClick:()=>S(Z),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:Z},Z))}),!g&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>d("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:h||T||!!(g&&(V||O||q===!1)),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?f.jsx(Da,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[g?"Sign up":"Sign in",f.jsx(Po,{className:"h-4 w-4"})]})}),u&&!g&&f.jsx("button",{type:"button",onClick:G,disabled:T||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:T?f.jsx(Da,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[g?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:j,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:g?"Sign in":"Sign up"})]})})]})})]})]})}function I1(){const{isLoggedIn:l,hasOidcPending:i}=ln();return l&&i?f.jsx(kn,{to:"/.account/oidc/consent/",replace:!0}):l?f.jsx(kn,{to:"/.account/account/",replace:!0}):f.jsx(Qu,{})}function W1(){const l=Xn(),{isLoggedIn:i}=ln(),o=[{icon:iv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:cv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Fi,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:o.map(({icon:r,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(r,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},u))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-2",children:o.map(({icon:r,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(r,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},u))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(Pp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(Pp,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.jsxs("button",{onClick:()=>l(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:[f.jsx(nv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function mv(l){try{const o=new URL(l).pathname.split("/").filter(Boolean);return o[o.length-1]}catch{return}}function $1(l){const i=l?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([o,r])=>({id:o,resourceUrl:r,name:mv(o)}))}function ew(l){const i=new Set,o=[];for(const r of l)i.has(r.storageUrl)||(i.add(r.storageUrl),o.push({id:r.storageUrl,name:mv(r.storageUrl),storageMode:r.storageMode??Yo(r.webId,r.storageUrl)}));return o}function tw(l){return Array.from(new Set(l.map(i=>i.webId)))}function nw(l){try{const i=new URL(l).pathname.split("/").filter(Boolean);return i[i.length-1]??l}catch{return l.split("/").filter(Boolean).pop()??l}}function zu(l,i){return`sk-${btoa(`${l}:${i}`)}`}function lw(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:l,hostname:i,origin:o}=window.location;return i.startsWith("id.")?`${l}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${o}/v1`:`${o.replace(/\/$/,"")}/v1`}function aw(){const{controls:l,refetchControls:i,hasOidcPending:o}=ln(),r=Xn(),[u,d]=v.useState(!1),[h,p]=v.useState([]),[g,y]=v.useState([]),[b,S]=v.useState(!1),[C,N]=v.useState(!1),[D,w]=v.useState(""),[T,R]=v.useState(!1),[O,M]=v.useState(""),[q,Q]=v.useState([]),[P,Y]=v.useState(null),[ne,le]=v.useState(!1),[se,ue]=v.useState(""),[$,te]=v.useState(""),[ee,fe]=v.useState(null),[_,U]=v.useState(!1),V=v.useRef(null),ae=lw();v.useEffect(()=>{const J=re=>{V.current&&!V.current.contains(re.target)&&U(!1)};return document.addEventListener("mousedown",J),()=>document.removeEventListener("mousedown",J)},[]);const ge=async(J,re)=>{try{await navigator.clipboard.writeText(J),fe(re),setTimeout(()=>fe(null),2e3)}catch{}},j=async()=>{try{const J=H1(window.location.origin,Ho());let re=[],ve=[],je=[],_e=[];if(l?.account?.webId){const Be=await fetch(l.account.webId,{headers:Pe(),credentials:"include"});if(Be.ok){const mt=(await Be.json()).webIdLinks||{};ve=Object.keys(mt)}else ve=[]}if(l?.account?.pod){const Be=await fetch(l.account.pod,{headers:Pe(),credentials:"include"});if(Be.ok){const Ye=await Be.json();je=$1(Ye)}else je=[]}J&&(_e=J.serviceToken?await xf(fetch,ve,J):k1(ve,je.map(Be=>Be.id),J)),_e=hv(_e),re=tw(_e);const Ke=J?.serviceToken?ew(_e):je.filter(Be=>ko(Be.id,J?.root)).map(Be=>({...Be,storageMode:_e.find(Ye=>ko(Be.id,Ye.storageUrl))?.storageMode}));if(p(re),y(Ke),S(J?Ke.length===0&&ve.length>0:!1),l?.account?.clientCredentials){const Be=await fetch(l.account.clientCredentials,{headers:Pe(),credentials:"include"});if(Be.ok){const mt=(await Be.json()).clientCredentials||{},ec=new Set(re);Q(Object.entries(mt).map(([gn,Vl])=>({id:nw(gn),resourceUrl:gn,webId:typeof Vl=="string"?Vl:void 0})).filter(gn=>gn.webId&&ec.has(gn.webId)))}else Q([])}else Q([])}catch(J){console.error("Failed to fetch account data:",J),p([]),y([]),Q([]),S(!1)}};v.useEffect(()=>{j()},[l]);const G=async()=>{if(l?.account?.logout){d(!0);try{(await fetch(l.account.logout,{method:"POST",headers:Pe(),credentials:"include"})).ok&&(L1(),vf(),await i(),r("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},Z=async J=>{if(J.preventDefault(),!(!l?.account?.pod||!D.trim())){d(!0);try{const re=await fetch(l.account.pod,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(fv(D))});if(re.ok)w(""),N(!1),await i(),await j(),o&&r("/.account/oidc/consent/");else{const ve=await re.json().catch(()=>({}));alert(ve.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},W=async J=>{if(J.preventDefault(),!(!l?.account?.webId||!O.trim())){if(Ho()){R(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}d(!0);try{const re=await fetch(l.account.webId,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:O.trim()})});if(re.ok)M(""),R(!1),await j();else{const ve=await re.json().catch(()=>({}));alert(ve.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},ce=async J=>{if(J.resourceUrl&&confirm(`Delete pod ${J.id}? This cannot be undone.`)){d(!0);try{(await fetch(J.resourceUrl,{method:"DELETE",headers:Pe(),credentials:"include"})).ok?await j():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},he=async J=>{if(J.preventDefault(),!(!l?.account?.clientCredentials||!se||!$.trim())){d(!0);try{const re=await fetch(l.account.clientCredentials,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:$.trim(),webId:se})});if(re.ok){const ve=await re.json();Y({id:ve.id,secret:ve.secret}),le(!1),ue(""),te(""),await j()}else{const ve=await re.json().catch(()=>({}));alert(ve.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},I=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ue(h[0]),te(""),le(!0)},me=async J=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(J.resourceUrl,{method:"DELETE",headers:Pe(),credentials:"include"})).ok?await j():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Uo,{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:[f.jsx(g1,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:G,disabled:u,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:[f.jsx(w1,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[o&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(Fi,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(Uo,{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",f.jsx(Po,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(m1,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),l?.account?.pod&&f.jsxs("button",{onClick:()=>N(!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:[f.jsx(Ou,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),C&&f.jsxs("form",{onSubmit:Z,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:D,onChange:J=>w(J.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>N(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:g.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:b?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:g.map(J=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(s1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:J.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:J.id}),J.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",J.name]})]})]}),f.jsx("button",{onClick:()=>ce(J),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(Jp,{className:"w-4 h-4"})})]},J.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(ov,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),l?.account?.webId&&f.jsxs("button",{onClick:()=>R(!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:[f.jsx(Ou,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),T&&f.jsxs("form",{onSubmit:W,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:O,onChange:J=>M(J.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>R(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(J=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(d1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:J,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:J})]},J))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(Ru,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),l?.account?.clientCredentials&&f.jsxs("button",{onClick:I,disabled:u,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:[f.jsx(Ou,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),l?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[ne&&f.jsxs("form",{onSubmit:he,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:$,onChange:J=>te(J.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})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:V,children:[f.jsxs("button",{type:"button",onClick:()=>U(!_),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:[f.jsx("span",{className:"truncate text-zinc-700",children:se||"Select WebID"}),f.jsx(lv,{className:`w-4 h-4 text-zinc-400 transition-transform ${_?"rotate-180":""}`})]}),_&&f.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(J=>f.jsx("button",{type:"button",onClick:()=>{ue(J),U(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${se===J?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:J},J))}),f.jsx("input",{type:"hidden",name:"webId",value:se,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>le(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"})]})]}),P&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(Ru,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:P.id})]}),f.jsx("button",{onClick:()=>ge(P.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:ee==="id"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(bo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:P.secret})]}),f.jsx("button",{onClick:()=>ge(P.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:ee==="secret"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(bo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:zu(P.id,P.secret)})]}),f.jsx("button",{onClick:()=>ge(zu(P.id,P.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:ee==="apikey"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(bo,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),f.jsx("button",{onClick:()=>ge(ae,"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:ee==="baseurl"?f.jsx(Ln,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(bo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",zu(P.id,P.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>Y(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:q.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:q.map(J=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Ru,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:J.id})]}),f.jsx("button",{onClick:()=>me(J),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(Jp,{className:"w-4 h-4"})})]},J.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(Fi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.jsx("a",{href:l?.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 iw(){const{idpIndex:l,isLoggedIn:i,controls:o}=ln(),r=Xn(),[u,d]=v.useState(!0),[h,p]=v.useState(null),[g,y]=v.useState(null),[b,S]=v.useState([]),[C,N]=v.useState(""),[D,w]=v.useState(null),[T,R]=v.useState(null),[O,M]=v.useState(!0),q=`${l}oidc/consent/`,Q=`${l}oidc/pick-webid/`,P=`${l}oidc/cancel`;v.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Oa(window.location.href),(async()=>{try{const $=await fetch(q,{headers:Pe(),credentials:"include"});if(console.log("[Consent] GET consent response status:",$.status),$.status===401||$.status===403){w("Please sign in to continue authorization."),d(!1);return}if(!$.ok){const fe=await $.json().catch(()=>({}));throw new Error(fe.message||"Failed to load consent info")}const te=await $.json();p(te.client||{}),y(te.webId||null);const ee=await fetch(Q,{headers:Pe(),credentials:"include"});if(ee.ok){const _=(await ee.json()).webIds||[];S(_),te.webId&&_.includes(te.webId)?N(te.webId):_.length>0&&N(_[0])}}catch($){w($.message||"Failed to load consent info")}finally{d(!1)}})()},[q,Q]);const Y=$=>{try{const te=new URL($),ee=te.pathname.split("/").filter(Boolean);return{provider:te.host,podId:ee[0]??"-",full:$}}catch{return{provider:"-",podId:"-",full:$}}},ne=async $=>{try{await navigator.clipboard.writeText($),R($),setTimeout(()=>R(null),1200)}catch{R(null)}},le=async()=>{try{o?.account?.logout&&await fetch(o.account.logout,{method:"POST",headers:Pe(),credentials:"include"}),vf(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},se=async $=>{console.log("[Consent] handleConsent called, allow:",$);try{if(d(!0),w(null),!$){console.log("[Consent] Cancelling...");const V=await(await fetch(P,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({})})).json();console.log("[Consent] Cancel response:",V),V.location&&(window.location.href=V.location);return}if(C&&C!==g){console.log("[Consent] Picking WebID:",C);const U=await fetch(Q,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:C,remember:!1})}),V=await U.json();if(!U.ok)throw new Error(V.message||"Failed to select WebID");V.location&&await fetch(V.location,{credentials:"include"})}const te=await fetch(q,{method:"POST",headers:Pe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:O})}),ee=await te.json();if(console.log("[Consent] Response:",te.status,ee),console.log("[Consent] Location header:",te.headers.get("Location")),!te.ok)throw new Error(ee.message||"Consent failed");const fe=te.headers.get("Location"),_=ee.location||fe;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)}},ue=b.length>0?b:g?[g]:[];return f.jsxs(Ii,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Fi,children:[!i&&f.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:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{Oa(window.location.href),r("/.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&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(av,{className:"w-4 h-4 inline mr-2"}),D]}),u?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(Da,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ue.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:Y(ue[0]).provider})]})]}),ue.length===0?f.jsxs("div",{className:"text-center py-4",children:[f.jsx("p",{className:"text-zinc-500 text-xs mb-3",children:"You need to create a Pod first to get a WebID."}),f.jsx("button",{onClick:()=>{Oa(window.location.href),r("/.account/account/")},className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg",children:"Create Pod"})]}):f.jsx("div",{className:"space-y-1",children:ue.map($=>{const te=Y($);return f.jsxs("label",{className:nt("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",C===$?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:$,checked:C===$,onChange:ee=>N(ee.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:te.full,children:te.podId})}),f.jsx("button",{type:"button",onClick:ee=>{ee.preventDefault(),ne($)},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:T===$?"Copied":"Copy"})]},$)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:O,onChange:$=>M($.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>se(!1),disabled:u,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"}),f.jsx("button",{onClick:()=>se(!0),disabled:u||ue.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:u?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{Oa(window.location.href),r("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:le,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function cw(){const{controls:l,isLoggedIn:i}=ln(),o=Xn(),[r,u]=v.useState(!1),[d,h]=v.useState(!1);if(i)return f.jsx(kn,{to:"/.account/account/",replace:!0});const p=async g=>{g.preventDefault(),u(!0);const y=new FormData(g.currentTarget).get("email");try{await fetch(l?.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{u(!1)}};return f.jsx(Ii,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Fu,showBack:!0,onBack:()=>o("/.account/login/password/"),children:d?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Ln,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.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"}),f.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"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:p,children:[f.jsxs("div",{className:"relative",children:[f.jsx(Fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.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"})]}),f.jsx("button",{type:"submit",disabled:r,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:r?f.jsx(Da,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Po,{className:"h-4 w-4"})]})})]})})}function ow(){const{controls:l,isLoggedIn:i}=ln(),o=Xn(),[r]=MS(),[u,d]=v.useState(!1),[h,p]=v.useState(!1),[g,y]=v.useState(null),[b,S]=v.useState(""),[C,N]=v.useState(""),D=r.get("rid"),w=b.length>0&&C.length>0&&b===C;if(i)return f.jsx(kn,{to:"/.account/account/",replace:!0});if(!D)return f.jsx(kn,{to:"/.account/login/password/forgot/",replace:!0});const T=async R=>{if(R.preventDefault(),!w){y("Passwords do not match");return}d(!0),y(null);try{const O=l?.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:b})});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 f.jsx(Ii,{title:"Reset Password",subtitle:"Enter your new password.",icon:Xi,children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Ln,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.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"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:T,children:[g&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:g}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Xi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:b,onChange:R=>S(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"})]}),f.jsxs("div",{className:"relative",children:[w?f.jsx(Ln,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Xi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.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"})]})]}),f.jsx("button",{type:"submit",disabled:u||!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:u?f.jsx(Da,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Po,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>o("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function rw(){const{controls:l,isLoggedIn:i}=ln(),[o,r]=v.useState([]),[u,d]=v.useState(!0);return v.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(l?.main?.logins){const p=await(await fetch(l.main.logins,{headers:Pe(),credentials:"include"})).json(),g=Object.entries(p.logins||{});if(g.length===1){window.location.href=g[0][1];return}if(g.length===0){window.location.href="/.account/login/password/";return}r(g)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=l?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[l,i]),u?f.jsx(rv,{}):f.jsx(Ii,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:o.map(([h,p])=>f.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 pv={"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"},sw=Object.keys(pv),uw=v.forwardRef(function({control:i,...o},r){const u=v.useRef(null);return v.useLayoutEffect(()=>{const d=u.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]),v.useEffect(()=>{const d=u.current;if(!d)return;const h=new AbortController;for(const p of sw)d.addEventListener(p,g=>{const y=pv[p],b=i.handlers[y];typeof b=="function"&&b(g.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),f.jsx("openai-chatkit",{ref:d=>{u.current=d,i.setInstance(d),typeof r=="function"?r(d):r&&(r.current=d),u.current},...o})});function lg(l){return l!==null&&typeof l=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(l))||Array.isArray(l)}function Zu(l,i,o=new WeakMap){if(Object.is(l,i))return!0;if(typeof l=="function"&&typeof i=="function")return typeof l==typeof i;if(!lg(l)||!lg(i))return!1;const r=o.get(l);if(r&&r===i)return!0;if(o.set(l,i),Array.isArray(l)||Array.isArray(i)){if(!Array.isArray(l)||!Array.isArray(i)||l.length!==i.length)return!1;for(let h=0;h<l.length;h++)if(!Zu(l[h],i[h],o))return!1;return!0}const u=Object.keys(l),d=Object.keys(i);if(u.length!==d.length)return!1;for(let h=0;h<u.length;h++){const p=u[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const g=l[p],y=i[p];if(!Zu(g,y,o))return!1}return!0}function fw(l){const i=[],o=(d,h)=>h.reduce((p,g)=>p==null?p:p[g],d),r=(d,h)=>(...p)=>{const g=o(l.current,d),y=g?.[h];if(typeof y=="function")return y.apply(g,p)},u=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return r(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let g=0;g<d.length;g++)i[h]=g,p[g]=u(d[g]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const g of Object.keys(d))i[h]=g,p[g]=u(d[g]);return i.length=h,p}return d};return u(l.current)}function dw(l){const i=$t.useRef(l);i.current=l;const o=$t.useRef(null);return(!o.current||!Zu(o.current.snapshot,l))&&(o.current={snapshot:l,shaped:fw(i)}),o.current.shaped}var hw=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function mw(l){const i=v.useRef(null),o=dw(l),r=v.useMemo(()=>hw.reduce((h,p)=>(h[p]=(...g)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...g)},h),{}),[]),u=v.useCallback(h=>{i.current=h},[]),d=v.useMemo(()=>{const h={},p={};for(const[g,y]of Object.entries(o))/^on[A-Z]/.test(g)&&g!=="onClientTool"?p[g]=y:h[g]=y;return{setInstance:u,options:h,handlers:p}},[o,u]);return v.useMemo(()=>({...r,control:d,ref:i}),[r,d])}const ag="http://localhost:3000/chatkit",ig="domain_pk_localhost_dev";function pw(){const{isLoggedIn:l}=ln(),[i,o]=v.useState(""),[r,u]=v.useState(!1),d=v.useCallback(async(p,g={})=>{const y={...g.headers||{}};return i?y.Authorization=`Bearer ${i}`:Object.assign(y,Pe(y)),fetch(p,{...g,headers:y,credentials:"include"})},[i]),h=mw({api:{url:ag,domainKey:ig,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>u(!r),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:l?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),r&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.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"}),f.jsx("button",{onClick:()=>u(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(uw,{control:h.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",ag]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",ig]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",i?"API Key":l?"Session":"None"]})]})]})]})}function Li(l){const{className:i,variant:o,children:r}=l;return f.jsx("div",{className:nt("rounded-xl bg-background",o==="bordered"&&"border border-border",i),children:r})}function Bi(l){const{className:i,children:o}=l;return f.jsx("div",{className:nt("px-5 pt-5",i),children:o})}function Hi(l){const{className:i,children:o}=l;return f.jsx("div",{className:nt("text-base font-semibold",i),children:o})}function ki(l){const{className:i,children:o}=l;return f.jsx("div",{className:nt("px-5 pb-5 pt-4",i),children:o})}function _u(l){const{className:i,variant:o="default",size:r="default",children:u,...d}=l,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"},g={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return f.jsx("button",{className:nt(h,p[o],g[r],i),...d,children:u})}function Un(l){const{className:i,...o}=l;return f.jsx("input",{className:nt("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 So(l){const{className:i,...o}=l;return f.jsx("label",{className:nt("text-sm font-medium text-foreground",i),...o})}function cg(l,[i,o]){return Math.min(o,Math.max(i,l))}function tt(l,i,{checkForDefaultPrevented:o=!0}={}){return function(u){if(l?.(u),o===!1||!u.defaultPrevented)return i?.(u)}}function wf(l,i=[]){let o=[];function r(d,h){const p=v.createContext(h),g=o.length;o=[...o,h];const y=S=>{const{scope:C,children:N,...D}=S,w=C?.[l]?.[g]||p,T=v.useMemo(()=>D,Object.values(D));return f.jsx(w.Provider,{value:T,children:N})};y.displayName=d+"Provider";function b(S,C){const N=C?.[l]?.[g]||p,D=v.useContext(N);if(D)return D;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${d}\``)}return[y,b]}const u=()=>{const d=o.map(h=>v.createContext(h));return function(p){const g=p?.[l]||d;return v.useMemo(()=>({[`__scope${l}`]:{...p,[l]:g}}),[p,g])}};return u.scopeName=l,[r,gw(u,...i)]}function gw(...l){const i=l[0];if(l.length===1)return i;const o=()=>{const r=l.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const h=r.reduce((p,{useScope:g,scopeName:y})=>{const S=g(d)[`__scope${y}`];return{...p,...S}},{});return v.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return o.scopeName=i.scopeName,o}function og(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function gv(...l){return i=>{let o=!1;const r=l.map(u=>{const d=og(u,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<r.length;u++){const d=r[u];typeof d=="function"?d():og(l[u],null)}}}}function ft(...l){return v.useCallback(gv(...l),l)}function qo(l){const i=vw(l),o=v.forwardRef((r,u)=>{const{children:d,...h}=r,p=v.Children.toArray(d),g=p.find(xw);if(g){const y=g.props.children,b=p.map(S=>S===g?v.Children.count(y)>1?v.Children.only(null):v.isValidElement(y)?y.props.children:null:S);return f.jsx(i,{...h,ref:u,children:v.isValidElement(y)?v.cloneElement(y,void 0,b):null})}return f.jsx(i,{...h,ref:u,children:d})});return o.displayName=`${l}.Slot`,o}function vw(l){const i=v.forwardRef((o,r)=>{const{children:u,...d}=o;if(v.isValidElement(u)){const h=Sw(u),p=bw(d,u.props);return u.type!==v.Fragment&&(p.ref=r?gv(r,h):h),v.cloneElement(u,p)}return v.Children.count(u)>1?v.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var yw=Symbol("radix.slottable");function xw(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===yw}function bw(l,i){const o={...i};for(const r in i){const u=l[r],d=i[r];/^on[A-Z]/.test(r)?u&&d?o[r]=(...p)=>{const g=d(...p);return u(...p),g}:u&&(o[r]=u):r==="style"?o[r]={...u,...d}:r==="className"&&(o[r]=[u,d].filter(Boolean).join(" "))}return{...l,...o}}function Sw(l){let i=Object.getOwnPropertyDescriptor(l.props,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?l.ref:(i=Object.getOwnPropertyDescriptor(l,"ref")?.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}function ww(l){const i=l+"CollectionProvider",[o,r]=wf(i),[u,d]=o(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:T,children:R}=w,O=$t.useRef(null),M=$t.useRef(new Map).current;return f.jsx(u,{scope:T,itemMap:M,collectionRef:O,children:R})};h.displayName=i;const p=l+"CollectionSlot",g=qo(p),y=$t.forwardRef((w,T)=>{const{scope:R,children:O}=w,M=d(p,R),q=ft(T,M.collectionRef);return f.jsx(g,{ref:q,children:O})});y.displayName=p;const b=l+"CollectionItemSlot",S="data-radix-collection-item",C=qo(b),N=$t.forwardRef((w,T)=>{const{scope:R,children:O,...M}=w,q=$t.useRef(null),Q=ft(T,q),P=d(b,R);return $t.useEffect(()=>(P.itemMap.set(q,{ref:q,...M}),()=>{P.itemMap.delete(q)})),f.jsx(C,{[S]:"",ref:Q,children:O})});N.displayName=b;function D(w){const T=d(l+"CollectionConsumer",w);return $t.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const M=Array.from(O.querySelectorAll(`[${S}]`));return Array.from(T.itemMap.values()).sort((P,Y)=>M.indexOf(P.ref.current)-M.indexOf(Y.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:h,Slot:y,ItemSlot:N},D,r]}var Ew=v.createContext(void 0);function Cw(l){const i=v.useContext(Ew);return l||i||"ltr"}var Nw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=Nw.reduce((l,i)=>{const o=qo(`Primitive.${i}`),r=v.forwardRef((u,d)=>{const{asChild:h,...p}=u,g=h?o:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(g,{...p,ref:d})});return r.displayName=`Primitive.${i}`,{...l,[i]:r}},{});function jw(l,i){l&&Ji.flushSync(()=>l.dispatchEvent(i))}function Hl(l){const i=v.useRef(l);return v.useEffect(()=>{i.current=l}),v.useMemo(()=>(...o)=>i.current?.(...o),[])}function Tw(l,i=globalThis?.document){const o=Hl(l);v.useEffect(()=>{const r=u=>{u.key==="Escape"&&o(u)};return i.addEventListener("keydown",r,{capture:!0}),()=>i.removeEventListener("keydown",r,{capture:!0})},[o,i])}var Aw="DismissableLayer",Pu="dismissableLayer.update",Rw="dismissableLayer.pointerDownOutside",Ow="dismissableLayer.focusOutside",rg,vv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yv=v.forwardRef((l,i)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...g}=l,y=v.useContext(vv),[b,S]=v.useState(null),C=b?.ownerDocument??globalThis?.document,[,N]=v.useState({}),D=ft(i,Y=>S(Y)),w=Array.from(y.layers),[T]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=w.indexOf(T),O=b?w.indexOf(b):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,q=O>=R,Q=Dw(Y=>{const ne=Y.target,le=[...y.branches].some(se=>se.contains(ne));!q||le||(u?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C),P=Mw(Y=>{const ne=Y.target;[...y.branches].some(se=>se.contains(ne))||(d?.(Y),h?.(Y),Y.defaultPrevented||p?.())},C);return Tw(Y=>{O===y.layers.size-1&&(r?.(Y),!Y.defaultPrevented&&p&&(Y.preventDefault(),p()))},C),v.useEffect(()=>{if(b)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(rg=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(b)),y.layers.add(b),sg(),()=>{o&&y.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=rg)}},[b,C,o,y]),v.useEffect(()=>()=>{b&&(y.layers.delete(b),y.layersWithOutsidePointerEventsDisabled.delete(b),sg())},[b,y]),v.useEffect(()=>{const Y=()=>N({});return document.addEventListener(Pu,Y),()=>document.removeEventListener(Pu,Y)},[]),f.jsx(Je.div,{...g,ref:D,style:{pointerEvents:M?q?"auto":"none":void 0,...l.style},onFocusCapture:tt(l.onFocusCapture,P.onFocusCapture),onBlurCapture:tt(l.onBlurCapture,P.onBlurCapture),onPointerDownCapture:tt(l.onPointerDownCapture,Q.onPointerDownCapture)})});yv.displayName=Aw;var zw="DismissableLayerBranch",_w=v.forwardRef((l,i)=>{const o=v.useContext(vv),r=v.useRef(null),u=ft(i,r);return v.useEffect(()=>{const d=r.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),f.jsx(Je.div,{...l,ref:u})});_w.displayName=zw;function Dw(l,i=globalThis?.document){const o=Hl(l),r=v.useRef(!1),u=v.useRef(()=>{});return v.useEffect(()=>{const d=p=>{if(p.target&&!r.current){let g=function(){xv(Rw,o,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=g,i.addEventListener("click",u.current,{once:!0})):g()}else i.removeEventListener("click",u.current);r.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",u.current)}},[i,o]),{onPointerDownCapture:()=>r.current=!0}}function Mw(l,i=globalThis?.document){const o=Hl(l),r=v.useRef(!1);return v.useEffect(()=>{const u=d=>{d.target&&!r.current&&xv(Ow,o,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sg(){const l=new CustomEvent(Pu);document.dispatchEvent(l)}function xv(l,i,o,{discrete:r}){const u=o.originalEvent.target,d=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:o});i&&u.addEventListener(l,i,{once:!0}),r?jw(u,d):u.dispatchEvent(d)}var Du=0;function Uw(){v.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??ug()),document.body.insertAdjacentElement("beforeend",l[1]??ug()),Du++,()=>{Du===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Du--}},[])}function ug(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Mu="focusScope.autoFocusOnMount",Uu="focusScope.autoFocusOnUnmount",fg={bubbles:!1,cancelable:!0},Lw="FocusScope",bv=v.forwardRef((l,i)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...h}=l,[p,g]=v.useState(null),y=Hl(u),b=Hl(d),S=v.useRef(null),C=ft(i,w=>g(w)),N=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let w=function(M){if(N.paused||!p)return;const q=M.target;p.contains(q)?S.current=q:pl(S.current,{select:!0})},T=function(M){if(N.paused||!p)return;const q=M.relatedTarget;q!==null&&(p.contains(q)||pl(S.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const Q of M)Q.removedNodes.length>0&&pl(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",T);const O=new MutationObserver(R);return p&&O.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T),O.disconnect()}}},[r,p,N.paused]),v.useEffect(()=>{if(p){hg.add(N);const w=document.activeElement;if(!p.contains(w)){const R=new CustomEvent(Mu,fg);p.addEventListener(Mu,y),p.dispatchEvent(R),R.defaultPrevented||(Bw(Vw(Sv(p)),{select:!0}),document.activeElement===w&&pl(p))}return()=>{p.removeEventListener(Mu,y),setTimeout(()=>{const R=new CustomEvent(Uu,fg);p.addEventListener(Uu,b),p.dispatchEvent(R),R.defaultPrevented||pl(w??document.body,{select:!0}),p.removeEventListener(Uu,b),hg.remove(N)},0)}}},[p,y,b,N]);const D=v.useCallback(w=>{if(!o&&!r||N.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,R=document.activeElement;if(T&&R){const O=w.currentTarget,[M,q]=Hw(O);M&&q?!w.shiftKey&&R===q?(w.preventDefault(),o&&pl(M,{select:!0})):w.shiftKey&&R===M&&(w.preventDefault(),o&&pl(q,{select:!0})):R===O&&w.preventDefault()}},[o,r,N.paused]);return f.jsx(Je.div,{tabIndex:-1,...h,ref:C,onKeyDown:D})});bv.displayName=Lw;function Bw(l,{select:i=!1}={}){const o=document.activeElement;for(const r of l)if(pl(r,{select:i}),document.activeElement!==o)return}function Hw(l){const i=Sv(l),o=dg(i,l),r=dg(i.reverse(),l);return[o,r]}function Sv(l){const i=[],o=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)i.push(o.currentNode);return i}function dg(l,i){for(const o of l)if(!kw(o,{upTo:i}))return o}function kw(l,{upTo:i}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(i!==void 0&&l===i)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function Yw(l){return l instanceof HTMLInputElement&&"select"in l}function pl(l,{select:i=!1}={}){if(l&&l.focus){const o=document.activeElement;l.focus({preventScroll:!0}),l!==o&&Yw(l)&&i&&l.select()}}var hg=qw();function qw(){let l=[];return{add(i){const o=l[0];i!==o&&o?.pause(),l=mg(l,i),l.unshift(i)},remove(i){l=mg(l,i),l[0]?.resume()}}}function mg(l,i){const o=[...l],r=o.indexOf(i);return r!==-1&&o.splice(r,1),o}function Vw(l){return l.filter(i=>i.tagName!=="A")}var wt=globalThis?.document?v.useLayoutEffect:()=>{},Xw=Dg[" useId ".trim().toString()]||(()=>{}),Gw=0;function Ef(l){const[i,o]=v.useState(Xw());return wt(()=>{o(r=>r??String(Gw++))},[l]),i?`radix-${i}`:""}const Fw=["top","right","bottom","left"],gl=Math.min,Ut=Math.max,Vo=Math.round,wo=Math.floor,fn=l=>({x:l,y:l}),Kw={left:"right",right:"left",bottom:"top",top:"bottom"},Qw={start:"end",end:"start"};function Ju(l,i,o){return Ut(l,gl(i,o))}function qn(l,i){return typeof l=="function"?l(i):l}function Vn(l){return l.split("-")[0]}function Ha(l){return l.split("-")[1]}function Cf(l){return l==="x"?"y":"x"}function Nf(l){return l==="y"?"height":"width"}const Zw=new Set(["top","bottom"]);function un(l){return Zw.has(Vn(l))?"y":"x"}function jf(l){return Cf(un(l))}function Pw(l,i,o){o===void 0&&(o=!1);const r=Ha(l),u=jf(l),d=Nf(u);let h=u==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Xo(h)),[h,Xo(h)]}function Jw(l){const i=Xo(l);return[Iu(l),i,Iu(i)]}function Iu(l){return l.replace(/start|end/g,i=>Qw[i])}const pg=["left","right"],gg=["right","left"],Iw=["top","bottom"],Ww=["bottom","top"];function $w(l,i,o){switch(l){case"top":case"bottom":return o?i?gg:pg:i?pg:gg;case"left":case"right":return i?Iw:Ww;default:return[]}}function eE(l,i,o,r){const u=Ha(l);let d=$w(Vn(l),o==="start",r);return u&&(d=d.map(h=>h+"-"+u),i&&(d=d.concat(d.map(Iu)))),d}function Xo(l){return l.replace(/left|right|bottom|top/g,i=>Kw[i])}function tE(l){return{top:0,right:0,bottom:0,left:0,...l}}function wv(l){return typeof l!="number"?tE(l):{top:l,right:l,bottom:l,left:l}}function Go(l){const{x:i,y:o,width:r,height:u}=l;return{width:r,height:u,top:o,left:i,right:i+r,bottom:o+u,x:i,y:o}}function vg(l,i,o){let{reference:r,floating:u}=l;const d=un(i),h=jf(i),p=Nf(h),g=Vn(i),y=d==="y",b=r.x+r.width/2-u.width/2,S=r.y+r.height/2-u.height/2,C=r[p]/2-u[p]/2;let N;switch(g){case"top":N={x:b,y:r.y-u.height};break;case"bottom":N={x:b,y:r.y+r.height};break;case"right":N={x:r.x+r.width,y:S};break;case"left":N={x:r.x-u.width,y:S};break;default:N={x:r.x,y:r.y}}switch(Ha(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 nE(l,i){var o;i===void 0&&(i={});const{x:r,y:u,platform:d,rects:h,elements:p,strategy:g}=l,{boundary:y="clippingAncestors",rootBoundary:b="viewport",elementContext:S="floating",altBoundary:C=!1,padding:N=0}=qn(i,l),D=wv(N),T=p[C?S==="floating"?"reference":"floating":S],R=Go(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:y,rootBoundary:b,strategy:g})),O=S==="floating"?{x:r,y:u,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=Go(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:O,offsetParent:M,strategy:g}):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 lE=async(l,i,o)=>{const{placement:r="bottom",strategy:u="absolute",middleware:d=[],platform:h}=o,p=d.filter(Boolean),g=await(h.isRTL==null?void 0:h.isRTL(i));let y=await h.getElementRects({reference:l,floating:i,strategy:u}),{x:b,y:S}=vg(y,r,g),C=r,N={},D=0;for(let T=0;T<p.length;T++){var w;const{name:R,fn:O}=p[T],{x:M,y:q,data:Q,reset:P}=await O({x:b,y:S,initialPlacement:r,placement:C,strategy:u,middlewareData:N,rects:y,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:nE},elements:{reference:l,floating:i}});b=M??b,S=q??S,N={...N,[R]:{...N[R],...Q}},P&&D<=50&&(D++,typeof P=="object"&&(P.placement&&(C=P.placement),P.rects&&(y=P.rects===!0?await h.getElementRects({reference:l,floating:i,strategy:u}):P.rects),{x:b,y:S}=vg(y,C,g)),T=-1)}return{x:b,y:S,placement:C,strategy:u,middlewareData:N}},aE=l=>({name:"arrow",options:l,async fn(i){const{x:o,y:r,placement:u,rects:d,platform:h,elements:p,middlewareData:g}=i,{element:y,padding:b=0}=qn(l,i)||{};if(y==null)return{};const S=wv(b),C={x:o,y:r},N=jf(u),D=Nf(N),w=await h.getDimensions(y),T=N==="y",R=T?"top":"left",O=T?"bottom":"right",M=T?"clientHeight":"clientWidth",q=d.reference[D]+d.reference[N]-C[N]-d.floating[D],Q=C[N]-d.reference[N],P=await(h.getOffsetParent==null?void 0:h.getOffsetParent(y));let Y=P?P[M]:0;(!Y||!await(h.isElement==null?void 0:h.isElement(P)))&&(Y=p.floating[M]||d.floating[D]);const ne=q/2-Q/2,le=Y/2-w[D]/2-1,se=gl(S[R],le),ue=gl(S[O],le),$=se,te=Y-w[D]-ue,ee=Y/2-w[D]/2+ne,fe=Ju($,ee,te),_=!g.arrow&&Ha(u)!=null&&ee!==fe&&d.reference[D]/2-(ee<$?se:ue)-w[D]/2<0,U=_?ee<$?ee-$:ee-te:0;return{[N]:C[N]+U,data:{[N]:fe,centerOffset:ee-fe-U,..._&&{alignmentOffset:U}},reset:_}}}),iE=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(i){var o,r;const{placement:u,middlewareData:d,rects:h,initialPlacement:p,platform:g,elements:y}=i,{mainAxis:b=!0,crossAxis:S=!0,fallbackPlacements:C,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:w=!0,...T}=qn(l,i);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const R=Vn(u),O=un(p),M=Vn(p)===p,q=await(g.isRTL==null?void 0:g.isRTL(y.floating)),Q=C||(M||!w?[Xo(p)]:Jw(p)),P=D!=="none";!C&&P&&Q.push(...eE(p,w,D,q));const Y=[p,...Q],ne=await g.detectOverflow(i,T),le=[];let se=((r=d.flip)==null?void 0:r.overflows)||[];if(b&&le.push(ne[R]),S){const ee=Pw(u,h,q);le.push(ne[ee[0]],ne[ee[1]])}if(se=[...se,{placement:u,overflows:le}],!le.every(ee=>ee<=0)){var ue,$;const ee=(((ue=d.flip)==null?void 0:ue.index)||0)+1,fe=Y[ee];if(fe&&(!(S==="alignment"?O!==un(fe):!1)||se.every(V=>un(V.placement)===O?V.overflows[0]>0:!0)))return{data:{index:ee,overflows:se},reset:{placement:fe}};let _=($=se.filter(U=>U.overflows[0]<=0).sort((U,V)=>U.overflows[1]-V.overflows[1])[0])==null?void 0:$.placement;if(!_)switch(N){case"bestFit":{var te;const U=(te=se.filter(V=>{if(P){const ae=un(V.placement);return ae===O||ae==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ae=>ae>0).reduce((ae,ge)=>ae+ge,0)]).sort((V,ae)=>V[1]-ae[1])[0])==null?void 0:te[0];U&&(_=U);break}case"initialPlacement":_=p;break}if(u!==_)return{reset:{placement:_}}}return{}}}};function yg(l,i){return{top:l.top-i.height,right:l.right-i.width,bottom:l.bottom-i.height,left:l.left-i.width}}function xg(l){return Fw.some(i=>l[i]>=0)}const cE=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(i){const{rects:o,platform:r}=i,{strategy:u="referenceHidden",...d}=qn(l,i);switch(u){case"referenceHidden":{const h=await r.detectOverflow(i,{...d,elementContext:"reference"}),p=yg(h,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:xg(p)}}}case"escaped":{const h=await r.detectOverflow(i,{...d,altBoundary:!0}),p=yg(h,o.floating);return{data:{escapedOffsets:p,escaped:xg(p)}}}default:return{}}}}},Ev=new Set(["left","top"]);async function oE(l,i){const{placement:o,platform:r,elements:u}=l,d=await(r.isRTL==null?void 0:r.isRTL(u.floating)),h=Vn(o),p=Ha(o),g=un(o)==="y",y=Ev.has(h)?-1:1,b=d&&g?-1:1,S=qn(i,l);let{mainAxis:C,crossAxis:N,alignmentAxis:D}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return p&&typeof D=="number"&&(N=p==="end"?D*-1:D),g?{x:N*b,y:C*y}:{x:C*y,y:N*b}}const rE=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(i){var o,r;const{x:u,y:d,placement:h,middlewareData:p}=i,g=await oE(i,l);return h===((o=p.offset)==null?void 0:o.placement)&&(r=p.arrow)!=null&&r.alignmentOffset?{}:{x:u+g.x,y:d+g.y,data:{...g,placement:h}}}}},sE=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(i){const{x:o,y:r,placement:u,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:g={fn:R=>{let{x:O,y:M}=R;return{x:O,y:M}}},...y}=qn(l,i),b={x:o,y:r},S=await d.detectOverflow(i,y),C=un(Vn(u)),N=Cf(C);let D=b[N],w=b[C];if(h){const R=N==="y"?"top":"left",O=N==="y"?"bottom":"right",M=D+S[R],q=D-S[O];D=Ju(M,D,q)}if(p){const R=C==="y"?"top":"left",O=C==="y"?"bottom":"right",M=w+S[R],q=w-S[O];w=Ju(M,w,q)}const T=g.fn({...i,[N]:D,[C]:w});return{...T,data:{x:T.x-o,y:T.y-r,enabled:{[N]:h,[C]:p}}}}}},uE=function(l){return l===void 0&&(l={}),{options:l,fn(i){const{x:o,y:r,placement:u,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:g=!0,crossAxis:y=!0}=qn(l,i),b={x:o,y:r},S=un(u),C=Cf(S);let N=b[C],D=b[S];const w=qn(p,i),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(g){const M=C==="y"?"height":"width",q=d.reference[C]-d.floating[M]+T.mainAxis,Q=d.reference[C]+d.reference[M]-T.mainAxis;N<q?N=q:N>Q&&(N=Q)}if(y){var R,O;const M=C==="y"?"width":"height",q=Ev.has(Vn(u)),Q=d.reference[S]-d.floating[M]+(q&&((R=h.offset)==null?void 0:R[S])||0)+(q?0:T.crossAxis),P=d.reference[S]+d.reference[M]+(q?0:((O=h.offset)==null?void 0:O[S])||0)-(q?T.crossAxis:0);D<Q?D=Q:D>P&&(D=P)}return{[C]:N,[S]:D}}}},fE=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(i){var o,r;const{placement:u,rects:d,platform:h,elements:p}=i,{apply:g=()=>{},...y}=qn(l,i),b=await h.detectOverflow(i,y),S=Vn(u),C=Ha(u),N=un(u)==="y",{width:D,height:w}=d.floating;let T,R;S==="top"||S==="bottom"?(T=S,R=C===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(R=S,T=C==="end"?"top":"bottom");const O=w-b.top-b.bottom,M=D-b.left-b.right,q=gl(w-b[T],O),Q=gl(D-b[R],M),P=!i.middlewareData.shift;let Y=q,ne=Q;if((o=i.middlewareData.shift)!=null&&o.enabled.x&&(ne=M),(r=i.middlewareData.shift)!=null&&r.enabled.y&&(Y=O),P&&!C){const se=Ut(b.left,0),ue=Ut(b.right,0),$=Ut(b.top,0),te=Ut(b.bottom,0);N?ne=D-2*(se!==0||ue!==0?se+ue:Ut(b.left,b.right)):Y=w-2*($!==0||te!==0?$+te:Ut(b.top,b.bottom))}await g({...i,availableWidth:ne,availableHeight:Y});const le=await h.getDimensions(p.floating);return D!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}};function Wo(){return typeof window<"u"}function ka(l){return Cv(l)?(l.nodeName||"").toLowerCase():"#document"}function Lt(l){var i;return(l==null||(i=l.ownerDocument)==null?void 0:i.defaultView)||window}function pn(l){var i;return(i=(Cv(l)?l.ownerDocument:l.document)||window.document)==null?void 0:i.documentElement}function Cv(l){return Wo()?l instanceof Node||l instanceof Lt(l).Node:!1}function tn(l){return Wo()?l instanceof Element||l instanceof Lt(l).Element:!1}function dn(l){return Wo()?l instanceof HTMLElement||l instanceof Lt(l).HTMLElement:!1}function bg(l){return!Wo()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Lt(l).ShadowRoot}const dE=new Set(["inline","contents"]);function Wi(l){const{overflow:i,overflowX:o,overflowY:r,display:u}=nn(l);return/auto|scroll|overlay|hidden|clip/.test(i+r+o)&&!dE.has(u)}const hE=new Set(["table","td","th"]);function mE(l){return hE.has(ka(l))}const pE=[":popover-open",":modal"];function $o(l){return pE.some(i=>{try{return l.matches(i)}catch{return!1}})}const gE=["transform","translate","scale","rotate","perspective"],vE=["transform","translate","scale","rotate","perspective","filter"],yE=["paint","layout","strict","content"];function Tf(l){const i=Af(),o=tn(l)?nn(l):l;return gE.some(r=>o[r]?o[r]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!i&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!i&&(o.filter?o.filter!=="none":!1)||vE.some(r=>(o.willChange||"").includes(r))||yE.some(r=>(o.contain||"").includes(r))}function xE(l){let i=vl(l);for(;dn(i)&&!Ma(i);){if(Tf(i))return i;if($o(i))return null;i=vl(i)}return null}function Af(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bE=new Set(["html","body","#document"]);function Ma(l){return bE.has(ka(l))}function nn(l){return Lt(l).getComputedStyle(l)}function er(l){return tn(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function vl(l){if(ka(l)==="html")return l;const i=l.assignedSlot||l.parentNode||bg(l)&&l.host||pn(l);return bg(i)?i.host:i}function Nv(l){const i=vl(l);return Ma(i)?l.ownerDocument?l.ownerDocument.body:l.body:dn(i)&&Wi(i)?i:Nv(i)}function Qi(l,i,o){var r;i===void 0&&(i=[]),o===void 0&&(o=!0);const u=Nv(l),d=u===((r=l.ownerDocument)==null?void 0:r.body),h=Lt(u);if(d){const p=Wu(h);return i.concat(h,h.visualViewport||[],Wi(u)?u:[],p&&o?Qi(p):[])}return i.concat(u,Qi(u,[],o))}function Wu(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function jv(l){const i=nn(l);let o=parseFloat(i.width)||0,r=parseFloat(i.height)||0;const u=dn(l),d=u?l.offsetWidth:o,h=u?l.offsetHeight:r,p=Vo(o)!==d||Vo(r)!==h;return p&&(o=d,r=h),{width:o,height:r,$:p}}function Rf(l){return tn(l)?l:l.contextElement}function za(l){const i=Rf(l);if(!dn(i))return fn(1);const o=i.getBoundingClientRect(),{width:r,height:u,$:d}=jv(i);let h=(d?Vo(o.width):o.width)/r,p=(d?Vo(o.height):o.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const SE=fn(0);function Tv(l){const i=Lt(l);return!Af()||!i.visualViewport?SE:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function wE(l,i,o){return i===void 0&&(i=!1),!o||i&&o!==Lt(l)?!1:i}function kl(l,i,o,r){i===void 0&&(i=!1),o===void 0&&(o=!1);const u=l.getBoundingClientRect(),d=Rf(l);let h=fn(1);i&&(r?tn(r)&&(h=za(r)):h=za(l));const p=wE(d,o,r)?Tv(d):fn(0);let g=(u.left+p.x)/h.x,y=(u.top+p.y)/h.y,b=u.width/h.x,S=u.height/h.y;if(d){const C=Lt(d),N=r&&tn(r)?Lt(r):r;let D=C,w=Wu(D);for(;w&&r&&N!==D;){const T=za(w),R=w.getBoundingClientRect(),O=nn(w),M=R.left+(w.clientLeft+parseFloat(O.paddingLeft))*T.x,q=R.top+(w.clientTop+parseFloat(O.paddingTop))*T.y;g*=T.x,y*=T.y,b*=T.x,S*=T.y,g+=M,y+=q,D=Lt(w),w=Wu(D)}}return Go({width:b,height:S,x:g,y})}function tr(l,i){const o=er(l).scrollLeft;return i?i.left+o:kl(pn(l)).left+o}function Av(l,i){const o=l.getBoundingClientRect(),r=o.left+i.scrollLeft-tr(l,o),u=o.top+i.scrollTop;return{x:r,y:u}}function EE(l){let{elements:i,rect:o,offsetParent:r,strategy:u}=l;const d=u==="fixed",h=pn(r),p=i?$o(i.floating):!1;if(r===h||p&&d)return o;let g={scrollLeft:0,scrollTop:0},y=fn(1);const b=fn(0),S=dn(r);if((S||!S&&!d)&&((ka(r)!=="body"||Wi(h))&&(g=er(r)),dn(r))){const N=kl(r);y=za(r),b.x=N.x+r.clientLeft,b.y=N.y+r.clientTop}const C=h&&!S&&!d?Av(h,g):fn(0);return{width:o.width*y.x,height:o.height*y.y,x:o.x*y.x-g.scrollLeft*y.x+b.x+C.x,y:o.y*y.y-g.scrollTop*y.y+b.y+C.y}}function CE(l){return Array.from(l.getClientRects())}function NE(l){const i=pn(l),o=er(l),r=l.ownerDocument.body,u=Ut(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),d=Ut(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight);let h=-o.scrollLeft+tr(l);const p=-o.scrollTop;return nn(r).direction==="rtl"&&(h+=Ut(i.clientWidth,r.clientWidth)-u),{width:u,height:d,x:h,y:p}}const Sg=25;function jE(l,i){const o=Lt(l),r=pn(l),u=o.visualViewport;let d=r.clientWidth,h=r.clientHeight,p=0,g=0;if(u){d=u.width,h=u.height;const b=Af();(!b||b&&i==="fixed")&&(p=u.offsetLeft,g=u.offsetTop)}const y=tr(r);if(y<=0){const b=r.ownerDocument,S=b.body,C=getComputedStyle(S),N=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,D=Math.abs(r.clientWidth-S.clientWidth-N);D<=Sg&&(d-=D)}else y<=Sg&&(d+=y);return{width:d,height:h,x:p,y:g}}const TE=new Set(["absolute","fixed"]);function AE(l,i){const o=kl(l,!0,i==="fixed"),r=o.top+l.clientTop,u=o.left+l.clientLeft,d=dn(l)?za(l):fn(1),h=l.clientWidth*d.x,p=l.clientHeight*d.y,g=u*d.x,y=r*d.y;return{width:h,height:p,x:g,y}}function wg(l,i,o){let r;if(i==="viewport")r=jE(l,o);else if(i==="document")r=NE(pn(l));else if(tn(i))r=AE(i,o);else{const u=Tv(l);r={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return Go(r)}function Rv(l,i){const o=vl(l);return o===i||!tn(o)||Ma(o)?!1:nn(o).position==="fixed"||Rv(o,i)}function RE(l,i){const o=i.get(l);if(o)return o;let r=Qi(l,[],!1).filter(p=>tn(p)&&ka(p)!=="body"),u=null;const d=nn(l).position==="fixed";let h=d?vl(l):l;for(;tn(h)&&!Ma(h);){const p=nn(h),g=Tf(h);!g&&p.position==="fixed"&&(u=null),(d?!g&&!u:!g&&p.position==="static"&&!!u&&TE.has(u.position)||Wi(h)&&!g&&Rv(l,h))?r=r.filter(b=>b!==h):u=p,h=vl(h)}return i.set(l,r),r}function OE(l){let{element:i,boundary:o,rootBoundary:r,strategy:u}=l;const h=[...o==="clippingAncestors"?$o(i)?[]:RE(i,this._c):[].concat(o),r],p=h[0],g=h.reduce((y,b)=>{const S=wg(i,b,u);return y.top=Ut(S.top,y.top),y.right=gl(S.right,y.right),y.bottom=gl(S.bottom,y.bottom),y.left=Ut(S.left,y.left),y},wg(i,p,u));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function zE(l){const{width:i,height:o}=jv(l);return{width:i,height:o}}function _E(l,i,o){const r=dn(i),u=pn(i),d=o==="fixed",h=kl(l,!0,d,i);let p={scrollLeft:0,scrollTop:0};const g=fn(0);function y(){g.x=tr(u)}if(r||!r&&!d)if((ka(i)!=="body"||Wi(u))&&(p=er(i)),r){const N=kl(i,!0,d,i);g.x=N.x+i.clientLeft,g.y=N.y+i.clientTop}else u&&y();d&&!r&&u&&y();const b=u&&!r&&!d?Av(u,p):fn(0),S=h.left+p.scrollLeft-g.x-b.x,C=h.top+p.scrollTop-g.y-b.y;return{x:S,y:C,width:h.width,height:h.height}}function Lu(l){return nn(l).position==="static"}function Eg(l,i){if(!dn(l)||nn(l).position==="fixed")return null;if(i)return i(l);let o=l.offsetParent;return pn(l)===o&&(o=o.ownerDocument.body),o}function Ov(l,i){const o=Lt(l);if($o(l))return o;if(!dn(l)){let u=vl(l);for(;u&&!Ma(u);){if(tn(u)&&!Lu(u))return u;u=vl(u)}return o}let r=Eg(l,i);for(;r&&mE(r)&&Lu(r);)r=Eg(r,i);return r&&Ma(r)&&Lu(r)&&!Tf(r)?o:r||xE(l)||o}const DE=async function(l){const i=this.getOffsetParent||Ov,o=this.getDimensions,r=await o(l.floating);return{reference:_E(l.reference,await i(l.floating),l.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ME(l){return nn(l).direction==="rtl"}const UE={convertOffsetParentRelativeRectToViewportRelativeRect:EE,getDocumentElement:pn,getClippingRect:OE,getOffsetParent:Ov,getElementRects:DE,getClientRects:CE,getDimensions:zE,getScale:za,isElement:tn,isRTL:ME};function zv(l,i){return l.x===i.x&&l.y===i.y&&l.width===i.width&&l.height===i.height}function LE(l,i){let o=null,r;const u=pn(l);function d(){var p;clearTimeout(r),(p=o)==null||p.disconnect(),o=null}function h(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),d();const y=l.getBoundingClientRect(),{left:b,top:S,width:C,height:N}=y;if(p||i(),!C||!N)return;const D=wo(S),w=wo(u.clientWidth-(b+C)),T=wo(u.clientHeight-(S+N)),R=wo(b),M={rootMargin:-D+"px "+-w+"px "+-T+"px "+-R+"px",threshold:Ut(0,gl(1,g))||1};let q=!0;function Q(P){const Y=P[0].intersectionRatio;if(Y!==g){if(!q)return h();Y?h(!1,Y):r=setTimeout(()=>{h(!1,1e-7)},1e3)}Y===1&&!zv(y,l.getBoundingClientRect())&&h(),q=!1}try{o=new IntersectionObserver(Q,{...M,root:u.ownerDocument})}catch{o=new IntersectionObserver(Q,M)}o.observe(l)}return h(!0),d}function BE(l,i,o,r){r===void 0&&(r={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,y=Rf(l),b=u||d?[...y?Qi(y):[],...Qi(i)]:[];b.forEach(R=>{u&&R.addEventListener("scroll",o,{passive:!0}),d&&R.addEventListener("resize",o)});const S=y&&p?LE(y,o):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)})),o()}),y&&!g&&N.observe(y),N.observe(i));let D,w=g?kl(l):null;g&&T();function T(){const R=kl(l);w&&!zv(w,R)&&o(),w=R,D=requestAnimationFrame(T)}return o(),()=>{var R;b.forEach(O=>{u&&O.removeEventListener("scroll",o),d&&O.removeEventListener("resize",o)}),S?.(),(R=N)==null||R.disconnect(),N=null,g&&cancelAnimationFrame(D)}}const HE=rE,kE=sE,YE=iE,qE=fE,VE=cE,Cg=aE,XE=uE,GE=(l,i,o)=>{const r=new Map,u={platform:UE,...o},d={...u.platform,_c:r};return lE(l,i,{...u,platform:d})};var FE=typeof document<"u",KE=function(){},zo=FE?v.useLayoutEffect:KE;function Fo(l,i){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(typeof l=="function"&&l.toString()===i.toString())return!0;let o,r,u;if(l&&i&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==i.length)return!1;for(r=o;r--!==0;)if(!Fo(l[r],i[r]))return!1;return!0}if(u=Object.keys(l),o=u.length,o!==Object.keys(i).length)return!1;for(r=o;r--!==0;)if(!{}.hasOwnProperty.call(i,u[r]))return!1;for(r=o;r--!==0;){const d=u[r];if(!(d==="_owner"&&l.$$typeof)&&!Fo(l[d],i[d]))return!1}return!0}return l!==l&&i!==i}function _v(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function Ng(l,i){const o=_v(l);return Math.round(i*o)/o}function Bu(l){const i=v.useRef(l);return zo(()=>{i.current=l}),i}function QE(l){l===void 0&&(l={});const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:u,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:g,open:y}=l,[b,S]=v.useState({x:0,y:0,strategy:o,placement:i,middlewareData:{},isPositioned:!1}),[C,N]=v.useState(r);Fo(C,r)||N(r);const[D,w]=v.useState(null),[T,R]=v.useState(null),O=v.useCallback(V=>{V!==P.current&&(P.current=V,w(V))},[]),M=v.useCallback(V=>{V!==Y.current&&(Y.current=V,R(V))},[]),q=d||D,Q=h||T,P=v.useRef(null),Y=v.useRef(null),ne=v.useRef(b),le=g!=null,se=Bu(g),ue=Bu(u),$=Bu(y),te=v.useCallback(()=>{if(!P.current||!Y.current)return;const V={placement:i,strategy:o,middleware:C};ue.current&&(V.platform=ue.current),GE(P.current,Y.current,V).then(ae=>{const ge={...ae,isPositioned:$.current!==!1};ee.current&&!Fo(ne.current,ge)&&(ne.current=ge,Ji.flushSync(()=>{S(ge)}))})},[C,i,o,ue,$]);zo(()=>{y===!1&&ne.current.isPositioned&&(ne.current.isPositioned=!1,S(V=>({...V,isPositioned:!1})))},[y]);const ee=v.useRef(!1);zo(()=>(ee.current=!0,()=>{ee.current=!1}),[]),zo(()=>{if(q&&(P.current=q),Q&&(Y.current=Q),q&&Q){if(se.current)return se.current(q,Q,te);te()}},[q,Q,te,se,le]);const fe=v.useMemo(()=>({reference:P,floating:Y,setReference:O,setFloating:M}),[O,M]),_=v.useMemo(()=>({reference:q,floating:Q}),[q,Q]),U=v.useMemo(()=>{const V={position:o,left:0,top:0};if(!_.floating)return V;const ae=Ng(_.floating,b.x),ge=Ng(_.floating,b.y);return p?{...V,transform:"translate("+ae+"px, "+ge+"px)",..._v(_.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ae,top:ge}},[o,p,_.floating,b.x,b.y]);return v.useMemo(()=>({...b,update:te,refs:fe,elements:_,floatingStyles:U}),[b,te,fe,_,U])}const ZE=l=>{function i(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:l,fn(o){const{element:r,padding:u}=typeof l=="function"?l(o):l;return r&&i(r)?r.current!=null?Cg({element:r.current,padding:u}).fn(o):{}:r?Cg({element:r,padding:u}).fn(o):{}}}},PE=(l,i)=>({...HE(l),options:[l,i]}),JE=(l,i)=>({...kE(l),options:[l,i]}),IE=(l,i)=>({...XE(l),options:[l,i]}),WE=(l,i)=>({...YE(l),options:[l,i]}),$E=(l,i)=>({...qE(l),options:[l,i]}),e2=(l,i)=>({...VE(l),options:[l,i]}),t2=(l,i)=>({...ZE(l),options:[l,i]});var n2="Arrow",Dv=v.forwardRef((l,i)=>{const{children:o,width:r=10,height:u=5,...d}=l;return f.jsx(Je.svg,{...d,ref:i,width:r,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dv.displayName=n2;var l2=Dv;function a2(l){const[i,o]=v.useState(void 0);return wt(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let h,p;if("borderBoxSize"in d){const g=d.borderBoxSize,y=Array.isArray(g)?g[0]:g;h=y.inlineSize,p=y.blockSize}else h=l.offsetWidth,p=l.offsetHeight;o({width:h,height:p})});return r.observe(l,{box:"border-box"}),()=>r.unobserve(l)}else o(void 0)},[l]),i}var Of="Popper",[Mv,Uv]=wf(Of),[i2,Lv]=Mv(Of),Bv=l=>{const{__scopePopper:i,children:o}=l,[r,u]=v.useState(null);return f.jsx(i2,{scope:i,anchor:r,onAnchorChange:u,children:o})};Bv.displayName=Of;var Hv="PopperAnchor",kv=v.forwardRef((l,i)=>{const{__scopePopper:o,virtualRef:r,...u}=l,d=Lv(Hv,o),h=v.useRef(null),p=ft(i,h),g=v.useRef(null);return v.useEffect(()=>{const y=g.current;g.current=r?.current||h.current,y!==g.current&&d.onAnchorChange(g.current)}),r?null:f.jsx(Je.div,{...u,ref:p})});kv.displayName=Hv;var zf="PopperContent",[c2,o2]=Mv(zf),Yv=v.forwardRef((l,i)=>{const{__scopePopper:o,side:r="bottom",sideOffset:u=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:S="partial",hideWhenDetached:C=!1,updatePositionStrategy:N="optimized",onPlaced:D,...w}=l,T=Lv(zf,o),[R,O]=v.useState(null),M=ft(i,I=>O(I)),[q,Q]=v.useState(null),P=a2(q),Y=P?.width??0,ne=P?.height??0,le=r+(d!=="center"?"-"+d:""),se=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},ue=Array.isArray(y)?y:[y],$=ue.length>0,te={padding:se,boundary:ue.filter(s2),altBoundary:$},{refs:ee,floatingStyles:fe,placement:_,isPositioned:U,middlewareData:V}=QE({strategy:"fixed",placement:le,whileElementsMounted:(...I)=>BE(...I,{animationFrame:N==="always"}),elements:{reference:T.anchor},middleware:[PE({mainAxis:u+ne,alignmentAxis:h}),g&&JE({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?IE():void 0,...te}),g&&WE({...te}),$E({...te,apply:({elements:I,rects:me,availableWidth:J,availableHeight:re})=>{const{width:ve,height:je}=me.reference,_e=I.floating.style;_e.setProperty("--radix-popper-available-width",`${J}px`),_e.setProperty("--radix-popper-available-height",`${re}px`),_e.setProperty("--radix-popper-anchor-width",`${ve}px`),_e.setProperty("--radix-popper-anchor-height",`${je}px`)}}),q&&t2({element:q,padding:p}),u2({arrowWidth:Y,arrowHeight:ne}),C&&e2({strategy:"referenceHidden",...te})]}),[ae,ge]=Xv(_),j=Hl(D);wt(()=>{U&&j?.()},[U,j]);const G=V.arrow?.x,Z=V.arrow?.y,W=V.arrow?.centerOffset!==0,[ce,he]=v.useState();return wt(()=>{R&&he(window.getComputedStyle(R).zIndex)},[R]),f.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...fe,transform:U?fe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(" "),...V.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:f.jsx(c2,{scope:o,placedSide:ae,onArrowChange:Q,arrowX:G,arrowY:Z,shouldHideArrow:W,children:f.jsx(Je.div,{"data-side":ae,"data-align":ge,...w,ref:M,style:{...w.style,animation:U?void 0:"none"}})})})});Yv.displayName=zf;var qv="PopperArrow",r2={top:"bottom",right:"left",bottom:"top",left:"right"},Vv=v.forwardRef(function(i,o){const{__scopePopper:r,...u}=i,d=o2(qv,r),h=r2[d.placedSide];return f.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:f.jsx(l2,{...u,ref:o,style:{...u.style,display:"block"}})})});Vv.displayName=qv;function s2(l){return l!==null}var u2=l=>({name:"transformOrigin",options:l,fn(i){const{placement:o,rects:r,middlewareData:u}=i,h=u.arrow?.centerOffset!==0,p=h?0:l.arrowWidth,g=h?0:l.arrowHeight,[y,b]=Xv(o),S={start:"0%",center:"50%",end:"100%"}[b],C=(u.arrow?.x??0)+p/2,N=(u.arrow?.y??0)+g/2;let D="",w="";return y==="bottom"?(D=h?S:`${C}px`,w=`${-g}px`):y==="top"?(D=h?S:`${C}px`,w=`${r.floating.height+g}px`):y==="right"?(D=`${-g}px`,w=h?S:`${N}px`):y==="left"&&(D=`${r.floating.width+g}px`,w=h?S:`${N}px`),{data:{x:D,y:w}}}});function Xv(l){const[i,o="center"]=l.split("-");return[i,o]}var f2=Bv,d2=kv,h2=Yv,m2=Vv,p2="Portal",Gv=v.forwardRef((l,i)=>{const{container:o,...r}=l,[u,d]=v.useState(!1);wt(()=>d(!0),[]);const h=o||u&&globalThis?.document?.body;return h?YS.createPortal(f.jsx(Je.div,{...r,ref:i}),h):null});Gv.displayName=p2;var g2=Dg[" useInsertionEffect ".trim().toString()]||wt;function jg({prop:l,defaultProp:i,onChange:o=()=>{},caller:r}){const[u,d,h]=v2({defaultProp:i,onChange:o}),p=l!==void 0,g=p?l:u;{const b=v.useRef(l!==void 0);v.useEffect(()=>{const S=b.current;S!==p&&console.warn(`${r} is changing from ${S?"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.`),b.current=p},[p,r])}const y=v.useCallback(b=>{if(p){const S=y2(b)?b(l):b;S!==l&&h.current?.(S)}else d(b)},[p,l,d,h]);return[g,y]}function v2({defaultProp:l,onChange:i}){const[o,r]=v.useState(l),u=v.useRef(o),d=v.useRef(i);return g2(()=>{d.current=i},[i]),v.useEffect(()=>{u.current!==o&&(d.current?.(o),u.current=o)},[o,u]),[o,r,d]}function y2(l){return typeof l=="function"}function x2(l){const i=v.useRef({value:l,previous:l});return v.useMemo(()=>(i.current.value!==l&&(i.current.previous=i.current.value,i.current.value=l),i.current.previous),[l])}var Fv=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"}),b2="VisuallyHidden",S2=v.forwardRef((l,i)=>f.jsx(Je.span,{...l,ref:i,style:{...Fv,...l.style}}));S2.displayName=b2;var w2=function(l){if(typeof document>"u")return null;var i=Array.isArray(l)?l[0]:l;return i.ownerDocument.body},Ta=new WeakMap,Eo=new WeakMap,Co={},Hu=0,Kv=function(l){return l&&(l.host||Kv(l.parentNode))},E2=function(l,i){return i.map(function(o){if(l.contains(o))return o;var r=Kv(o);return r&&l.contains(r)?r:(console.error("aria-hidden",o,"in not contained inside",l,". Doing nothing"),null)}).filter(function(o){return!!o})},C2=function(l,i,o,r){var u=E2(i,Array.isArray(l)?l:[l]);Co[o]||(Co[o]=new WeakMap);var d=Co[o],h=[],p=new Set,g=new Set(u),y=function(S){!S||p.has(S)||(p.add(S),y(S.parentNode))};u.forEach(y);var b=function(S){!S||g.has(S)||Array.prototype.forEach.call(S.children,function(C){if(p.has(C))b(C);else try{var N=C.getAttribute(r),D=N!==null&&N!=="false",w=(Ta.get(C)||0)+1,T=(d.get(C)||0)+1;Ta.set(C,w),d.set(C,T),h.push(C),w===1&&D&&Eo.set(C,!0),T===1&&C.setAttribute(o,"true"),D||C.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",C,R)}})};return b(i),p.clear(),Hu++,function(){h.forEach(function(S){var C=Ta.get(S)-1,N=d.get(S)-1;Ta.set(S,C),d.set(S,N),C||(Eo.has(S)||S.removeAttribute(r),Eo.delete(S)),N||S.removeAttribute(o)}),Hu--,Hu||(Ta=new WeakMap,Ta=new WeakMap,Eo=new WeakMap,Co={})}},N2=function(l,i,o){o===void 0&&(o="data-aria-hidden");var r=Array.from(Array.isArray(l)?l:[l]),u=w2(l);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live], script"))),C2(r,u,o,"aria-hidden")):function(){return null}},sn=function(){return sn=Object.assign||function(i){for(var o,r=1,u=arguments.length;r<u;r++){o=arguments[r];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d])}return i},sn.apply(this,arguments)};function Qv(l,i){var o={};for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&i.indexOf(r)<0&&(o[r]=l[r]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(l);u<r.length;u++)i.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(l,r[u])&&(o[r[u]]=l[r[u]]);return o}function j2(l,i,o){if(o||arguments.length===2)for(var r=0,u=i.length,d;r<u;r++)(d||!(r in i))&&(d||(d=Array.prototype.slice.call(i,0,r)),d[r]=i[r]);return l.concat(d||Array.prototype.slice.call(i))}var _o="right-scroll-bar-position",Do="width-before-scroll-bar",T2="with-scroll-bars-hidden",A2="--removed-body-scroll-bar-size";function ku(l,i){return typeof l=="function"?l(i):l&&(l.current=i),l}function R2(l,i){var o=v.useState(function(){return{value:l,callback:i,facade:{get current(){return o.value},set current(r){var u=o.value;u!==r&&(o.value=r,o.callback(r,u))}}}})[0];return o.callback=i,o.facade}var O2=typeof window<"u"?v.useLayoutEffect:v.useEffect,Tg=new WeakMap;function z2(l,i){var o=R2(null,function(r){return l.forEach(function(u){return ku(u,r)})});return O2(function(){var r=Tg.get(o);if(r){var u=new Set(r),d=new Set(l),h=o.current;u.forEach(function(p){d.has(p)||ku(p,null)}),d.forEach(function(p){u.has(p)||ku(p,h)})}Tg.set(o,l)},[l]),o}function _2(l){return l}function D2(l,i){i===void 0&&(i=_2);var o=[],r=!1,u={read:function(){if(r)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]:l},useMedium:function(d){var h=i(d,r);return o.push(h),function(){o=o.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(r=!0;o.length;){var h=o;o=[],h.forEach(d)}o={push:function(p){return d(p)},filter:function(){return o}}},assignMedium:function(d){r=!0;var h=[];if(o.length){var p=o;o=[],p.forEach(d),h=o}var g=function(){var b=h;h=[],b.forEach(d)},y=function(){return Promise.resolve().then(g)};y(),o={push:function(b){h.push(b),y()},filter:function(b){return h=h.filter(b),o}}}};return u}function M2(l){l===void 0&&(l={});var i=D2(null);return i.options=sn({async:!0,ssr:!1},l),i}var Zv=function(l){var i=l.sideCar,o=Qv(l,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=i.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,sn({},o))};Zv.isSideCarExport=!0;function U2(l,i){return l.useMedium(i),Zv}var Pv=M2(),Yu=function(){},nr=v.forwardRef(function(l,i){var o=v.useRef(null),r=v.useState({onScrollCapture:Yu,onWheelCapture:Yu,onTouchMoveCapture:Yu}),u=r[0],d=r[1],h=l.forwardProps,p=l.children,g=l.className,y=l.removeScrollBar,b=l.enabled,S=l.shards,C=l.sideCar,N=l.noRelative,D=l.noIsolation,w=l.inert,T=l.allowPinchZoom,R=l.as,O=R===void 0?"div":R,M=l.gapMode,q=Qv(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=C,P=z2([o,i]),Y=sn(sn({},q),u);return v.createElement(v.Fragment,null,b&&v.createElement(Q,{sideCar:Pv,removeScrollBar:y,shards:S,noRelative:N,noIsolation:D,inert:w,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),h?v.cloneElement(v.Children.only(p),sn(sn({},Y),{ref:P})):v.createElement(O,sn({},Y,{className:g,ref:P}),p))});nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nr.classNames={fullWidth:Do,zeroRight:_o};var L2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function B2(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var i=L2();return i&&l.setAttribute("nonce",i),l}function H2(l,i){l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}function k2(l){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(l)}var Y2=function(){var l=0,i=null;return{add:function(o){l==0&&(i=B2())&&(H2(i,o),k2(i)),l++},remove:function(){l--,!l&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},q2=function(){var l=Y2();return function(i,o){v.useEffect(function(){return l.add(i),function(){l.remove()}},[i&&o])}},Jv=function(){var l=q2(),i=function(o){var r=o.styles,u=o.dynamic;return l(r,u),null};return i},V2={left:0,top:0,right:0,gap:0},qu=function(l){return parseInt(l||"",10)||0},X2=function(l){var i=window.getComputedStyle(document.body),o=i[l==="padding"?"paddingLeft":"marginLeft"],r=i[l==="padding"?"paddingTop":"marginTop"],u=i[l==="padding"?"paddingRight":"marginRight"];return[qu(o),qu(r),qu(u)]},G2=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return V2;var i=X2(l),o=document.documentElement.clientWidth,r=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,r-o+i[2]-i[0])}},F2=Jv(),_a="data-scroll-locked",K2=function(l,i,o,r){var u=l.left,d=l.top,h=l.right,p=l.gap;return o===void 0&&(o="margin"),`
|
|
13
|
-
.`.concat(
|
|
14
|
-
overflow: hidden `).concat(
|
|
15
|
-
padding-right: `).concat(p,"px ").concat(
|
|
11
|
+
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let j=pn(),N;if(i){let z=typeof i=="string"?kl(i):i;Ve(S==="/"||z.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 "${z.pathname}" was given in the \`location\` prop.`),N=z}else N=j;let O=N.pathname||"/",w=O;if(S!=="/"){let z=S.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(z.length).join("/")}let A=Vg(a,{pathname:w});Bt(b||A!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Bt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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 T=cS(A&&A.map(z=>Object.assign({},z,{params:Object.assign({},g,z.params),pathname:Yn([S,d.encodeLocation?d.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?S:Yn([S,d.encodeLocation?d.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),h,r,c,u);return i&&T?y.createElement($i.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},T):T}function lS(){let a=hS(),i=Gb(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:d},"ErrorBoundary")," or"," ",y.createElement("code",{style:d},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},i),r?y.createElement("pre",{style:u},r):null,h)}var iS=y.createElement(lS,null),tv=class extends y.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=eS(a.digest);r&&(a=r)}let i=a!==void 0?y.createElement(mn.Provider,{value:this.props.routeContext},y.createElement(hf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?y.createElement(rS,{error:a},i):i}};tv.contextType=Qb;var Tu=new WeakMap;function rS({children:a,error:i}){let{basename:r}=y.useContext(Ht);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=$b(i.digest);if(c){let u=Tu.get(i);if(u)throw u;let d=Qg(c.location,r);if(Kg&&!Tu.get(i))if(d.isExternal||c.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw Tu.set(i,h),h}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return a}function oS({routeContext:a,match:i,children:r}){let c=y.useContext(Yl);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),y.createElement(mn.Provider,{value:a},r)}function cS(a,i=[],r=null,c=null,u=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);Ve(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,g=-1;if(r)for(let S=0;S<d.length;S++){let b=d[S];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=S),b.route.id){let{loaderData:j,errors:N}=r,O=b.route.loader&&!j.hasOwnProperty(b.route.id)&&(!N||N[b.route.id]===void 0);if(b.route.lazy||O){p=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}let v=r&&c?(S,b)=>{c(S,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Pb(r.matches),errorInfo:b})}:void 0;return d.reduceRight((S,b,j)=>{let N,O=!1,w=null,A=null;r&&(N=h&&b.route.id?h[b.route.id]:void 0,w=b.route.errorElement||iS,p&&(g<0&&j===0?(nv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,A=null):g===j&&(O=!0,A=b.route.hydrateFallbackElement||null)));let T=i.concat(d.slice(0,j+1)),z=()=>{let M;return N?M=w:O?M=A:b.route.Component?M=y.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=S,y.createElement(oS,{match:b,routeContext:{outlet:S,matches:T,isDataRoute:r!=null},children:M})};return r&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?y.createElement(tv,{location:r.location,revalidation:r.revalidation,component:w,error:N,children:z(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:v}):z()},null)}function mf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sS(a){let i=y.useContext(Yl);return Ve(i,mf(a)),i}function uS(a){let i=y.useContext(Qo);return Ve(i,mf(a)),i}function fS(a){let i=y.useContext(mn);return Ve(i,mf(a)),i}function pf(a){let i=fS(a),r=i.matches[i.matches.length-1];return Ve(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function dS(){return pf("useRouteId")}function hS(){let a=y.useContext(hf),i=uS("useRouteError"),r=pf("useRouteError");return a!==void 0?a:i.errors?.[r]}function mS(){let{router:a}=sS("useNavigate"),i=pf("useNavigate"),r=y.useRef(!1);return $g(()=>{r.current=!0}),y.useCallback(async(u,d={})=>{Bt(r.current,Wg),r.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:i,...d}))},[a,i])}var tg={};function nv(a,i,r){!i&&!tg[a]&&(tg[a]=!0,Bt(!1,r))}y.memo(pS);function pS({routes:a,future:i,state:r,onError:c}){return ev(a,void 0,r,c,i)}function Fn({to:a,replace:i,state:r,relative:c}){Ve(ql(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=y.useContext(Ht);Bt(!u,"<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}=y.useContext(mn),{pathname:h}=pn(),p=gn(),g=df(a,ff(d),h,c==="path"),v=JSON.stringify(g);return y.useEffect(()=>{p(JSON.parse(v),{replace:i,state:r,relative:c})},[p,v,c,i,r]),null}function wt(a){Ve(!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 gS({basename:a="/",children:i=null,location:r,navigationType:c="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){Ve(!ql(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=a.replace(/^\/*/,"/"),g=y.useMemo(()=>({basename:p,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[p,u,d,h]);typeof r=="string"&&(r=kl(r));let{pathname:v="/",search:S="",hash:b="",state:j=null,key:N="default"}=r,O=y.useMemo(()=>{let w=qn(v,p);return w==null?null:{location:{pathname:w,search:S,hash:b,state:j,key:N},navigationType:c}},[p,v,S,b,j,N,c]);return Bt(O!=null,`<Router basename="${p}"> is not able to match the URL "${v}${S}${b}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:y.createElement(Ht.Provider,{value:g},y.createElement($i.Provider,{children:i,value:O}))}function vS({children:a,location:i}){return aS(Pu(a),i)}function Pu(a,i=[]){let r=[];return y.Children.forEach(a,(c,u)=>{if(!y.isValidElement(c))return;let d=[...i,u];if(c.type===y.Fragment){r.push.apply(r,Pu(c.props.children,d));return}Ve(c.type===wt,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!c.props.index||!c.props.children,"An index route cannot have child routes.");let h={id:c.props.id||d.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(h.children=Pu(c.props.children,d)),r.push(h)}),r}var _o="get",Do="application/x-www-form-urlencoded";function Zo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function yS(a){return Zo(a)&&a.tagName.toLowerCase()==="button"}function xS(a){return Zo(a)&&a.tagName.toLowerCase()==="form"}function bS(a){return Zo(a)&&a.tagName.toLowerCase()==="input"}function SS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function wS(a,i){return a.button===0&&(!i||i==="_self")&&!SS(a)}function Ku(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((i,r)=>{let c=a[r];return i.concat(Array.isArray(c)?c.map(u=>[r,u]):[[r,c]])},[]))}function ES(a,i){let r=Ku(a);return i&&i.forEach((c,u)=>{r.has(u)||i.getAll(u).forEach(d=>{r.append(u,d)})}),r}var wo=null;function CS(){if(wo===null)try{new FormData(document.createElement("form"),0),wo=!1}catch{wo=!0}return wo}var NS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ru(a){return a!=null&&!NS.has(a)?(Bt(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Do}"`),null):a}function jS(a,i){let r,c,u,d,h;if(xS(a)){let p=a.getAttribute("action");c=p?qn(p,i):null,r=a.getAttribute("method")||_o,u=Ru(a.getAttribute("enctype"))||Do,d=new FormData(a)}else if(yS(a)||bS(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 g=a.getAttribute("formaction")||p.getAttribute("action");if(c=g?qn(g,i):null,r=a.getAttribute("formmethod")||p.getAttribute("method")||_o,u=Ru(a.getAttribute("formenctype"))||Ru(p.getAttribute("enctype"))||Do,d=new FormData(p,a),!CS()){let{name:v,type:S,value:b}=a;if(S==="image"){let j=v?`${v}.`:"";d.append(`${j}x`,"0"),d.append(`${j}y`,"0")}else v&&d.append(v,b)}}else{if(Zo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_o,c=null,u=Do,h=a}return d&&u==="text/plain"&&(h=d,d=void 0),{action:c,method:r.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gf(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function AS(a,i,r,c){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:i&&qn(u.pathname,i)==="/"?u.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function TS(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 RS(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 zS(a,i,r){let c=await Promise.all(a.map(async u=>{let d=i.routes[u.route.id];if(d){let h=await TS(d,r);return h.links?h.links():[]}return[]}));return MS(c.flat(1).filter(RS).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function ng(a,i,r,c,u,d){let h=(g,v)=>r[v]?g.route.id!==r[v].route.id:!0,p=(g,v)=>r[v].pathname!==g.pathname||r[v].route.path?.endsWith("*")&&r[v].params["*"]!==g.params["*"];return d==="assets"?i.filter((g,v)=>h(g,v)||p(g,v)):d==="data"?i.filter((g,v)=>{let S=c.routes[g.route.id];if(!S||!S.hasLoader)return!1;if(h(g,v)||p(g,v))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(a,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function OS(a,i,{includeHydrateFallback:r}={}){return _S(a.map(c=>{let u=i.routes[c.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function _S(a){return[...new Set(a)]}function DS(a){let i={},r=Object.keys(a).sort();for(let c of r)i[c]=a[c];return i}function MS(a,i){let r=new Set;return new Set(i),a.reduce((c,u)=>{let d=JSON.stringify(DS(u));return r.has(d)||(r.add(d),c.push({key:d,link:u})),c},[])}function av(){let a=y.useContext(Yl);return gf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function US(){let a=y.useContext(Qo);return gf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var vf=y.createContext(void 0);vf.displayName="FrameworkContext";function lv(){let a=y.useContext(vf);return gf(a,"You must render this element inside a <HydratedRouter> element"),a}function LS(a,i){let r=y.useContext(vf),[c,u]=y.useState(!1),[d,h]=y.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:v,onMouseLeave:S,onTouchStart:b}=i,j=y.useRef(null);y.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=T=>{T.forEach(z=>{h(z.isIntersecting)})},A=new IntersectionObserver(w,{threshold:.5});return j.current&&A.observe(j.current),()=>{A.disconnect()}}},[a]),y.useEffect(()=>{if(c){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[c]);let N=()=>{u(!0)},O=()=>{u(!1),h(!1)};return r?a!=="intent"?[d,j,{}]:[d,j,{onFocus:Yi(p,N),onBlur:Yi(g,O),onMouseEnter:Yi(v,N),onMouseLeave:Yi(S,O),onTouchStart:Yi(b,N)}]:[!1,j,{}]}function Yi(a,i){return r=>{a&&a(r),r.defaultPrevented||i(r)}}function BS({page:a,...i}){let{router:r}=av(),c=y.useMemo(()=>Vg(r.routes,a,r.basename),[r.routes,a,r.basename]);return c?y.createElement(kS,{page:a,matches:c,...i}):null}function HS(a){let{manifest:i,routeModules:r}=lv(),[c,u]=y.useState([]);return y.useEffect(()=>{let d=!1;return zS(a,i,r).then(h=>{d||u(h)}),()=>{d=!0}},[a,i,r]),c}function kS({page:a,matches:i,...r}){let c=pn(),{future:u,manifest:d,routeModules:h}=lv(),{basename:p}=av(),{loaderData:g,matches:v}=US(),S=y.useMemo(()=>ng(a,i,v,d,c,"data"),[a,i,v,d,c]),b=y.useMemo(()=>ng(a,i,v,d,c,"assets"),[a,i,v,d,c]),j=y.useMemo(()=>{if(a===c.pathname+c.search+c.hash)return[];let w=new Set,A=!1;if(i.forEach(z=>{let M=d.routes[z.route.id];!M||!M.hasLoader||(!S.some(F=>F.route.id===z.route.id)&&z.route.id in g&&h[z.route.id]?.shouldRevalidate||M.hasClientLoader?A=!0:w.add(z.route.id))}),w.size===0)return[];let T=AS(a,p,u.unstable_trailingSlashAwareDataRequests,"data");return A&&w.size>0&&T.searchParams.set("_routes",i.filter(z=>w.has(z.route.id)).map(z=>z.route.id).join(",")),[T.pathname+T.search]},[p,u.unstable_trailingSlashAwareDataRequests,g,c,d,S,i,a,h]),N=y.useMemo(()=>OS(b,d),[b,d]),O=HS(b);return y.createElement(y.Fragment,null,j.map(w=>y.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),N.map(w=>y.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),O.map(({key:w,link:A})=>y.createElement("link",{key:w,nonce:r.nonce,...A})))}function YS(...a){return i=>{a.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var qS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qS&&(window.__reactRouterVersion="7.12.0")}catch{}function FS({basename:a,children:i,unstable_useTransitions:r,window:c}){let u=y.useRef();u.current==null&&(u.current=Sb({window:c,v5Compat:!0}));let d=u.current,[h,p]=y.useState({action:d.action,location:d.location}),g=y.useCallback(v=>{r===!1?p(v):y.startTransition(()=>p(v))},[r]);return y.useLayoutEffect(()=>d.listen(g),[d,g]),y.createElement(gS,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var iv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ho=y.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:u,reloadDocument:d,replace:h,state:p,target:g,to:v,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:j,...N},O){let{basename:w,unstable_useTransitions:A}=y.useContext(Ht),T=typeof v=="string"&&iv.test(v),z=Qg(v,w);v=z.to;let M=tS(v,{relative:u}),[F,K,Z]=LS(c,N),k=PS(v,{replace:h,state:p,target:g,preventScrollReset:S,relative:u,viewTransition:b,unstable_defaultShouldRevalidate:j,unstable_useTransitions:A});function ee(ae){i&&i(ae),ae.defaultPrevented||k(ae)}let re=y.createElement("a",{...N,...Z,href:z.absoluteURL||M,onClick:z.isExternal||d?i:ee,ref:YS(O,K),target:g,"data-discover":!T&&r==="render"?"true":void 0});return F&&!T?y.createElement(y.Fragment,null,re,y.createElement(BS,{page:M})):re});Ho.displayName="Link";var VS=y.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:u=!1,style:d,to:h,viewTransition:p,children:g,...v},S){let b=er(h,{relative:v.relative}),j=pn(),N=y.useContext(Qo),{navigator:O,basename:w}=y.useContext(Ht),A=N!=null&&WS(b)&&p===!0,T=O.encodeLocation?O.encodeLocation(b).pathname:b.pathname,z=j.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;r||(z=z.toLowerCase(),M=M?M.toLowerCase():null,T=T.toLowerCase()),M&&w&&(M=qn(M,w)||M);const F=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let K=z===T||!u&&z.startsWith(T)&&z.charAt(F)==="/",Z=M!=null&&(M===T||!u&&M.startsWith(T)&&M.charAt(T.length)==="/"),k={isActive:K,isPending:Z,isTransitioning:A},ee=K?i:void 0,re;typeof c=="function"?re=c(k):re=[c,K?"active":null,Z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let ae=typeof d=="function"?d(k):d;return y.createElement(Ho,{...v,"aria-current":ee,className:re,ref:S,style:ae,to:h,viewTransition:p},typeof g=="function"?g(k):g)});VS.displayName="NavLink";var XS=y.forwardRef(({discover:a="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:u,state:d,method:h=_o,action:p,onSubmit:g,relative:v,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:j,...N},O)=>{let{unstable_useTransitions:w}=y.useContext(Ht),A=IS(),T=JS(p,{relative:v}),z=h.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&iv.test(p),F=K=>{if(g&&g(K),K.defaultPrevented)return;K.preventDefault();let Z=K.nativeEvent.submitter,k=Z?.getAttribute("formmethod")||h,ee=()=>A(Z||K.currentTarget,{fetcherKey:i,method:k,navigate:r,replace:u,state:d,relative:v,preventScrollReset:S,viewTransition:b,unstable_defaultShouldRevalidate:j});w&&r!==!1?y.startTransition(()=>ee()):ee()};return y.createElement("form",{ref:O,method:z,action:T,onSubmit:c?g:F,...N,"data-discover":!M&&a==="render"?"true":void 0})});XS.displayName="Form";function GS(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rv(a){let i=y.useContext(Yl);return Ve(i,GS(a)),i}function PS(a,{target:i,replace:r,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let v=gn(),S=pn(),b=er(a,{relative:d});return y.useCallback(j=>{if(wS(j,i)){j.preventDefault();let N=r!==void 0?r:Ii(S)===Ii(b),O=()=>v(a,{replace:N,state:c,preventScrollReset:u,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:p});g?y.startTransition(()=>O()):O()}},[S,v,b,r,c,i,a,u,d,h,p,g])}function KS(a){Bt(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=y.useRef(Ku(a)),r=y.useRef(!1),c=pn(),u=y.useMemo(()=>ES(c.search,r.current?null:i.current),[c.search]),d=gn(),h=y.useCallback((p,g)=>{const v=Ku(typeof p=="function"?p(new URLSearchParams(u)):p);r.current=!0,d("?"+v,g)},[d,u]);return[u,h]}var QS=0,ZS=()=>`__${String(++QS)}__`;function IS(){let{router:a}=rv("useSubmit"),{basename:i}=y.useContext(Ht),r=dS(),c=a.fetch,u=a.navigate;return y.useCallback(async(d,h={})=>{let{action:p,method:g,encType:v,formData:S,body:b}=jS(d,i);if(h.navigate===!1){let j=h.fetcherKey||ZS();await c(j,r,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||g,formEncType:h.encType||v,flushSync:h.flushSync})}else await u(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:S,body:b,formMethod:h.method||g,formEncType:h.encType||v,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,i,r])}function JS(a,{relative:i}={}){let{basename:r}=y.useContext(Ht),c=y.useContext(mn);Ve(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),d={...er(a||".",{relative:i})},h=pn();if(a==null){d.search=h.search;let p=new URLSearchParams(d.search),g=p.getAll("index");if(g.some(S=>S==="")){p.delete("index"),g.filter(b=>b).forEach(b=>p.append("index",b));let S=p.toString();d.search=S?`?${S}`:""}}return(!a||a===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:Yn([r,d.pathname])),Ii(d)}function WS(a,{relative:i}={}){let r=y.useContext(Ig);Ve(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=rv("useViewTransitionState"),u=er(a,{relative:i});if(!r.isTransitioning)return!1;let d=qn(r.currentLocation.pathname,c)||r.currentLocation.pathname,h=qn(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Bo(u.pathname,h)!=null||Bo(u.pathname,d)!=null}var tr=Fg();const $S=Yg(tr),yf="css-account",xf="xpod.cssAccountToken",e1="CSS-Account-Token";function bf(){return typeof window<"u"&&typeof document<"u"}function t1(){if(!bf())return;const a=document.cookie.split(";");for(const i of a){const[r,...c]=i.trim().split("=");if(r===yf){const u=c.join("=");try{return u?decodeURIComponent(u):void 0}catch{return}}}}function ov(a){bf()&&(document.cookie=`${yf}=${encodeURIComponent(a)}; Path=/; SameSite=Lax`)}function n1(){bf()&&(document.cookie=`${yf}=; Path=/; SameSite=Lax; Max-Age=0`)}function a1(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(xf)||void 0}catch{return}}function l1(a){if(!(typeof window>"u"))try{window.sessionStorage.setItem(xf,a)}catch{}}function i1(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(xf)}catch{}}function zu(a){a&&(l1(a),ov(a))}function Sf(){i1(),n1()}function r1(){const a=t1();if(a)return a;const i=a1();if(i)return ov(i),i}function tn(a,i={Accept:"application/json"}){const r={...i};return a&&!o1(r,"Authorization")&&(r.Authorization=`${e1} ${a}`),r}function Fe(a={Accept:"application/json"}){return tn(r1(),a)}function o1(a,i){const r=i.toLowerCase();return Object.keys(a).some(c=>c.toLowerCase()===r)}const cv=y.createContext(null);function Zt(){const a=y.useContext(cv);if(!a)throw new Error("useAuth must be used within AuthProvider");return a}function c1({children:a}){const i="/.account/",[r,c]=y.useState(null),[u,d]=y.useState(!0),[h,p]=y.useState(null),[g,v]=y.useState(!1),S=!!r?.account?.logout,b=u,j=async()=>{try{const w=await fetch("/.account/oidc/consent/",{headers:Fe(),credentials:"include"});return w.ok?!!(await w.json()).client:!1}catch{return!1}},N=async()=>{try{const w=await fetch(i,{headers:Fe(),credentials:"include"});if(w.ok){const A=await w.json();let T=!1;A.controls?.account?.logout&&(T=await j()),v(T),c(A.controls||{})}else{if(w.status===401||w.status===403){Sf(),v(!1),c({});return}p(`Failed to load configuration (Status: ${w.status})`)}}catch{p("Network error: Could not connect to authentication server")}};y.useEffect(()=>{(async()=>(await N(),d(!1)))()},[i]);const O=async()=>{await N()};return f.jsx(cv.Provider,{value:{controls:r,isInitializing:u,initError:h,idpIndex:i,isLoggedIn:S,authenticating:b,hasOidcPending:g,refetchControls:O},children:a})}const sv=(...a)=>a.filter((i,r,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===r).join(" ").trim();const s1=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const u1=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,c)=>c?c.toUpperCase():r.toLowerCase());const ag=a=>{const i=u1(a);return i.charAt(0).toUpperCase()+i.slice(1)};var f1={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 d1=a=>{for(const i in a)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const h1=y.forwardRef(({color:a="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:u="",children:d,iconNode:h,...p},g)=>y.createElement("svg",{ref:g,...f1,width:i,height:i,stroke:a,strokeWidth:c?Number(r)*24/Number(i):r,className:sv("lucide",u),...!d&&!d1(p)&&{"aria-hidden":"true"},...p},[...h.map(([v,S])=>y.createElement(v,S)),...Array.isArray(d)?d:[d]]));const Pe=(a,i)=>{const r=y.forwardRef(({className:c,...u},d)=>y.createElement(h1,{ref:d,iconNode:i,className:sv(`lucide-${s1(ag(a))}`,`lucide-${a}`,c),...u}));return r.displayName=ag(a),r};const m1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],uv=Pe("arrow-left",m1);const p1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Io=Pe("arrow-right",p1);const g1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kn=Pe("check",g1);const v1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fv=Pe("chevron-down",v1);const y1=[["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"}]],wf=Pe("circle-alert",y1);const x1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dv=Pe("clock",x1);const b1=[["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"}]],Eo=Pe("copy",b1);const S1=[["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"}]],w1=Pe("database",S1);const E1=[["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"}]],lg=Pe("external-link",E1);const C1=[["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"}]],N1=Pe("globe",C1);const j1=[["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"}]],hv=Pe("hard-drive",j1);const A1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],T1=Pe("info",A1);const R1=[["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"}]],Ou=Pe("key",R1);const z1=[["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"}]],mv=Pe("layers",z1);const O1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fa=Pe("loader-circle",O1);const _1=[["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"}]],Qi=Pe("lock",_1);const D1=[["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"}]],M1=Pe("log-out",D1);const U1=[["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"}]],Qu=Pe("mail",U1);const L1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],_u=Pe("plus",L1);const B1=[["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"}]],Ji=Pe("shield",B1);const H1=[["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"}]],ig=Pe("trash-2",H1);const k1=[["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"}]],pv=Pe("user",k1);function gv(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(Fa,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function Fl({children:a,title:i,subtitle:r,icon:c,showBack:u,onBack:d}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.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:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[u?f.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:f.jsx(uv,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:c?f.jsx(c,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:i}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),a]})]})}function Y1({message:a}){return f.jsx(Fl,{title:"Error",subtitle:a,icon:wf,children:f.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 Zu="xpod:returnTo";function Zi(a){try{a&&sessionStorage.setItem(Zu,a)}catch{}}function q1(){try{const a=sessionStorage.getItem(Zu);return a&&sessionStorage.removeItem(Zu),a}catch{return null}}function F1(){try{return new URLSearchParams(window.location.search).get("returnTo")||null}catch{return null}}function V1(a,i,r=!1){return a&&i&&!r}function Du({children:a,allowOidcPending:i=!1}){const{isLoggedIn:r,hasOidcPending:c}=Zt(),u=pn();return V1(r,c,i)?f.jsx(Fn,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:a}):(Zi(u.pathname+u.search),f.jsx(Fn,{to:"/.account/login/password/",replace:!0}))}function vv(a){var i,r,c="";if(typeof a=="string"||typeof a=="number")c+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(i=0;i<u;i++)a[i]&&(r=vv(a[i]))&&(c&&(c+=" "),c+=r)}else for(r in a)a[r]&&(c&&(c+=" "),c+=r);return c}function nt(){for(var a,i,r=0,c="",u=arguments.length;r<u;r++)(a=arguments[r])&&(i=vv(a))&&(c&&(c+=" "),c+=i);return c}const rg=3,ko=63,X1=/^[a-z0-9-]+$/;function dn(a){return a.trim().toLowerCase()}function xa(a){const i=dn(a);if(!i)return"Username is required";if(i.length<rg||i.length>ko)return`Username must be ${rg}-${ko} characters`;if(!X1.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 G1(a,i=5){const c=dn(a).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,ko-3)||"user",u=Array.from({length:Math.max(i,3)},(d,h)=>`${c}-${h+1}`);return Array.from(new Set(u.map(d=>d.slice(0,ko)).filter(d=>!xa(d)))).slice(0,i)}function P1(a){if(typeof window<"u")return"/api/v1/identity";try{const i=new URL(a);return i.hostname.startsWith("id.")?`${i.protocol}//api.${i.hostname.slice(3)}/api/v1/identity`:`${i.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function yv(a,i,r){const c=`${P1(i)}/${encodeURIComponent(a)}`;try{const u=await r(c,{headers:{Accept:"application/json"},credentials:"include"});if(u.status===404)return!1;if(u.ok||u.status===409)return!0}catch{}}async function K1(a,i,r,c=3){const u=G1(a,Math.max(c*2,5)),d=[];for(const h of u)if(await yv(h,i,r)===!1&&d.push(h),d.length>=c)break;return d}async function og(a,i,r=fetch){const c=dn(a),u=xa(c);if(u)return{available:!1,suggestions:[],error:u};const d=await yv(c,i,r);return d===!1?{available:!0,suggestions:[]}:d===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await K1(c,i,r)}}function xv(){try{const a=sessionStorage.getItem("provisionCode")?.trim();return a||void 0}catch{return}}function Q1(a){const i=a.split(".")[0];if(!i)return!0;try{const r=i.replace(/-/g,"+").replace(/_/g,"/"),c=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return!0;const u=JSON.parse(globalThis.atob(c));return typeof u.exp=="number"?u.exp>Math.floor(Date.now()/1e3):!0}catch{return!0}}function Ef(a){const i=a?.trim();if(i)return Q1(i)?i:void 0}function Bl(){const a=xv(),i=Ef(a);return a&&!i&&Cf(),i}function Z1(a){try{sessionStorage.setItem("provisionCode",a)}catch{}}function Cf(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Nf(a,i=Bl()){const r={name:a.trim()};return i&&(r.settings={provisionCode:i}),r}async function jf(a=fetch,i){const r=i?.trim()||xv(),c=Ef(r);if(r||typeof window<"u"){const u=await I1(a);if(u)return Z1(u),u}return r&&!c&&Cf(),c}async function Af(a=fetch,i){return jf(a,i)}async function I1(a){const i=await a("/provision/status",{headers:{Accept:"application/json"},credentials:"include"}).catch(()=>{});if(!i?.ok)return;const r=await i.json().catch(()=>{});if(!(!r?.registered||typeof r.provisionCode!="string"))return Ef(r.provisionCode)}function J1(a){if(!a)return;const i=a.split(".")[0];if(i)try{const r=i.replace(/-/g,"+").replace(/_/g,"/"),c=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return;const u=Uint8Array.from(globalThis.atob(c),h=>h.charCodeAt(0)),d=JSON.parse(new TextDecoder().decode(u));return typeof d.spUrl!="string"||typeof d.serviceToken!="string"||typeof d.exp=="number"&&d.exp<Math.floor(Date.now()/1e3)?void 0:{spUrl:Vn(d.spUrl),serviceToken:d.serviceToken,spDomain:typeof d.spDomain=="string"?d.spDomain:void 0,exp:typeof d.exp=="number"?d.exp:void 0}}catch{return}}function Tf(a){const i=J1(a);if(i)return{lookupUrl:i.spUrl,storageRoot:i.spDomain?Vn(`https://${i.spDomain}`):Vn(i.spUrl),serviceToken:i.serviceToken}}async function Jo(a,i,r){const c=Tf(r);if(!c)return;const u=Array.from(new Set(i.filter(g=>typeof g=="string"&&g.length>0)));if(u.length===0)return[];const d=await a(new URL("/provision/webids",c.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${c.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:u})});if(!d.ok)return[];const h=await d.json().catch(()=>{});if(!Array.isArray(h?.entries))return[];const p=new Set(u);return h.entries.filter(g=>g&&typeof g.webId=="string"&&p.has(g.webId)).filter(g=>typeof g.storageUrl=="string"&&g.storageUrl.length>0).filter(g=>bv(g.storageUrl,c.storageRoot)).map(g=>({webId:g.webId,podUrl:typeof g.podUrl=="string"?Vn(g.podUrl):void 0,storageUrl:Vn(g.storageUrl)}))}async function W1(a,i,r){const c=Sv(r);if(!c)return[];const u=Array.from(new Set(i.filter(h=>typeof h=="string"&&h.length>0)));return(await Promise.all(u.map(async h=>{const g=(await ew(a,h)).find(v=>bv(v,c));return g?{webId:h,storageUrl:Vn(g)}:void 0}))).filter(h=>!!h)}function bv(a,i){const r=aw(a),c=Sv(i);return!!(r&&c&&r.startsWith(c))}function $1(a){if(a)try{return Vn(new URL(a).origin)}catch{return}}function Sv(a){if(a)try{return Vn(new URL(a).toString())}catch{return}}async function ew(a,i){const r=await a(i,{headers:{Accept:"text/turtle, application/ld+json, application/json"},credentials:"include"}).catch(()=>{});if(!r?.ok)return[];const c=r.headers?.get?.("content-type")??"",u=await r.text().catch(()=>"");if(!u)return[];if(c.includes("json"))try{return nw(JSON.parse(u))}catch{return[]}return tw(u)}function tw(a){return Array.from(a.matchAll(/(?:solid:storage|<http:\/\/www\.w3\.org\/ns\/solid\/terms#storage>)\s+<([^>]+)>/giu)).map(i=>i[1]).filter(i=>typeof i=="string"&&i.length>0)}function nw(a){const i=new Set,r=new WeakSet,c=(u,d=!1)=>{if(typeof u=="string"){d&&i.add(u);return}if(!(!u||typeof u!="object")&&!r.has(u)){if(r.add(u),Array.isArray(u)){for(const h of u)c(h,d);return}for(const[h,p]of Object.entries(u)){const g=h==="solid:storage"||h==="http://www.w3.org/ns/solid/terms#storage";if(d&&h==="@id"){c(p,!0);continue}c(p,d||g)}}};return c(a),Array.from(i)}function aw(a){try{return Vn(new URL(a).toString())}catch{return}}function Vn(a){return a.replace(/\/+$/u,"")+"/"}class Wo extends Error{code;constructor(i,r){super(i),this.name="RegistrationError",this.code=r}}async function Rf(a){const i=await a.json().catch(()=>{});return i?.message||i?.error}function lw(a){return a.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function iw(a,i){if(!a)return!1;const r=lw(a);if(r)return zf(r,i);const c=a.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return c?c===i:/Username already taken/i.test(a)}function rw(a){return a?/already is a login for this e-mail address/i.test(a)||/email(?: address)? is already/i.test(a)||/already registered/i.test(a):!1}function zf(a,i){try{return new URL(a,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===i}catch{return!1}}async function ow(a,i,r,c,u,d){if(d)return cw(a,r,c,u,d);const h=await a(i,{headers:tn(u),credentials:"include"});if(!h.ok)return!1;const p=await h.json().catch(()=>({}));return Object.keys(p.pods??{}).some(g=>zf(g,c))}async function cw(a,i,r,c,u){if(!i)return!1;const d=await a(i,{headers:tn(c),credentials:"include"});if(!d.ok)return!1;const h=await d.json().catch(()=>({})),p=Object.keys(h.webIdLinks??{});return(await Jo(a,p,u)??[]).some(v=>zf(v.storageUrl,r))}async function sw(a){const i=a.fetchImpl??fetch;let r=await i(a.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to create account");const c=await r.json().catch(()=>({})),u=typeof c.authorization=="string"?c.authorization:"";if(!u)throw new Error("Account token not returned");if(r=await i(a.idpIndex,{headers:tn(u),credentials:"include"}),!r.ok)throw new Error((await r.json().catch(()=>({}))).message||"Failed to load account controls");const d=await r.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(r=await i(h,{method:"POST",headers:{...tn(u),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})}),!r.ok){const g=await Rf(r);throw rw(g)?new Wo("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(g||"Failed to set password")}return{accountToken:u,loginUrl:p}}async function uw(a){const r=await(a.fetchImpl??fetch)(a.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:a.email,password:a.password})});if(!r.ok){const d=await Rf(r);throw a.duplicateEmailRecovery?new Wo("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(d||"Auto-login failed")}const c=await r.json().catch(()=>({})),u=typeof c.authorization=="string"?c.authorization:"";if(!u)throw new Error("Account token not returned after login");return{accountToken:u}}async function cg(a,i,r,c,u=15e3,d){const h=Date.now()+u;let p=r?.pod,g=r?.webId;for(;Date.now()<h;){try{if(!p&&!g){const v=await a(i,{headers:tn(c),credentials:"include"});if(v.ok){const S=await v.json().catch(()=>({}));p=S.controls?.account?.pod,g=S.controls?.account?.webId}}if(g){const v=await a(g,{headers:tn(c),credentials:"include"});if(v.ok){const S=await v.json().catch(()=>({})),b=Object.keys(S.webIdLinks??{});if(d){if((await Jo(a,b,d)??[]).length>0)return!0}else if(b.length>0)return!0}}if(!d&&p){const v=await a(p,{headers:tn(c),credentials:"include"});if(v.ok){const S=await v.json().catch(()=>({}));if(Object.keys(S.pods??{}).length>0)return!0}}}catch{}await new Promise(v=>setTimeout(v,500))}return!1}async function sg(a){const i=a.fetchImpl??fetch,{accountToken:r,idpIndex:c,username:u}=a,d=await Af(i,a.provisionCode??Bl());let h=await i(c,{headers:tn(r),credentials:"include"});const p=await h.json().catch(()=>({})),g=p.controls?.account?.pod;if(!g)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await ow(i,g,p.controls?.account?.webId,u,r,d))return await cg(i,c,p.controls?.account,r,15e3,d),{createdPod:!0,redirectedToConsent:await ug(i,r)};if(h=await i(g,{method:"POST",headers:{...tn(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Nf(u,d))}),!h.ok){const v=await Rf(h);throw iw(v,u)?new Wo("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(v||"Failed to create pod")}return await h.json().catch(()=>({})),await cg(i,c,p.controls?.account,r,15e3,d),{createdPod:!0,redirectedToConsent:await ug(i,r)}}async function ug(a,i){const r=await a("/.account/oidc/consent/",{headers:tn(i),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function Iu({initialIsRegister:a=!1}){const{controls:i,idpIndex:r,isLoggedIn:c,hasOidcPending:u,authenticating:d}=Zt(),h=gn(),[p,g]=y.useState(!1),[v,S]=y.useState(a),[b,j]=y.useState(""),[N,O]=y.useState(""),[w,A]=y.useState(""),[T,z]=y.useState(!1),[M,F]=y.useState(!1),[K,Z]=y.useState(null),[k,ee]=y.useState([]),[re,ae]=y.useState(null),[ue,de]=y.useState(""),[ve,ne]=y.useState(null),[pe,D]=y.useState(null),U=N.length>0&&w.length>0&&N===w,G=dn(b),$=v?xa(G):void 0;if(y.useEffect(()=>{const I=F1();I&&Zi(I)},[]),y.useEffect(()=>{if(!v){F(!1),Z(null),ee([]),ae(null);return}if(!G){F(!1),Z(null),ee([]),ae(null);return}if($){F(!1),Z(!1),ee([]),ae($);return}let I=!1;F(!0);const te=window.setTimeout(async()=>{const ie=await og(G,r);I||(F(!1),Z(ie.available),ee(ie.suggestions),ae(ie.error??null))},300);return()=>{I=!0,window.clearTimeout(te)}},[r,v,G,$]),c)return f.jsx(Fn,{to:"/.account/create-pod/",replace:!0,state:{next:u?"/.account/oidc/consent/":"/.account/account/"}});const me=[{icon:dv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:mv,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:Ji,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],E=async I=>{I.preventDefault(),g(!0),ne(null),D(null);const te=new FormData(I.currentTarget),ie=te.get("email"),W=te.get("password");try{if(v){const ce=te.get("confirmPassword"),Q=dn(te.get("username")),se=xa(Q);if(W!==ce){alert("Passwords do not match"),g(!1);return}if(se){alert(se),g(!1);return}const he=await og(Q,r),je=i?.password?.login||"/.account/login/password/",Le=async(Ie=!1)=>{const yn=await uw({duplicateEmailRecovery:Ie,email:ie,fetchImpl:fetch,loginUrl:je,password:W});return zu(yn.accountToken),yn.accountToken};if(!he.available){let Ie;try{Ie=await Le()}catch{}if(Ie){const yn=await sg({accountToken:Ie,idpIndex:r,username:Q});window.location.href=yn.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/";return}Z(!1),ee(he.suggestions),ae(he.error??"Username is already taken"),g(!1);return}if(he.error){Z(!1),ae(he.error),g(!1);return}let Ye;const Be=await Le().catch(()=>{});if(Be)Ye=Be;else try{Ye=(await sw({accountCreateUrl:i?.account?.create||"/.account/account/",email:ie,password:W,idpIndex:r})).accountToken,zu(Ye)}catch(Ie){if(!(Ie instanceof Wo)||Ie.code!=="EMAIL_ALREADY_REGISTERED")throw Ie;Ye=await Le(!0)}const ht=await sg({accountToken:Ye,idpIndex:r,username:Q});window.location.href=ht.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/"}else{const ce=await fetch(i?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:ie,password:W})}),Q=await ce.json().catch(()=>({}));if(ce.ok){zu(typeof Q.authorization=="string"?Q.authorization:void 0);const se=ce.headers.get("Location");if(Q.location){window.location.href=Q.location;return}if(se){window.location.href=se;return}const he=q1();if(he){window.location.href=he;return}try{if((await fetch("/.account/oidc/consent/",{headers:Fe(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/create-pod/"}else D(Q.message||"Login failed")}}catch(ce){ce?.name==="RegistrationError"&&ce.code==="EMAIL_ALREADY_REGISTERED"?ne(ce.message):ce?.name==="RegistrationError"&&ce.code==="USERNAME_ALREADY_TAKEN"?(Z(!1),ae(ce.message)):D(ce.message||"Operation failed")}finally{g(!1)}},Y=()=>{S(!v),j(""),O(""),A(""),F(!1),Z(null),ee([]),ae(null),de(""),ne(null),D(null)},J=async()=>{if(i?.oidc?.cancel){z(!0);try{const te=await(await fetch(i.oidc.cancel,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();te.location&&(window.location.href=te.location)}catch{alert("Failed to cancel"),z(!1)}}};return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:me.map(({icon:I,title:te,desc:ie})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(I,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:te}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:ie})]})]},te))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:v?"Create account":"Welcome back"}),f.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."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:E,children:[pe&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:pe}),f.jsxs("div",{className:"space-y-3",children:[v&&f.jsxs("div",{className:"relative",children:[f.jsx(pv,{className:nt("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",$&&b.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:b,onChange:I=>j(I.target.value),className:nt("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",$&&b.length>0||K===!1?"border-amber-300 focus:border-amber-500":K?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Qu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:ue,onChange:I=>{de(I.target.value),ve&&ne(null)},className:nt("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",ve?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),ve&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[ve," ",f.jsx("button",{type:"button",onClick:()=>{S(!1),ne(null),D(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Qi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:N,onChange:I=>O(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&&f.jsxs("div",{className:"relative",children:[U?f.jsx(kn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Qi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:w,onChange:I=>A(I.target.value),className:nt("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",U?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),v&&f.jsx("p",{className:nt("text-[11px] leading-relaxed",$&&b.length>0||K===!1?"text-amber-600":K?"text-emerald-600":"text-zinc-500"),children:$&&b.length>0?$:M?"Checking username availability...":re||(G&&K===!1?"Username is already taken.":G&&K?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),v&&k.length>0&&!$&&K===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:k.map(I=>f.jsx("button",{type:"button",onClick:()=>j(I),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:I},I))}),!v&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>h("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:p||T||!!(v&&($||M||K===!1)),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:p?f.jsx(Fa,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[v?"Sign up":"Sign in",f.jsx(Io,{className:"h-4 w-4"})]})}),d&&!v&&f.jsx("button",{type:"button",onClick:J,disabled:T||p,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:T?f.jsx(Fa,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[v?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:Y,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:v?"Sign in":"Sign up"})]})})]})})]})]})}function fw(){const{isLoggedIn:a,hasOidcPending:i}=Zt();return a&&i?f.jsx(Fn,{to:"/.account/oidc/consent/",replace:!0}):a?f.jsx(Fn,{to:"/.account/account/",replace:!0}):f.jsx(Iu,{})}function dw(){const a=gn(),{isLoggedIn:i}=Zt(),r=[{icon:dv,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:mv,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:Ji,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.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:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:c,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-3",children:[f.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:f.jsx(c,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:d})]})]},u))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.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."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:c,title:u,desc:d})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(c,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:u}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",d]})]})]},u))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(lg,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.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:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(lg,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.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:[f.jsx(uv,{className:"w-4 h-4"}),i?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function $o(a){return a.replace(/\/+$/u,"")+"/"}function Xn(a){if(a)try{return new URL(a)}catch{return}}function wv(a){const i=Xn(a);if(i)return $o(i.toString())}function hw(a){return wv(a)}function Yo(a,i){const r=Xn(a),c=Xn(i);if(!r||!c||r.origin!==c.origin)return!1;const u=xw(c.pathname);return r.pathname===u||r.pathname.startsWith(u)}function qo(a,i){const r=Xn(a),c=Xn(i);return!r||!c?"custom":r.origin===c.origin?"cloud":"local"}function mw(a){if(!a)return;const i=a.indexOf(".");if(!(i<=0))try{const r=a.slice(0,i),c=JSON.parse(yw(r)),u=c.spDomain?`https://${c.spDomain}`:c.spUrl,d=wv(u);return d?{root:d,lookupUrl:c.spUrl?$o(c.spUrl):void 0,serviceToken:c.serviceToken,mode:"local"}:void 0}catch{return}}function pw(a,i){const r=mw(i);if(r)return r;const c=hw(a);if(c)return{root:c,mode:"cloud"}}async function gw(a,i,r){if(!r.lookupUrl||!r.serviceToken||i.length===0)return[];const c=await a(new URL("/provision/webids",r.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${r.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:i})});if(!c.ok)return[];const u=await c.json().catch(()=>null);if(!Array.isArray(u?.entries))return[];const d=new Set(i);return u.entries.filter(h=>typeof h.webId=="string"&&typeof h.storageUrl=="string"&&d.has(h.webId)&&Yo(h.storageUrl,r.root)).map(h=>({webId:h.webId,storageUrl:$o(h.storageUrl),storageMode:h.storageMode??qo(h.webId,h.storageUrl)}))}function vw(a,i,r){const c=i.filter(d=>Yo(d,r.root));if(c.length===0)return[];const u=[];for(const d of a){const h=qo(d,r.root);if(r.mode!=="local"&&h!==r.mode)continue;const p=h==="cloud"?c.filter(g=>bw(g,d)):c.filter(g=>Sw(g,d));for(const g of p)u.push({webId:d,storageUrl:$o(g),storageMode:qo(d,g)})}return Ev(u)}function Ev(a){const i=new Set,r=[];for(const c of a){const u=`${c.webId}
|
|
12
|
+
${c.storageUrl}`;i.has(u)||(i.add(u),r.push(c))}return r}function yw(a){const i=a.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(a.length/4)*4,"=");return atob(i)}function xw(a){return!a||a==="/"?"/":a.endsWith("/")?a:`${a}/`}function bw(a,i){const r=Xn(a),c=Xn(i);if(!r||!c||r.origin!==c.origin)return!1;const[u]=r.pathname.split("/").filter(Boolean),[d]=c.pathname.split("/").filter(Boolean);return!!(u&&d&&u===d)}function Sw(a,i){const r=Xn(a),c=Xn(i);if(!r||!c)return!1;const[u]=r.pathname.split("/").filter(Boolean),[d]=c.pathname.split("/").filter(Boolean);return!!(u&&d&&u===d)}function Cv(a){try{const r=new URL(a).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function ww(a){const i=a?.pods;return!i||typeof i!="object"?[]:Object.entries(i).map(([r,c])=>({id:r,resourceUrl:c,name:Cv(r)}))}function Ew(a){const i=new Set,r=[];for(const c of a)i.has(c.storageUrl)||(i.add(c.storageUrl),r.push({id:c.storageUrl,name:Cv(c.storageUrl),storageMode:c.storageMode??qo(c.webId,c.storageUrl)}));return r}function Cw(a){return Array.from(new Set(a.map(i=>i.webId)))}function Nw(a){try{const i=new URL(a).pathname.split("/").filter(Boolean);return i[i.length-1]??a}catch{return a.split("/").filter(Boolean).pop()??a}}function Mu(a,i){return`sk-${btoa(`${a}:${i}`)}`}function jw(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:a,hostname:i,origin:r}=window.location;return i.startsWith("id.")?`${a}//api.${i.slice(3)}/v1`:i.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function Aw(){const{controls:a,refetchControls:i,hasOidcPending:r}=Zt(),c=gn(),[u,d]=y.useState(!1),[h,p]=y.useState([]),[g,v]=y.useState([]),[S,b]=y.useState(!1),[j,N]=y.useState(!1),[O,w]=y.useState(""),[A,T]=y.useState(!1),[z,M]=y.useState(""),[F,K]=y.useState([]),[Z,k]=y.useState(null),[ee,re]=y.useState(!1),[ae,ue]=y.useState(""),[de,ve]=y.useState(""),[ne,pe]=y.useState(null),[D,U]=y.useState(!1),G=y.useRef(null),$=jw();y.useEffect(()=>{const Q=se=>{G.current&&!G.current.contains(se.target)&&U(!1)};return document.addEventListener("mousedown",Q),()=>document.removeEventListener("mousedown",Q)},[]);const me=async(Q,se)=>{try{await navigator.clipboard.writeText(Q),pe(se),setTimeout(()=>pe(null),2e3)}catch{}},E=async()=>{try{const Q=pw(window.location.origin,Bl());let se=[],he=[],je=[],Le=[];if(a?.account?.webId){const Be=await fetch(a.account.webId,{headers:Fe(),credentials:"include"});if(Be.ok){const Ie=(await Be.json()).webIdLinks||{};he=Object.keys(Ie)}else he=[]}if(a?.account?.pod){const Be=await fetch(a.account.pod,{headers:Fe(),credentials:"include"});if(Be.ok){const ht=await Be.json();je=ww(ht)}else je=[]}Q&&(Le=Q.serviceToken?await gw(fetch,he,Q):vw(he,je.map(Be=>Be.id),Q)),Le=Ev(Le),se=Cw(Le);const Ye=Q?.serviceToken?Ew(Le):je.filter(Be=>Yo(Be.id,Q?.root)).map(Be=>({...Be,storageMode:Le.find(ht=>Yo(Be.id,ht.storageUrl))?.storageMode}));if(p(se),v(Ye),b(Q?Ye.length===0&&he.length>0:!1),a?.account?.clientCredentials){const Be=await fetch(a.account.clientCredentials,{headers:Fe(),credentials:"include"});if(Be.ok){const Ie=(await Be.json()).clientCredentials||{},yn=new Set(se);K(Object.entries(Ie).map(([xn,Ka])=>({id:Nw(xn),resourceUrl:xn,webId:typeof Ka=="string"?Ka:void 0})).filter(xn=>xn.webId&&yn.has(xn.webId)))}else K([])}else K([])}catch(Q){console.error("Failed to fetch account data:",Q),p([]),v([]),K([]),b(!1)}};y.useEffect(()=>{E()},[a]);const Y=async()=>{if(a?.account?.logout){d(!0);try{(await fetch(a.account.logout,{method:"POST",headers:Fe(),credentials:"include"})).ok&&(Cf(),Sf(),await i(),c("/.account/"))}catch{alert("Logout failed")}finally{d(!1)}}},J=async Q=>{if(Q.preventDefault(),!(!a?.account?.pod||!O.trim())){d(!0);try{const se=await fetch(a.account.pod,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(Nf(O))});if(se.ok)w(""),N(!1),await i(),await E(),r&&c("/.account/oidc/consent/");else{const he=await se.json().catch(()=>({}));alert(he.message||"Failed to create pod")}}catch{alert("Network error")}finally{d(!1)}}},I=async Q=>{if(Q.preventDefault(),!(!a?.account?.webId||!z.trim())){if(Bl()){T(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}d(!0);try{const se=await fetch(a.account.webId,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:z.trim()})});if(se.ok)M(""),T(!1),await E();else{const he=await se.json().catch(()=>({}));alert(he.message||"Failed to link WebID")}}catch{alert("Network error")}finally{d(!1)}}},te=async Q=>{if(Q.resourceUrl&&confirm(`Delete pod ${Q.id}? This cannot be undone.`)){d(!0);try{(await fetch(Q.resourceUrl,{method:"DELETE",headers:Fe(),credentials:"include"})).ok?await E():alert("Failed to delete pod")}catch{alert("Network error")}finally{d(!1)}}},ie=async Q=>{if(Q.preventDefault(),!(!a?.account?.clientCredentials||!ae||!de.trim())){d(!0);try{const se=await fetch(a.account.clientCredentials,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:de.trim(),webId:ae})});if(se.ok){const he=await se.json();k({id:he.id,secret:he.secret}),re(!1),ue(""),ve(""),await E()}else{const he=await se.json().catch(()=>({}));alert(he.message||"Failed to create credential")}}catch{alert("Network error")}finally{d(!1)}}},W=()=>{if(h.length===0){alert("Please create a Pod first to get a WebID");return}ue(h[0]),ve(""),re(!0)},ce=async Q=>{if(confirm("Delete this credential? This cannot be undone.")){d(!0);try{(await fetch(Q.resourceUrl,{method:"DELETE",headers:Fe(),credentials:"include"})).ok?await E():alert("Failed to delete credential")}catch{alert("Network error")}finally{d(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Ho,{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:[f.jsx(T1,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:Y,disabled:u,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:[f.jsx(M1,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(Ji,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(Ho,{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",f.jsx(Io,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(hv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),a?.account?.pod&&f.jsxs("button",{onClick:()=>N(!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:[f.jsx(_u,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),j&&f.jsxs("form",{onSubmit:J,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:O,onChange:Q=>w(Q.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>N(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:g.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:S?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:g.map(Q=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(w1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:Q.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:Q.id}),Q.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",Q.name]})]})]}),f.jsx("button",{onClick:()=>te(Q),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(ig,{className:"w-4 h-4"})})]},Q.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(pv,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),a?.account?.webId&&f.jsxs("button",{onClick:()=>T(!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:[f.jsx(_u,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),A&&f.jsxs("form",{onSubmit:I,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:z,onChange:Q=>M(Q.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}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>T(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:h.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:h.map(Q=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(N1,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:Q,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Q})]},Q))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(Ou,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),a?.account?.clientCredentials&&f.jsxs("button",{onClick:W,disabled:u,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:[f.jsx(_u,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),a?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[ee&&f.jsxs("form",{onSubmit:ie,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:de,onChange:Q=>ve(Q.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})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:G,children:[f.jsxs("button",{type:"button",onClick:()=>U(!D),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:[f.jsx("span",{className:"truncate text-zinc-700",children:ae||"Select WebID"}),f.jsx(fv,{className:`w-4 h-4 text-zinc-400 transition-transform ${D?"rotate-180":""}`})]}),D&&f.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(Q=>f.jsx("button",{type:"button",onClick:()=>{ue(Q),U(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${ae===Q?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:Q},Q))}),f.jsx("input",{type:"hidden",name:"webId",value:ae,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>re(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:u,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:u?"Creating...":"Create"})]})]}),Z&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(Ou,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:Z.id})]}),f.jsx("button",{onClick:()=>me(Z.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:ne==="id"?f.jsx(kn,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Eo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:Z.secret})]}),f.jsx("button",{onClick:()=>me(Z.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:ne==="secret"?f.jsx(kn,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Eo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:Mu(Z.id,Z.secret)})]}),f.jsx("button",{onClick:()=>me(Mu(Z.id,Z.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:ne==="apikey"?f.jsx(kn,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Eo,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:$})]}),f.jsx("button",{onClick:()=>me($,"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:ne==="baseurl"?f.jsx(kn,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Eo,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",Mu(Z.id,Z.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>k(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:F.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:F.map(Q=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Ou,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:Q.id})]}),f.jsx("button",{onClick:()=>ce(Q),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(ig,{className:"w-4 h-4"})})]},Q.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(Ji,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.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 Tw(a){for(const i of a){if(!i)continue;const r=Mw(i);if(!r)continue;const c=dn(r).replace(/[^a-z0-9-]/gu,"-").replace(/-+/gu,"-").replace(/^-+|-+$/gu,"");if(c&&!xa(c))return c}return""}async function Rw(a){const i=a.fetchImpl??fetch,r=dn(a.username),c=xa(r);if(c)return{status:"invalid",message:c};const u=await Af(i,a.provisionCode),d=Tf(u);if(!d)return{status:"unknown"};const h=new URL(`/provision/pods/${encodeURIComponent(r)}`,d.lookupUrl).toString(),p=await i(h,{headers:{Accept:"application/json",Authorization:`Bearer ${d.serviceToken}`},credentials:"include"}).catch(()=>{});return p?p.status===404?{status:"available",message:"This Pod name is available."}:p.ok?{status:"taken",message:`Pod name "${r}" is already used on this storage.`}:p.status===409?{status:"taken",message:await Ju(p)??`Pod name "${r}" is already used on this storage.`}:{status:"unknown",message:await Ju(p)??"Could not check this Pod name right now."}:{status:"unknown",message:"Could not check this Pod name right now."}}async function zw(a){const i=a.fetchImpl??fetch,r=dn(a.username),c=xa(r);if(c)throw new Error(c);const u=await Af(i,a.provisionCode),d=await i(a.createPodUrl,{method:"POST",headers:{...a.headers,Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Nf(r,u))});if(!d.ok){const v=await Ju(d);throw d.status===409||_w(v)?new Error("Pod name is already taken. Choose another name."):new Error(v||"Failed to create Pod")}const h=await d.json().catch(()=>{}),p=Dw(h);if(!a.pickWebIdUrl)return p;const g=await Nv({fetchImpl:i,headers:a.headers,maxAttempts:a.maxAttempts,pickWebIdUrl:a.pickWebIdUrl,pollIntervalMs:a.pollIntervalMs});return g.length>0?g:p}async function Nv(a){const i=a.fetchImpl??fetch,r=Math.max(1,a.maxAttempts??30),c=Math.max(0,a.pollIntervalMs??500);for(let u=0;u<r;u+=1){const d=await Ow(i,a.pickWebIdUrl,a.headers);if(d.length>0)return d;u<r-1&&c>0&&await new Promise(h=>setTimeout(h,c))}return[]}async function Ow(a,i,r){const c=await a(i,{headers:r,credentials:"include"}).catch(()=>{});if(!c?.ok)return[];const u=await c.json().catch(()=>{});return Array.isArray(u?.webIds)?u.webIds.filter(d=>typeof d=="string"&&d.length>0):[]}async function Ju(a){const i=await a.text?.().catch(()=>{});if(i)try{const r=JSON.parse(i);return typeof r.message=="string"?r.message:typeof r.error=="string"?r.error:i}catch{return i}}function _w(a){return a?/already (?:is )?a resource/iu.test(a)||/already taken/iu.test(a)||/already exists/iu.test(a):!1}function Dw(a){const i=new Set;if(typeof a?.webId=="string"&&a.webId.length>0&&i.add(a.webId),Array.isArray(a?.webIds))for(const r of a.webIds)typeof r=="string"&&r.length>0&&i.add(r);return Array.from(i)}function Mw(a){try{return new URL(a).pathname.split("/").filter(Boolean)[0]}catch{return}}function jv({createPodUrl:a,headers:i,onCreated:r,onError:c,pickWebIdUrl:u,provisionCode:d,webIdCandidates:h=[]}){const[p,g]=y.useState(()=>Tw(h)),[v,S]=y.useState(!1),[b,j]=y.useState(null),[N,O]=y.useState({status:"idle"}),w=dn(p),A=w?xa(w):void 0,T=!!(w&&b===w);y.useEffect(()=>{if(!w){O({status:"idle"});return}if(T){O({status:"created",message:"Storage was created. Refresh authorization when the WebID is ready."});return}if(A){O({status:"invalid",message:A});return}let k=!1;O({status:"checking",message:"Checking Pod name..."});const ee=setTimeout(()=>{Rw({provisionCode:d,username:w}).then(re=>{k||O(re)})},300);return()=>{k=!0,clearTimeout(ee)}},[T,A,w,d]);const z=async()=>{try{c(null),S(!0);const k=u?await Nv({headers:i,pickWebIdUrl:u}):[];k.length>0&&j(null),await r(k)}catch(k){c(k.message||"Failed to refresh authorization state")}finally{S(!1)}},M=async k=>{if(k.preventDefault(),T){await z();return}if(A){c(A);return}if(N.status==="taken"){c(N.message||"This Pod name is already used on this storage.");return}if(N.status==="checking"){c("Please wait for the Pod name check to finish.");return}if(!a){c("Pod creation endpoint not found. Please reload and try again.");return}try{c(null),S(!0);const ee=await zw({createPodUrl:a,headers:i,pickWebIdUrl:u,provisionCode:d,username:w});j(ee.length>0?null:w),g(w),await r(ee)}catch(ee){c(ee.message||"Failed to create Pod")}finally{S(!1)}},F=(()=>{switch(N.status){case"available":return"text-emerald-600";case"taken":case"invalid":return"text-red-600";case"checking":return"text-zinc-500";case"created":return"text-amber-600";default:return"text-zinc-400"}})(),K=v||N.status==="checking"||!T&&N.status==="taken"||!!A,Z=v?T?"Refreshing...":"Creating...":T?"Refresh authorization":"Create storage";return f.jsxs("form",{onSubmit:M,className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 space-y-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-700",children:"Create your first storage"}),f.jsx("p",{className:"text-[11px] text-zinc-500 mt-1",children:"Choose a short Pod name. After it is created, this authorization will continue here."})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 mb-1",children:"Pod name"}),f.jsx("input",{type:"text",value:p,onChange:k=>{g(dn(k.target.value)),c(null)},placeholder:"alice",disabled:v,className:"w-full px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm text-zinc-700 focus:border-[#7C4DFF] focus:outline-none disabled:opacity-60",autoComplete:"username",required:!0}),N.message&&f.jsx("p",{className:`mt-1 text-[11px] ${F}`,children:N.message})]}),f.jsx("button",{type:"submit",disabled:K,className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium disabled:opacity-50 transition-colors",children:Z})]})}function Uw(){const{controls:a,hasOidcPending:i,refetchControls:r}=Zt(),c=gn(),[u,d]=y.useState(!0),[h,p]=y.useState(!1),[g,v]=y.useState([]),[S,b]=y.useState(null),[j,N]=y.useState(()=>Bl()),O=i?"/.account/oidc/pick-webid/":void 0;return y.useEffect(()=>{let w=!1;return(async()=>{try{const A=await jf(fetch,j);if(w)return;N(A);const T=await Lw({accountWebIdUrl:a?.account?.webId,provisionCode:A});if(w)return;if(v(T.allWebIds),T.currentStorageWebIds.length>0){c(i?"/.account/oidc/consent/":"/.account/account/",{replace:!0});return}p(!0)}catch(A){w||(b(A.message||"Failed to check storage state"),p(!0))}finally{w||d(!1)}})(),()=>{w=!0}},[a?.account?.webId,i,c,j]),f.jsxs(Fl,{title:"Create storage",subtitle:"Set up this space before entering the dashboard",icon:hv,children:[S&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(wf,{className:"w-4 h-4 inline mr-2"}),S]}),u&&f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(Fa,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}),!u&&h&&f.jsx(jv,{createPodUrl:a?.account?.pod,headers:Fe(),onCreated:async w=>{if(i&&w.length===0){b("Storage was created. Click Refresh authorization when the WebID is ready.");return}await r(),c(i?"/.account/oidc/consent/":"/.account/account/",{replace:!0})},onError:b,pickWebIdUrl:O,provisionCode:j,webIdCandidates:g})]})}async function Lw(a){const i=a.accountWebIdUrl;if(!i)return{allWebIds:[],currentStorageWebIds:[]};const r=await fetch(i,{headers:Fe(),credentials:"include"});if(!r.ok)return{allWebIds:[],currentStorageWebIds:[]};const c=await r.json().catch(()=>({})),u=Object.keys(c.webIdLinks??{});if(u.length===0)return{allWebIds:u,currentStorageWebIds:[]};if(Tf(a.provisionCode)){const p=await Jo(fetch,u,a.provisionCode);return{allWebIds:u,currentStorageWebIds:(p??[]).map(g=>g.webId)}}const h=await W1(fetch,u,$1(window.location.origin));return{allWebIds:u,currentStorageWebIds:h.map(p=>p.webId)}}function Bw(){const{idpIndex:a,isLoggedIn:i,controls:r}=Zt(),c=gn(),[u,d]=y.useState(!0),[h,p]=y.useState(null),[g,v]=y.useState(null),[S,b]=y.useState([]),[j,N]=y.useState(""),[O,w]=y.useState(null),[A,T]=y.useState(null),[z,M]=y.useState(!0),[F,K]=y.useState(()=>Bl()),[Z,k]=y.useState(!1),[ee,re]=y.useState(!1),ae=`${a}oidc/consent/`,ue=`${a}oidc/pick-webid/`,de=kw(r,a),ve=async()=>{const E=await jf(fetch,F);K(E);const Y=await fetch(ae,{headers:Fe(),credentials:"include"});if(console.log("[Consent] GET consent response status:",Y.status),Y.status===401||Y.status===403)return w("Please sign in to continue authorization."),[];if(!Y.ok){const Q=await Y.json().catch(()=>({}));throw new Error(Q.message||"Failed to load consent info")}const J=await Y.json();p(J.client||{}),v(J.webId||null);const I=await fetch(ue,{headers:Fe(),credentials:"include"});if(!I.ok)return b([]),N(""),[];const te=await I.json(),ie=Array.isArray(te.webIds)?te.webIds.filter(Q=>typeof Q=="string"&&Q.length>0):[],W=E?await Jo(fetch,ie,E):void 0,ce=W?W.map(Q=>Q.webId):ie;return b(ce),J.webId&&ce.includes(J.webId)?N(J.webId):ce.length>0?N(ce[0]):N(""),ce};y.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),Zi(window.location.href),(async()=>{try{await ve()}catch(E){w(E.message||"Failed to load consent info")}finally{d(!1)}})()},[ae,ue]);const ne=E=>{try{const Y=new URL(E),J=Y.pathname.split("/").filter(Boolean);return{provider:Y.host,podId:J[0]??"-",full:E}}catch{return{provider:"-",podId:"-",full:E}}},pe=async E=>{try{await navigator.clipboard.writeText(E),T(E),setTimeout(()=>T(null),1200)}catch{T(null)}},D=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Fe(),credentials:"include"}),Sf(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},U=async E=>{if(console.log("[Consent] handleConsent called, allow:",E),!E){await G();return}try{if(k(!0),w(null),j&&j!==g){console.log("[Consent] Picking WebID:",j);const ie=await fetch(ue,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:j,remember:!1})}),W=await ie.json();if(!ie.ok)throw new Error(W.message||"Failed to select WebID");W.location&&await fetch(W.location,{credentials:"include"})}const Y=await fetch(ae,{method:"POST",headers:Fe({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:z})}),J=await Y.json();if(console.log("[Consent] Response:",Y.status,J),console.log("[Consent] Location header:",Y.headers.get("Location")),!Y.ok)throw new Error(J.message||"Consent failed");const I=Y.headers.get("Location"),te=J.location||I;console.log("[Consent] Redirect URL:",te),te?window.location.href=te:(w("Authorization completed but no redirect URL received. The application may need to restart the login flow."),d(!1))}catch(Y){w(Y.message||"Consent failed")}finally{k(!1)}},G=async()=>{console.log("[Consent] Cancelling...");try{re(!0),w(null);const E=await Yw({cancelUrl:de,headers:Fe({"Content-Type":"application/json",Accept:"application/json"})});window.location.href=E}catch(E){w(E.message||"Authorization cancellation failed")}finally{re(!1)}},$=Hw(S,g,!!F),me=Z||ee;return f.jsxs(Fl,{title:"Authorize",subtitle:`${h?.client_name||"Application"} requests access`,icon:Ji,children:[!i&&f.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:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{Zi(window.location.href),c("/.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"})]}),O&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(wf,{className:"w-4 h-4 inline mr-2"}),O]}),u?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(Fa,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(h?.client_uri||h?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[h?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:h.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:h.client_uri})}),h?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:h.client_id,children:["ID: ",h.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),$.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:ne($[0]).provider})]})]}),$.length===0?f.jsx(jv,{createPodUrl:r?.account?.pod,headers:Fe(),onCreated:async E=>{if(E.length===0){await ve(),w("Storage was created. Click Refresh authorization when the WebID is ready.");return}b(E),N(E[0]||"")},onError:w,pickWebIdUrl:ue,provisionCode:F,webIdCandidates:[g]}):f.jsx("div",{className:"space-y-1",children:$.map(E=>{const Y=ne(E);return f.jsxs("label",{className:nt("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",j===E?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:E,checked:j===E,onChange:J=>N(J.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:Y.full,children:Y.podId})}),f.jsx("button",{type:"button",onClick:J=>{J.preventDefault(),pe(E)},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:A===E?"Copied":"Copy"})]},E)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:z,onChange:E=>M(E.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>U(!1),disabled:me,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:ee?"Denying...":"Deny"}),f.jsx("button",{onClick:()=>U(!0),disabled:me||$.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:Z?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{Zi(window.location.href),c("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:D,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function Hw(a,i,r){return a.length>0?a:r?[]:i?[i]:[]}function kw(a,i){return a?.oidc?.cancel||`${i}oidc/cancel`}async function Yw(a){const i=a.fetchImpl??fetch,r=a.timeoutMs??15e3,c=r>0?new AbortController:null;let u;c&&(u=setTimeout(()=>c.abort(),r));try{const d=await i(a.cancelUrl,{method:"POST",headers:a.headers,credentials:"include",body:JSON.stringify({}),signal:c?.signal});return await qw(d)}catch(d){throw d?.name==="AbortError"?new Error("Authorization cancellation timed out. Please close this tab and retry login."):d}finally{u&&clearTimeout(u)}}async function qw(a){const i=await a.json().catch(()=>null);if(!a.ok)throw new Error(Fw(i)||`Authorization cancellation failed (${a.status}).`);const r=Av(i)&&typeof i.location=="string"?i.location.trim():"",c=a.headers.get("Location")?.trim()||"",u=r||c;if(!u)throw new Error("Authorization cancellation did not return a redirect URL.");return u}function Fw(a){return Av(a)&&typeof a.message=="string"?a.message:""}function Av(a){return typeof a=="object"&&a!==null}function Vw(){const{controls:a,isLoggedIn:i}=Zt(),r=gn(),[c,u]=y.useState(!1),[d,h]=y.useState(!1);if(i)return f.jsx(Fn,{to:"/.account/account/",replace:!0});const p=async g=>{g.preventDefault(),u(!0);const v=new FormData(g.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:v})}),h(!0)}catch{alert("Failed to send reset email")}finally{u(!1)}};return f.jsx(Fl,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:Qu,showBack:!0,onBack:()=>r("/.account/login/password/"),children:d?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(kn,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.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"}),f.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"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:p,children:[f.jsxs("div",{className:"relative",children:[f.jsx(Qu,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.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"})]}),f.jsx("button",{type:"submit",disabled:c,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:c?f.jsx(Fa,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Io,{className:"h-4 w-4"})]})})]})})}function Xw(){const{controls:a,isLoggedIn:i}=Zt(),r=gn(),[c]=KS(),[u,d]=y.useState(!1),[h,p]=y.useState(!1),[g,v]=y.useState(null),[S,b]=y.useState(""),[j,N]=y.useState(""),O=c.get("rid"),w=S.length>0&&j.length>0&&S===j;if(i)return f.jsx(Fn,{to:"/.account/account/",replace:!0});if(!O)return f.jsx(Fn,{to:"/.account/login/password/forgot/",replace:!0});const A=async T=>{if(T.preventDefault(),!w){v("Passwords do not match");return}d(!0),v(null);try{const z=a?.password?.reset||"/.account/login/password/reset/",M=await fetch(z,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:O,password:S})});if(M.ok)p(!0);else{const F=await M.json().catch(()=>({}));v(F.message||"Failed to reset password")}}catch{v("Network error")}finally{d(!1)}};return f.jsx(Fl,{title:"Reset Password",subtitle:"Enter your new password.",icon:Qi,children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(kn,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.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"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:A,children:[g&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:g}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Qi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:S,onChange:T=>b(T.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"})]}),f.jsxs("div",{className:"relative",children:[w?f.jsx(kn,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(Qi,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:j,onChange:T=>N(T.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"})]})]}),f.jsx("button",{type:"submit",disabled:u||!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:u?f.jsx(Fa,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Io,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function Gw(){const{controls:a,isLoggedIn:i}=Zt(),[r,c]=y.useState([]),[u,d]=y.useState(!0);return y.useEffect(()=>{if(i){window.location.href="/.account/account/";return}(async()=>{try{if(a?.main?.logins){const p=await(await fetch(a.main.logins,{headers:Fe(),credentials:"include"})).json(),g=Object.entries(p.logins||{});if(g.length===1){window.location.href=g[0][1];return}if(g.length===0){window.location.href="/.account/login/password/";return}c(g)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=a?.html?.password?.login||"/.account/login/password/"}finally{d(!1)}})()},[a,i]),u?f.jsx(gv,{}):f.jsx(Fl,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([h,p])=>f.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 Tv={"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"},Pw=Object.keys(Tv),Kw=y.forwardRef(function({control:i,...r},c){const u=y.useRef(null);return y.useLayoutEffect(()=>{const d=u.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]),y.useEffect(()=>{const d=u.current;if(!d)return;const h=new AbortController;for(const p of Pw)d.addEventListener(p,g=>{const v=Tv[p],S=i.handlers[v];typeof S=="function"&&S(g.detail)},{signal:h.signal});return()=>{h.abort()}},[i.handlers]),f.jsx("openai-chatkit",{ref:d=>{u.current=d,i.setInstance(d),typeof c=="function"?c(d):c&&(c.current=d),u.current},...r})});function fg(a){return a!==null&&typeof a=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(a))||Array.isArray(a)}function Wu(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(!fg(a)||!fg(i))return!1;const c=r.get(a);if(c&&c===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(!Wu(a[h],i[h],r))return!1;return!0}const u=Object.keys(a),d=Object.keys(i);if(u.length!==d.length)return!1;for(let h=0;h<u.length;h++){const p=u[h];if(!Object.prototype.hasOwnProperty.call(i,p))return!1;const g=a[p],v=i[p];if(!Wu(g,v,r))return!1}return!0}function Qw(a){const i=[],r=(d,h)=>h.reduce((p,g)=>p==null?p:p[g],d),c=(d,h)=>(...p)=>{const g=r(a.current,d),v=g?.[h];if(typeof v=="function")return v.apply(g,p)},u=d=>{if(typeof d=="function"){const h=i[i.length-1],p=i.slice(0,-1);return c(p,h)}if(Array.isArray(d)){const h=i.length,p=new Array(d.length);for(let g=0;g<d.length;g++)i[h]=g,p[g]=u(d[g]);return i.length=h,p}if(d&&typeof d=="object"){const h=i.length,p={};for(const g of Object.keys(d))i[h]=g,p[g]=u(d[g]);return i.length=h,p}return d};return u(a.current)}function Zw(a){const i=en.useRef(a);i.current=a;const r=en.useRef(null);return(!r.current||!Wu(r.current.snapshot,a))&&(r.current={snapshot:a,shaped:Qw(i)}),r.current.shaped}var Iw=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function Jw(a){const i=y.useRef(null),r=Zw(a),c=y.useMemo(()=>Iw.reduce((h,p)=>(h[p]=(...g)=>{if(!i.current){console.warn("ChatKit element is not mounted");return}return i.current[p](...g)},h),{}),[]),u=y.useCallback(h=>{i.current=h},[]),d=y.useMemo(()=>{const h={},p={};for(const[g,v]of Object.entries(r))/^on[A-Z]/.test(g)&&g!=="onClientTool"?p[g]=v:h[g]=v;return{setInstance:u,options:h,handlers:p}},[r,u]);return y.useMemo(()=>({...c,control:d,ref:i}),[c,d])}const dg="http://localhost:3000/chatkit",hg="domain_pk_localhost_dev";function Ww(){const{isLoggedIn:a}=Zt(),[i,r]=y.useState(""),[c,u]=y.useState(!1),d=y.useCallback(async(p,g={})=>{const v={...g.headers||{}};return i?v.Authorization=`Bearer ${i}`:Object.assign(v,Fe(v)),fetch(p,{...g,headers:v,credentials:"include"})},[i]),h=Jw({api:{url:dg,domainKey:hg,fetch:d},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>u(!c),className:"text-sm text-gray-500 hover:text-gray-700",children:i?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:a?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),c&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.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"}),f.jsx("button",{onClick:()=>u(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(Kw,{control:h.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",dg]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",hg]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",i?"API Key":a?"Session":"None"]})]})]})]})}function qi(a){const{className:i,variant:r,children:c}=a;return f.jsx("div",{className:nt("rounded-xl bg-background",r==="bordered"&&"border border-border",i),children:c})}function Fi(a){const{className:i,children:r}=a;return f.jsx("div",{className:nt("px-5 pt-5",i),children:r})}function Vi(a){const{className:i,children:r}=a;return f.jsx("div",{className:nt("text-base font-semibold",i),children:r})}function Xi(a){const{className:i,children:r}=a;return f.jsx("div",{className:nt("px-5 pb-5 pt-4",i),children:r})}function Uu(a){const{className:i,variant:r="default",size:c="default",children:u,...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"},g={default:"h-10 px-4 py-2",sm:"h-8 px-3"};return f.jsx("button",{className:nt(h,p[r],g[c],i),...d,children:u})}function Hn(a){const{className:i,...r}=a;return f.jsx("input",{className:nt("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 Co(a){const{className:i,...r}=a;return f.jsx("label",{className:nt("text-sm font-medium text-foreground",i),...r})}function mg(a,[i,r]){return Math.min(r,Math.max(i,a))}function tt(a,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(a?.(u),r===!1||!u.defaultPrevented)return i?.(u)}}function Of(a,i=[]){let r=[];function c(d,h){const p=y.createContext(h),g=r.length;r=[...r,h];const v=b=>{const{scope:j,children:N,...O}=b,w=j?.[a]?.[g]||p,A=y.useMemo(()=>O,Object.values(O));return f.jsx(w.Provider,{value:A,children:N})};v.displayName=d+"Provider";function S(b,j){const N=j?.[a]?.[g]||p,O=y.useContext(N);if(O)return O;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${d}\``)}return[v,S]}const u=()=>{const d=r.map(h=>y.createContext(h));return function(p){const g=p?.[a]||d;return y.useMemo(()=>({[`__scope${a}`]:{...p,[a]:g}}),[p,g])}};return u.scopeName=a,[c,$w(u,...i)]}function $w(...a){const i=a[0];if(a.length===1)return i;const r=()=>{const c=a.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const h=c.reduce((p,{useScope:g,scopeName:v})=>{const b=g(d)[`__scope${v}`];return{...p,...b}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}function pg(a,i){if(typeof a=="function")return a(i);a!=null&&(a.current=i)}function Rv(...a){return i=>{let r=!1;const c=a.map(u=>{const d=pg(u,i);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let u=0;u<c.length;u++){const d=c[u];typeof d=="function"?d():pg(a[u],null)}}}}function ft(...a){return y.useCallback(Rv(...a),a)}function Fo(a){const i=eE(a),r=y.forwardRef((c,u)=>{const{children:d,...h}=c,p=y.Children.toArray(d),g=p.find(nE);if(g){const v=g.props.children,S=p.map(b=>b===g?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:b);return f.jsx(i,{...h,ref:u,children:y.isValidElement(v)?y.cloneElement(v,void 0,S):null})}return f.jsx(i,{...h,ref:u,children:d})});return r.displayName=`${a}.Slot`,r}function eE(a){const i=y.forwardRef((r,c)=>{const{children:u,...d}=r;if(y.isValidElement(u)){const h=lE(u),p=aE(d,u.props);return u.type!==y.Fragment&&(p.ref=c?Rv(c,h):h),y.cloneElement(u,p)}return y.Children.count(u)>1?y.Children.only(null):null});return i.displayName=`${a}.SlotClone`,i}var tE=Symbol("radix.slottable");function nE(a){return y.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===tE}function aE(a,i){const r={...i};for(const c in i){const u=a[c],d=i[c];/^on[A-Z]/.test(c)?u&&d?r[c]=(...p)=>{const g=d(...p);return u(...p),g}:u&&(r[c]=u):c==="style"?r[c]={...u,...d}:c==="className"&&(r[c]=[u,d].filter(Boolean).join(" "))}return{...a,...r}}function lE(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 iE(a){const i=a+"CollectionProvider",[r,c]=Of(i),[u,d]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=w=>{const{scope:A,children:T}=w,z=en.useRef(null),M=en.useRef(new Map).current;return f.jsx(u,{scope:A,itemMap:M,collectionRef:z,children:T})};h.displayName=i;const p=a+"CollectionSlot",g=Fo(p),v=en.forwardRef((w,A)=>{const{scope:T,children:z}=w,M=d(p,T),F=ft(A,M.collectionRef);return f.jsx(g,{ref:F,children:z})});v.displayName=p;const S=a+"CollectionItemSlot",b="data-radix-collection-item",j=Fo(S),N=en.forwardRef((w,A)=>{const{scope:T,children:z,...M}=w,F=en.useRef(null),K=ft(A,F),Z=d(S,T);return en.useEffect(()=>(Z.itemMap.set(F,{ref:F,...M}),()=>{Z.itemMap.delete(F)})),f.jsx(j,{[b]:"",ref:K,children:z})});N.displayName=S;function O(w){const A=d(a+"CollectionConsumer",w);return en.useCallback(()=>{const z=A.collectionRef.current;if(!z)return[];const M=Array.from(z.querySelectorAll(`[${b}]`));return Array.from(A.itemMap.values()).sort((Z,k)=>M.indexOf(Z.ref.current)-M.indexOf(k.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:h,Slot:v,ItemSlot:N},O,c]}var rE=y.createContext(void 0);function oE(a){const i=y.useContext(rE);return a||i||"ltr"}var cE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=cE.reduce((a,i)=>{const r=Fo(`Primitive.${i}`),c=y.forwardRef((u,d)=>{const{asChild:h,...p}=u,g=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(g,{...p,ref:d})});return c.displayName=`Primitive.${i}`,{...a,[i]:c}},{});function sE(a,i){a&&tr.flushSync(()=>a.dispatchEvent(i))}function Va(a){const i=y.useRef(a);return y.useEffect(()=>{i.current=a}),y.useMemo(()=>(...r)=>i.current?.(...r),[])}function uE(a,i=globalThis?.document){const r=Va(a);y.useEffect(()=>{const c=u=>{u.key==="Escape"&&r(u)};return i.addEventListener("keydown",c,{capture:!0}),()=>i.removeEventListener("keydown",c,{capture:!0})},[r,i])}var fE="DismissableLayer",$u="dismissableLayer.update",dE="dismissableLayer.pointerDownOutside",hE="dismissableLayer.focusOutside",gg,zv=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ov=y.forwardRef((a,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,onDismiss:p,...g}=a,v=y.useContext(zv),[S,b]=y.useState(null),j=S?.ownerDocument??globalThis?.document,[,N]=y.useState({}),O=ft(i,k=>b(k)),w=Array.from(v.layers),[A]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(A),z=S?w.indexOf(S):-1,M=v.layersWithOutsidePointerEventsDisabled.size>0,F=z>=T,K=gE(k=>{const ee=k.target,re=[...v.branches].some(ae=>ae.contains(ee));!F||re||(u?.(k),h?.(k),k.defaultPrevented||p?.())},j),Z=vE(k=>{const ee=k.target;[...v.branches].some(ae=>ae.contains(ee))||(d?.(k),h?.(k),k.defaultPrevented||p?.())},j);return uE(k=>{z===v.layers.size-1&&(c?.(k),!k.defaultPrevented&&p&&(k.preventDefault(),p()))},j),y.useEffect(()=>{if(S)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(gg=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(S)),v.layers.add(S),vg(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=gg)}},[S,j,r,v]),y.useEffect(()=>()=>{S&&(v.layers.delete(S),v.layersWithOutsidePointerEventsDisabled.delete(S),vg())},[S,v]),y.useEffect(()=>{const k=()=>N({});return document.addEventListener($u,k),()=>document.removeEventListener($u,k)},[]),f.jsx(Ze.div,{...g,ref:O,style:{pointerEvents:M?F?"auto":"none":void 0,...a.style},onFocusCapture:tt(a.onFocusCapture,Z.onFocusCapture),onBlurCapture:tt(a.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:tt(a.onPointerDownCapture,K.onPointerDownCapture)})});Ov.displayName=fE;var mE="DismissableLayerBranch",pE=y.forwardRef((a,i)=>{const r=y.useContext(zv),c=y.useRef(null),u=ft(i,c);return y.useEffect(()=>{const d=c.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),f.jsx(Ze.div,{...a,ref:u})});pE.displayName=mE;function gE(a,i=globalThis?.document){const r=Va(a),c=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const d=p=>{if(p.target&&!c.current){let g=function(){_v(dE,r,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(i.removeEventListener("click",u.current),u.current=g,i.addEventListener("click",u.current,{once:!0})):g()}else i.removeEventListener("click",u.current);c.current=!1},h=window.setTimeout(()=>{i.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(h),i.removeEventListener("pointerdown",d),i.removeEventListener("click",u.current)}},[i,r]),{onPointerDownCapture:()=>c.current=!0}}function vE(a,i=globalThis?.document){const r=Va(a),c=y.useRef(!1);return y.useEffect(()=>{const u=d=>{d.target&&!c.current&&_v(hE,r,{originalEvent:d},{discrete:!1})};return i.addEventListener("focusin",u),()=>i.removeEventListener("focusin",u)},[i,r]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function vg(){const a=new CustomEvent($u);document.dispatchEvent(a)}function _v(a,i,r,{discrete:c}){const u=r.originalEvent.target,d=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});i&&u.addEventListener(a,i,{once:!0}),c?sE(u,d):u.dispatchEvent(d)}var Lu=0;function yE(){y.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??yg()),document.body.insertAdjacentElement("beforeend",a[1]??yg()),Lu++,()=>{Lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Lu--}},[])}function yg(){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",Hu="focusScope.autoFocusOnUnmount",xg={bubbles:!1,cancelable:!0},xE="FocusScope",Dv=y.forwardRef((a,i)=>{const{loop:r=!1,trapped:c=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...h}=a,[p,g]=y.useState(null),v=Va(u),S=Va(d),b=y.useRef(null),j=ft(i,w=>g(w)),N=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(c){let w=function(M){if(N.paused||!p)return;const F=M.target;p.contains(F)?b.current=F:ya(b.current,{select:!0})},A=function(M){if(N.paused||!p)return;const F=M.relatedTarget;F!==null&&(p.contains(F)||ya(b.current,{select:!0}))},T=function(M){if(document.activeElement===document.body)for(const K of M)K.removedNodes.length>0&&ya(p)};document.addEventListener("focusin",w),document.addEventListener("focusout",A);const z=new MutationObserver(T);return p&&z.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",A),z.disconnect()}}},[c,p,N.paused]),y.useEffect(()=>{if(p){Sg.add(N);const w=document.activeElement;if(!p.contains(w)){const T=new CustomEvent(Bu,xg);p.addEventListener(Bu,v),p.dispatchEvent(T),T.defaultPrevented||(bE(NE(Mv(p)),{select:!0}),document.activeElement===w&&ya(p))}return()=>{p.removeEventListener(Bu,v),setTimeout(()=>{const T=new CustomEvent(Hu,xg);p.addEventListener(Hu,S),p.dispatchEvent(T),T.defaultPrevented||ya(w??document.body,{select:!0}),p.removeEventListener(Hu,S),Sg.remove(N)},0)}}},[p,v,S,N]);const O=y.useCallback(w=>{if(!r&&!c||N.paused)return;const A=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(A&&T){const z=w.currentTarget,[M,F]=SE(z);M&&F?!w.shiftKey&&T===F?(w.preventDefault(),r&&ya(M,{select:!0})):w.shiftKey&&T===M&&(w.preventDefault(),r&&ya(F,{select:!0})):T===z&&w.preventDefault()}},[r,c,N.paused]);return f.jsx(Ze.div,{tabIndex:-1,...h,ref:j,onKeyDown:O})});Dv.displayName=xE;function bE(a,{select:i=!1}={}){const r=document.activeElement;for(const c of a)if(ya(c,{select:i}),document.activeElement!==r)return}function SE(a){const i=Mv(a),r=bg(i,a),c=bg(i.reverse(),a);return[r,c]}function Mv(a){const i=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const u=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||u?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function bg(a,i){for(const r of a)if(!wE(r,{upTo:i}))return r}function wE(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 EE(a){return a instanceof HTMLInputElement&&"select"in a}function ya(a,{select:i=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&EE(a)&&i&&a.select()}}var Sg=CE();function CE(){let a=[];return{add(i){const r=a[0];i!==r&&r?.pause(),a=wg(a,i),a.unshift(i)},remove(i){a=wg(a,i),a[0]?.resume()}}}function wg(a,i){const r=[...a],c=r.indexOf(i);return c!==-1&&r.splice(c,1),r}function NE(a){return a.filter(i=>i.tagName!=="A")}var Et=globalThis?.document?y.useLayoutEffect:()=>{},jE=qg[" useId ".trim().toString()]||(()=>{}),AE=0;function _f(a){const[i,r]=y.useState(jE());return Et(()=>{r(c=>c??String(AE++))},[a]),i?`radix-${i}`:""}const TE=["top","right","bottom","left"],ba=Math.min,Ut=Math.max,Vo=Math.round,No=Math.floor,fn=a=>({x:a,y:a}),RE={left:"right",right:"left",bottom:"top",top:"bottom"},zE={start:"end",end:"start"};function ef(a,i,r){return Ut(a,ba(i,r))}function Gn(a,i){return typeof a=="function"?a(i):a}function Pn(a){return a.split("-")[0]}function Vl(a){return a.split("-")[1]}function Df(a){return a==="x"?"y":"x"}function Mf(a){return a==="y"?"height":"width"}const OE=new Set(["top","bottom"]);function un(a){return OE.has(Pn(a))?"y":"x"}function Uf(a){return Df(un(a))}function _E(a,i,r){r===void 0&&(r=!1);const c=Vl(a),u=Uf(a),d=Mf(u);let h=u==="x"?c===(r?"end":"start")?"right":"left":c==="start"?"bottom":"top";return i.reference[d]>i.floating[d]&&(h=Xo(h)),[h,Xo(h)]}function DE(a){const i=Xo(a);return[tf(a),i,tf(i)]}function tf(a){return a.replace(/start|end/g,i=>zE[i])}const Eg=["left","right"],Cg=["right","left"],ME=["top","bottom"],UE=["bottom","top"];function LE(a,i,r){switch(a){case"top":case"bottom":return r?i?Cg:Eg:i?Eg:Cg;case"left":case"right":return i?ME:UE;default:return[]}}function BE(a,i,r,c){const u=Vl(a);let d=LE(Pn(a),r==="start",c);return u&&(d=d.map(h=>h+"-"+u),i&&(d=d.concat(d.map(tf)))),d}function Xo(a){return a.replace(/left|right|bottom|top/g,i=>RE[i])}function HE(a){return{top:0,right:0,bottom:0,left:0,...a}}function Uv(a){return typeof a!="number"?HE(a):{top:a,right:a,bottom:a,left:a}}function Go(a){const{x:i,y:r,width:c,height:u}=a;return{width:c,height:u,top:r,left:i,right:i+c,bottom:r+u,x:i,y:r}}function Ng(a,i,r){let{reference:c,floating:u}=a;const d=un(i),h=Uf(i),p=Mf(h),g=Pn(i),v=d==="y",S=c.x+c.width/2-u.width/2,b=c.y+c.height/2-u.height/2,j=c[p]/2-u[p]/2;let N;switch(g){case"top":N={x:S,y:c.y-u.height};break;case"bottom":N={x:S,y:c.y+c.height};break;case"right":N={x:c.x+c.width,y:b};break;case"left":N={x:c.x-u.width,y:b};break;default:N={x:c.x,y:c.y}}switch(Vl(i)){case"start":N[h]-=j*(r&&v?-1:1);break;case"end":N[h]+=j*(r&&v?-1:1);break}return N}async function kE(a,i){var r;i===void 0&&(i={});const{x:c,y:u,platform:d,rects:h,elements:p,strategy:g}=a,{boundary:v="clippingAncestors",rootBoundary:S="viewport",elementContext:b="floating",altBoundary:j=!1,padding:N=0}=Gn(i,a),O=Uv(N),A=p[j?b==="floating"?"reference":"floating":b],T=Go(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(A)))==null||r?A:A.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:v,rootBoundary:S,strategy:g})),z=b==="floating"?{x:c,y:u,width:h.floating.width,height:h.floating.height}:h.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),F=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},K=Go(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:M,strategy:g}):z);return{top:(T.top-K.top+O.top)/F.y,bottom:(K.bottom-T.bottom+O.bottom)/F.y,left:(T.left-K.left+O.left)/F.x,right:(K.right-T.right+O.right)/F.x}}const YE=async(a,i,r)=>{const{placement:c="bottom",strategy:u="absolute",middleware:d=[],platform:h}=r,p=d.filter(Boolean),g=await(h.isRTL==null?void 0:h.isRTL(i));let v=await h.getElementRects({reference:a,floating:i,strategy:u}),{x:S,y:b}=Ng(v,c,g),j=c,N={},O=0;for(let A=0;A<p.length;A++){var w;const{name:T,fn:z}=p[A],{x:M,y:F,data:K,reset:Z}=await z({x:S,y:b,initialPlacement:c,placement:j,strategy:u,middlewareData:N,rects:v,platform:{...h,detectOverflow:(w=h.detectOverflow)!=null?w:kE},elements:{reference:a,floating:i}});S=M??S,b=F??b,N={...N,[T]:{...N[T],...K}},Z&&O<=50&&(O++,typeof Z=="object"&&(Z.placement&&(j=Z.placement),Z.rects&&(v=Z.rects===!0?await h.getElementRects({reference:a,floating:i,strategy:u}):Z.rects),{x:S,y:b}=Ng(v,j,g)),A=-1)}return{x:S,y:b,placement:j,strategy:u,middlewareData:N}},qE=a=>({name:"arrow",options:a,async fn(i){const{x:r,y:c,placement:u,rects:d,platform:h,elements:p,middlewareData:g}=i,{element:v,padding:S=0}=Gn(a,i)||{};if(v==null)return{};const b=Uv(S),j={x:r,y:c},N=Uf(u),O=Mf(N),w=await h.getDimensions(v),A=N==="y",T=A?"top":"left",z=A?"bottom":"right",M=A?"clientHeight":"clientWidth",F=d.reference[O]+d.reference[N]-j[N]-d.floating[O],K=j[N]-d.reference[N],Z=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let k=Z?Z[M]:0;(!k||!await(h.isElement==null?void 0:h.isElement(Z)))&&(k=p.floating[M]||d.floating[O]);const ee=F/2-K/2,re=k/2-w[O]/2-1,ae=ba(b[T],re),ue=ba(b[z],re),de=ae,ve=k-w[O]-ue,ne=k/2-w[O]/2+ee,pe=ef(de,ne,ve),D=!g.arrow&&Vl(u)!=null&&ne!==pe&&d.reference[O]/2-(ne<de?ae:ue)-w[O]/2<0,U=D?ne<de?ne-de:ne-ve:0;return{[N]:j[N]+U,data:{[N]:pe,centerOffset:ne-pe-U,...D&&{alignmentOffset:U}},reset:D}}}),FE=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(i){var r,c;const{placement:u,middlewareData:d,rects:h,initialPlacement:p,platform:g,elements:v}=i,{mainAxis:S=!0,crossAxis:b=!0,fallbackPlacements:j,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:w=!0,...A}=Gn(a,i);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const T=Pn(u),z=un(p),M=Pn(p)===p,F=await(g.isRTL==null?void 0:g.isRTL(v.floating)),K=j||(M||!w?[Xo(p)]:DE(p)),Z=O!=="none";!j&&Z&&K.push(...BE(p,w,O,F));const k=[p,...K],ee=await g.detectOverflow(i,A),re=[];let ae=((c=d.flip)==null?void 0:c.overflows)||[];if(S&&re.push(ee[T]),b){const ne=_E(u,h,F);re.push(ee[ne[0]],ee[ne[1]])}if(ae=[...ae,{placement:u,overflows:re}],!re.every(ne=>ne<=0)){var ue,de;const ne=(((ue=d.flip)==null?void 0:ue.index)||0)+1,pe=k[ne];if(pe&&(!(b==="alignment"?z!==un(pe):!1)||ae.every(G=>un(G.placement)===z?G.overflows[0]>0:!0)))return{data:{index:ne,overflows:ae},reset:{placement:pe}};let D=(de=ae.filter(U=>U.overflows[0]<=0).sort((U,G)=>U.overflows[1]-G.overflows[1])[0])==null?void 0:de.placement;if(!D)switch(N){case"bestFit":{var ve;const U=(ve=ae.filter(G=>{if(Z){const $=un(G.placement);return $===z||$==="y"}return!0}).map(G=>[G.placement,G.overflows.filter($=>$>0).reduce(($,me)=>$+me,0)]).sort((G,$)=>G[1]-$[1])[0])==null?void 0:ve[0];U&&(D=U);break}case"initialPlacement":D=p;break}if(u!==D)return{reset:{placement:D}}}return{}}}};function jg(a,i){return{top:a.top-i.height,right:a.right-i.width,bottom:a.bottom-i.height,left:a.left-i.width}}function Ag(a){return TE.some(i=>a[i]>=0)}const VE=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(i){const{rects:r,platform:c}=i,{strategy:u="referenceHidden",...d}=Gn(a,i);switch(u){case"referenceHidden":{const h=await c.detectOverflow(i,{...d,elementContext:"reference"}),p=jg(h,r.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Ag(p)}}}case"escaped":{const h=await c.detectOverflow(i,{...d,altBoundary:!0}),p=jg(h,r.floating);return{data:{escapedOffsets:p,escaped:Ag(p)}}}default:return{}}}}},Lv=new Set(["left","top"]);async function XE(a,i){const{placement:r,platform:c,elements:u}=a,d=await(c.isRTL==null?void 0:c.isRTL(u.floating)),h=Pn(r),p=Vl(r),g=un(r)==="y",v=Lv.has(h)?-1:1,S=d&&g?-1:1,b=Gn(i,a);let{mainAxis:j,crossAxis:N,alignmentAxis:O}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return p&&typeof O=="number"&&(N=p==="end"?O*-1:O),g?{x:N*S,y:j*v}:{x:j*v,y:N*S}}const GE=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(i){var r,c;const{x:u,y:d,placement:h,middlewareData:p}=i,g=await XE(i,a);return h===((r=p.offset)==null?void 0:r.placement)&&(c=p.arrow)!=null&&c.alignmentOffset?{}:{x:u+g.x,y:d+g.y,data:{...g,placement:h}}}}},PE=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(i){const{x:r,y:c,placement:u,platform:d}=i,{mainAxis:h=!0,crossAxis:p=!1,limiter:g={fn:T=>{let{x:z,y:M}=T;return{x:z,y:M}}},...v}=Gn(a,i),S={x:r,y:c},b=await d.detectOverflow(i,v),j=un(Pn(u)),N=Df(j);let O=S[N],w=S[j];if(h){const T=N==="y"?"top":"left",z=N==="y"?"bottom":"right",M=O+b[T],F=O-b[z];O=ef(M,O,F)}if(p){const T=j==="y"?"top":"left",z=j==="y"?"bottom":"right",M=w+b[T],F=w-b[z];w=ef(M,w,F)}const A=g.fn({...i,[N]:O,[j]:w});return{...A,data:{x:A.x-r,y:A.y-c,enabled:{[N]:h,[j]:p}}}}}},KE=function(a){return a===void 0&&(a={}),{options:a,fn(i){const{x:r,y:c,placement:u,rects:d,middlewareData:h}=i,{offset:p=0,mainAxis:g=!0,crossAxis:v=!0}=Gn(a,i),S={x:r,y:c},b=un(u),j=Df(b);let N=S[j],O=S[b];const w=Gn(p,i),A=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(g){const M=j==="y"?"height":"width",F=d.reference[j]-d.floating[M]+A.mainAxis,K=d.reference[j]+d.reference[M]-A.mainAxis;N<F?N=F:N>K&&(N=K)}if(v){var T,z;const M=j==="y"?"width":"height",F=Lv.has(Pn(u)),K=d.reference[b]-d.floating[M]+(F&&((T=h.offset)==null?void 0:T[b])||0)+(F?0:A.crossAxis),Z=d.reference[b]+d.reference[M]+(F?0:((z=h.offset)==null?void 0:z[b])||0)-(F?A.crossAxis:0);O<K?O=K:O>Z&&(O=Z)}return{[j]:N,[b]:O}}}},QE=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(i){var r,c;const{placement:u,rects:d,platform:h,elements:p}=i,{apply:g=()=>{},...v}=Gn(a,i),S=await h.detectOverflow(i,v),b=Pn(u),j=Vl(u),N=un(u)==="y",{width:O,height:w}=d.floating;let A,T;b==="top"||b==="bottom"?(A=b,T=j===(await(h.isRTL==null?void 0:h.isRTL(p.floating))?"start":"end")?"left":"right"):(T=b,A=j==="end"?"top":"bottom");const z=w-S.top-S.bottom,M=O-S.left-S.right,F=ba(w-S[A],z),K=ba(O-S[T],M),Z=!i.middlewareData.shift;let k=F,ee=K;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(ee=M),(c=i.middlewareData.shift)!=null&&c.enabled.y&&(k=z),Z&&!j){const ae=Ut(S.left,0),ue=Ut(S.right,0),de=Ut(S.top,0),ve=Ut(S.bottom,0);N?ee=O-2*(ae!==0||ue!==0?ae+ue:Ut(S.left,S.right)):k=w-2*(de!==0||ve!==0?de+ve:Ut(S.top,S.bottom))}await g({...i,availableWidth:ee,availableHeight:k});const re=await h.getDimensions(p.floating);return O!==re.width||w!==re.height?{reset:{rects:!0}}:{}}}};function ec(){return typeof window<"u"}function Xl(a){return Bv(a)?(a.nodeName||"").toLowerCase():"#document"}function Lt(a){var i;return(a==null||(i=a.ownerDocument)==null?void 0:i.defaultView)||window}function vn(a){var i;return(i=(Bv(a)?a.ownerDocument:a.document)||window.document)==null?void 0:i.documentElement}function Bv(a){return ec()?a instanceof Node||a instanceof Lt(a).Node:!1}function nn(a){return ec()?a instanceof Element||a instanceof Lt(a).Element:!1}function hn(a){return ec()?a instanceof HTMLElement||a instanceof Lt(a).HTMLElement:!1}function Tg(a){return!ec()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Lt(a).ShadowRoot}const ZE=new Set(["inline","contents"]);function nr(a){const{overflow:i,overflowX:r,overflowY:c,display:u}=an(a);return/auto|scroll|overlay|hidden|clip/.test(i+c+r)&&!ZE.has(u)}const IE=new Set(["table","td","th"]);function JE(a){return IE.has(Xl(a))}const WE=[":popover-open",":modal"];function tc(a){return WE.some(i=>{try{return a.matches(i)}catch{return!1}})}const $E=["transform","translate","scale","rotate","perspective"],eC=["transform","translate","scale","rotate","perspective","filter"],tC=["paint","layout","strict","content"];function Lf(a){const i=Bf(),r=nn(a)?an(a):a;return $E.some(c=>r[c]?r[c]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||eC.some(c=>(r.willChange||"").includes(c))||tC.some(c=>(r.contain||"").includes(c))}function nC(a){let i=Sa(a);for(;hn(i)&&!Hl(i);){if(Lf(i))return i;if(tc(i))return null;i=Sa(i)}return null}function Bf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aC=new Set(["html","body","#document"]);function Hl(a){return aC.has(Xl(a))}function an(a){return Lt(a).getComputedStyle(a)}function nc(a){return nn(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Sa(a){if(Xl(a)==="html")return a;const i=a.assignedSlot||a.parentNode||Tg(a)&&a.host||vn(a);return Tg(i)?i.host:i}function Hv(a){const i=Sa(a);return Hl(i)?a.ownerDocument?a.ownerDocument.body:a.body:hn(i)&&nr(i)?i:Hv(i)}function Wi(a,i,r){var c;i===void 0&&(i=[]),r===void 0&&(r=!0);const u=Hv(a),d=u===((c=a.ownerDocument)==null?void 0:c.body),h=Lt(u);if(d){const p=nf(h);return i.concat(h,h.visualViewport||[],nr(u)?u:[],p&&r?Wi(p):[])}return i.concat(u,Wi(u,[],r))}function nf(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function kv(a){const i=an(a);let r=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const u=hn(a),d=u?a.offsetWidth:r,h=u?a.offsetHeight:c,p=Vo(r)!==d||Vo(c)!==h;return p&&(r=d,c=h),{width:r,height:c,$:p}}function Hf(a){return nn(a)?a:a.contextElement}function Ul(a){const i=Hf(a);if(!hn(i))return fn(1);const r=i.getBoundingClientRect(),{width:c,height:u,$:d}=kv(i);let h=(d?Vo(r.width):r.width)/c,p=(d?Vo(r.height):r.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!p||!Number.isFinite(p))&&(p=1),{x:h,y:p}}const lC=fn(0);function Yv(a){const i=Lt(a);return!Bf()||!i.visualViewport?lC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function iC(a,i,r){return i===void 0&&(i=!1),!r||i&&r!==Lt(a)?!1:i}function Xa(a,i,r,c){i===void 0&&(i=!1),r===void 0&&(r=!1);const u=a.getBoundingClientRect(),d=Hf(a);let h=fn(1);i&&(c?nn(c)&&(h=Ul(c)):h=Ul(a));const p=iC(d,r,c)?Yv(d):fn(0);let g=(u.left+p.x)/h.x,v=(u.top+p.y)/h.y,S=u.width/h.x,b=u.height/h.y;if(d){const j=Lt(d),N=c&&nn(c)?Lt(c):c;let O=j,w=nf(O);for(;w&&c&&N!==O;){const A=Ul(w),T=w.getBoundingClientRect(),z=an(w),M=T.left+(w.clientLeft+parseFloat(z.paddingLeft))*A.x,F=T.top+(w.clientTop+parseFloat(z.paddingTop))*A.y;g*=A.x,v*=A.y,S*=A.x,b*=A.y,g+=M,v+=F,O=Lt(w),w=nf(O)}}return Go({width:S,height:b,x:g,y:v})}function ac(a,i){const r=nc(a).scrollLeft;return i?i.left+r:Xa(vn(a)).left+r}function qv(a,i){const r=a.getBoundingClientRect(),c=r.left+i.scrollLeft-ac(a,r),u=r.top+i.scrollTop;return{x:c,y:u}}function rC(a){let{elements:i,rect:r,offsetParent:c,strategy:u}=a;const d=u==="fixed",h=vn(c),p=i?tc(i.floating):!1;if(c===h||p&&d)return r;let g={scrollLeft:0,scrollTop:0},v=fn(1);const S=fn(0),b=hn(c);if((b||!b&&!d)&&((Xl(c)!=="body"||nr(h))&&(g=nc(c)),hn(c))){const N=Xa(c);v=Ul(c),S.x=N.x+c.clientLeft,S.y=N.y+c.clientTop}const j=h&&!b&&!d?qv(h,g):fn(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-g.scrollLeft*v.x+S.x+j.x,y:r.y*v.y-g.scrollTop*v.y+S.y+j.y}}function oC(a){return Array.from(a.getClientRects())}function cC(a){const i=vn(a),r=nc(a),c=a.ownerDocument.body,u=Ut(i.scrollWidth,i.clientWidth,c.scrollWidth,c.clientWidth),d=Ut(i.scrollHeight,i.clientHeight,c.scrollHeight,c.clientHeight);let h=-r.scrollLeft+ac(a);const p=-r.scrollTop;return an(c).direction==="rtl"&&(h+=Ut(i.clientWidth,c.clientWidth)-u),{width:u,height:d,x:h,y:p}}const Rg=25;function sC(a,i){const r=Lt(a),c=vn(a),u=r.visualViewport;let d=c.clientWidth,h=c.clientHeight,p=0,g=0;if(u){d=u.width,h=u.height;const S=Bf();(!S||S&&i==="fixed")&&(p=u.offsetLeft,g=u.offsetTop)}const v=ac(c);if(v<=0){const S=c.ownerDocument,b=S.body,j=getComputedStyle(b),N=S.compatMode==="CSS1Compat"&&parseFloat(j.marginLeft)+parseFloat(j.marginRight)||0,O=Math.abs(c.clientWidth-b.clientWidth-N);O<=Rg&&(d-=O)}else v<=Rg&&(d+=v);return{width:d,height:h,x:p,y:g}}const uC=new Set(["absolute","fixed"]);function fC(a,i){const r=Xa(a,!0,i==="fixed"),c=r.top+a.clientTop,u=r.left+a.clientLeft,d=hn(a)?Ul(a):fn(1),h=a.clientWidth*d.x,p=a.clientHeight*d.y,g=u*d.x,v=c*d.y;return{width:h,height:p,x:g,y:v}}function zg(a,i,r){let c;if(i==="viewport")c=sC(a,r);else if(i==="document")c=cC(vn(a));else if(nn(i))c=fC(i,r);else{const u=Yv(a);c={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return Go(c)}function Fv(a,i){const r=Sa(a);return r===i||!nn(r)||Hl(r)?!1:an(r).position==="fixed"||Fv(r,i)}function dC(a,i){const r=i.get(a);if(r)return r;let c=Wi(a,[],!1).filter(p=>nn(p)&&Xl(p)!=="body"),u=null;const d=an(a).position==="fixed";let h=d?Sa(a):a;for(;nn(h)&&!Hl(h);){const p=an(h),g=Lf(h);!g&&p.position==="fixed"&&(u=null),(d?!g&&!u:!g&&p.position==="static"&&!!u&&uC.has(u.position)||nr(h)&&!g&&Fv(a,h))?c=c.filter(S=>S!==h):u=p,h=Sa(h)}return i.set(a,c),c}function hC(a){let{element:i,boundary:r,rootBoundary:c,strategy:u}=a;const h=[...r==="clippingAncestors"?tc(i)?[]:dC(i,this._c):[].concat(r),c],p=h[0],g=h.reduce((v,S)=>{const b=zg(i,S,u);return v.top=Ut(b.top,v.top),v.right=ba(b.right,v.right),v.bottom=ba(b.bottom,v.bottom),v.left=Ut(b.left,v.left),v},zg(i,p,u));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function mC(a){const{width:i,height:r}=kv(a);return{width:i,height:r}}function pC(a,i,r){const c=hn(i),u=vn(i),d=r==="fixed",h=Xa(a,!0,d,i);let p={scrollLeft:0,scrollTop:0};const g=fn(0);function v(){g.x=ac(u)}if(c||!c&&!d)if((Xl(i)!=="body"||nr(u))&&(p=nc(i)),c){const N=Xa(i,!0,d,i);g.x=N.x+i.clientLeft,g.y=N.y+i.clientTop}else u&&v();d&&!c&&u&&v();const S=u&&!c&&!d?qv(u,p):fn(0),b=h.left+p.scrollLeft-g.x-S.x,j=h.top+p.scrollTop-g.y-S.y;return{x:b,y:j,width:h.width,height:h.height}}function ku(a){return an(a).position==="static"}function Og(a,i){if(!hn(a)||an(a).position==="fixed")return null;if(i)return i(a);let r=a.offsetParent;return vn(a)===r&&(r=r.ownerDocument.body),r}function Vv(a,i){const r=Lt(a);if(tc(a))return r;if(!hn(a)){let u=Sa(a);for(;u&&!Hl(u);){if(nn(u)&&!ku(u))return u;u=Sa(u)}return r}let c=Og(a,i);for(;c&&JE(c)&&ku(c);)c=Og(c,i);return c&&Hl(c)&&ku(c)&&!Lf(c)?r:c||nC(a)||r}const gC=async function(a){const i=this.getOffsetParent||Vv,r=this.getDimensions,c=await r(a.floating);return{reference:pC(a.reference,await i(a.floating),a.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function vC(a){return an(a).direction==="rtl"}const yC={convertOffsetParentRelativeRectToViewportRelativeRect:rC,getDocumentElement:vn,getClippingRect:hC,getOffsetParent:Vv,getElementRects:gC,getClientRects:oC,getDimensions:mC,getScale:Ul,isElement:nn,isRTL:vC};function Xv(a,i){return a.x===i.x&&a.y===i.y&&a.width===i.width&&a.height===i.height}function xC(a,i){let r=null,c;const u=vn(a);function d(){var p;clearTimeout(c),(p=r)==null||p.disconnect(),r=null}function h(p,g){p===void 0&&(p=!1),g===void 0&&(g=1),d();const v=a.getBoundingClientRect(),{left:S,top:b,width:j,height:N}=v;if(p||i(),!j||!N)return;const O=No(b),w=No(u.clientWidth-(S+j)),A=No(u.clientHeight-(b+N)),T=No(S),M={rootMargin:-O+"px "+-w+"px "+-A+"px "+-T+"px",threshold:Ut(0,ba(1,g))||1};let F=!0;function K(Z){const k=Z[0].intersectionRatio;if(k!==g){if(!F)return h();k?h(!1,k):c=setTimeout(()=>{h(!1,1e-7)},1e3)}k===1&&!Xv(v,a.getBoundingClientRect())&&h(),F=!1}try{r=new IntersectionObserver(K,{...M,root:u.ownerDocument})}catch{r=new IntersectionObserver(K,M)}r.observe(a)}return h(!0),d}function bC(a,i,r,c){c===void 0&&(c={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=c,v=Hf(a),S=u||d?[...v?Wi(v):[],...Wi(i)]:[];S.forEach(T=>{u&&T.addEventListener("scroll",r,{passive:!0}),d&&T.addEventListener("resize",r)});const b=v&&p?xC(v,r):null;let j=-1,N=null;h&&(N=new ResizeObserver(T=>{let[z]=T;z&&z.target===v&&N&&(N.unobserve(i),cancelAnimationFrame(j),j=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(i)})),r()}),v&&!g&&N.observe(v),N.observe(i));let O,w=g?Xa(a):null;g&&A();function A(){const T=Xa(a);w&&!Xv(w,T)&&r(),w=T,O=requestAnimationFrame(A)}return r(),()=>{var T;S.forEach(z=>{u&&z.removeEventListener("scroll",r),d&&z.removeEventListener("resize",r)}),b?.(),(T=N)==null||T.disconnect(),N=null,g&&cancelAnimationFrame(O)}}const SC=GE,wC=PE,EC=FE,CC=QE,NC=VE,_g=qE,jC=KE,AC=(a,i,r)=>{const c=new Map,u={platform:yC,...r},d={...u.platform,_c:c};return YE(a,i,{...u,platform:d})};var TC=typeof document<"u",RC=function(){},Mo=TC?y.useLayoutEffect:RC;function Po(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,c,u;if(a&&i&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==i.length)return!1;for(c=r;c--!==0;)if(!Po(a[c],i[c]))return!1;return!0}if(u=Object.keys(a),r=u.length,r!==Object.keys(i).length)return!1;for(c=r;c--!==0;)if(!{}.hasOwnProperty.call(i,u[c]))return!1;for(c=r;c--!==0;){const d=u[c];if(!(d==="_owner"&&a.$$typeof)&&!Po(a[d],i[d]))return!1}return!0}return a!==a&&i!==i}function Gv(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Dg(a,i){const r=Gv(a);return Math.round(i*r)/r}function Yu(a){const i=y.useRef(a);return Mo(()=>{i.current=a}),i}function zC(a){a===void 0&&(a={});const{placement:i="bottom",strategy:r="absolute",middleware:c=[],platform:u,elements:{reference:d,floating:h}={},transform:p=!0,whileElementsMounted:g,open:v}=a,[S,b]=y.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[j,N]=y.useState(c);Po(j,c)||N(c);const[O,w]=y.useState(null),[A,T]=y.useState(null),z=y.useCallback(G=>{G!==Z.current&&(Z.current=G,w(G))},[]),M=y.useCallback(G=>{G!==k.current&&(k.current=G,T(G))},[]),F=d||O,K=h||A,Z=y.useRef(null),k=y.useRef(null),ee=y.useRef(S),re=g!=null,ae=Yu(g),ue=Yu(u),de=Yu(v),ve=y.useCallback(()=>{if(!Z.current||!k.current)return;const G={placement:i,strategy:r,middleware:j};ue.current&&(G.platform=ue.current),AC(Z.current,k.current,G).then($=>{const me={...$,isPositioned:de.current!==!1};ne.current&&!Po(ee.current,me)&&(ee.current=me,tr.flushSync(()=>{b(me)}))})},[j,i,r,ue,de]);Mo(()=>{v===!1&&ee.current.isPositioned&&(ee.current.isPositioned=!1,b(G=>({...G,isPositioned:!1})))},[v]);const ne=y.useRef(!1);Mo(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Mo(()=>{if(F&&(Z.current=F),K&&(k.current=K),F&&K){if(ae.current)return ae.current(F,K,ve);ve()}},[F,K,ve,ae,re]);const pe=y.useMemo(()=>({reference:Z,floating:k,setReference:z,setFloating:M}),[z,M]),D=y.useMemo(()=>({reference:F,floating:K}),[F,K]),U=y.useMemo(()=>{const G={position:r,left:0,top:0};if(!D.floating)return G;const $=Dg(D.floating,S.x),me=Dg(D.floating,S.y);return p?{...G,transform:"translate("+$+"px, "+me+"px)",...Gv(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:me}},[r,p,D.floating,S.x,S.y]);return y.useMemo(()=>({...S,update:ve,refs:pe,elements:D,floatingStyles:U}),[S,ve,pe,D,U])}const OC=a=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:c,padding:u}=typeof a=="function"?a(r):a;return c&&i(c)?c.current!=null?_g({element:c.current,padding:u}).fn(r):{}:c?_g({element:c,padding:u}).fn(r):{}}}},_C=(a,i)=>({...SC(a),options:[a,i]}),DC=(a,i)=>({...wC(a),options:[a,i]}),MC=(a,i)=>({...jC(a),options:[a,i]}),UC=(a,i)=>({...EC(a),options:[a,i]}),LC=(a,i)=>({...CC(a),options:[a,i]}),BC=(a,i)=>({...NC(a),options:[a,i]}),HC=(a,i)=>({...OC(a),options:[a,i]});var kC="Arrow",Pv=y.forwardRef((a,i)=>{const{children:r,width:c=10,height:u=5,...d}=a;return f.jsx(Ze.svg,{...d,ref:i,width:c,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pv.displayName=kC;var YC=Pv;function qC(a){const[i,r]=y.useState(void 0);return Et(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const c=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let h,p;if("borderBoxSize"in d){const g=d.borderBoxSize,v=Array.isArray(g)?g[0]:g;h=v.inlineSize,p=v.blockSize}else h=a.offsetWidth,p=a.offsetHeight;r({width:h,height:p})});return c.observe(a,{box:"border-box"}),()=>c.unobserve(a)}else r(void 0)},[a]),i}var kf="Popper",[Kv,Qv]=Of(kf),[FC,Zv]=Kv(kf),Iv=a=>{const{__scopePopper:i,children:r}=a,[c,u]=y.useState(null);return f.jsx(FC,{scope:i,anchor:c,onAnchorChange:u,children:r})};Iv.displayName=kf;var Jv="PopperAnchor",Wv=y.forwardRef((a,i)=>{const{__scopePopper:r,virtualRef:c,...u}=a,d=Zv(Jv,r),h=y.useRef(null),p=ft(i,h),g=y.useRef(null);return y.useEffect(()=>{const v=g.current;g.current=c?.current||h.current,v!==g.current&&d.onAnchorChange(g.current)}),c?null:f.jsx(Ze.div,{...u,ref:p})});Wv.displayName=Jv;var Yf="PopperContent",[VC,XC]=Kv(Yf),$v=y.forwardRef((a,i)=>{const{__scopePopper:r,side:c="bottom",sideOffset:u=0,align:d="center",alignOffset:h=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:S=0,sticky:b="partial",hideWhenDetached:j=!1,updatePositionStrategy:N="optimized",onPlaced:O,...w}=a,A=Zv(Yf,r),[T,z]=y.useState(null),M=ft(i,W=>z(W)),[F,K]=y.useState(null),Z=qC(F),k=Z?.width??0,ee=Z?.height??0,re=c+(d!=="center"?"-"+d:""),ae=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},ue=Array.isArray(v)?v:[v],de=ue.length>0,ve={padding:ae,boundary:ue.filter(PC),altBoundary:de},{refs:ne,floatingStyles:pe,placement:D,isPositioned:U,middlewareData:G}=zC({strategy:"fixed",placement:re,whileElementsMounted:(...W)=>bC(...W,{animationFrame:N==="always"}),elements:{reference:A.anchor},middleware:[_C({mainAxis:u+ee,alignmentAxis:h}),g&&DC({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?MC():void 0,...ve}),g&&UC({...ve}),LC({...ve,apply:({elements:W,rects:ce,availableWidth:Q,availableHeight:se})=>{const{width:he,height:je}=ce.reference,Le=W.floating.style;Le.setProperty("--radix-popper-available-width",`${Q}px`),Le.setProperty("--radix-popper-available-height",`${se}px`),Le.setProperty("--radix-popper-anchor-width",`${he}px`),Le.setProperty("--radix-popper-anchor-height",`${je}px`)}}),F&&HC({element:F,padding:p}),KC({arrowWidth:k,arrowHeight:ee}),j&&BC({strategy:"referenceHidden",...ve})]}),[$,me]=ny(D),E=Va(O);Et(()=>{U&&E?.()},[U,E]);const Y=G.arrow?.x,J=G.arrow?.y,I=G.arrow?.centerOffset!==0,[te,ie]=y.useState();return Et(()=>{T&&ie(window.getComputedStyle(T).zIndex)},[T]),f.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:U?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:f.jsx(VC,{scope:r,placedSide:$,onArrowChange:K,arrowX:Y,arrowY:J,shouldHideArrow:I,children:f.jsx(Ze.div,{"data-side":$,"data-align":me,...w,ref:M,style:{...w.style,animation:U?void 0:"none"}})})})});$v.displayName=Yf;var ey="PopperArrow",GC={top:"bottom",right:"left",bottom:"top",left:"right"},ty=y.forwardRef(function(i,r){const{__scopePopper:c,...u}=i,d=XC(ey,c),h=GC[d.placedSide];return f.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:f.jsx(YC,{...u,ref:r,style:{...u.style,display:"block"}})})});ty.displayName=ey;function PC(a){return a!==null}var KC=a=>({name:"transformOrigin",options:a,fn(i){const{placement:r,rects:c,middlewareData:u}=i,h=u.arrow?.centerOffset!==0,p=h?0:a.arrowWidth,g=h?0:a.arrowHeight,[v,S]=ny(r),b={start:"0%",center:"50%",end:"100%"}[S],j=(u.arrow?.x??0)+p/2,N=(u.arrow?.y??0)+g/2;let O="",w="";return v==="bottom"?(O=h?b:`${j}px`,w=`${-g}px`):v==="top"?(O=h?b:`${j}px`,w=`${c.floating.height+g}px`):v==="right"?(O=`${-g}px`,w=h?b:`${N}px`):v==="left"&&(O=`${c.floating.width+g}px`,w=h?b:`${N}px`),{data:{x:O,y:w}}}});function ny(a){const[i,r="center"]=a.split("-");return[i,r]}var QC=Iv,ZC=Wv,IC=$v,JC=ty,WC="Portal",ay=y.forwardRef((a,i)=>{const{container:r,...c}=a,[u,d]=y.useState(!1);Et(()=>d(!0),[]);const h=r||u&&globalThis?.document?.body;return h?$S.createPortal(f.jsx(Ze.div,{...c,ref:i}),h):null});ay.displayName=WC;var $C=qg[" useInsertionEffect ".trim().toString()]||Et;function Mg({prop:a,defaultProp:i,onChange:r=()=>{},caller:c}){const[u,d,h]=e2({defaultProp:i,onChange:r}),p=a!==void 0,g=p?a:u;{const S=y.useRef(a!==void 0);y.useEffect(()=>{const b=S.current;b!==p&&console.warn(`${c} 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,c])}const v=y.useCallback(S=>{if(p){const b=t2(S)?S(a):S;b!==a&&h.current?.(b)}else d(S)},[p,a,d,h]);return[g,v]}function e2({defaultProp:a,onChange:i}){const[r,c]=y.useState(a),u=y.useRef(r),d=y.useRef(i);return $C(()=>{d.current=i},[i]),y.useEffect(()=>{u.current!==r&&(d.current?.(r),u.current=r)},[r,u]),[r,c,d]}function t2(a){return typeof a=="function"}function n2(a){const i=y.useRef({value:a,previous:a});return y.useMemo(()=>(i.current.value!==a&&(i.current.previous=i.current.value,i.current.value=a),i.current.previous),[a])}var ly=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"}),a2="VisuallyHidden",l2=y.forwardRef((a,i)=>f.jsx(Ze.span,{...a,ref:i,style:{...ly,...a.style}}));l2.displayName=a2;var i2=function(a){if(typeof document>"u")return null;var i=Array.isArray(a)?a[0]:a;return i.ownerDocument.body},_l=new WeakMap,jo=new WeakMap,Ao={},qu=0,iy=function(a){return a&&(a.host||iy(a.parentNode))},r2=function(a,i){return i.map(function(r){if(a.contains(r))return r;var c=iy(r);return c&&a.contains(c)?c:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},o2=function(a,i,r,c){var u=r2(i,Array.isArray(a)?a:[a]);Ao[r]||(Ao[r]=new WeakMap);var d=Ao[r],h=[],p=new Set,g=new Set(u),v=function(b){!b||p.has(b)||(p.add(b),v(b.parentNode))};u.forEach(v);var S=function(b){!b||g.has(b)||Array.prototype.forEach.call(b.children,function(j){if(p.has(j))S(j);else try{var N=j.getAttribute(c),O=N!==null&&N!=="false",w=(_l.get(j)||0)+1,A=(d.get(j)||0)+1;_l.set(j,w),d.set(j,A),h.push(j),w===1&&O&&jo.set(j,!0),A===1&&j.setAttribute(r,"true"),O||j.setAttribute(c,"true")}catch(T){console.error("aria-hidden: cannot operate on ",j,T)}})};return S(i),p.clear(),qu++,function(){h.forEach(function(b){var j=_l.get(b)-1,N=d.get(b)-1;_l.set(b,j),d.set(b,N),j||(jo.has(b)||b.removeAttribute(c),jo.delete(b)),N||b.removeAttribute(r)}),qu--,qu||(_l=new WeakMap,_l=new WeakMap,jo=new WeakMap,Ao={})}},c2=function(a,i,r){r===void 0&&(r="data-aria-hidden");var c=Array.from(Array.isArray(a)?a:[a]),u=i2(a);return u?(c.push.apply(c,Array.from(u.querySelectorAll("[aria-live], script"))),o2(c,u,r,"aria-hidden")):function(){return null}},sn=function(){return sn=Object.assign||function(i){for(var r,c=1,u=arguments.length;c<u;c++){r=arguments[c];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])}return i},sn.apply(this,arguments)};function ry(a,i){var r={};for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.indexOf(c)<0&&(r[c]=a[c]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,c=Object.getOwnPropertySymbols(a);u<c.length;u++)i.indexOf(c[u])<0&&Object.prototype.propertyIsEnumerable.call(a,c[u])&&(r[c[u]]=a[c[u]]);return r}function s2(a,i,r){if(r||arguments.length===2)for(var c=0,u=i.length,d;c<u;c++)(d||!(c in i))&&(d||(d=Array.prototype.slice.call(i,0,c)),d[c]=i[c]);return a.concat(d||Array.prototype.slice.call(i))}var Uo="right-scroll-bar-position",Lo="width-before-scroll-bar",u2="with-scroll-bars-hidden",f2="--removed-body-scroll-bar-size";function Fu(a,i){return typeof a=="function"?a(i):a&&(a.current=i),a}function d2(a,i){var r=y.useState(function(){return{value:a,callback:i,facade:{get current(){return r.value},set current(c){var u=r.value;u!==c&&(r.value=c,r.callback(c,u))}}}})[0];return r.callback=i,r.facade}var h2=typeof window<"u"?y.useLayoutEffect:y.useEffect,Ug=new WeakMap;function m2(a,i){var r=d2(null,function(c){return a.forEach(function(u){return Fu(u,c)})});return h2(function(){var c=Ug.get(r);if(c){var u=new Set(c),d=new Set(a),h=r.current;u.forEach(function(p){d.has(p)||Fu(p,null)}),d.forEach(function(p){u.has(p)||Fu(p,h)})}Ug.set(r,a)},[a]),r}function p2(a){return a}function g2(a,i){i===void 0&&(i=p2);var r=[],c=!1,u={read:function(){if(c)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,c);return r.push(h),function(){r=r.filter(function(p){return p!==h})}},assignSyncMedium:function(d){for(c=!0;r.length;){var h=r;r=[],h.forEach(d)}r={push:function(p){return d(p)},filter:function(){return r}}},assignMedium:function(d){c=!0;var h=[];if(r.length){var p=r;r=[],p.forEach(d),h=r}var g=function(){var S=h;h=[],S.forEach(d)},v=function(){return Promise.resolve().then(g)};v(),r={push:function(S){h.push(S),v()},filter:function(S){return h=h.filter(S),r}}}};return u}function v2(a){a===void 0&&(a={});var i=g2(null);return i.options=sn({async:!0,ssr:!1},a),i}var oy=function(a){var i=a.sideCar,r=ry(a,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var c=i.read();if(!c)throw new Error("Sidecar medium not found");return y.createElement(c,sn({},r))};oy.isSideCarExport=!0;function y2(a,i){return a.useMedium(i),oy}var cy=v2(),Vu=function(){},lc=y.forwardRef(function(a,i){var r=y.useRef(null),c=y.useState({onScrollCapture:Vu,onWheelCapture:Vu,onTouchMoveCapture:Vu}),u=c[0],d=c[1],h=a.forwardProps,p=a.children,g=a.className,v=a.removeScrollBar,S=a.enabled,b=a.shards,j=a.sideCar,N=a.noRelative,O=a.noIsolation,w=a.inert,A=a.allowPinchZoom,T=a.as,z=T===void 0?"div":T,M=a.gapMode,F=ry(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),K=j,Z=m2([r,i]),k=sn(sn({},F),u);return y.createElement(y.Fragment,null,S&&y.createElement(K,{sideCar:cy,removeScrollBar:v,shards:b,noRelative:N,noIsolation:O,inert:w,setCallbacks:d,allowPinchZoom:!!A,lockRef:r,gapMode:M}),h?y.cloneElement(y.Children.only(p),sn(sn({},k),{ref:Z})):y.createElement(z,sn({},k,{className:g,ref:Z}),p))});lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};lc.classNames={fullWidth:Lo,zeroRight:Uo};var x2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function b2(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var i=x2();return i&&a.setAttribute("nonce",i),a}function S2(a,i){a.styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i))}function w2(a){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(a)}var E2=function(){var a=0,i=null;return{add:function(r){a==0&&(i=b2())&&(S2(i,r),w2(i)),a++},remove:function(){a--,!a&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},C2=function(){var a=E2();return function(i,r){y.useEffect(function(){return a.add(i),function(){a.remove()}},[i&&r])}},sy=function(){var a=C2(),i=function(r){var c=r.styles,u=r.dynamic;return a(c,u),null};return i},N2={left:0,top:0,right:0,gap:0},Xu=function(a){return parseInt(a||"",10)||0},j2=function(a){var i=window.getComputedStyle(document.body),r=i[a==="padding"?"paddingLeft":"marginLeft"],c=i[a==="padding"?"paddingTop":"marginTop"],u=i[a==="padding"?"paddingRight":"marginRight"];return[Xu(r),Xu(c),Xu(u)]},A2=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return N2;var i=j2(a),r=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-r+i[2]-i[0])}},T2=sy(),Ll="data-scroll-locked",R2=function(a,i,r,c){var u=a.left,d=a.top,h=a.right,p=a.gap;return r===void 0&&(r="margin"),`
|
|
13
|
+
.`.concat(u2,` {
|
|
14
|
+
overflow: hidden `).concat(c,`;
|
|
15
|
+
padding-right: `).concat(p,"px ").concat(c,`;
|
|
16
16
|
}
|
|
17
|
-
body[`).concat(
|
|
18
|
-
overflow: hidden `).concat(
|
|
17
|
+
body[`).concat(Ll,`] {
|
|
18
|
+
overflow: hidden `).concat(c,`;
|
|
19
19
|
overscroll-behavior: contain;
|
|
20
|
-
`).concat([i&&"position: relative ".concat(
|
|
20
|
+
`).concat([i&&"position: relative ".concat(c,";"),r==="margin"&&`
|
|
21
21
|
padding-left: `.concat(u,`px;
|
|
22
22
|
padding-top: `).concat(d,`px;
|
|
23
23
|
padding-right: `).concat(h,`px;
|
|
24
24
|
margin-left:0;
|
|
25
25
|
margin-top:0;
|
|
26
|
-
margin-right: `).concat(p,"px ").concat(
|
|
27
|
-
`),
|
|
26
|
+
margin-right: `).concat(p,"px ").concat(c,`;
|
|
27
|
+
`),r==="padding"&&"padding-right: ".concat(p,"px ").concat(c,";")].filter(Boolean).join(""),`
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.`).concat(
|
|
31
|
-
right: `).concat(p,"px ").concat(
|
|
30
|
+
.`).concat(Uo,` {
|
|
31
|
+
right: `).concat(p,"px ").concat(c,`;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.`).concat(
|
|
35
|
-
margin-right: `).concat(p,"px ").concat(
|
|
34
|
+
.`).concat(Lo,` {
|
|
35
|
+
margin-right: `).concat(p,"px ").concat(c,`;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.`).concat(
|
|
39
|
-
right: 0 `).concat(
|
|
38
|
+
.`).concat(Uo," .").concat(Uo,` {
|
|
39
|
+
right: 0 `).concat(c,`;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.`).concat(
|
|
43
|
-
margin-right: 0 `).concat(
|
|
42
|
+
.`).concat(Lo," .").concat(Lo,` {
|
|
43
|
+
margin-right: 0 `).concat(c,`;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
body[`).concat(
|
|
47
|
-
`).concat(
|
|
46
|
+
body[`).concat(Ll,`] {
|
|
47
|
+
`).concat(f2,": ").concat(p,`px;
|
|
48
48
|
}
|
|
49
|
-
`)},
|
|
50
|
-
.block-interactivity-`.concat(
|
|
51
|
-
.allow-interactivity-`).concat(
|
|
52
|
-
`)},aC=0,Ra=[];function iC(l){var i=v.useRef([]),o=v.useRef([0,0]),r=v.useRef(),u=v.useState(aC++)[0],d=v.useState(Jv)[0],h=v.useRef(l);v.useEffect(function(){h.current=l},[l]),v.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(u));var w=j2([l.lockRef.current],(l.shards||[]).map(zg),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[l.inert,l.lockRef.current,l.shards]);var p=v.useCallback(function(w,T){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var R=jo(w),O=o.current,M="deltaX"in w?w.deltaX:O[0]-R[0],q="deltaY"in w?w.deltaY:O[1]-R[1],Q,P=w.target,Y=Math.abs(M)>Math.abs(q)?"h":"v";if("touches"in w&&Y==="h"&&P.type==="range")return!1;var ne=window.getSelection(),le=ne&&ne.anchorNode,se=le?le===P||le.contains(P):!1;if(se)return!1;var ue=Rg(Y,P);if(!ue)return!0;if(ue?Q=Y:(Q=Y==="v"?"h":"v",ue=Rg(Y,P)),!ue)return!1;if(!r.current&&"changedTouches"in w&&(M||q)&&(r.current=Q),!Q)return!0;var $=r.current||Q;return tC($,T,w,$==="h"?M:q)},[]),g=v.useCallback(function(w){var T=w;if(!(!Ra.length||Ra[Ra.length-1]!==d)){var R="deltaY"in T?Og(T):jo(T),O=i.current.filter(function(Q){return Q.name===T.type&&(Q.target===T.target||T.target===Q.shadowParent)&&nC(Q.delta,R)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var M=(h.current.shards||[]).map(zg).filter(Boolean).filter(function(Q){return Q.contains(T.target)}),q=M.length>0?p(T,M[0]):!h.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),y=v.useCallback(function(w,T,R,O){var M={name:w,delta:T,target:R,should:O,shadowParent:cC(R)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(q){return q!==M})},1)},[]),b=v.useCallback(function(w){o.current=jo(w),r.current=void 0},[]),S=v.useCallback(function(w){y(w.type,Og(w),w.target,p(w,l.lockRef.current))},[]),C=v.useCallback(function(w){y(w.type,jo(w),w.target,p(w,l.lockRef.current))},[]);v.useEffect(function(){return Ra.push(d),l.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:C}),document.addEventListener("wheel",g,Aa),document.addEventListener("touchmove",g,Aa),document.addEventListener("touchstart",b,Aa),function(){Ra=Ra.filter(function(w){return w!==d}),document.removeEventListener("wheel",g,Aa),document.removeEventListener("touchmove",g,Aa),document.removeEventListener("touchstart",b,Aa)}},[]);var N=l.removeScrollBar,D=l.inert;return v.createElement(v.Fragment,null,D?v.createElement(d,{styles:lC(u)}):null,N?v.createElement(Z2,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function cC(l){for(var i=null;l!==null;)l instanceof ShadowRoot&&(i=l.host,l=l.host),l=l.parentNode;return i}const oC=U2(Pv,iC);var ey=v.forwardRef(function(l,i){return v.createElement(nr,sn({},l,{ref:i,sideCar:oC}))});ey.classNames=nr.classNames;var rC=[" ","Enter","ArrowUp","ArrowDown"],sC=[" ","Enter"],Yl="Select",[lr,ar,uC]=ww(Yl),[Ya]=wf(Yl,[uC,Uv]),ir=Uv(),[fC,yl]=Ya(Yl),[dC,hC]=Ya(Yl),ty=l=>{const{__scopeSelect:i,children:o,open:r,defaultOpen:u,onOpenChange:d,value:h,defaultValue:p,onValueChange:g,dir:y,name:b,autoComplete:S,disabled:C,required:N,form:D}=l,w=ir(i),[T,R]=v.useState(null),[O,M]=v.useState(null),[q,Q]=v.useState(!1),P=Cw(y),[Y,ne]=jg({prop:r,defaultProp:u??!1,onChange:d,caller:Yl}),[le,se]=jg({prop:h,defaultProp:p,onChange:g,caller:Yl}),ue=v.useRef(null),$=T?D||!!T.closest("form"):!0,[te,ee]=v.useState(new Set),fe=Array.from(te).map(_=>_.props.value).join(";");return f.jsx(f2,{...w,children:f.jsxs(fC,{required:N,scope:i,trigger:T,onTriggerChange:R,valueNode:O,onValueNodeChange:M,valueNodeHasChildren:q,onValueNodeHasChildrenChange:Q,contentId:Ef(),value:le,onValueChange:se,open:Y,onOpenChange:ne,dir:P,triggerPointerDownPosRef:ue,disabled:C,children:[f.jsx(lr.Provider,{scope:i,children:f.jsx(dC,{scope:l.__scopeSelect,onNativeOptionAdd:v.useCallback(_=>{ee(U=>new Set(U).add(_))},[]),onNativeOptionRemove:v.useCallback(_=>{ee(U=>{const V=new Set(U);return V.delete(_),V})},[]),children:o})}),$?f.jsxs(wy,{"aria-hidden":!0,required:N,tabIndex:-1,name:b,autoComplete:S,value:le,onChange:_=>se(_.target.value),disabled:C,form:D,children:[le===void 0?f.jsx("option",{value:""}):null,Array.from(te)]},fe):null]})})};ty.displayName=Yl;var ny="SelectTrigger",ly=v.forwardRef((l,i)=>{const{__scopeSelect:o,disabled:r=!1,...u}=l,d=ir(o),h=yl(ny,o),p=h.disabled||r,g=ft(i,h.onTriggerChange),y=ar(o),b=v.useRef("touch"),[S,C,N]=Cy(w=>{const T=y().filter(M=>!M.disabled),R=T.find(M=>M.value===h.value),O=Ny(T,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 f.jsx(d2,{asChild:!0,...d,children:f.jsx(Je.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":Ey(h.value)?"":void 0,...u,ref:g,onClick:tt(u.onClick,w=>{w.currentTarget.focus(),b.current!=="mouse"&&D(w)}),onPointerDown:tt(u.onPointerDown,w=>{b.current=w.pointerType;const T=w.target;T.hasPointerCapture(w.pointerId)&&T.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(D(w),w.preventDefault())}),onKeyDown:tt(u.onKeyDown,w=>{const T=S.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&C(w.key),!(T&&w.key===" ")&&rC.includes(w.key)&&(D(),w.preventDefault())})})})});ly.displayName=ny;var ay="SelectValue",iy=v.forwardRef((l,i)=>{const{__scopeSelect:o,className:r,style:u,children:d,placeholder:h="",...p}=l,g=yl(ay,o),{onValueNodeHasChildrenChange:y}=g,b=d!==void 0,S=ft(i,g.onValueNodeChange);return wt(()=>{y(b)},[y,b]),f.jsx(Je.span,{...p,ref:S,style:{pointerEvents:"none"},children:Ey(g.value)?f.jsx(f.Fragment,{children:h}):d})});iy.displayName=ay;var mC="SelectIcon",cy=v.forwardRef((l,i)=>{const{__scopeSelect:o,children:r,...u}=l;return f.jsx(Je.span,{"aria-hidden":!0,...u,ref:i,children:r||"▼"})});cy.displayName=mC;var pC="SelectPortal",oy=l=>f.jsx(Gv,{asChild:!0,...l});oy.displayName=pC;var ql="SelectContent",ry=v.forwardRef((l,i)=>{const o=yl(ql,l.__scopeSelect),[r,u]=v.useState();if(wt(()=>{u(new DocumentFragment)},[]),!o.open){const d=r;return d?Ji.createPortal(f.jsx(sy,{scope:l.__scopeSelect,children:f.jsx(lr.Slot,{scope:l.__scopeSelect,children:f.jsx("div",{children:l.children})})}),d):null}return f.jsx(uy,{...l,ref:i})});ry.displayName=ql;var Wt=10,[sy,xl]=Ya(ql),gC="SelectContentImpl",vC=qo("SelectContent.RemoveScroll"),uy=v.forwardRef((l,i)=>{const{__scopeSelect:o,position:r="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:g,align:y,alignOffset:b,arrowPadding:S,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:T,...R}=l,O=yl(ql,o),[M,q]=v.useState(null),[Q,P]=v.useState(null),Y=ft(i,I=>q(I)),[ne,le]=v.useState(null),[se,ue]=v.useState(null),$=ar(o),[te,ee]=v.useState(!1),fe=v.useRef(!1);v.useEffect(()=>{if(M)return N2(M)},[M]),Uw();const _=v.useCallback(I=>{const[me,...J]=$().map(je=>je.ref.current),[re]=J.slice(-1),ve=document.activeElement;for(const je of I)if(je===ve||(je?.scrollIntoView({block:"nearest"}),je===me&&Q&&(Q.scrollTop=0),je===re&&Q&&(Q.scrollTop=Q.scrollHeight),je?.focus(),document.activeElement!==ve))return},[$,Q]),U=v.useCallback(()=>_([ne,M]),[_,ne,M]);v.useEffect(()=>{te&&U()},[te,U]);const{onOpenChange:V,triggerPointerDownPosRef:ae}=O;v.useEffect(()=>{if(M){let I={x:0,y:0};const me=re=>{I={x:Math.abs(Math.round(re.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(re.pageY)-(ae.current?.y??0))}},J=re=>{I.x<=10&&I.y<=10?re.preventDefault():M.contains(re.target)||V(!1),document.removeEventListener("pointermove",me),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",J,{capture:!0})}}},[M,V,ae]),v.useEffect(()=>{const I=()=>V(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[V]);const[ge,j]=Cy(I=>{const me=$().filter(ve=>!ve.disabled),J=me.find(ve=>ve.ref.current===document.activeElement),re=Ny(me,I,J);re&&setTimeout(()=>re.ref.current.focus())}),G=v.useCallback((I,me,J)=>{const re=!fe.current&&!J;(O.value!==void 0&&O.value===me||re)&&(le(I),re&&(fe.current=!0))},[O.value]),Z=v.useCallback(()=>M?.focus(),[M]),W=v.useCallback((I,me,J)=>{const re=!fe.current&&!J;(O.value!==void 0&&O.value===me||re)&&ue(I)},[O.value]),ce=r==="popper"?ef:fy,he=ce===ef?{side:p,sideOffset:g,align:y,alignOffset:b,arrowPadding:S,collisionBoundary:C,collisionPadding:N,sticky:D,hideWhenDetached:w,avoidCollisions:T}:{};return f.jsx(sy,{scope:o,content:M,viewport:Q,onViewportChange:P,itemRefCallback:G,selectedItem:ne,onItemLeave:Z,itemTextRefCallback:W,focusSelectedItem:U,selectedItemText:se,position:r,isPositioned:te,searchRef:ge,children:f.jsx(ey,{as:vC,allowPinchZoom:!0,children:f.jsx(bv,{asChild:!0,trapped:O.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:tt(u,I=>{O.trigger?.focus({preventScroll:!0}),I.preventDefault()}),children:f.jsx(yv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:f.jsx(ce,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:I=>I.preventDefault(),...R,...he,onPlaced:()=>ee(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:tt(R.onKeyDown,I=>{const me=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!me&&I.key.length===1&&j(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let re=$().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(I.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ve=I.target,je=re.indexOf(ve);re=re.slice(je+1)}setTimeout(()=>_(re)),I.preventDefault()}})})})})})})});uy.displayName=gC;var yC="SelectItemAlignedPosition",fy=v.forwardRef((l,i)=>{const{__scopeSelect:o,onPlaced:r,...u}=l,d=yl(ql,o),h=xl(ql,o),[p,g]=v.useState(null),[y,b]=v.useState(null),S=ft(i,Y=>b(Y)),C=ar(o),N=v.useRef(!1),D=v.useRef(!0),{viewport:w,selectedItem:T,selectedItemText:R,focusSelectedItem:O}=h,M=v.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&y&&w&&T&&R){const Y=d.trigger.getBoundingClientRect(),ne=y.getBoundingClientRect(),le=d.valueNode.getBoundingClientRect(),se=R.getBoundingClientRect();if(d.dir!=="rtl"){const ve=se.left-ne.left,je=le.left-ve,_e=Y.left-je,Ke=Y.width+_e,Be=Math.max(Ke,ne.width),Ye=window.innerWidth-Wt,mt=cg(je,[Wt,Math.max(Wt,Ye-Be)]);p.style.minWidth=Ke+"px",p.style.left=mt+"px"}else{const ve=ne.right-se.right,je=window.innerWidth-le.right-ve,_e=window.innerWidth-Y.right-je,Ke=Y.width+_e,Be=Math.max(Ke,ne.width),Ye=window.innerWidth-Wt,mt=cg(je,[Wt,Math.max(Wt,Ye-Be)]);p.style.minWidth=Ke+"px",p.style.right=mt+"px"}const ue=C(),$=window.innerHeight-Wt*2,te=w.scrollHeight,ee=window.getComputedStyle(y),fe=parseInt(ee.borderTopWidth,10),_=parseInt(ee.paddingTop,10),U=parseInt(ee.borderBottomWidth,10),V=parseInt(ee.paddingBottom,10),ae=fe+_+te+V+U,ge=Math.min(T.offsetHeight*5,ae),j=window.getComputedStyle(w),G=parseInt(j.paddingTop,10),Z=parseInt(j.paddingBottom,10),W=Y.top+Y.height/2-Wt,ce=$-W,he=T.offsetHeight/2,I=T.offsetTop+he,me=fe+_+I,J=ae-me;if(me<=W){const ve=ue.length>0&&T===ue[ue.length-1].ref.current;p.style.bottom="0px";const je=y.clientHeight-w.offsetTop-w.offsetHeight,_e=Math.max(ce,he+(ve?Z:0)+je+U),Ke=me+_e;p.style.height=Ke+"px"}else{const ve=ue.length>0&&T===ue[0].ref.current;p.style.top="0px";const _e=Math.max(W,fe+w.offsetTop+(ve?G:0)+he)+J;p.style.height=_e+"px",w.scrollTop=me-W+w.offsetTop}p.style.margin=`${Wt}px 0`,p.style.minHeight=ge+"px",p.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>N.current=!0)}},[C,d.trigger,d.valueNode,p,y,w,T,R,d.dir,r]);wt(()=>M(),[M]);const[q,Q]=v.useState();wt(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]);const P=v.useCallback(Y=>{Y&&D.current===!0&&(M(),O?.(),D.current=!1)},[M,O]);return f.jsx(bC,{scope:o,contentWrapper:p,shouldExpandOnScrollRef:N,onScrollButtonChange:P,children:f.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:q},children:f.jsx(Je.div,{...u,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});fy.displayName=yC;var xC="SelectPopperPosition",ef=v.forwardRef((l,i)=>{const{__scopeSelect:o,align:r="start",collisionPadding:u=Wt,...d}=l,h=ir(o);return f.jsx(h2,{...h,...d,ref:i,align:r,collisionPadding:u,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)"}})});ef.displayName=xC;var[bC,_f]=Ya(ql,{}),tf="SelectViewport",dy=v.forwardRef((l,i)=>{const{__scopeSelect:o,nonce:r,...u}=l,d=xl(tf,o),h=_f(tf,o),p=ft(i,d.onViewportChange),g=v.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:r}),f.jsx(lr.Slot,{scope:o,children:f.jsx(Je.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:tt(u.onScroll,y=>{const b=y.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:C}=h;if(C?.current&&S){const N=Math.abs(g.current-b.scrollTop);if(N>0){const D=window.innerHeight-Wt*2,w=parseFloat(S.style.minHeight),T=parseFloat(S.style.height),R=Math.max(w,T);if(R<D){const O=R+N,M=Math.min(D,O),q=O-M;S.style.height=M+"px",S.style.bottom==="0px"&&(b.scrollTop=q>0?q:0,S.style.justifyContent="flex-end")}}}g.current=b.scrollTop})})})]})});dy.displayName=tf;var hy="SelectGroup",[SC,wC]=Ya(hy),EC=v.forwardRef((l,i)=>{const{__scopeSelect:o,...r}=l,u=Ef();return f.jsx(SC,{scope:o,id:u,children:f.jsx(Je.div,{role:"group","aria-labelledby":u,...r,ref:i})})});EC.displayName=hy;var my="SelectLabel",py=v.forwardRef((l,i)=>{const{__scopeSelect:o,...r}=l,u=wC(my,o);return f.jsx(Je.div,{id:u.id,...r,ref:i})});py.displayName=my;var Ko="SelectItem",[CC,gy]=Ya(Ko),vy=v.forwardRef((l,i)=>{const{__scopeSelect:o,value:r,disabled:u=!1,textValue:d,...h}=l,p=yl(Ko,o),g=xl(Ko,o),y=p.value===r,[b,S]=v.useState(d??""),[C,N]=v.useState(!1),D=ft(i,O=>g.itemRefCallback?.(O,r,u)),w=Ef(),T=v.useRef("touch"),R=()=>{u||(p.onValueChange(r),p.onOpenChange(!1))};if(r==="")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 f.jsx(CC,{scope:o,value:r,disabled:u,textId:w,isSelected:y,onItemTextChange:v.useCallback(O=>{S(M=>M||(O?.textContent??"").trim())},[]),children:f.jsx(lr.ItemSlot,{scope:o,value:r,disabled:u,textValue:b,children:f.jsx(Je.div,{role:"option","aria-labelledby":w,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...h,ref:D,onFocus:tt(h.onFocus,()=>N(!0)),onBlur:tt(h.onBlur,()=>N(!1)),onClick:tt(h.onClick,()=>{T.current!=="mouse"&&R()}),onPointerUp:tt(h.onPointerUp,()=>{T.current==="mouse"&&R()}),onPointerDown:tt(h.onPointerDown,O=>{T.current=O.pointerType}),onPointerMove:tt(h.onPointerMove,O=>{T.current=O.pointerType,u?g.onItemLeave?.():T.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(h.onPointerLeave,O=>{O.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:tt(h.onKeyDown,O=>{g.searchRef?.current!==""&&O.key===" "||(sC.includes(O.key)&&R(),O.key===" "&&O.preventDefault())})})})})});vy.displayName=Ko;var Yi="SelectItemText",yy=v.forwardRef((l,i)=>{const{__scopeSelect:o,className:r,style:u,...d}=l,h=yl(Yi,o),p=xl(Yi,o),g=gy(Yi,o),y=hC(Yi,o),[b,S]=v.useState(null),C=ft(i,R=>S(R),g.onItemTextChange,R=>p.itemTextRefCallback?.(R,g.value,g.disabled)),N=b?.textContent,D=v.useMemo(()=>f.jsx("option",{value:g.value,disabled:g.disabled,children:N},g.value),[g.disabled,g.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:T}=y;return wt(()=>(w(D),()=>T(D)),[w,T,D]),f.jsxs(f.Fragment,{children:[f.jsx(Je.span,{id:g.textId,...d,ref:C}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Ji.createPortal(d.children,h.valueNode):null]})});yy.displayName=Yi;var xy="SelectItemIndicator",by=v.forwardRef((l,i)=>{const{__scopeSelect:o,...r}=l;return gy(xy,o).isSelected?f.jsx(Je.span,{"aria-hidden":!0,...r,ref:i}):null});by.displayName=xy;var nf="SelectScrollUpButton",NC=v.forwardRef((l,i)=>{const o=xl(nf,l.__scopeSelect),r=_f(nf,l.__scopeSelect),[u,d]=v.useState(!1),h=ft(i,r.onScrollButtonChange);return wt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=g.scrollTop>0;d(y)};const g=o.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),u?f.jsx(Sy,{...l,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=o;p&&g&&(p.scrollTop=p.scrollTop-g.offsetHeight)}}):null});NC.displayName=nf;var lf="SelectScrollDownButton",jC=v.forwardRef((l,i)=>{const o=xl(lf,l.__scopeSelect),r=_f(lf,l.__scopeSelect),[u,d]=v.useState(!1),h=ft(i,r.onScrollButtonChange);return wt(()=>{if(o.viewport&&o.isPositioned){let p=function(){const y=g.scrollHeight-g.clientHeight,b=Math.ceil(g.scrollTop)<y;d(b)};const g=o.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[o.viewport,o.isPositioned]),u?f.jsx(Sy,{...l,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=o;p&&g&&(p.scrollTop=p.scrollTop+g.offsetHeight)}}):null});jC.displayName=lf;var Sy=v.forwardRef((l,i)=>{const{__scopeSelect:o,onAutoScroll:r,...u}=l,d=xl("SelectScrollButton",o),h=v.useRef(null),p=ar(o),g=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>g(),[g]),wt(()=>{p().find(b=>b.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),f.jsx(Je.div,{"aria-hidden":!0,...u,ref:i,style:{flexShrink:0,...u.style},onPointerDown:tt(u.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(r,50))}),onPointerMove:tt(u.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(r,50))}),onPointerLeave:tt(u.onPointerLeave,()=>{g()})})}),TC="SelectSeparator",AC=v.forwardRef((l,i)=>{const{__scopeSelect:o,...r}=l;return f.jsx(Je.div,{"aria-hidden":!0,...r,ref:i})});AC.displayName=TC;var af="SelectArrow",RC=v.forwardRef((l,i)=>{const{__scopeSelect:o,...r}=l,u=ir(o),d=yl(af,o),h=xl(af,o);return d.open&&h.position==="popper"?f.jsx(m2,{...u,...r,ref:i}):null});RC.displayName=af;var OC="SelectBubbleInput",wy=v.forwardRef(({__scopeSelect:l,value:i,...o},r)=>{const u=v.useRef(null),d=ft(r,u),h=x2(i);return v.useEffect(()=>{const p=u.current;if(!p)return;const g=window.HTMLSelectElement.prototype,b=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==i&&b){const S=new Event("change",{bubbles:!0});b.call(p,i),p.dispatchEvent(S)}},[h,i]),f.jsx(Je.select,{...o,style:{...Fv,...o.style},ref:d,defaultValue:i})});wy.displayName=OC;function Ey(l){return l===""||l===void 0}function Cy(l){const i=Hl(l),o=v.useRef(""),r=v.useRef(0),u=v.useCallback(h=>{const p=o.current+h;i(p),(function g(y){o.current=y,window.clearTimeout(r.current),y!==""&&(r.current=window.setTimeout(()=>g(""),1e3))})(p)},[i]),d=v.useCallback(()=>{o.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[o,u,d]}function Ny(l,i,o){const u=i.length>1&&Array.from(i).every(y=>y===i[0])?i[0]:i,d=o?l.indexOf(o):-1;let h=zC(l,Math.max(d,0));u.length===1&&(h=h.filter(y=>y!==o));const g=h.find(y=>y.textValue.toLowerCase().startsWith(u.toLowerCase()));return g!==o?g:void 0}function zC(l,i){return l.map((o,r)=>l[(i+r)%l.length])}var _C=ty,jy=ly,DC=iy,MC=cy,UC=oy,Ty=ry,LC=dy,Ay=py,Ry=vy,BC=yy,HC=by;const To=_C,Ao=DC,qi=v.forwardRef(({className:l,children:i,...o},r)=>f.jsxs(jy,{ref:r,className:nt("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",l),...o,children:[i,f.jsx(MC,{asChild:!0,children:f.jsx(lv,{className:"h-4 w-4 opacity-50"})})]}));qi.displayName=jy.displayName;const Vi=v.forwardRef(({className:l,children:i,position:o="popper",...r},u)=>f.jsx(UC,{children:f.jsx(Ty,{ref:u,className:nt("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",l),position:o,...r,children:f.jsx(LC,{className:nt("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Vi.displayName=Ty.displayName;const kC=v.forwardRef(({className:l,...i},o)=>f.jsx(Ay,{ref:o,className:nt("px-2 py-1.5 text-sm font-semibold",l),...i}));kC.displayName=Ay.displayName;const Mt=v.forwardRef(({className:l,children:i,...o},r)=>f.jsxs(Ry,{ref:r,className:nt("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",l),...o,children:[f.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(HC,{children:f.jsx(Ln,{className:"h-4 w-4"})})}),f.jsx(BC,{children:i})]}));Mt.displayName=Ry.displayName;const $i="/api/admin";async function YC(){try{const l=await fetch(`${$i}/config`);if(l.ok)return await l.json()}catch(l){console.error("Failed to get admin config:",l)}return null}async function qC(l){try{const i=l?"?baseUrl="+encodeURIComponent(l):"",o=await fetch($i+"/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 VC(l){try{return(await fetch(`${$i}/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({env:l})})).ok}catch(i){return console.error("Failed to update admin config:",i),!1}}async function XC(){try{return(await fetch(`${$i}/restart`,{method:"POST"})).ok}catch(l){return console.error("Failed to trigger restart:",l),!1}}async function GC(){try{const l=await fetch(`${$i}/ddns`);if(l.ok)return await l.json()}catch(l){console.error("Failed to get ddns status:",l)}return null}const FC=["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 KC(){const[l,i]=v.useState({}),[o,r]=v.useState(null),[u,d]=v.useState(null),[h,p]=v.useState(!0),[g,y]=v.useState(!1),[b,S]=v.useState(!1),[C,N]=v.useState(""),[D,w]=v.useState(!1),T=l.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",R=["none","cloudflare","sakura_frp"].includes(l.XPOD_TUNNEL_PROVIDER)?l.XPOD_TUNNEL_PROVIDER:"none",O=["none","acme","manual"].includes(l.XPOD_HTTPS_MODE)?l.XPOD_HTTPS_MODE:"none",M=o?.status??"unknown",q=T==="local",P=!!l.XPOD_CLOUD_API_ENDPOINT,Y=q&&P;v.useEffect(()=>{le()},[]),v.useEffect(()=>{h||se(l.CSS_BASE_URL)},[l.CSS_BASE_URL,T,h]),v.useEffect(()=>{h||(Y?ne():d(null))},[Y,h]);const ne=async()=>{try{const U=await GC();d(U)}catch(U){console.error("Failed to load ddns status:",U),d(null)}},le=async()=>{try{const U=await YC();U&&i({...U.env})}catch(U){console.error("Failed to load config:",U)}finally{p(!1)}},se=async U=>{S(!0);try{const V=await qC(U);r(V)}catch(V){console.error("Failed to refresh public ip check:",V),r(null)}finally{S(!1)}},ue=async()=>{if(fe)return N(fe),!1;y(!0),N("");try{const U={};for(const ae of FC)ae in l&&(U[ae]=l[ae]);const V=await VC(U);return N(V?"配置已保存,需要重启服务生效":"保存失败"),!!V}catch{return N("保存失败"),!1}finally{y(!1)}},$=async()=>{N("正在重启服务..."),await XC()?(N("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):N("重启失败")},te=async()=>{await ue()&&await $()},ee=(U,V)=>{i(ae=>({...ae,[U]:V}))},fe=v.useMemo(()=>{if(R==="cloudflare"&&!l.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(R==="sakura_frp"&&!l.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(Y&&u?.mode==="tunnel"&&R==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const V=(l.CSS_BASE_URL||"").trim().startsWith("https://");return!Y&&V&&R==="none"&&O==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[u?.mode,l.CLOUDFLARE_TUNNEL_TOKEN,l.SAKURA_TUNNEL_TOKEN,l.CSS_BASE_URL,O,Y,T,R]),_=v.useMemo(()=>b?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[b,M]);return h?f.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):f.jsxs("div",{className:"p-8 max-w-4xl",children:[f.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),f.jsxs(Li,{variant:"bordered",className:"mb-6",children:[f.jsx(Bi,{children:f.jsx(Hi,{children:"存储目录"})}),f.jsx(ki,{className:"space-y-2",children:f.jsx(Un,{value:l.CSS_ROOT_FILE_PATH||"./data",onChange:U=>ee("CSS_ROOT_FILE_PATH",U.target.value)})})]}),f.jsxs(Li,{variant:"bordered",className:"mb-6",children:[f.jsx(Bi,{children:f.jsx(Hi,{children:"访问地址"})}),f.jsxs(ki,{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(To,{value:T,onValueChange:U=>ee("XPOD_DEPLOY_MODE",U),children:[f.jsx(qi,{className:"w-36 shrink-0",children:f.jsx(Ao,{})}),f.jsxs(Vi,{children:[f.jsx(Mt,{value:"local",children:"边缘部署"}),f.jsx(Mt,{value:"standalone",children:"独立部署"})]})]}),Y?f.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:u?.fqdn||"(等待分配)"}):f.jsx(Un,{className:"flex-1",value:l.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:U=>ee("CSS_BASE_URL",U.target.value),placeholder:"https://your-domain.com"})]}),f.jsx("div",{className:"text-xs text-muted-foreground",children:T==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),f.jsxs(Li,{variant:"bordered",className:"mb-6",children:[f.jsx(Bi,{className:"pb-2",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Hi,{children:"隧道供应商"}),f.jsxs("span",{className:"text-sm",children:["外网:",f.jsx("span",{className:nt("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:_})]})]})}),f.jsxs(ki,{className:"space-y-2",children:[Y&&u?.mode==="tunnel"?f.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,T==="standalone"?f.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(To,{value:R,onValueChange:U=>ee("XPOD_TUNNEL_PROVIDER",U),children:[f.jsx(qi,{className:"w-36 shrink-0",children:f.jsx(Ao,{})}),f.jsxs(Vi,{children:[f.jsx(Mt,{value:"none",children:"不使用隧道"}),f.jsx(Mt,{value:"cloudflare",children:"Cloudflare"}),f.jsx(Mt,{value:"sakura_frp",children:"Sakura FRP"})]})]}),R==="cloudflare"&&f.jsx(Un,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:l.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:U=>ee("CLOUDFLARE_TUNNEL_TOKEN",U.target.value)}),R==="sakura_frp"&&f.jsx(Un,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:l.SAKURA_TUNNEL_TOKEN,onChange:U=>ee("SAKURA_TUNNEL_TOKEN",U.target.value)})]})]})]}),T==="standalone"&&f.jsxs(Li,{variant:"bordered",className:"mb-6",children:[f.jsx(Bi,{children:f.jsx(Hi,{children:"https证书"})}),f.jsx(ki,{children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(To,{value:O,onValueChange:U=>ee("XPOD_HTTPS_MODE",U),children:[f.jsx(qi,{className:"w-36 shrink-0",children:f.jsx(Ao,{})}),f.jsxs(Vi,{children:[f.jsx(Mt,{value:"none",children:"关闭"}),f.jsx(Mt,{value:"acme",children:"自动申请 (ACME)"}),f.jsx(Mt,{value:"manual",children:"手动证书"})]})]}),O==="manual"&&f.jsxs(f.Fragment,{children:[f.jsx(Un,{className:"flex-1",placeholder:"证书路径 (PEM)",value:l.XPOD_HTTPS_CERT_PATH||"",onChange:U=>ee("XPOD_HTTPS_CERT_PATH",U.target.value)}),f.jsx(Un,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:l.XPOD_HTTPS_KEY_PATH||"",onChange:U=>ee("XPOD_HTTPS_KEY_PATH",U.target.value)})]})]})})]}),f.jsx("div",{className:"mb-6",children:f.jsx(_u,{variant:"ghost",size:"sm",onClick:()=>w(U=>!U),children:D?"收起高级设置":"展开高级设置"})}),D&&f.jsxs(Li,{variant:"bordered",className:"mb-6",children:[f.jsx(Bi,{children:f.jsx(Hi,{children:"高级设置"})}),f.jsxs(ki,{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx(So,{children:"端口"}),f.jsx(Un,{value:l.CSS_PORT||"3000",onChange:U=>ee("CSS_PORT",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(So,{children:"SPARQL 存储"}),f.jsx(Un,{value:l.CSS_SPARQL_ENDPOINT||"",onChange:U=>ee("CSS_SPARQL_ENDPOINT",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(So,{children:"身份数据库"}),f.jsx(Un,{value:l.CSS_IDENTITY_DB_URL||"",onChange:U=>ee("CSS_IDENTITY_DB_URL",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(So,{children:"日志级别"}),f.jsxs(To,{value:l.CSS_LOGGING_LEVEL||"info",onValueChange:U=>ee("CSS_LOGGING_LEVEL",U),children:[f.jsx(qi,{className:"w-40 shrink-0",children:f.jsx(Ao,{})}),f.jsxs(Vi,{children:[f.jsx(Mt,{value:"error",children:"error"}),f.jsx(Mt,{value:"warn",children:"warn"}),f.jsx(Mt,{value:"info",children:"info"}),f.jsx(Mt,{value:"debug",children:"debug"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("input",{type:"checkbox",id:"showStackTrace",checked:l.CSS_SHOW_STACK_TRACE==="true",onChange:U=>ee("CSS_SHOW_STACK_TRACE",U.target.checked?"true":"false"),className:"rounded border-input"}),f.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx(_u,{onClick:()=>{ue()},disabled:g||!!fe,children:g?"保存中...":"保存配置"}),f.jsx(_u,{variant:"secondary",onClick:()=>{te()},disabled:g||!!fe,children:"保存并重启"})]}),(C||fe)&&f.jsx("div",{className:nt("mt-4 text-sm",fe||C&&C.includes("失败")?"text-destructive":"text-green-500"),children:C||fe})]})}function QC(){const{isInitializing:l,initError:i}=ln();return l?f.jsx(rv,{}):i?f.jsx(A1,{message:i}):f.jsxs(aS,{children:[f.jsx(Dt,{path:"/.account/",element:f.jsx(I1,{})}),f.jsx(Dt,{path:"/.account/about/",element:f.jsx(W1,{})}),f.jsx(Dt,{path:"/.account/account/",element:f.jsx(Ip,{allowOidcPending:!0,children:f.jsx(aw,{})})}),f.jsx(Dt,{path:"/.account/settings/",element:f.jsx(Ip,{allowOidcPending:!0,children:f.jsx(KC,{})})}),f.jsx(Dt,{path:"/chat/",element:f.jsx(pw,{})}),f.jsx(Dt,{path:"/.account/login/",element:f.jsx(rw,{})}),f.jsx(Dt,{path:"/.account/login/password/",element:f.jsx(Qu,{initialIsRegister:!1})}),f.jsx(Dt,{path:"/.account/login/password/register/",element:f.jsx(Qu,{initialIsRegister:!0})}),f.jsx(Dt,{path:"/.account/login/password/forgot/",element:f.jsx(cw,{})}),f.jsx(Dt,{path:"/.account/login/password/reset/",element:f.jsx(ow,{})}),f.jsx(Dt,{path:"/.account/oidc/consent/",element:f.jsx(iw,{})}),f.jsx(Dt,{path:"*",element:f.jsx(kn,{to:"/.account/",replace:!0})})]})}function ZC(){return f.jsx(RS,{children:f.jsx(PS,{children:f.jsx(QC,{})})})}try{const l=new URLSearchParams(location.search).get("provisionCode");l&&sessionStorage.setItem("provisionCode",l)}catch{}ob.createRoot(document.getElementById("root")).render(f.jsx($t.StrictMode,{children:f.jsx(ZC,{})}));
|
|
49
|
+
`)},Lg=function(){var a=parseInt(document.body.getAttribute(Ll)||"0",10);return isFinite(a)?a:0},z2=function(){y.useEffect(function(){return document.body.setAttribute(Ll,(Lg()+1).toString()),function(){var a=Lg()-1;a<=0?document.body.removeAttribute(Ll):document.body.setAttribute(Ll,a.toString())}},[])},O2=function(a){var i=a.noRelative,r=a.noImportant,c=a.gapMode,u=c===void 0?"margin":c;z2();var d=y.useMemo(function(){return A2(u)},[u]);return y.createElement(T2,{styles:R2(d,!i,u,r?"":"!important")})},af=!1;if(typeof window<"u")try{var To=Object.defineProperty({},"passive",{get:function(){return af=!0,!0}});window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{af=!1}var Dl=af?{passive:!1}:!1,_2=function(a){return a.tagName==="TEXTAREA"},uy=function(a,i){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!_2(a)&&r[i]==="visible")},D2=function(a){return uy(a,"overflowY")},M2=function(a){return uy(a,"overflowX")},Bg=function(a,i){var r=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var u=fy(a,c);if(u){var d=dy(a,c),h=d[1],p=d[2];if(h>p)return!0}c=c.parentNode}while(c&&c!==r.body);return!1},U2=function(a){var i=a.scrollTop,r=a.scrollHeight,c=a.clientHeight;return[i,r,c]},L2=function(a){var i=a.scrollLeft,r=a.scrollWidth,c=a.clientWidth;return[i,r,c]},fy=function(a,i){return a==="v"?D2(i):M2(i)},dy=function(a,i){return a==="v"?U2(i):L2(i)},B2=function(a,i){return a==="h"&&i==="rtl"?-1:1},H2=function(a,i,r,c,u){var d=B2(a,window.getComputedStyle(i).direction),h=d*c,p=r.target,g=i.contains(p),v=!1,S=h>0,b=0,j=0;do{if(!p)break;var N=dy(a,p),O=N[0],w=N[1],A=N[2],T=w-A-d*O;(O||T)&&fy(a,p)&&(b+=T,j+=O);var z=p.parentNode;p=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!g&&p!==document.body||g&&(i.contains(p)||i===p));return(S&&Math.abs(b)<1||!S&&Math.abs(j)<1)&&(v=!0),v},Ro=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Hg=function(a){return[a.deltaX,a.deltaY]},kg=function(a){return a&&"current"in a?a.current:a},k2=function(a,i){return a[0]===i[0]&&a[1]===i[1]},Y2=function(a){return`
|
|
50
|
+
.block-interactivity-`.concat(a,` {pointer-events: none;}
|
|
51
|
+
.allow-interactivity-`).concat(a,` {pointer-events: all;}
|
|
52
|
+
`)},q2=0,Ml=[];function F2(a){var i=y.useRef([]),r=y.useRef([0,0]),c=y.useRef(),u=y.useState(q2++)[0],d=y.useState(sy)[0],h=y.useRef(a);y.useEffect(function(){h.current=a},[a]),y.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(u));var w=s2([a.lockRef.current],(a.shards||[]).map(kg),!0).filter(Boolean);return w.forEach(function(A){return A.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(u))})}}},[a.inert,a.lockRef.current,a.shards]);var p=y.useCallback(function(w,A){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var T=Ro(w),z=r.current,M="deltaX"in w?w.deltaX:z[0]-T[0],F="deltaY"in w?w.deltaY:z[1]-T[1],K,Z=w.target,k=Math.abs(M)>Math.abs(F)?"h":"v";if("touches"in w&&k==="h"&&Z.type==="range")return!1;var ee=window.getSelection(),re=ee&&ee.anchorNode,ae=re?re===Z||re.contains(Z):!1;if(ae)return!1;var ue=Bg(k,Z);if(!ue)return!0;if(ue?K=k:(K=k==="v"?"h":"v",ue=Bg(k,Z)),!ue)return!1;if(!c.current&&"changedTouches"in w&&(M||F)&&(c.current=K),!K)return!0;var de=c.current||K;return H2(de,A,w,de==="h"?M:F)},[]),g=y.useCallback(function(w){var A=w;if(!(!Ml.length||Ml[Ml.length-1]!==d)){var T="deltaY"in A?Hg(A):Ro(A),z=i.current.filter(function(K){return K.name===A.type&&(K.target===A.target||A.target===K.shadowParent)&&k2(K.delta,T)})[0];if(z&&z.should){A.cancelable&&A.preventDefault();return}if(!z){var M=(h.current.shards||[]).map(kg).filter(Boolean).filter(function(K){return K.contains(A.target)}),F=M.length>0?p(A,M[0]):!h.current.noIsolation;F&&A.cancelable&&A.preventDefault()}}},[]),v=y.useCallback(function(w,A,T,z){var M={name:w,delta:A,target:T,should:z,shadowParent:V2(T)};i.current.push(M),setTimeout(function(){i.current=i.current.filter(function(F){return F!==M})},1)},[]),S=y.useCallback(function(w){r.current=Ro(w),c.current=void 0},[]),b=y.useCallback(function(w){v(w.type,Hg(w),w.target,p(w,a.lockRef.current))},[]),j=y.useCallback(function(w){v(w.type,Ro(w),w.target,p(w,a.lockRef.current))},[]);y.useEffect(function(){return Ml.push(d),a.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:j}),document.addEventListener("wheel",g,Dl),document.addEventListener("touchmove",g,Dl),document.addEventListener("touchstart",S,Dl),function(){Ml=Ml.filter(function(w){return w!==d}),document.removeEventListener("wheel",g,Dl),document.removeEventListener("touchmove",g,Dl),document.removeEventListener("touchstart",S,Dl)}},[]);var N=a.removeScrollBar,O=a.inert;return y.createElement(y.Fragment,null,O?y.createElement(d,{styles:Y2(u)}):null,N?y.createElement(O2,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function V2(a){for(var i=null;a!==null;)a instanceof ShadowRoot&&(i=a.host,a=a.host),a=a.parentNode;return i}const X2=y2(cy,F2);var hy=y.forwardRef(function(a,i){return y.createElement(lc,sn({},a,{ref:i,sideCar:X2}))});hy.classNames=lc.classNames;var G2=[" ","Enter","ArrowUp","ArrowDown"],P2=[" ","Enter"],Ga="Select",[ic,rc,K2]=iE(Ga),[Gl]=Of(Ga,[K2,Qv]),oc=Qv(),[Q2,wa]=Gl(Ga),[Z2,I2]=Gl(Ga),my=a=>{const{__scopeSelect:i,children:r,open:c,defaultOpen:u,onOpenChange:d,value:h,defaultValue:p,onValueChange:g,dir:v,name:S,autoComplete:b,disabled:j,required:N,form:O}=a,w=oc(i),[A,T]=y.useState(null),[z,M]=y.useState(null),[F,K]=y.useState(!1),Z=oE(v),[k,ee]=Mg({prop:c,defaultProp:u??!1,onChange:d,caller:Ga}),[re,ae]=Mg({prop:h,defaultProp:p,onChange:g,caller:Ga}),ue=y.useRef(null),de=A?O||!!A.closest("form"):!0,[ve,ne]=y.useState(new Set),pe=Array.from(ve).map(D=>D.props.value).join(";");return f.jsx(QC,{...w,children:f.jsxs(Q2,{required:N,scope:i,trigger:A,onTriggerChange:T,valueNode:z,onValueNodeChange:M,valueNodeHasChildren:F,onValueNodeHasChildrenChange:K,contentId:_f(),value:re,onValueChange:ae,open:k,onOpenChange:ee,dir:Z,triggerPointerDownPosRef:ue,disabled:j,children:[f.jsx(ic.Provider,{scope:i,children:f.jsx(Z2,{scope:a.__scopeSelect,onNativeOptionAdd:y.useCallback(D=>{ne(U=>new Set(U).add(D))},[]),onNativeOptionRemove:y.useCallback(D=>{ne(U=>{const G=new Set(U);return G.delete(D),G})},[]),children:r})}),de?f.jsxs(Uy,{"aria-hidden":!0,required:N,tabIndex:-1,name:S,autoComplete:b,value:re,onChange:D=>ae(D.target.value),disabled:j,form:O,children:[re===void 0?f.jsx("option",{value:""}):null,Array.from(ve)]},pe):null]})})};my.displayName=Ga;var py="SelectTrigger",gy=y.forwardRef((a,i)=>{const{__scopeSelect:r,disabled:c=!1,...u}=a,d=oc(r),h=wa(py,r),p=h.disabled||c,g=ft(i,h.onTriggerChange),v=rc(r),S=y.useRef("touch"),[b,j,N]=By(w=>{const A=v().filter(M=>!M.disabled),T=A.find(M=>M.value===h.value),z=Hy(A,w,T);z!==void 0&&h.onValueChange(z.value)}),O=w=>{p||(h.onOpenChange(!0),N()),w&&(h.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return f.jsx(ZC,{asChild:!0,...d,children:f.jsx(Ze.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":Ly(h.value)?"":void 0,...u,ref:g,onClick:tt(u.onClick,w=>{w.currentTarget.focus(),S.current!=="mouse"&&O(w)}),onPointerDown:tt(u.onPointerDown,w=>{S.current=w.pointerType;const A=w.target;A.hasPointerCapture(w.pointerId)&&A.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(O(w),w.preventDefault())}),onKeyDown:tt(u.onKeyDown,w=>{const A=b.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&j(w.key),!(A&&w.key===" ")&&G2.includes(w.key)&&(O(),w.preventDefault())})})})});gy.displayName=py;var vy="SelectValue",yy=y.forwardRef((a,i)=>{const{__scopeSelect:r,className:c,style:u,children:d,placeholder:h="",...p}=a,g=wa(vy,r),{onValueNodeHasChildrenChange:v}=g,S=d!==void 0,b=ft(i,g.onValueNodeChange);return Et(()=>{v(S)},[v,S]),f.jsx(Ze.span,{...p,ref:b,style:{pointerEvents:"none"},children:Ly(g.value)?f.jsx(f.Fragment,{children:h}):d})});yy.displayName=vy;var J2="SelectIcon",xy=y.forwardRef((a,i)=>{const{__scopeSelect:r,children:c,...u}=a;return f.jsx(Ze.span,{"aria-hidden":!0,...u,ref:i,children:c||"▼"})});xy.displayName=J2;var W2="SelectPortal",by=a=>f.jsx(ay,{asChild:!0,...a});by.displayName=W2;var Pa="SelectContent",Sy=y.forwardRef((a,i)=>{const r=wa(Pa,a.__scopeSelect),[c,u]=y.useState();if(Et(()=>{u(new DocumentFragment)},[]),!r.open){const d=c;return d?tr.createPortal(f.jsx(wy,{scope:a.__scopeSelect,children:f.jsx(ic.Slot,{scope:a.__scopeSelect,children:f.jsx("div",{children:a.children})})}),d):null}return f.jsx(Ey,{...a,ref:i})});Sy.displayName=Pa;var $t=10,[wy,Ea]=Gl(Pa),$2="SelectContentImpl",eN=Fo("SelectContent.RemoveScroll"),Ey=y.forwardRef((a,i)=>{const{__scopeSelect:r,position:c="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,side:p,sideOffset:g,align:v,alignOffset:S,arrowPadding:b,collisionBoundary:j,collisionPadding:N,sticky:O,hideWhenDetached:w,avoidCollisions:A,...T}=a,z=wa(Pa,r),[M,F]=y.useState(null),[K,Z]=y.useState(null),k=ft(i,W=>F(W)),[ee,re]=y.useState(null),[ae,ue]=y.useState(null),de=rc(r),[ve,ne]=y.useState(!1),pe=y.useRef(!1);y.useEffect(()=>{if(M)return c2(M)},[M]),yE();const D=y.useCallback(W=>{const[ce,...Q]=de().map(je=>je.ref.current),[se]=Q.slice(-1),he=document.activeElement;for(const je of W)if(je===he||(je?.scrollIntoView({block:"nearest"}),je===ce&&K&&(K.scrollTop=0),je===se&&K&&(K.scrollTop=K.scrollHeight),je?.focus(),document.activeElement!==he))return},[de,K]),U=y.useCallback(()=>D([ee,M]),[D,ee,M]);y.useEffect(()=>{ve&&U()},[ve,U]);const{onOpenChange:G,triggerPointerDownPosRef:$}=z;y.useEffect(()=>{if(M){let W={x:0,y:0};const ce=se=>{W={x:Math.abs(Math.round(se.pageX)-($.current?.x??0)),y:Math.abs(Math.round(se.pageY)-($.current?.y??0))}},Q=se=>{W.x<=10&&W.y<=10?se.preventDefault():M.contains(se.target)||G(!1),document.removeEventListener("pointermove",ce),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Q,{capture:!0})}}},[M,G,$]),y.useEffect(()=>{const W=()=>G(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[G]);const[me,E]=By(W=>{const ce=de().filter(he=>!he.disabled),Q=ce.find(he=>he.ref.current===document.activeElement),se=Hy(ce,W,Q);se&&setTimeout(()=>se.ref.current.focus())}),Y=y.useCallback((W,ce,Q)=>{const se=!pe.current&&!Q;(z.value!==void 0&&z.value===ce||se)&&(re(W),se&&(pe.current=!0))},[z.value]),J=y.useCallback(()=>M?.focus(),[M]),I=y.useCallback((W,ce,Q)=>{const se=!pe.current&&!Q;(z.value!==void 0&&z.value===ce||se)&&ue(W)},[z.value]),te=c==="popper"?lf:Cy,ie=te===lf?{side:p,sideOffset:g,align:v,alignOffset:S,arrowPadding:b,collisionBoundary:j,collisionPadding:N,sticky:O,hideWhenDetached:w,avoidCollisions:A}:{};return f.jsx(wy,{scope:r,content:M,viewport:K,onViewportChange:Z,itemRefCallback:Y,selectedItem:ee,onItemLeave:J,itemTextRefCallback:I,focusSelectedItem:U,selectedItemText:ae,position:c,isPositioned:ve,searchRef:me,children:f.jsx(hy,{as:eN,allowPinchZoom:!0,children:f.jsx(Dv,{asChild:!0,trapped:z.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:tt(u,W=>{z.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:f.jsx(Ov,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:f.jsx(te,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:W=>W.preventDefault(),...T,...ie,onPlaced:()=>ne(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:tt(T.onKeyDown,W=>{const ce=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ce&&W.key.length===1&&E(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let se=de().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(W.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const he=W.target,je=se.indexOf(he);se=se.slice(je+1)}setTimeout(()=>D(se)),W.preventDefault()}})})})})})})});Ey.displayName=$2;var tN="SelectItemAlignedPosition",Cy=y.forwardRef((a,i)=>{const{__scopeSelect:r,onPlaced:c,...u}=a,d=wa(Pa,r),h=Ea(Pa,r),[p,g]=y.useState(null),[v,S]=y.useState(null),b=ft(i,k=>S(k)),j=rc(r),N=y.useRef(!1),O=y.useRef(!0),{viewport:w,selectedItem:A,selectedItemText:T,focusSelectedItem:z}=h,M=y.useCallback(()=>{if(d.trigger&&d.valueNode&&p&&v&&w&&A&&T){const k=d.trigger.getBoundingClientRect(),ee=v.getBoundingClientRect(),re=d.valueNode.getBoundingClientRect(),ae=T.getBoundingClientRect();if(d.dir!=="rtl"){const he=ae.left-ee.left,je=re.left-he,Le=k.left-je,Ye=k.width+Le,Be=Math.max(Ye,ee.width),ht=window.innerWidth-$t,Ie=mg(je,[$t,Math.max($t,ht-Be)]);p.style.minWidth=Ye+"px",p.style.left=Ie+"px"}else{const he=ee.right-ae.right,je=window.innerWidth-re.right-he,Le=window.innerWidth-k.right-je,Ye=k.width+Le,Be=Math.max(Ye,ee.width),ht=window.innerWidth-$t,Ie=mg(je,[$t,Math.max($t,ht-Be)]);p.style.minWidth=Ye+"px",p.style.right=Ie+"px"}const ue=j(),de=window.innerHeight-$t*2,ve=w.scrollHeight,ne=window.getComputedStyle(v),pe=parseInt(ne.borderTopWidth,10),D=parseInt(ne.paddingTop,10),U=parseInt(ne.borderBottomWidth,10),G=parseInt(ne.paddingBottom,10),$=pe+D+ve+G+U,me=Math.min(A.offsetHeight*5,$),E=window.getComputedStyle(w),Y=parseInt(E.paddingTop,10),J=parseInt(E.paddingBottom,10),I=k.top+k.height/2-$t,te=de-I,ie=A.offsetHeight/2,W=A.offsetTop+ie,ce=pe+D+W,Q=$-ce;if(ce<=I){const he=ue.length>0&&A===ue[ue.length-1].ref.current;p.style.bottom="0px";const je=v.clientHeight-w.offsetTop-w.offsetHeight,Le=Math.max(te,ie+(he?J:0)+je+U),Ye=ce+Le;p.style.height=Ye+"px"}else{const he=ue.length>0&&A===ue[0].ref.current;p.style.top="0px";const Le=Math.max(I,pe+w.offsetTop+(he?Y:0)+ie)+Q;p.style.height=Le+"px",w.scrollTop=ce-I+w.offsetTop}p.style.margin=`${$t}px 0`,p.style.minHeight=me+"px",p.style.maxHeight=de+"px",c?.(),requestAnimationFrame(()=>N.current=!0)}},[j,d.trigger,d.valueNode,p,v,w,A,T,d.dir,c]);Et(()=>M(),[M]);const[F,K]=y.useState();Et(()=>{v&&K(window.getComputedStyle(v).zIndex)},[v]);const Z=y.useCallback(k=>{k&&O.current===!0&&(M(),z?.(),O.current=!1)},[M,z]);return f.jsx(aN,{scope:r,contentWrapper:p,shouldExpandOnScrollRef:N,onScrollButtonChange:Z,children:f.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:f.jsx(Ze.div,{...u,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Cy.displayName=tN;var nN="SelectPopperPosition",lf=y.forwardRef((a,i)=>{const{__scopeSelect:r,align:c="start",collisionPadding:u=$t,...d}=a,h=oc(r);return f.jsx(IC,{...h,...d,ref:i,align:c,collisionPadding:u,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)"}})});lf.displayName=nN;var[aN,qf]=Gl(Pa,{}),rf="SelectViewport",Ny=y.forwardRef((a,i)=>{const{__scopeSelect:r,nonce:c,...u}=a,d=Ea(rf,r),h=qf(rf,r),p=ft(i,d.onViewportChange),g=y.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:c}),f.jsx(ic.Slot,{scope:r,children:f.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:tt(u.onScroll,v=>{const S=v.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:j}=h;if(j?.current&&b){const N=Math.abs(g.current-S.scrollTop);if(N>0){const O=window.innerHeight-$t*2,w=parseFloat(b.style.minHeight),A=parseFloat(b.style.height),T=Math.max(w,A);if(T<O){const z=T+N,M=Math.min(O,z),F=z-M;b.style.height=M+"px",b.style.bottom==="0px"&&(S.scrollTop=F>0?F:0,b.style.justifyContent="flex-end")}}}g.current=S.scrollTop})})})]})});Ny.displayName=rf;var jy="SelectGroup",[lN,iN]=Gl(jy),rN=y.forwardRef((a,i)=>{const{__scopeSelect:r,...c}=a,u=_f();return f.jsx(lN,{scope:r,id:u,children:f.jsx(Ze.div,{role:"group","aria-labelledby":u,...c,ref:i})})});rN.displayName=jy;var Ay="SelectLabel",Ty=y.forwardRef((a,i)=>{const{__scopeSelect:r,...c}=a,u=iN(Ay,r);return f.jsx(Ze.div,{id:u.id,...c,ref:i})});Ty.displayName=Ay;var Ko="SelectItem",[oN,Ry]=Gl(Ko),zy=y.forwardRef((a,i)=>{const{__scopeSelect:r,value:c,disabled:u=!1,textValue:d,...h}=a,p=wa(Ko,r),g=Ea(Ko,r),v=p.value===c,[S,b]=y.useState(d??""),[j,N]=y.useState(!1),O=ft(i,z=>g.itemRefCallback?.(z,c,u)),w=_f(),A=y.useRef("touch"),T=()=>{u||(p.onValueChange(c),p.onOpenChange(!1))};if(c==="")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 f.jsx(oN,{scope:r,value:c,disabled:u,textId:w,isSelected:v,onItemTextChange:y.useCallback(z=>{b(M=>M||(z?.textContent??"").trim())},[]),children:f.jsx(ic.ItemSlot,{scope:r,value:c,disabled:u,textValue:S,children:f.jsx(Ze.div,{role:"option","aria-labelledby":w,"data-highlighted":j?"":void 0,"aria-selected":v&&j,"data-state":v?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...h,ref:O,onFocus:tt(h.onFocus,()=>N(!0)),onBlur:tt(h.onBlur,()=>N(!1)),onClick:tt(h.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:tt(h.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:tt(h.onPointerDown,z=>{A.current=z.pointerType}),onPointerMove:tt(h.onPointerMove,z=>{A.current=z.pointerType,u?g.onItemLeave?.():A.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(h.onPointerLeave,z=>{z.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:tt(h.onKeyDown,z=>{g.searchRef?.current!==""&&z.key===" "||(P2.includes(z.key)&&T(),z.key===" "&&z.preventDefault())})})})})});zy.displayName=Ko;var Gi="SelectItemText",Oy=y.forwardRef((a,i)=>{const{__scopeSelect:r,className:c,style:u,...d}=a,h=wa(Gi,r),p=Ea(Gi,r),g=Ry(Gi,r),v=I2(Gi,r),[S,b]=y.useState(null),j=ft(i,T=>b(T),g.onItemTextChange,T=>p.itemTextRefCallback?.(T,g.value,g.disabled)),N=S?.textContent,O=y.useMemo(()=>f.jsx("option",{value:g.value,disabled:g.disabled,children:N},g.value),[g.disabled,g.value,N]),{onNativeOptionAdd:w,onNativeOptionRemove:A}=v;return Et(()=>(w(O),()=>A(O)),[w,A,O]),f.jsxs(f.Fragment,{children:[f.jsx(Ze.span,{id:g.textId,...d,ref:j}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren?tr.createPortal(d.children,h.valueNode):null]})});Oy.displayName=Gi;var _y="SelectItemIndicator",Dy=y.forwardRef((a,i)=>{const{__scopeSelect:r,...c}=a;return Ry(_y,r).isSelected?f.jsx(Ze.span,{"aria-hidden":!0,...c,ref:i}):null});Dy.displayName=_y;var of="SelectScrollUpButton",cN=y.forwardRef((a,i)=>{const r=Ea(of,a.__scopeSelect),c=qf(of,a.__scopeSelect),[u,d]=y.useState(!1),h=ft(i,c.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let p=function(){const v=g.scrollTop>0;d(v)};const g=r.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),u?f.jsx(My,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop-g.offsetHeight)}}):null});cN.displayName=of;var cf="SelectScrollDownButton",sN=y.forwardRef((a,i)=>{const r=Ea(cf,a.__scopeSelect),c=qf(cf,a.__scopeSelect),[u,d]=y.useState(!1),h=ft(i,c.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let p=function(){const v=g.scrollHeight-g.clientHeight,S=Math.ceil(g.scrollTop)<v;d(S)};const g=r.viewport;return p(),g.addEventListener("scroll",p),()=>g.removeEventListener("scroll",p)}},[r.viewport,r.isPositioned]),u?f.jsx(My,{...a,ref:h,onAutoScroll:()=>{const{viewport:p,selectedItem:g}=r;p&&g&&(p.scrollTop=p.scrollTop+g.offsetHeight)}}):null});sN.displayName=cf;var My=y.forwardRef((a,i)=>{const{__scopeSelect:r,onAutoScroll:c,...u}=a,d=Ea("SelectScrollButton",r),h=y.useRef(null),p=rc(r),g=y.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return y.useEffect(()=>()=>g(),[g]),Et(()=>{p().find(S=>S.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[p]),f.jsx(Ze.div,{"aria-hidden":!0,...u,ref:i,style:{flexShrink:0,...u.style},onPointerDown:tt(u.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(c,50))}),onPointerMove:tt(u.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(c,50))}),onPointerLeave:tt(u.onPointerLeave,()=>{g()})})}),uN="SelectSeparator",fN=y.forwardRef((a,i)=>{const{__scopeSelect:r,...c}=a;return f.jsx(Ze.div,{"aria-hidden":!0,...c,ref:i})});fN.displayName=uN;var sf="SelectArrow",dN=y.forwardRef((a,i)=>{const{__scopeSelect:r,...c}=a,u=oc(r),d=wa(sf,r),h=Ea(sf,r);return d.open&&h.position==="popper"?f.jsx(JC,{...u,...c,ref:i}):null});dN.displayName=sf;var hN="SelectBubbleInput",Uy=y.forwardRef(({__scopeSelect:a,value:i,...r},c)=>{const u=y.useRef(null),d=ft(c,u),h=n2(i);return y.useEffect(()=>{const p=u.current;if(!p)return;const g=window.HTMLSelectElement.prototype,S=Object.getOwnPropertyDescriptor(g,"value").set;if(h!==i&&S){const b=new Event("change",{bubbles:!0});S.call(p,i),p.dispatchEvent(b)}},[h,i]),f.jsx(Ze.select,{...r,style:{...ly,...r.style},ref:d,defaultValue:i})});Uy.displayName=hN;function Ly(a){return a===""||a===void 0}function By(a){const i=Va(a),r=y.useRef(""),c=y.useRef(0),u=y.useCallback(h=>{const p=r.current+h;i(p),(function g(v){r.current=v,window.clearTimeout(c.current),v!==""&&(c.current=window.setTimeout(()=>g(""),1e3))})(p)},[i]),d=y.useCallback(()=>{r.current="",window.clearTimeout(c.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(c.current),[]),[r,u,d]}function Hy(a,i,r){const u=i.length>1&&Array.from(i).every(v=>v===i[0])?i[0]:i,d=r?a.indexOf(r):-1;let h=mN(a,Math.max(d,0));u.length===1&&(h=h.filter(v=>v!==r));const g=h.find(v=>v.textValue.toLowerCase().startsWith(u.toLowerCase()));return g!==r?g:void 0}function mN(a,i){return a.map((r,c)=>a[(i+c)%a.length])}var pN=my,ky=gy,gN=yy,vN=xy,yN=by,Yy=Sy,xN=Ny,qy=Ty,Fy=zy,bN=Oy,SN=Dy;const zo=pN,Oo=gN,Pi=y.forwardRef(({className:a,children:i,...r},c)=>f.jsxs(ky,{ref:c,className:nt("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,f.jsx(vN,{asChild:!0,children:f.jsx(fv,{className:"h-4 w-4 opacity-50"})})]}));Pi.displayName=ky.displayName;const Ki=y.forwardRef(({className:a,children:i,position:r="popper",...c},u)=>f.jsx(yN,{children:f.jsx(Yy,{ref:u,className:nt("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,...c,children:f.jsx(xN,{className:nt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i})})}));Ki.displayName=Yy.displayName;const wN=y.forwardRef(({className:a,...i},r)=>f.jsx(qy,{ref:r,className:nt("px-2 py-1.5 text-sm font-semibold",a),...i}));wN.displayName=qy.displayName;const Mt=y.forwardRef(({className:a,children:i,...r},c)=>f.jsxs(Fy,{ref:c,className:nt("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:[f.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(SN,{children:f.jsx(kn,{className:"h-4 w-4"})})}),f.jsx(bN,{children:i})]}));Mt.displayName=Fy.displayName;const ar="/api/admin";async function EN(){try{const a=await fetch(`${ar}/config`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get admin config:",a)}return null}async function CN(a){try{const i=a?"?baseUrl="+encodeURIComponent(a):"",r=await fetch(ar+"/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 NN(a){try{return(await fetch(`${ar}/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 jN(){try{return(await fetch(`${ar}/restart`,{method:"POST"})).ok}catch(a){return console.error("Failed to trigger restart:",a),!1}}async function AN(){try{const a=await fetch(`${ar}/ddns`);if(a.ok)return await a.json()}catch(a){console.error("Failed to get ddns status:",a)}return null}const TN=["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 RN(){const[a,i]=y.useState({}),[r,c]=y.useState(null),[u,d]=y.useState(null),[h,p]=y.useState(!0),[g,v]=y.useState(!1),[S,b]=y.useState(!1),[j,N]=y.useState(""),[O,w]=y.useState(!1),A=a.XPOD_DEPLOY_MODE==="standalone"?"standalone":"local",T=["none","cloudflare","sakura_frp"].includes(a.XPOD_TUNNEL_PROVIDER)?a.XPOD_TUNNEL_PROVIDER:"none",z=["none","acme","manual"].includes(a.XPOD_HTTPS_MODE)?a.XPOD_HTTPS_MODE:"none",M=r?.status??"unknown",F=A==="local",Z=!!a.XPOD_CLOUD_API_ENDPOINT,k=F&&Z;y.useEffect(()=>{re()},[]),y.useEffect(()=>{h||ae(a.CSS_BASE_URL)},[a.CSS_BASE_URL,A,h]),y.useEffect(()=>{h||(k?ee():d(null))},[k,h]);const ee=async()=>{try{const U=await AN();d(U)}catch(U){console.error("Failed to load ddns status:",U),d(null)}},re=async()=>{try{const U=await EN();U&&i({...U.env})}catch(U){console.error("Failed to load config:",U)}finally{p(!1)}},ae=async U=>{b(!0);try{const G=await CN(U);c(G)}catch(G){console.error("Failed to refresh public ip check:",G),c(null)}finally{b(!1)}},ue=async()=>{if(pe)return N(pe),!1;v(!0),N("");try{const U={};for(const $ of TN)$ in a&&(U[$]=a[$]);const G=await NN(U);return N(G?"配置已保存,需要重启服务生效":"保存失败"),!!G}catch{return N("保存失败"),!1}finally{v(!1)}},de=async()=>{N("正在重启服务..."),await jN()?(N("重启信号已发送,请稍候..."),setTimeout(()=>window.location.reload(),3e3)):N("重启失败")},ve=async()=>{await ue()&&await de()},ne=(U,G)=>{i($=>({...$,[U]:G}))},pe=y.useMemo(()=>{if(T==="cloudflare"&&!a.CLOUDFLARE_TUNNEL_TOKEN)return"请填写 Cloudflare Tunnel Token";if(T==="sakura_frp"&&!a.SAKURA_TUNNEL_TOKEN)return"请填写 Sakura Tunnel Token";if(k&&u?.mode==="tunnel"&&T==="none")return"当前网络不可直连,必须启用隧道(选择供应商并填写 Token)";const G=(a.CSS_BASE_URL||"").trim().startsWith("https://");return!k&&G&&T==="none"&&z==="none"?"独立部署使用 https:// Base URL 时,需要配置 HTTPS(或启用隧道由边缘终止 TLS)":""},[u?.mode,a.CLOUDFLARE_TUNNEL_TOKEN,a.SAKURA_TUNNEL_TOKEN,a.CSS_BASE_URL,z,k,A,T]),D=y.useMemo(()=>S?"检测中...":M==="pass"?"✓ 可直连":M==="fail"?"✗ 不可直连":"? 未知",[S,M]);return h?f.jsx("div",{className:"p-8 text-foreground",children:"加载中..."}):f.jsxs("div",{className:"p-8 max-w-4xl",children:[f.jsx("h1",{className:"type-h1 mb-4",children:"设置"}),f.jsxs(qi,{variant:"bordered",className:"mb-6",children:[f.jsx(Fi,{children:f.jsx(Vi,{children:"存储目录"})}),f.jsx(Xi,{className:"space-y-2",children:f.jsx(Hn,{value:a.CSS_ROOT_FILE_PATH||"./data",onChange:U=>ne("CSS_ROOT_FILE_PATH",U.target.value)})})]}),f.jsxs(qi,{variant:"bordered",className:"mb-6",children:[f.jsx(Fi,{children:f.jsx(Vi,{children:"访问地址"})}),f.jsxs(Xi,{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(zo,{value:A,onValueChange:U=>ne("XPOD_DEPLOY_MODE",U),children:[f.jsx(Pi,{className:"w-36 shrink-0",children:f.jsx(Oo,{})}),f.jsxs(Ki,{children:[f.jsx(Mt,{value:"local",children:"边缘部署"}),f.jsx(Mt,{value:"standalone",children:"独立部署"})]})]}),k?f.jsx("span",{className:"text-sm text-muted-foreground flex-1",children:u?.fqdn||"(等待分配)"}):f.jsx(Hn,{className:"flex-1",value:a.CSS_BASE_URL||"http://127.0.0.1:3000",onChange:U=>ne("CSS_BASE_URL",U.target.value),placeholder:"https://your-domain.com"})]}),f.jsx("div",{className:"text-xs text-muted-foreground",children:A==="local"?"边缘部署:接入云端,自动获得域名、身份认证和HTTPS证书,数据保留在本地":"独立部署:完全独立运行,域名、身份认证和证书需自行配置"})]})]}),f.jsxs(qi,{variant:"bordered",className:"mb-6",children:[f.jsx(Fi,{className:"pb-2",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Vi,{children:"隧道供应商"}),f.jsxs("span",{className:"text-sm",children:["外网:",f.jsx("span",{className:nt("ml-1",M==="pass"?"text-green-600":M==="fail"?"text-red-600":"text-muted-foreground"),children:D})]})]})}),f.jsxs(Xi,{className:"space-y-2",children:[k&&u?.mode==="tunnel"?f.jsx("div",{className:"text-xs text-destructive",children:"当前网络不可直连,请选择隧道供应商并填写 Token。"}):null,A==="standalone"?f.jsx("div",{className:"text-xs text-muted-foreground",children:"独立部署下仅当没有公网 IP 时才需要隧道,有公网 IP 可不配置。"}):null,f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(zo,{value:T,onValueChange:U=>ne("XPOD_TUNNEL_PROVIDER",U),children:[f.jsx(Pi,{className:"w-36 shrink-0",children:f.jsx(Oo,{})}),f.jsxs(Ki,{children:[f.jsx(Mt,{value:"none",children:"不使用隧道"}),f.jsx(Mt,{value:"cloudflare",children:"Cloudflare"}),f.jsx(Mt,{value:"sakura_frp",children:"Sakura FRP"})]})]}),T==="cloudflare"&&f.jsx(Hn,{className:"flex-1",placeholder:"Cloudflare Tunnel Token",value:a.CLOUDFLARE_TUNNEL_TOKEN||"",onChange:U=>ne("CLOUDFLARE_TUNNEL_TOKEN",U.target.value)}),T==="sakura_frp"&&f.jsx(Hn,{className:"flex-1",placeholder:"Sakura Tunnel Token",value:a.SAKURA_TUNNEL_TOKEN,onChange:U=>ne("SAKURA_TUNNEL_TOKEN",U.target.value)})]})]})]}),A==="standalone"&&f.jsxs(qi,{variant:"bordered",className:"mb-6",children:[f.jsx(Fi,{children:f.jsx(Vi,{children:"https证书"})}),f.jsx(Xi,{children:f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(zo,{value:z,onValueChange:U=>ne("XPOD_HTTPS_MODE",U),children:[f.jsx(Pi,{className:"w-36 shrink-0",children:f.jsx(Oo,{})}),f.jsxs(Ki,{children:[f.jsx(Mt,{value:"none",children:"关闭"}),f.jsx(Mt,{value:"acme",children:"自动申请 (ACME)"}),f.jsx(Mt,{value:"manual",children:"手动证书"})]})]}),z==="manual"&&f.jsxs(f.Fragment,{children:[f.jsx(Hn,{className:"flex-1",placeholder:"证书路径 (PEM)",value:a.XPOD_HTTPS_CERT_PATH||"",onChange:U=>ne("XPOD_HTTPS_CERT_PATH",U.target.value)}),f.jsx(Hn,{className:"flex-1",placeholder:"私钥路径 (PEM)",value:a.XPOD_HTTPS_KEY_PATH||"",onChange:U=>ne("XPOD_HTTPS_KEY_PATH",U.target.value)})]})]})})]}),f.jsx("div",{className:"mb-6",children:f.jsx(Uu,{variant:"ghost",size:"sm",onClick:()=>w(U=>!U),children:O?"收起高级设置":"展开高级设置"})}),O&&f.jsxs(qi,{variant:"bordered",className:"mb-6",children:[f.jsx(Fi,{children:f.jsx(Vi,{children:"高级设置"})}),f.jsxs(Xi,{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx(Co,{children:"端口"}),f.jsx(Hn,{value:a.CSS_PORT||"3000",onChange:U=>ne("CSS_PORT",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(Co,{children:"SPARQL 存储"}),f.jsx(Hn,{value:a.CSS_SPARQL_ENDPOINT||"",onChange:U=>ne("CSS_SPARQL_ENDPOINT",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(Co,{children:"身份数据库"}),f.jsx(Hn,{value:a.CSS_IDENTITY_DB_URL||"",onChange:U=>ne("CSS_IDENTITY_DB_URL",U.target.value)})]}),f.jsxs("div",{children:[f.jsx(Co,{children:"日志级别"}),f.jsxs(zo,{value:a.CSS_LOGGING_LEVEL||"info",onValueChange:U=>ne("CSS_LOGGING_LEVEL",U),children:[f.jsx(Pi,{className:"w-40 shrink-0",children:f.jsx(Oo,{})}),f.jsxs(Ki,{children:[f.jsx(Mt,{value:"error",children:"error"}),f.jsx(Mt,{value:"warn",children:"warn"}),f.jsx(Mt,{value:"info",children:"info"}),f.jsx(Mt,{value:"debug",children:"debug"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("input",{type:"checkbox",id:"showStackTrace",checked:a.CSS_SHOW_STACK_TRACE==="true",onChange:U=>ne("CSS_SHOW_STACK_TRACE",U.target.checked?"true":"false"),className:"rounded border-input"}),f.jsx("label",{htmlFor:"showStackTrace",className:"text-sm text-foreground",children:"显示错误堆栈"})]})]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx(Uu,{onClick:()=>{ue()},disabled:g||!!pe,children:g?"保存中...":"保存配置"}),f.jsx(Uu,{variant:"secondary",onClick:()=>{ve()},disabled:g||!!pe,children:"保存并重启"})]}),(j||pe)&&f.jsx("div",{className:nt("mt-4 text-sm",pe||j&&j.includes("失败")?"text-destructive":"text-green-500"),children:j||pe})]})}function zN(){const{isInitializing:a,initError:i}=Zt();return a?f.jsx(gv,{}):i?f.jsx(Y1,{message:i}):f.jsxs(vS,{children:[f.jsx(wt,{path:"/.account/",element:f.jsx(fw,{})}),f.jsx(wt,{path:"/.account/about/",element:f.jsx(dw,{})}),f.jsx(wt,{path:"/.account/account/",element:f.jsx(Du,{allowOidcPending:!0,children:f.jsx(Aw,{})})}),f.jsx(wt,{path:"/.account/create-pod/",element:f.jsx(Du,{allowOidcPending:!0,children:f.jsx(Uw,{})})}),f.jsx(wt,{path:"/.account/settings/",element:f.jsx(Du,{allowOidcPending:!0,children:f.jsx(RN,{})})}),f.jsx(wt,{path:"/chat/",element:f.jsx(Ww,{})}),f.jsx(wt,{path:"/.account/login/",element:f.jsx(Gw,{})}),f.jsx(wt,{path:"/.account/login/password/",element:f.jsx(Iu,{initialIsRegister:!1})}),f.jsx(wt,{path:"/.account/login/password/register/",element:f.jsx(Iu,{initialIsRegister:!0})}),f.jsx(wt,{path:"/.account/login/password/forgot/",element:f.jsx(Vw,{})}),f.jsx(wt,{path:"/.account/login/password/reset/",element:f.jsx(Xw,{})}),f.jsx(wt,{path:"/.account/oidc/consent/",element:f.jsx(Bw,{})}),f.jsx(wt,{path:"*",element:f.jsx(Fn,{to:"/.account/",replace:!0})})]})}function ON(){return f.jsx(FS,{children:f.jsx(c1,{children:f.jsx(zN,{})})})}try{const a=new URLSearchParams(location.search).get("provisionCode");a&&sessionStorage.setItem("provisionCode",a)}catch{}bb.createRoot(document.getElementById("root")).render(f.jsx(en.StrictMode,{children:f.jsx(ON,{})}));
|