atabey-mcp 0.0.14 → 0.0.15

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,4 +1,4 @@
1
- var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(c,r,d)=>(Lo(c,r,"read from private field"),d?d.call(c):r.get(c)),ee=(c,r,d)=>r.has(c)?pm("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(c):r.set(c,d),X=(c,r,d,u)=>(Lo(c,r,"write to private field"),u?u.call(c,d):r.set(c,d),d),ve=(c,r,d)=>(Lo(c,r,"access private method"),d);var dc=(c,r,d,u)=>({set _(m){X(c,r,m,d)},get _(){return p(c,r,u)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))u(m);new MutationObserver(m=>{for(const x of m)if(x.type==="childList")for(const T of x.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&u(T)}).observe(document,{childList:!0,subtree:!0});function d(m){const x={};return m.integrity&&(x.integrity=m.integrity),m.referrerPolicy&&(x.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?x.credentials="include":m.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function u(m){if(m.ep)return;m.ep=!0;const x=d(m);fetch(m.href,x)}})();var Bo={exports:{}},ks={};/**
1
+ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(c,r,d)=>(Lo(c,r,"read from private field"),d?d.call(c):r.get(c)),ee=(c,r,d)=>r.has(c)?pm("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(c):r.set(c,d),X=(c,r,d,u)=>(Lo(c,r,"write to private field"),u?u.call(c,d):r.set(c,d),d),ve=(c,r,d)=>(Lo(c,r,"access private method"),d);var dc=(c,r,d,u)=>({set _(m){X(c,r,m,d)},get _(){return p(c,r,u)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))u(m);new MutationObserver(m=>{for(const x of m)if(x.type==="childList")for(const T of x.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&u(T)}).observe(document,{childList:!0,subtree:!0});function d(m){const x={};return m.integrity&&(x.integrity=m.integrity),m.referrerPolicy&&(x.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?x.credentials="include":m.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function u(m){if(m.ep)return;m.ep=!0;const x=d(m);fetch(m.href,x)}})();var Bo={exports:{}},Ds={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var gm;function J1(){if(gm)return ks;gm=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function d(u,m,x){var T=null;if(x!==void 0&&(T=""+x),m.key!==void 0&&(T=""+m.key),"key"in m){x={};for(var j in m)j!=="key"&&(x[j]=m[j])}else x=m;return m=x.ref,{$$typeof:c,type:u,key:T,ref:m!==void 0?m:null,props:x}}return ks.Fragment=r,ks.jsx=d,ks.jsxs=d,ks}var xm;function F1(){return xm||(xm=1,Bo.exports=J1()),Bo.exports}var n=F1(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cl,Wa,Tn,Qm,$1=(Qm=class extends Vs{constructor(){super();ee(this,Cl);ee(this,Wa);ee(this,Tn);X(this,Tn,r=>{if(typeof window<"u"&&window.addEventListener){const d=()=>r();return window.addEventListener("visibilitychange",d,!1),()=>{window.removeEventListener("visibilitychange",d)}}})}onSubscribe(){p(this,Wa)||this.setEventListener(p(this,Tn))}onUnsubscribe(){var r;this.hasListeners()||((r=p(this,Wa))==null||r.call(this),X(this,Wa,void 0))}setEventListener(r){var d;X(this,Tn,r),(d=p(this,Wa))==null||d.call(this),X(this,Wa,r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(r){p(this,Cl)!==r&&(X(this,Cl,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(d=>{d(r)})}isFocused(){var r;return typeof p(this,Cl)=="boolean"?p(this,Cl):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Cl=new WeakMap,Wa=new WeakMap,Tn=new WeakMap,Qm),ru=new $1,W1={setTimeout:(c,r)=>setTimeout(c,r),clearTimeout:c=>clearTimeout(c),setInterval:(c,r)=>setInterval(c,r),clearInterval:c=>clearInterval(c)},Ia,cu,Gm,I1=(Gm=class{constructor(){ee(this,Ia,W1);ee(this,cu,!1)}setTimeoutProvider(c){X(this,Ia,c)}setTimeout(c,r){return p(this,Ia).setTimeout(c,r)}clearTimeout(c){p(this,Ia).clearTimeout(c)}setInterval(c,r){return p(this,Ia).setInterval(c,r)}clearInterval(c){p(this,Ia).clearInterval(c)}},Ia=new WeakMap,cu=new WeakMap,Gm),Al=new I1;function P1(c){setTimeout(c,0)}var ev=typeof window>"u"||"Deno"in globalThis;function St(){}function tv(c,r){return typeof c=="function"?c(r):c}function Vo(c){return typeof c=="number"&&c>=0&&c!==1/0}function Wm(c,r){return Math.max(c+(r||0)-Date.now(),0)}function sl(c,r){return typeof c=="function"?c(r):c}function Dt(c,r){return typeof c=="function"?c(r):c}function bm(c,r){const{type:d="all",exact:u,fetchStatus:m,predicate:x,queryKey:T,stale:j}=c;if(T){if(u){if(r.queryHash!==ou(T,r.options))return!1}else if(!Hs(r.queryKey,T))return!1}if(d!=="all"){const N=r.isActive();if(d==="active"&&!N||d==="inactive"&&N)return!1}return!(typeof j=="boolean"&&r.isStale()!==j||m&&m!==r.state.fetchStatus||x&&!x(r))}function jm(c,r){const{exact:d,status:u,predicate:m,mutationKey:x}=c;if(x){if(!r.options.mutationKey)return!1;if(d){if(Bs(r.options.mutationKey)!==Bs(x))return!1}else if(!Hs(r.options.mutationKey,x))return!1}return!(u&&r.state.status!==u||m&&!m(r))}function ou(c,r){return((r==null?void 0:r.queryKeyHashFn)||Bs)(c)}function Bs(c){return JSON.stringify(c,(r,d)=>Jo(d)?Object.keys(d).sort().reduce((u,m)=>(u[m]=d[m],u),{}):d)}function Hs(c,r){return c===r?!0:typeof c!=typeof r?!1:c&&r&&typeof c=="object"&&typeof r=="object"?Object.keys(r).every(d=>Hs(c[d],r[d])):!1}var av=Object.prototype.hasOwnProperty;function Im(c,r,d=0){if(c===r)return c;if(d>500)return r;const u=Sm(c)&&Sm(r);if(!u&&!(Jo(c)&&Jo(r)))return r;const x=(u?c:Object.keys(c)).length,T=u?r:Object.keys(r),j=T.length,N=u?new Array(j):{};let h=0;for(let g=0;g<j;g++){const S=u?g:T[g],M=c[S],R=r[S];if(M===R){N[S]=M,(u?g<x:av.call(c,S))&&h++;continue}if(M===null||R===null||typeof M!="object"||typeof R!="object"){N[S]=R;continue}const O=Im(M,R,d+1);N[S]=O,O===M&&h++}return x===j&&h===x?c:N}function Zo(c,r){if(!r||Object.keys(c).length!==Object.keys(r).length)return!1;for(const d in c)if(c[d]!==r[d])return!1;return!0}function Sm(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Jo(c){if(!Nm(c))return!1;const r=c.constructor;if(r===void 0)return!0;const d=r.prototype;return!(!Nm(d)||!d.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function Nm(c){return Object.prototype.toString.call(c)==="[object Object]"}function lv(c){return new Promise(r=>{Al.setTimeout(r,c)})}function Fo(c,r,d){return typeof d.structuralSharing=="function"?d.structuralSharing(c,r):d.structuralSharing!==!1?Im(c,r):r}function nv(c,r,d=0){const u=[...c,r];return d&&u.length>d?u.slice(1):u}function sv(c,r,d=0){const u=[r,...c];return d&&u.length>d?u.slice(0,-1):u}var uu=Symbol();function Pm(c,r){return!c.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!c.queryFn||c.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function ey(c,r){return typeof c=="function"?c(...r):!!c}function iv(c,r,d){let u=!1,m;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(m??(m=r()),u||(u=!0,m.aborted?d():m.addEventListener("abort",d,{once:!0})),m)}),c}var qs=(()=>{let c=()=>ev;return{isServer(){return c()},setIsServer(r){c=r}}})();function $o(){let c,r;const d=new Promise((m,x)=>{c=m,r=x});d.status="pending",d.catch(()=>{});function u(m){Object.assign(d,m),delete d.resolve,delete d.reject}return d.resolve=m=>{u({status:"fulfilled",value:m}),c(m)},d.reject=m=>{u({status:"rejected",reason:m}),r(m)},d}var cv=P1;function rv(){let c=[],r=0,d=j=>{j()},u=j=>{j()},m=cv;const x=j=>{r?c.push(j):m(()=>{d(j)})},T=()=>{const j=c;c=[],j.length&&m(()=>{u(()=>{j.forEach(N=>{d(N)})})})};return{batch:j=>{let N;r++;try{N=j()}finally{r--,r||T()}return N},batchCalls:j=>(...N)=>{x(()=>{j(...N)})},schedule:x,setNotifyFunction:j=>{d=j},setBatchNotifyFunction:j=>{u=j},setScheduler:j=>{m=j}}}var it=rv(),En,Pa,An,Ym,ov=(Ym=class extends Vs{constructor(){super();ee(this,En,!0);ee(this,Pa);ee(this,An);X(this,An,r=>{if(typeof window<"u"&&window.addEventListener){const d=()=>r(!0),u=()=>r(!1);return window.addEventListener("online",d,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",d),window.removeEventListener("offline",u)}}})}onSubscribe(){p(this,Pa)||this.setEventListener(p(this,An))}onUnsubscribe(){var r;this.hasListeners()||((r=p(this,Pa))==null||r.call(this),X(this,Pa,void 0))}setEventListener(r){var d;X(this,An,r),(d=p(this,Pa))==null||d.call(this),X(this,Pa,r(this.setOnline.bind(this)))}setOnline(r){p(this,En)!==r&&(X(this,En,r),this.listeners.forEach(u=>{u(r)}))}isOnline(){return p(this,En)}},En=new WeakMap,Pa=new WeakMap,An=new WeakMap,Ym),hc=new ov;function uv(c){return Math.min(1e3*2**c,3e4)}function ty(c){return(c??"online")==="online"?hc.isOnline():!0}var Wo=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function ay(c){let r=!1,d=0,u;const m=$o(),x=()=>m.status!=="pending",T=B=>{var Z;if(!x()){const V=new Wo(B);M(V),(Z=c.onCancel)==null||Z.call(c,V)}},j=()=>{r=!0},N=()=>{r=!1},h=()=>ru.isFocused()&&(c.networkMode==="always"||hc.isOnline())&&c.canRun(),g=()=>ty(c.networkMode)&&c.canRun(),S=B=>{x()||(u==null||u(),m.resolve(B))},M=B=>{x()||(u==null||u(),m.reject(B))},R=()=>new Promise(B=>{var Z;u=V=>{(x()||h())&&B(V)},(Z=c.onPause)==null||Z.call(c)}).then(()=>{var B;u=void 0,x()||(B=c.onContinue)==null||B.call(c)}),O=()=>{if(x())return;let B;const Z=d===0?c.initialPromise:void 0;try{B=Z??c.fn()}catch(V){B=Promise.reject(V)}Promise.resolve(B).then(S).catch(V=>{var ie;if(x())return;const q=c.retry??(qs.isServer()?0:3),Q=c.retryDelay??uv,G=typeof Q=="function"?Q(d,V):Q,te=q===!0||typeof q=="number"&&d<q||typeof q=="function"&&q(d,V);if(r||!te){M(V);return}d++,(ie=c.onFail)==null||ie.call(c,d,V),lv(G).then(()=>h()?void 0:R()).then(()=>{r?M(V):O()})})};return{promise:m,status:()=>m.status,cancel:T,continue:()=>(u==null||u(),m),cancelRetry:j,continueRetry:N,canStart:g,start:()=>(g()?O():R().then(O),m)}}var Ml,Km,ly=(Km=class{constructor(){ee(this,Ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vo(this.gcTime)&&X(this,Ml,Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(qs.isServer()?1/0:300*1e3))}clearGcTimeout(){p(this,Ml)!==void 0&&(Al.clearTimeout(p(this,Ml)),X(this,Ml,void 0))}},Ml=new WeakMap,Km);function dv(c){return{onFetch:(r,d)=>{var g,S,M,R,O;const u=r.options,m=(M=(S=(g=r.fetchOptions)==null?void 0:g.meta)==null?void 0:S.fetchMore)==null?void 0:M.direction,x=((R=r.state.data)==null?void 0:R.pages)||[],T=((O=r.state.data)==null?void 0:O.pageParams)||[];let j={pages:[],pageParams:[]},N=0;const h=async()=>{let B=!1;const Z=Q=>{iv(Q,()=>r.signal,()=>B=!0)},V=Pm(r.options,r.fetchOptions),q=async(Q,G,te)=>{if(B)return Promise.reject(r.signal.reason);if(G==null&&Q.pages.length)return Promise.resolve(Q);const le=(()=>{const F={client:r.client,queryKey:r.queryKey,pageParam:G,direction:te?"backward":"forward",meta:r.options.meta};return Z(F),F})(),se=await V(le),{maxPages:pe}=r.options,Ce=te?sv:nv;return{pages:Ce(Q.pages,se,pe),pageParams:Ce(Q.pageParams,G,pe)}};if(m&&x.length){const Q=m==="backward",G=Q?fv:zm,te={pages:x,pageParams:T},ie=G(u,te);j=await q(te,ie,Q)}else{const Q=c??x.length;do{const G=N===0?T[0]??u.initialPageParam:zm(u,j);if(N>0&&G==null)break;j=await q(j,G),N++}while(N<Q)}return j};r.options.persister?r.fetchFn=()=>{var B,Z;return(Z=(B=r.options).persister)==null?void 0:Z.call(B,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},d)}:r.fetchFn=h}}}function zm(c,{pages:r,pageParams:d}){const u=r.length-1;return r.length>0?c.getNextPageParam(r[u],r,d[u],d):void 0}function fv(c,{pages:r,pageParams:d}){var u;return r.length>0?(u=c.getPreviousPageParam)==null?void 0:u.call(c,r[0],r,d[0],d):void 0}var Cn,Ol,Mn,Xt,_l,et,Qs,Rl,kt,ny,ja,Xm,hv=(Xm=class extends ly{constructor(r){super();ee(this,kt);ee(this,Cn);ee(this,Ol);ee(this,Mn);ee(this,Xt);ee(this,_l);ee(this,et);ee(this,Qs);ee(this,Rl);X(this,Rl,!1),X(this,Qs,r.defaultOptions),this.setOptions(r.options),this.observers=[],X(this,_l,r.client),X(this,Xt,p(this,_l).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,X(this,Ol,Em(this.options)),this.state=r.state??p(this,Ol),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(this,Cn)}get promise(){var r;return(r=p(this,et))==null?void 0:r.promise}setOptions(r){if(this.options={...p(this,Qs),...r},r!=null&&r._type&&X(this,Cn,r._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const d=Em(this.options);d.data!==void 0&&(this.setState(Tm(d.data,d.dataUpdatedAt)),X(this,Ol,d))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Xt).remove(this)}setData(r,d){const u=Fo(this.state.data,r,this.options);return ve(this,kt,ja).call(this,{data:u,type:"success",dataUpdatedAt:d==null?void 0:d.updatedAt,manual:d==null?void 0:d.manual}),u}setState(r){ve(this,kt,ja).call(this,{type:"setState",state:r})}cancel(r){var u,m;const d=(u=p(this,et))==null?void 0:u.promise;return(m=p(this,et))==null||m.cancel(r),d?d.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(this,Ol)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>Dt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>sl(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!Wm(this.state.dataUpdatedAt,r)}onFocus(){var d;const r=this.observers.find(u=>u.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}onOnline(){var d;const r=this.observers.find(u=>u.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),p(this,Xt).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(d=>d!==r),this.observers.length||(p(this,et)&&(p(this,Rl)||ve(this,kt,ny).call(this)?p(this,et).cancel({revert:!0}):p(this,et).cancelRetry()),this.scheduleGc()),p(this,Xt).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,kt,ja).call(this,{type:"invalidate"})}async fetch(r,d){var h,g,S,M,R,O,B,Z,V,q,Q;if(this.state.fetchStatus!=="idle"&&((h=p(this,et))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(d!=null&&d.cancelRefetch))this.cancel({silent:!0});else if(p(this,et))return p(this,et).continueRetry(),p(this,et).promise}if(r&&this.setOptions(r),!this.options.queryFn){const G=this.observers.find(te=>te.options.queryFn);G&&this.setOptions(G.options)}const u=new AbortController,m=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(X(this,Rl,!0),u.signal)})},x=()=>{const G=Pm(this.options,d),ie=(()=>{const le={client:p(this,_l),queryKey:this.queryKey,meta:this.meta};return m(le),le})();return X(this,Rl,!1),this.options.persister?this.options.persister(G,ie,this):G(ie)},j=(()=>{const G={fetchOptions:d,options:this.options,queryKey:this.queryKey,client:p(this,_l),state:this.state,fetchFn:x};return m(G),G})(),N=p(this,Cn)==="infinite"?dv(this.options.pages):this.options.behavior;N==null||N.onFetch(j,this),X(this,Mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=j.fetchOptions)==null?void 0:g.meta))&&ve(this,kt,ja).call(this,{type:"fetch",meta:(S=j.fetchOptions)==null?void 0:S.meta}),X(this,et,ay({initialPromise:d==null?void 0:d.initialPromise,fn:j.fetchFn,onCancel:G=>{G instanceof Wo&&G.revert&&this.setState({...p(this,Mn),fetchStatus:"idle"}),u.abort()},onFail:(G,te)=>{ve(this,kt,ja).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{ve(this,kt,ja).call(this,{type:"pause"})},onContinue:()=>{ve(this,kt,ja).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0}));try{const G=await p(this,et).start();if(G===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(G),(R=(M=p(this,Xt).config).onSuccess)==null||R.call(M,G,this),(B=(O=p(this,Xt).config).onSettled)==null||B.call(O,G,this.state.error,this),G}catch(G){if(G instanceof Wo){if(G.silent)return p(this,et).promise;if(G.revert){if(this.state.data===void 0)throw G;return this.state.data}}throw ve(this,kt,ja).call(this,{type:"error",error:G}),(V=(Z=p(this,Xt).config).onError)==null||V.call(Z,G,this),(Q=(q=p(this,Xt).config).onSettled)==null||Q.call(q,this.state.data,G,this),G}finally{this.scheduleGc()}}},Cn=new WeakMap,Ol=new WeakMap,Mn=new WeakMap,Xt=new WeakMap,_l=new WeakMap,et=new WeakMap,Qs=new WeakMap,Rl=new WeakMap,kt=new WeakSet,ny=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ja=function(r){const d=u=>{switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...sy(u.data,this.options),fetchMeta:r.meta??null};case"success":const m={...u,...Tm(r.data,r.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Mn,r.manual?m:void 0),m;case"error":const x=r.error;return{...u,error:x,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:x,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=d(this.state),it.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),p(this,Xt).notify({query:this,type:"updated",action:r})})},Xm);function sy(c,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ty(r.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function Tm(c,r){return{data:c,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Em(c){const r=typeof c.initialData=="function"?c.initialData():c.initialData,d=r!==void 0,u=d?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:d?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:d?"success":"pending",fetchStatus:"idle"}}var jt,be,Gs,ft,kl,On,Sa,el,Ys,_n,Rn,Dl,wl,tl,kn,Te,Us,Io,Po,eu,tu,au,lu,nu,iy,Vm,mv=(Vm=class extends Vs{constructor(r,d){super();ee(this,Te);ee(this,jt);ee(this,be);ee(this,Gs);ee(this,ft);ee(this,kl);ee(this,On);ee(this,Sa);ee(this,el);ee(this,Ys);ee(this,_n);ee(this,Rn);ee(this,Dl);ee(this,wl);ee(this,tl);ee(this,kn,new Set);this.options=d,X(this,jt,r),X(this,el,null),X(this,Sa,$o()),this.bindMethods(),this.setOptions(d)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(p(this,be).addObserver(this),Am(p(this,be),this.options)?ve(this,Te,Us).call(this):this.updateResult(),ve(this,Te,tu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return su(p(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return su(p(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Te,au).call(this),ve(this,Te,lu).call(this),p(this,be).removeObserver(this)}setOptions(r){const d=this.options,u=p(this,be);if(this.options=p(this,jt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,p(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Te,nu).call(this),p(this,be).setOptions(this.options),d._defaulted&&!Zo(this.options,d)&&p(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:p(this,be),observer:this});const m=this.hasListeners();m&&Cm(p(this,be),u,this.options,d)&&ve(this,Te,Us).call(this),this.updateResult(),m&&(p(this,be)!==u||Dt(this.options.enabled,p(this,be))!==Dt(d.enabled,p(this,be))||sl(this.options.staleTime,p(this,be))!==sl(d.staleTime,p(this,be)))&&ve(this,Te,Io).call(this);const x=ve(this,Te,Po).call(this);m&&(p(this,be)!==u||Dt(this.options.enabled,p(this,be))!==Dt(d.enabled,p(this,be))||x!==p(this,tl))&&ve(this,Te,eu).call(this,x)}getOptimisticResult(r){const d=p(this,jt).getQueryCache().build(p(this,jt),r),u=this.createResult(d,r);return vv(this,u)&&(X(this,ft,u),X(this,On,this.options),X(this,kl,p(this,be).state)),u}getCurrentResult(){return p(this,ft)}trackResult(r,d){return new Proxy(r,{get:(u,m)=>(this.trackProp(m),d==null||d(m),m==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&p(this,Sa).status==="pending"&&p(this,Sa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,m))})}trackProp(r){p(this,kn).add(r)}getCurrentQuery(){return p(this,be)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const d=p(this,jt).defaultQueryOptions(r),u=p(this,jt).getQueryCache().build(p(this,jt),d);return u.fetch().then(()=>this.createResult(u,d))}fetch(r){return ve(this,Te,Us).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,ft)))}createResult(r,d){var pe;const u=p(this,be),m=this.options,x=p(this,ft),T=p(this,kl),j=p(this,On),h=r!==u?r.state:p(this,Gs),{state:g}=r;let S={...g},M=!1,R;if(d._optimisticResults){const Ce=this.hasListeners(),F=!Ce&&Am(r,d),ge=Ce&&Cm(r,u,d,m);(F||ge)&&(S={...S,...sy(g.data,r.options)}),d._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:O,errorUpdatedAt:B,status:Z}=S;R=S.data;let V=!1;if(d.placeholderData!==void 0&&R===void 0&&Z==="pending"){let Ce;x!=null&&x.isPlaceholderData&&d.placeholderData===(j==null?void 0:j.placeholderData)?(Ce=x.data,V=!0):Ce=typeof d.placeholderData=="function"?d.placeholderData((pe=p(this,Rn))==null?void 0:pe.state.data,p(this,Rn)):d.placeholderData,Ce!==void 0&&(Z="success",R=Fo(x==null?void 0:x.data,Ce,d),M=!0)}if(d.select&&R!==void 0&&!V)if(x&&R===(T==null?void 0:T.data)&&d.select===p(this,Ys))R=p(this,_n);else try{X(this,Ys,d.select),R=d.select(R),R=Fo(x==null?void 0:x.data,R,d),X(this,_n,R),X(this,el,null)}catch(Ce){X(this,el,Ce)}p(this,el)&&(O=p(this,el),R=p(this,_n),B=Date.now(),Z="error");const q=S.fetchStatus==="fetching",Q=Z==="pending",G=Z==="error",te=Q&&q,ie=R!==void 0,se={status:Z,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:Z==="success",isError:G,isInitialLoading:te,isLoading:te,data:R,dataUpdatedAt:S.dataUpdatedAt,error:O,errorUpdatedAt:B,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:S.dataUpdateCount>h.dataUpdateCount||S.errorUpdateCount>h.errorUpdateCount,isFetching:q,isRefetching:q&&!Q,isLoadingError:G&&!ie,isPaused:S.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:G&&ie,isStale:du(r,d),refetch:this.refetch,promise:p(this,Sa),isEnabled:Dt(d.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const Ce=se.data!==void 0,F=se.status==="error"&&!Ce,ge=ke=>{F?ke.reject(se.error):Ce&&ke.resolve(se.data)},Ue=()=>{const ke=X(this,Sa,se.promise=$o());ge(ke)},qe=p(this,Sa);switch(qe.status){case"pending":r.queryHash===u.queryHash&&ge(qe);break;case"fulfilled":(F||se.data!==qe.value)&&Ue();break;case"rejected":(!F||se.error!==qe.reason)&&Ue();break}}return se}updateResult(){const r=p(this,ft),d=this.createResult(p(this,be),this.options);if(X(this,kl,p(this,be).state),X(this,On,this.options),p(this,kl).data!==void 0&&X(this,Rn,p(this,be)),Zo(d,r))return;X(this,ft,d);const u=()=>{if(!r)return!0;const{notifyOnChangeProps:m}=this.options,x=typeof m=="function"?m():m;if(x==="all"||!x&&!p(this,kn).size)return!0;const T=new Set(x??p(this,kn));return this.options.throwOnError&&T.add("error"),Object.keys(p(this,ft)).some(j=>{const N=j;return p(this,ft)[N]!==r[N]&&T.has(N)})};ve(this,Te,iy).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Te,tu).call(this)}},jt=new WeakMap,be=new WeakMap,Gs=new WeakMap,ft=new WeakMap,kl=new WeakMap,On=new WeakMap,Sa=new WeakMap,el=new WeakMap,Ys=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Dl=new WeakMap,wl=new WeakMap,tl=new WeakMap,kn=new WeakMap,Te=new WeakSet,Us=function(r){ve(this,Te,nu).call(this);let d=p(this,be).fetch(this.options,r);return r!=null&&r.throwOnError||(d=d.catch(St)),d},Io=function(){ve(this,Te,au).call(this);const r=sl(this.options.staleTime,p(this,be));if(qs.isServer()||p(this,ft).isStale||!Vo(r))return;const u=Wm(p(this,ft).dataUpdatedAt,r)+1;X(this,Dl,Al.setTimeout(()=>{p(this,ft).isStale||this.updateResult()},u))},Po=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(p(this,be)):this.options.refetchInterval)??!1},eu=function(r){ve(this,Te,lu).call(this),X(this,tl,r),!(qs.isServer()||Dt(this.options.enabled,p(this,be))===!1||!Vo(p(this,tl))||p(this,tl)===0)&&X(this,wl,Al.setInterval(()=>{(this.options.refetchIntervalInBackground||ru.isFocused())&&ve(this,Te,Us).call(this)},p(this,tl)))},tu=function(){ve(this,Te,Io).call(this),ve(this,Te,eu).call(this,ve(this,Te,Po).call(this))},au=function(){p(this,Dl)!==void 0&&(Al.clearTimeout(p(this,Dl)),X(this,Dl,void 0))},lu=function(){p(this,wl)!==void 0&&(Al.clearInterval(p(this,wl)),X(this,wl,void 0))},nu=function(){const r=p(this,jt).getQueryCache().build(p(this,jt),this.options);if(r===p(this,be))return;const d=p(this,be);X(this,be,r),X(this,Gs,r.state),this.hasListeners()&&(d==null||d.removeObserver(this),r.addObserver(this))},iy=function(r){it.batch(()=>{r.listeners&&this.listeners.forEach(d=>{d(p(this,ft))}),p(this,jt).getQueryCache().notify({query:p(this,be),type:"observerResultsUpdated"})})},Vm);function yv(c,r){return Dt(r.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&Dt(r.retryOnMount,c)===!1)}function Am(c,r){return yv(c,r)||c.state.data!==void 0&&su(c,r,r.refetchOnMount)}function su(c,r,d){if(Dt(r.enabled,c)!==!1&&sl(r.staleTime,c)!=="static"){const u=typeof d=="function"?d(c):d;return u==="always"||u!==!1&&du(c,r)}return!1}function Cm(c,r,d,u){return(c!==r||Dt(u.enabled,c)===!1)&&(!d.suspense||c.state.status!=="error")&&du(c,d)}function du(c,r){return Dt(r.enabled,c)!==!1&&c.isStaleByTime(sl(r.staleTime,c))}function vv(c,r){return!Zo(c.getCurrentResult(),r)}var Ks,ea,rt,Ul,ta,$a,Zm,pv=(Zm=class extends ly{constructor(r){super();ee(this,ta);ee(this,Ks);ee(this,ea);ee(this,rt);ee(this,Ul);X(this,Ks,r.client),this.mutationId=r.mutationId,X(this,rt,r.mutationCache),X(this,ea,[]),this.state=r.state||gv(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){p(this,ea).includes(r)||(p(this,ea).push(r),this.clearGcTimeout(),p(this,rt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){X(this,ea,p(this,ea).filter(d=>d!==r)),this.scheduleGc(),p(this,rt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){p(this,ea).length||(this.state.status==="pending"?this.scheduleGc():p(this,rt).remove(this))}continue(){var r;return((r=p(this,Ul))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var T,j,N,h,g,S,M,R,O,B,Z,V,q,Q,G,te,ie,le;const d=()=>{ve(this,ta,$a).call(this,{type:"continue"})},u={client:p(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,Ul,ay({fn:()=>this.options.mutationFn?this.options.mutationFn(r,u):Promise.reject(new Error("No mutationFn found")),onFail:(se,pe)=>{ve(this,ta,$a).call(this,{type:"failed",failureCount:se,error:pe})},onPause:()=>{ve(this,ta,$a).call(this,{type:"pause"})},onContinue:d,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(this,rt).canRun(this)}));const m=this.state.status==="pending",x=!p(this,Ul).canStart();try{if(m)d();else{ve(this,ta,$a).call(this,{type:"pending",variables:r,isPaused:x}),p(this,rt).config.onMutate&&await p(this,rt).config.onMutate(r,this,u);const pe=await((j=(T=this.options).onMutate)==null?void 0:j.call(T,r,u));pe!==this.state.context&&ve(this,ta,$a).call(this,{type:"pending",context:pe,variables:r,isPaused:x})}const se=await p(this,Ul).start();return await((h=(N=p(this,rt).config).onSuccess)==null?void 0:h.call(N,se,r,this.state.context,this,u)),await((S=(g=this.options).onSuccess)==null?void 0:S.call(g,se,r,this.state.context,u)),await((R=(M=p(this,rt).config).onSettled)==null?void 0:R.call(M,se,null,this.state.variables,this.state.context,this,u)),await((B=(O=this.options).onSettled)==null?void 0:B.call(O,se,null,r,this.state.context,u)),ve(this,ta,$a).call(this,{type:"success",data:se}),se}catch(se){try{await((V=(Z=p(this,rt).config).onError)==null?void 0:V.call(Z,se,r,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((Q=(q=this.options).onError)==null?void 0:Q.call(q,se,r,this.state.context,u))}catch(pe){Promise.reject(pe)}try{await((te=(G=p(this,rt).config).onSettled)==null?void 0:te.call(G,void 0,se,this.state.variables,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((le=(ie=this.options).onSettled)==null?void 0:le.call(ie,void 0,se,r,this.state.context,u))}catch(pe){Promise.reject(pe)}throw ve(this,ta,$a).call(this,{type:"error",error:se}),se}finally{p(this,rt).runNext(this)}}},Ks=new WeakMap,ea=new WeakMap,rt=new WeakMap,Ul=new WeakMap,ta=new WeakSet,$a=function(r){const d=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=d(this.state),it.batch(()=>{p(this,ea).forEach(u=>{u.onMutationUpdate(r)}),p(this,rt).notify({mutation:this,type:"updated",action:r})})},Zm);function gv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Na,Ft,Xs,Jm,xv=(Jm=class extends Vs{constructor(r={}){super();ee(this,Na);ee(this,Ft);ee(this,Xs);this.config=r,X(this,Na,new Set),X(this,Ft,new Map),X(this,Xs,0)}build(r,d,u){const m=new pv({client:r,mutationCache:this,mutationId:++dc(this,Xs)._,options:r.defaultMutationOptions(d),state:u});return this.add(m),m}add(r){p(this,Na).add(r);const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d);u?u.push(r):p(this,Ft).set(d,[r])}this.notify({type:"added",mutation:r})}remove(r){if(p(this,Na).delete(r)){const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d);if(u)if(u.length>1){const m=u.indexOf(r);m!==-1&&u.splice(m,1)}else u[0]===r&&p(this,Ft).delete(d)}}this.notify({type:"removed",mutation:r})}canRun(r){const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d),m=u==null?void 0:u.find(x=>x.state.status==="pending");return!m||m===r}else return!0}runNext(r){var u;const d=fc(r);if(typeof d=="string"){const m=(u=p(this,Ft).get(d))==null?void 0:u.find(x=>x!==r&&x.state.isPaused);return(m==null?void 0:m.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{p(this,Na).forEach(r=>{this.notify({type:"removed",mutation:r})}),p(this,Na).clear(),p(this,Ft).clear()})}getAll(){return Array.from(p(this,Na))}find(r){const d={exact:!0,...r};return this.getAll().find(u=>jm(d,u))}findAll(r={}){return this.getAll().filter(d=>jm(r,d))}notify(r){it.batch(()=>{this.listeners.forEach(d=>{d(r)})})}resumePausedMutations(){const r=this.getAll().filter(d=>d.state.isPaused);return it.batch(()=>Promise.all(r.map(d=>d.continue().catch(St))))}},Na=new WeakMap,Ft=new WeakMap,Xs=new WeakMap,Jm);function fc(c){var r;return(r=c.options.scope)==null?void 0:r.id}var aa,Fm,bv=(Fm=class extends Vs{constructor(r={}){super();ee(this,aa);this.config=r,X(this,aa,new Map)}build(r,d,u){const m=d.queryKey,x=d.queryHash??ou(m,d);let T=this.get(x);return T||(T=new hv({client:r,queryKey:m,queryHash:x,options:r.defaultQueryOptions(d),state:u,defaultOptions:r.getQueryDefaults(m)}),this.add(T)),T}add(r){p(this,aa).has(r.queryHash)||(p(this,aa).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const d=p(this,aa).get(r.queryHash);d&&(r.destroy(),d===r&&p(this,aa).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){it.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return p(this,aa).get(r)}getAll(){return[...p(this,aa).values()]}find(r){const d={exact:!0,...r};return this.getAll().find(u=>bm(d,u))}findAll(r={}){const d=this.getAll();return Object.keys(r).length>0?d.filter(u=>bm(r,u)):d}notify(r){it.batch(()=>{this.listeners.forEach(d=>{d(r)})})}onFocus(){it.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},aa=new WeakMap,Fm),Ye,al,ll,Dn,wn,nl,Un,Ln,$m,jv=($m=class{constructor(c={}){ee(this,Ye);ee(this,al);ee(this,ll);ee(this,Dn);ee(this,wn);ee(this,nl);ee(this,Un);ee(this,Ln);X(this,Ye,c.queryCache||new bv),X(this,al,c.mutationCache||new xv),X(this,ll,c.defaultOptions||{}),X(this,Dn,new Map),X(this,wn,new Map),X(this,nl,0)}mount(){dc(this,nl)._++,p(this,nl)===1&&(X(this,Un,ru.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ye).onFocus())})),X(this,Ln,hc.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ye).onOnline())})))}unmount(){var c,r;dc(this,nl)._--,p(this,nl)===0&&((c=p(this,Un))==null||c.call(this),X(this,Un,void 0),(r=p(this,Ln))==null||r.call(this),X(this,Ln,void 0))}isFetching(c){return p(this,Ye).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return p(this,al).findAll({...c,status:"pending"}).length}getQueryData(c){var d;const r=this.defaultQueryOptions({queryKey:c});return(d=p(this,Ye).get(r.queryHash))==null?void 0:d.state.data}ensureQueryData(c){const r=this.defaultQueryOptions(c),d=p(this,Ye).build(this,r),u=d.state.data;return u===void 0?this.fetchQuery(c):(c.revalidateIfStale&&d.isStaleByTime(sl(r.staleTime,d))&&this.prefetchQuery(r),Promise.resolve(u))}getQueriesData(c){return p(this,Ye).findAll(c).map(({queryKey:r,state:d})=>{const u=d.data;return[r,u]})}setQueryData(c,r,d){const u=this.defaultQueryOptions({queryKey:c}),m=p(this,Ye).get(u.queryHash),x=m==null?void 0:m.state.data,T=tv(r,x);if(T!==void 0)return p(this,Ye).build(this,u).setData(T,{...d,manual:!0})}setQueriesData(c,r,d){return it.batch(()=>p(this,Ye).findAll(c).map(({queryKey:u})=>[u,this.setQueryData(u,r,d)]))}getQueryState(c){var d;const r=this.defaultQueryOptions({queryKey:c});return(d=p(this,Ye).get(r.queryHash))==null?void 0:d.state}removeQueries(c){const r=p(this,Ye);it.batch(()=>{r.findAll(c).forEach(d=>{r.remove(d)})})}resetQueries(c,r){const d=p(this,Ye);return it.batch(()=>(d.findAll(c).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...c},r)))}cancelQueries(c,r={}){const d={revert:!0,...r},u=it.batch(()=>p(this,Ye).findAll(c).map(m=>m.cancel(d)));return Promise.all(u).then(St).catch(St)}invalidateQueries(c,r={}){return it.batch(()=>(p(this,Ye).findAll(c).forEach(d=>{d.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},r)))}refetchQueries(c,r={}){const d={...r,cancelRefetch:r.cancelRefetch??!0},u=it.batch(()=>p(this,Ye).findAll(c).filter(m=>!m.isDisabled()&&!m.isStatic()).map(m=>{let x=m.fetch(void 0,d);return d.throwOnError||(x=x.catch(St)),m.state.fetchStatus==="paused"?Promise.resolve():x}));return Promise.all(u).then(St)}fetchQuery(c){const r=this.defaultQueryOptions(c);r.retry===void 0&&(r.retry=!1);const d=p(this,Ye).build(this,r);return d.isStaleByTime(sl(r.staleTime,d))?d.fetch(r):Promise.resolve(d.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(St).catch(St)}fetchInfiniteQuery(c){return c._type="infinite",this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(St).catch(St)}ensureInfiniteQueryData(c){return c._type="infinite",this.ensureQueryData(c)}resumePausedMutations(){return hc.isOnline()?p(this,al).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,Ye)}getMutationCache(){return p(this,al)}getDefaultOptions(){return p(this,ll)}setDefaultOptions(c){X(this,ll,c)}setQueryDefaults(c,r){p(this,Dn).set(Bs(c),{queryKey:c,defaultOptions:r})}getQueryDefaults(c){const r=[...p(this,Dn).values()],d={};return r.forEach(u=>{Hs(c,u.queryKey)&&Object.assign(d,u.defaultOptions)}),d}setMutationDefaults(c,r){p(this,wn).set(Bs(c),{mutationKey:c,defaultOptions:r})}getMutationDefaults(c){const r=[...p(this,wn).values()],d={};return r.forEach(u=>{Hs(c,u.mutationKey)&&Object.assign(d,u.defaultOptions)}),d}defaultQueryOptions(c){if(c._defaulted)return c;const r={...p(this,ll).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return r.queryHash||(r.queryHash=ou(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===uu&&(r.enabled=!1),r}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...p(this,ll).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){p(this,Ye).clear(),p(this,al).clear()}},Ye=new WeakMap,al=new WeakMap,ll=new WeakMap,Dn=new WeakMap,wn=new WeakMap,nl=new WeakMap,Un=new WeakMap,Ln=new WeakMap,$m),Ho={exports:{}},ce={};/**
9
+ */var gm;function J1(){if(gm)return Ds;gm=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function d(u,m,x){var T=null;if(x!==void 0&&(T=""+x),m.key!==void 0&&(T=""+m.key),"key"in m){x={};for(var j in m)j!=="key"&&(x[j]=m[j])}else x=m;return m=x.ref,{$$typeof:c,type:u,key:T,ref:m!==void 0?m:null,props:x}}return Ds.Fragment=r,Ds.jsx=d,Ds.jsxs=d,Ds}var xm;function F1(){return xm||(xm=1,Bo.exports=J1()),Bo.exports}var n=F1(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cl,Wa,Tn,Qm,$1=(Qm=class extends Vs{constructor(){super();ee(this,Cl);ee(this,Wa);ee(this,Tn);X(this,Tn,r=>{if(typeof window<"u"&&window.addEventListener){const d=()=>r();return window.addEventListener("visibilitychange",d,!1),()=>{window.removeEventListener("visibilitychange",d)}}})}onSubscribe(){p(this,Wa)||this.setEventListener(p(this,Tn))}onUnsubscribe(){var r;this.hasListeners()||((r=p(this,Wa))==null||r.call(this),X(this,Wa,void 0))}setEventListener(r){var d;X(this,Tn,r),(d=p(this,Wa))==null||d.call(this),X(this,Wa,r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(r){p(this,Cl)!==r&&(X(this,Cl,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(d=>{d(r)})}isFocused(){var r;return typeof p(this,Cl)=="boolean"?p(this,Cl):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Cl=new WeakMap,Wa=new WeakMap,Tn=new WeakMap,Qm),ru=new $1,W1={setTimeout:(c,r)=>setTimeout(c,r),clearTimeout:c=>clearTimeout(c),setInterval:(c,r)=>setInterval(c,r),clearInterval:c=>clearInterval(c)},Ia,cu,Gm,I1=(Gm=class{constructor(){ee(this,Ia,W1);ee(this,cu,!1)}setTimeoutProvider(c){X(this,Ia,c)}setTimeout(c,r){return p(this,Ia).setTimeout(c,r)}clearTimeout(c){p(this,Ia).clearTimeout(c)}setInterval(c,r){return p(this,Ia).setInterval(c,r)}clearInterval(c){p(this,Ia).clearInterval(c)}},Ia=new WeakMap,cu=new WeakMap,Gm),Al=new I1;function P1(c){setTimeout(c,0)}var ev=typeof window>"u"||"Deno"in globalThis;function St(){}function tv(c,r){return typeof c=="function"?c(r):c}function Vo(c){return typeof c=="number"&&c>=0&&c!==1/0}function Wm(c,r){return Math.max(c+(r||0)-Date.now(),0)}function sl(c,r){return typeof c=="function"?c(r):c}function kt(c,r){return typeof c=="function"?c(r):c}function bm(c,r){const{type:d="all",exact:u,fetchStatus:m,predicate:x,queryKey:T,stale:j}=c;if(T){if(u){if(r.queryHash!==ou(T,r.options))return!1}else if(!Hs(r.queryKey,T))return!1}if(d!=="all"){const N=r.isActive();if(d==="active"&&!N||d==="inactive"&&N)return!1}return!(typeof j=="boolean"&&r.isStale()!==j||m&&m!==r.state.fetchStatus||x&&!x(r))}function jm(c,r){const{exact:d,status:u,predicate:m,mutationKey:x}=c;if(x){if(!r.options.mutationKey)return!1;if(d){if(Bs(r.options.mutationKey)!==Bs(x))return!1}else if(!Hs(r.options.mutationKey,x))return!1}return!(u&&r.state.status!==u||m&&!m(r))}function ou(c,r){return((r==null?void 0:r.queryKeyHashFn)||Bs)(c)}function Bs(c){return JSON.stringify(c,(r,d)=>Jo(d)?Object.keys(d).sort().reduce((u,m)=>(u[m]=d[m],u),{}):d)}function Hs(c,r){return c===r?!0:typeof c!=typeof r?!1:c&&r&&typeof c=="object"&&typeof r=="object"?Object.keys(r).every(d=>Hs(c[d],r[d])):!1}var av=Object.prototype.hasOwnProperty;function Im(c,r,d=0){if(c===r)return c;if(d>500)return r;const u=Sm(c)&&Sm(r);if(!u&&!(Jo(c)&&Jo(r)))return r;const x=(u?c:Object.keys(c)).length,T=u?r:Object.keys(r),j=T.length,N=u?new Array(j):{};let h=0;for(let g=0;g<j;g++){const S=u?g:T[g],M=c[S],R=r[S];if(M===R){N[S]=M,(u?g<x:av.call(c,S))&&h++;continue}if(M===null||R===null||typeof M!="object"||typeof R!="object"){N[S]=R;continue}const O=Im(M,R,d+1);N[S]=O,O===M&&h++}return x===j&&h===x?c:N}function Zo(c,r){if(!r||Object.keys(c).length!==Object.keys(r).length)return!1;for(const d in c)if(c[d]!==r[d])return!1;return!0}function Sm(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Jo(c){if(!Nm(c))return!1;const r=c.constructor;if(r===void 0)return!0;const d=r.prototype;return!(!Nm(d)||!d.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function Nm(c){return Object.prototype.toString.call(c)==="[object Object]"}function lv(c){return new Promise(r=>{Al.setTimeout(r,c)})}function Fo(c,r,d){return typeof d.structuralSharing=="function"?d.structuralSharing(c,r):d.structuralSharing!==!1?Im(c,r):r}function nv(c,r,d=0){const u=[...c,r];return d&&u.length>d?u.slice(1):u}function sv(c,r,d=0){const u=[r,...c];return d&&u.length>d?u.slice(0,-1):u}var uu=Symbol();function Pm(c,r){return!c.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!c.queryFn||c.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function ey(c,r){return typeof c=="function"?c(...r):!!c}function iv(c,r,d){let u=!1,m;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(m??(m=r()),u||(u=!0,m.aborted?d():m.addEventListener("abort",d,{once:!0})),m)}),c}var qs=(()=>{let c=()=>ev;return{isServer(){return c()},setIsServer(r){c=r}}})();function $o(){let c,r;const d=new Promise((m,x)=>{c=m,r=x});d.status="pending",d.catch(()=>{});function u(m){Object.assign(d,m),delete d.resolve,delete d.reject}return d.resolve=m=>{u({status:"fulfilled",value:m}),c(m)},d.reject=m=>{u({status:"rejected",reason:m}),r(m)},d}var cv=P1;function rv(){let c=[],r=0,d=j=>{j()},u=j=>{j()},m=cv;const x=j=>{r?c.push(j):m(()=>{d(j)})},T=()=>{const j=c;c=[],j.length&&m(()=>{u(()=>{j.forEach(N=>{d(N)})})})};return{batch:j=>{let N;r++;try{N=j()}finally{r--,r||T()}return N},batchCalls:j=>(...N)=>{x(()=>{j(...N)})},schedule:x,setNotifyFunction:j=>{d=j},setBatchNotifyFunction:j=>{u=j},setScheduler:j=>{m=j}}}var it=rv(),En,Pa,An,Ym,ov=(Ym=class extends Vs{constructor(){super();ee(this,En,!0);ee(this,Pa);ee(this,An);X(this,An,r=>{if(typeof window<"u"&&window.addEventListener){const d=()=>r(!0),u=()=>r(!1);return window.addEventListener("online",d,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",d),window.removeEventListener("offline",u)}}})}onSubscribe(){p(this,Pa)||this.setEventListener(p(this,An))}onUnsubscribe(){var r;this.hasListeners()||((r=p(this,Pa))==null||r.call(this),X(this,Pa,void 0))}setEventListener(r){var d;X(this,An,r),(d=p(this,Pa))==null||d.call(this),X(this,Pa,r(this.setOnline.bind(this)))}setOnline(r){p(this,En)!==r&&(X(this,En,r),this.listeners.forEach(u=>{u(r)}))}isOnline(){return p(this,En)}},En=new WeakMap,Pa=new WeakMap,An=new WeakMap,Ym),hc=new ov;function uv(c){return Math.min(1e3*2**c,3e4)}function ty(c){return(c??"online")==="online"?hc.isOnline():!0}var Wo=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function ay(c){let r=!1,d=0,u;const m=$o(),x=()=>m.status!=="pending",T=B=>{var Z;if(!x()){const V=new Wo(B);M(V),(Z=c.onCancel)==null||Z.call(c,V)}},j=()=>{r=!0},N=()=>{r=!1},h=()=>ru.isFocused()&&(c.networkMode==="always"||hc.isOnline())&&c.canRun(),g=()=>ty(c.networkMode)&&c.canRun(),S=B=>{x()||(u==null||u(),m.resolve(B))},M=B=>{x()||(u==null||u(),m.reject(B))},R=()=>new Promise(B=>{var Z;u=V=>{(x()||h())&&B(V)},(Z=c.onPause)==null||Z.call(c)}).then(()=>{var B;u=void 0,x()||(B=c.onContinue)==null||B.call(c)}),O=()=>{if(x())return;let B;const Z=d===0?c.initialPromise:void 0;try{B=Z??c.fn()}catch(V){B=Promise.reject(V)}Promise.resolve(B).then(S).catch(V=>{var ie;if(x())return;const q=c.retry??(qs.isServer()?0:3),Q=c.retryDelay??uv,G=typeof Q=="function"?Q(d,V):Q,te=q===!0||typeof q=="number"&&d<q||typeof q=="function"&&q(d,V);if(r||!te){M(V);return}d++,(ie=c.onFail)==null||ie.call(c,d,V),lv(G).then(()=>h()?void 0:R()).then(()=>{r?M(V):O()})})};return{promise:m,status:()=>m.status,cancel:T,continue:()=>(u==null||u(),m),cancelRetry:j,continueRetry:N,canStart:g,start:()=>(g()?O():R().then(O),m)}}var Ml,Km,ly=(Km=class{constructor(){ee(this,Ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vo(this.gcTime)&&X(this,Ml,Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(qs.isServer()?1/0:300*1e3))}clearGcTimeout(){p(this,Ml)!==void 0&&(Al.clearTimeout(p(this,Ml)),X(this,Ml,void 0))}},Ml=new WeakMap,Km);function dv(c){return{onFetch:(r,d)=>{var g,S,M,R,O;const u=r.options,m=(M=(S=(g=r.fetchOptions)==null?void 0:g.meta)==null?void 0:S.fetchMore)==null?void 0:M.direction,x=((R=r.state.data)==null?void 0:R.pages)||[],T=((O=r.state.data)==null?void 0:O.pageParams)||[];let j={pages:[],pageParams:[]},N=0;const h=async()=>{let B=!1;const Z=Q=>{iv(Q,()=>r.signal,()=>B=!0)},V=Pm(r.options,r.fetchOptions),q=async(Q,G,te)=>{if(B)return Promise.reject(r.signal.reason);if(G==null&&Q.pages.length)return Promise.resolve(Q);const le=(()=>{const F={client:r.client,queryKey:r.queryKey,pageParam:G,direction:te?"backward":"forward",meta:r.options.meta};return Z(F),F})(),se=await V(le),{maxPages:pe}=r.options,Ce=te?sv:nv;return{pages:Ce(Q.pages,se,pe),pageParams:Ce(Q.pageParams,G,pe)}};if(m&&x.length){const Q=m==="backward",G=Q?fv:zm,te={pages:x,pageParams:T},ie=G(u,te);j=await q(te,ie,Q)}else{const Q=c??x.length;do{const G=N===0?T[0]??u.initialPageParam:zm(u,j);if(N>0&&G==null)break;j=await q(j,G),N++}while(N<Q)}return j};r.options.persister?r.fetchFn=()=>{var B,Z;return(Z=(B=r.options).persister)==null?void 0:Z.call(B,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},d)}:r.fetchFn=h}}}function zm(c,{pages:r,pageParams:d}){const u=r.length-1;return r.length>0?c.getNextPageParam(r[u],r,d[u],d):void 0}function fv(c,{pages:r,pageParams:d}){var u;return r.length>0?(u=c.getPreviousPageParam)==null?void 0:u.call(c,r[0],r,d[0],d):void 0}var Cn,Ol,Mn,Xt,_l,et,Qs,Rl,Dt,ny,ja,Xm,hv=(Xm=class extends ly{constructor(r){super();ee(this,Dt);ee(this,Cn);ee(this,Ol);ee(this,Mn);ee(this,Xt);ee(this,_l);ee(this,et);ee(this,Qs);ee(this,Rl);X(this,Rl,!1),X(this,Qs,r.defaultOptions),this.setOptions(r.options),this.observers=[],X(this,_l,r.client),X(this,Xt,p(this,_l).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,X(this,Ol,Em(this.options)),this.state=r.state??p(this,Ol),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(this,Cn)}get promise(){var r;return(r=p(this,et))==null?void 0:r.promise}setOptions(r){if(this.options={...p(this,Qs),...r},r!=null&&r._type&&X(this,Cn,r._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const d=Em(this.options);d.data!==void 0&&(this.setState(Tm(d.data,d.dataUpdatedAt)),X(this,Ol,d))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Xt).remove(this)}setData(r,d){const u=Fo(this.state.data,r,this.options);return ve(this,Dt,ja).call(this,{data:u,type:"success",dataUpdatedAt:d==null?void 0:d.updatedAt,manual:d==null?void 0:d.manual}),u}setState(r){ve(this,Dt,ja).call(this,{type:"setState",state:r})}cancel(r){var u,m;const d=(u=p(this,et))==null?void 0:u.promise;return(m=p(this,et))==null||m.cancel(r),d?d.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return p(this,Ol)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>kt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>sl(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!Wm(this.state.dataUpdatedAt,r)}onFocus(){var d;const r=this.observers.find(u=>u.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}onOnline(){var d;const r=this.observers.find(u=>u.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),p(this,Xt).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(d=>d!==r),this.observers.length||(p(this,et)&&(p(this,Rl)||ve(this,Dt,ny).call(this)?p(this,et).cancel({revert:!0}):p(this,et).cancelRetry()),this.scheduleGc()),p(this,Xt).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Dt,ja).call(this,{type:"invalidate"})}async fetch(r,d){var h,g,S,M,R,O,B,Z,V,q,Q;if(this.state.fetchStatus!=="idle"&&((h=p(this,et))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(d!=null&&d.cancelRefetch))this.cancel({silent:!0});else if(p(this,et))return p(this,et).continueRetry(),p(this,et).promise}if(r&&this.setOptions(r),!this.options.queryFn){const G=this.observers.find(te=>te.options.queryFn);G&&this.setOptions(G.options)}const u=new AbortController,m=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(X(this,Rl,!0),u.signal)})},x=()=>{const G=Pm(this.options,d),ie=(()=>{const le={client:p(this,_l),queryKey:this.queryKey,meta:this.meta};return m(le),le})();return X(this,Rl,!1),this.options.persister?this.options.persister(G,ie,this):G(ie)},j=(()=>{const G={fetchOptions:d,options:this.options,queryKey:this.queryKey,client:p(this,_l),state:this.state,fetchFn:x};return m(G),G})(),N=p(this,Cn)==="infinite"?dv(this.options.pages):this.options.behavior;N==null||N.onFetch(j,this),X(this,Mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=j.fetchOptions)==null?void 0:g.meta))&&ve(this,Dt,ja).call(this,{type:"fetch",meta:(S=j.fetchOptions)==null?void 0:S.meta}),X(this,et,ay({initialPromise:d==null?void 0:d.initialPromise,fn:j.fetchFn,onCancel:G=>{G instanceof Wo&&G.revert&&this.setState({...p(this,Mn),fetchStatus:"idle"}),u.abort()},onFail:(G,te)=>{ve(this,Dt,ja).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{ve(this,Dt,ja).call(this,{type:"pause"})},onContinue:()=>{ve(this,Dt,ja).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0}));try{const G=await p(this,et).start();if(G===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(G),(R=(M=p(this,Xt).config).onSuccess)==null||R.call(M,G,this),(B=(O=p(this,Xt).config).onSettled)==null||B.call(O,G,this.state.error,this),G}catch(G){if(G instanceof Wo){if(G.silent)return p(this,et).promise;if(G.revert){if(this.state.data===void 0)throw G;return this.state.data}}throw ve(this,Dt,ja).call(this,{type:"error",error:G}),(V=(Z=p(this,Xt).config).onError)==null||V.call(Z,G,this),(Q=(q=p(this,Xt).config).onSettled)==null||Q.call(q,this.state.data,G,this),G}finally{this.scheduleGc()}}},Cn=new WeakMap,Ol=new WeakMap,Mn=new WeakMap,Xt=new WeakMap,_l=new WeakMap,et=new WeakMap,Qs=new WeakMap,Rl=new WeakMap,Dt=new WeakSet,ny=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ja=function(r){const d=u=>{switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...sy(u.data,this.options),fetchMeta:r.meta??null};case"success":const m={...u,...Tm(r.data,r.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Mn,r.manual?m:void 0),m;case"error":const x=r.error;return{...u,error:x,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:x,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=d(this.state),it.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),p(this,Xt).notify({query:this,type:"updated",action:r})})},Xm);function sy(c,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ty(r.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function Tm(c,r){return{data:c,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Em(c){const r=typeof c.initialData=="function"?c.initialData():c.initialData,d=r!==void 0,u=d?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:d?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:d?"success":"pending",fetchStatus:"idle"}}var jt,be,Gs,ft,Dl,On,Sa,el,Ys,_n,Rn,kl,wl,tl,Dn,Te,Us,Io,Po,eu,tu,au,lu,nu,iy,Vm,mv=(Vm=class extends Vs{constructor(r,d){super();ee(this,Te);ee(this,jt);ee(this,be);ee(this,Gs);ee(this,ft);ee(this,Dl);ee(this,On);ee(this,Sa);ee(this,el);ee(this,Ys);ee(this,_n);ee(this,Rn);ee(this,kl);ee(this,wl);ee(this,tl);ee(this,Dn,new Set);this.options=d,X(this,jt,r),X(this,el,null),X(this,Sa,$o()),this.bindMethods(),this.setOptions(d)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(p(this,be).addObserver(this),Am(p(this,be),this.options)?ve(this,Te,Us).call(this):this.updateResult(),ve(this,Te,tu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return su(p(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return su(p(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Te,au).call(this),ve(this,Te,lu).call(this),p(this,be).removeObserver(this)}setOptions(r){const d=this.options,u=p(this,be);if(this.options=p(this,jt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kt(this.options.enabled,p(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Te,nu).call(this),p(this,be).setOptions(this.options),d._defaulted&&!Zo(this.options,d)&&p(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:p(this,be),observer:this});const m=this.hasListeners();m&&Cm(p(this,be),u,this.options,d)&&ve(this,Te,Us).call(this),this.updateResult(),m&&(p(this,be)!==u||kt(this.options.enabled,p(this,be))!==kt(d.enabled,p(this,be))||sl(this.options.staleTime,p(this,be))!==sl(d.staleTime,p(this,be)))&&ve(this,Te,Io).call(this);const x=ve(this,Te,Po).call(this);m&&(p(this,be)!==u||kt(this.options.enabled,p(this,be))!==kt(d.enabled,p(this,be))||x!==p(this,tl))&&ve(this,Te,eu).call(this,x)}getOptimisticResult(r){const d=p(this,jt).getQueryCache().build(p(this,jt),r),u=this.createResult(d,r);return vv(this,u)&&(X(this,ft,u),X(this,On,this.options),X(this,Dl,p(this,be).state)),u}getCurrentResult(){return p(this,ft)}trackResult(r,d){return new Proxy(r,{get:(u,m)=>(this.trackProp(m),d==null||d(m),m==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&p(this,Sa).status==="pending"&&p(this,Sa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,m))})}trackProp(r){p(this,Dn).add(r)}getCurrentQuery(){return p(this,be)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const d=p(this,jt).defaultQueryOptions(r),u=p(this,jt).getQueryCache().build(p(this,jt),d);return u.fetch().then(()=>this.createResult(u,d))}fetch(r){return ve(this,Te,Us).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,ft)))}createResult(r,d){var pe;const u=p(this,be),m=this.options,x=p(this,ft),T=p(this,Dl),j=p(this,On),h=r!==u?r.state:p(this,Gs),{state:g}=r;let S={...g},M=!1,R;if(d._optimisticResults){const Ce=this.hasListeners(),F=!Ce&&Am(r,d),ge=Ce&&Cm(r,u,d,m);(F||ge)&&(S={...S,...sy(g.data,r.options)}),d._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:O,errorUpdatedAt:B,status:Z}=S;R=S.data;let V=!1;if(d.placeholderData!==void 0&&R===void 0&&Z==="pending"){let Ce;x!=null&&x.isPlaceholderData&&d.placeholderData===(j==null?void 0:j.placeholderData)?(Ce=x.data,V=!0):Ce=typeof d.placeholderData=="function"?d.placeholderData((pe=p(this,Rn))==null?void 0:pe.state.data,p(this,Rn)):d.placeholderData,Ce!==void 0&&(Z="success",R=Fo(x==null?void 0:x.data,Ce,d),M=!0)}if(d.select&&R!==void 0&&!V)if(x&&R===(T==null?void 0:T.data)&&d.select===p(this,Ys))R=p(this,_n);else try{X(this,Ys,d.select),R=d.select(R),R=Fo(x==null?void 0:x.data,R,d),X(this,_n,R),X(this,el,null)}catch(Ce){X(this,el,Ce)}p(this,el)&&(O=p(this,el),R=p(this,_n),B=Date.now(),Z="error");const q=S.fetchStatus==="fetching",Q=Z==="pending",G=Z==="error",te=Q&&q,ie=R!==void 0,se={status:Z,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:Z==="success",isError:G,isInitialLoading:te,isLoading:te,data:R,dataUpdatedAt:S.dataUpdatedAt,error:O,errorUpdatedAt:B,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:S.dataUpdateCount>h.dataUpdateCount||S.errorUpdateCount>h.errorUpdateCount,isFetching:q,isRefetching:q&&!Q,isLoadingError:G&&!ie,isPaused:S.fetchStatus==="paused",isPlaceholderData:M,isRefetchError:G&&ie,isStale:du(r,d),refetch:this.refetch,promise:p(this,Sa),isEnabled:kt(d.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const Ce=se.data!==void 0,F=se.status==="error"&&!Ce,ge=De=>{F?De.reject(se.error):Ce&&De.resolve(se.data)},Ue=()=>{const De=X(this,Sa,se.promise=$o());ge(De)},qe=p(this,Sa);switch(qe.status){case"pending":r.queryHash===u.queryHash&&ge(qe);break;case"fulfilled":(F||se.data!==qe.value)&&Ue();break;case"rejected":(!F||se.error!==qe.reason)&&Ue();break}}return se}updateResult(){const r=p(this,ft),d=this.createResult(p(this,be),this.options);if(X(this,Dl,p(this,be).state),X(this,On,this.options),p(this,Dl).data!==void 0&&X(this,Rn,p(this,be)),Zo(d,r))return;X(this,ft,d);const u=()=>{if(!r)return!0;const{notifyOnChangeProps:m}=this.options,x=typeof m=="function"?m():m;if(x==="all"||!x&&!p(this,Dn).size)return!0;const T=new Set(x??p(this,Dn));return this.options.throwOnError&&T.add("error"),Object.keys(p(this,ft)).some(j=>{const N=j;return p(this,ft)[N]!==r[N]&&T.has(N)})};ve(this,Te,iy).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Te,tu).call(this)}},jt=new WeakMap,be=new WeakMap,Gs=new WeakMap,ft=new WeakMap,Dl=new WeakMap,On=new WeakMap,Sa=new WeakMap,el=new WeakMap,Ys=new WeakMap,_n=new WeakMap,Rn=new WeakMap,kl=new WeakMap,wl=new WeakMap,tl=new WeakMap,Dn=new WeakMap,Te=new WeakSet,Us=function(r){ve(this,Te,nu).call(this);let d=p(this,be).fetch(this.options,r);return r!=null&&r.throwOnError||(d=d.catch(St)),d},Io=function(){ve(this,Te,au).call(this);const r=sl(this.options.staleTime,p(this,be));if(qs.isServer()||p(this,ft).isStale||!Vo(r))return;const u=Wm(p(this,ft).dataUpdatedAt,r)+1;X(this,kl,Al.setTimeout(()=>{p(this,ft).isStale||this.updateResult()},u))},Po=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(p(this,be)):this.options.refetchInterval)??!1},eu=function(r){ve(this,Te,lu).call(this),X(this,tl,r),!(qs.isServer()||kt(this.options.enabled,p(this,be))===!1||!Vo(p(this,tl))||p(this,tl)===0)&&X(this,wl,Al.setInterval(()=>{(this.options.refetchIntervalInBackground||ru.isFocused())&&ve(this,Te,Us).call(this)},p(this,tl)))},tu=function(){ve(this,Te,Io).call(this),ve(this,Te,eu).call(this,ve(this,Te,Po).call(this))},au=function(){p(this,kl)!==void 0&&(Al.clearTimeout(p(this,kl)),X(this,kl,void 0))},lu=function(){p(this,wl)!==void 0&&(Al.clearInterval(p(this,wl)),X(this,wl,void 0))},nu=function(){const r=p(this,jt).getQueryCache().build(p(this,jt),this.options);if(r===p(this,be))return;const d=p(this,be);X(this,be,r),X(this,Gs,r.state),this.hasListeners()&&(d==null||d.removeObserver(this),r.addObserver(this))},iy=function(r){it.batch(()=>{r.listeners&&this.listeners.forEach(d=>{d(p(this,ft))}),p(this,jt).getQueryCache().notify({query:p(this,be),type:"observerResultsUpdated"})})},Vm);function yv(c,r){return kt(r.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&kt(r.retryOnMount,c)===!1)}function Am(c,r){return yv(c,r)||c.state.data!==void 0&&su(c,r,r.refetchOnMount)}function su(c,r,d){if(kt(r.enabled,c)!==!1&&sl(r.staleTime,c)!=="static"){const u=typeof d=="function"?d(c):d;return u==="always"||u!==!1&&du(c,r)}return!1}function Cm(c,r,d,u){return(c!==r||kt(u.enabled,c)===!1)&&(!d.suspense||c.state.status!=="error")&&du(c,d)}function du(c,r){return kt(r.enabled,c)!==!1&&c.isStaleByTime(sl(r.staleTime,c))}function vv(c,r){return!Zo(c.getCurrentResult(),r)}var Ks,ea,rt,Ul,ta,$a,Zm,pv=(Zm=class extends ly{constructor(r){super();ee(this,ta);ee(this,Ks);ee(this,ea);ee(this,rt);ee(this,Ul);X(this,Ks,r.client),this.mutationId=r.mutationId,X(this,rt,r.mutationCache),X(this,ea,[]),this.state=r.state||gv(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){p(this,ea).includes(r)||(p(this,ea).push(r),this.clearGcTimeout(),p(this,rt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){X(this,ea,p(this,ea).filter(d=>d!==r)),this.scheduleGc(),p(this,rt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){p(this,ea).length||(this.state.status==="pending"?this.scheduleGc():p(this,rt).remove(this))}continue(){var r;return((r=p(this,Ul))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var T,j,N,h,g,S,M,R,O,B,Z,V,q,Q,G,te,ie,le;const d=()=>{ve(this,ta,$a).call(this,{type:"continue"})},u={client:p(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,Ul,ay({fn:()=>this.options.mutationFn?this.options.mutationFn(r,u):Promise.reject(new Error("No mutationFn found")),onFail:(se,pe)=>{ve(this,ta,$a).call(this,{type:"failed",failureCount:se,error:pe})},onPause:()=>{ve(this,ta,$a).call(this,{type:"pause"})},onContinue:d,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(this,rt).canRun(this)}));const m=this.state.status==="pending",x=!p(this,Ul).canStart();try{if(m)d();else{ve(this,ta,$a).call(this,{type:"pending",variables:r,isPaused:x}),p(this,rt).config.onMutate&&await p(this,rt).config.onMutate(r,this,u);const pe=await((j=(T=this.options).onMutate)==null?void 0:j.call(T,r,u));pe!==this.state.context&&ve(this,ta,$a).call(this,{type:"pending",context:pe,variables:r,isPaused:x})}const se=await p(this,Ul).start();return await((h=(N=p(this,rt).config).onSuccess)==null?void 0:h.call(N,se,r,this.state.context,this,u)),await((S=(g=this.options).onSuccess)==null?void 0:S.call(g,se,r,this.state.context,u)),await((R=(M=p(this,rt).config).onSettled)==null?void 0:R.call(M,se,null,this.state.variables,this.state.context,this,u)),await((B=(O=this.options).onSettled)==null?void 0:B.call(O,se,null,r,this.state.context,u)),ve(this,ta,$a).call(this,{type:"success",data:se}),se}catch(se){try{await((V=(Z=p(this,rt).config).onError)==null?void 0:V.call(Z,se,r,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((Q=(q=this.options).onError)==null?void 0:Q.call(q,se,r,this.state.context,u))}catch(pe){Promise.reject(pe)}try{await((te=(G=p(this,rt).config).onSettled)==null?void 0:te.call(G,void 0,se,this.state.variables,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((le=(ie=this.options).onSettled)==null?void 0:le.call(ie,void 0,se,r,this.state.context,u))}catch(pe){Promise.reject(pe)}throw ve(this,ta,$a).call(this,{type:"error",error:se}),se}finally{p(this,rt).runNext(this)}}},Ks=new WeakMap,ea=new WeakMap,rt=new WeakMap,Ul=new WeakMap,ta=new WeakSet,$a=function(r){const d=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=d(this.state),it.batch(()=>{p(this,ea).forEach(u=>{u.onMutationUpdate(r)}),p(this,rt).notify({mutation:this,type:"updated",action:r})})},Zm);function gv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Na,Ft,Xs,Jm,xv=(Jm=class extends Vs{constructor(r={}){super();ee(this,Na);ee(this,Ft);ee(this,Xs);this.config=r,X(this,Na,new Set),X(this,Ft,new Map),X(this,Xs,0)}build(r,d,u){const m=new pv({client:r,mutationCache:this,mutationId:++dc(this,Xs)._,options:r.defaultMutationOptions(d),state:u});return this.add(m),m}add(r){p(this,Na).add(r);const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d);u?u.push(r):p(this,Ft).set(d,[r])}this.notify({type:"added",mutation:r})}remove(r){if(p(this,Na).delete(r)){const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d);if(u)if(u.length>1){const m=u.indexOf(r);m!==-1&&u.splice(m,1)}else u[0]===r&&p(this,Ft).delete(d)}}this.notify({type:"removed",mutation:r})}canRun(r){const d=fc(r);if(typeof d=="string"){const u=p(this,Ft).get(d),m=u==null?void 0:u.find(x=>x.state.status==="pending");return!m||m===r}else return!0}runNext(r){var u;const d=fc(r);if(typeof d=="string"){const m=(u=p(this,Ft).get(d))==null?void 0:u.find(x=>x!==r&&x.state.isPaused);return(m==null?void 0:m.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{p(this,Na).forEach(r=>{this.notify({type:"removed",mutation:r})}),p(this,Na).clear(),p(this,Ft).clear()})}getAll(){return Array.from(p(this,Na))}find(r){const d={exact:!0,...r};return this.getAll().find(u=>jm(d,u))}findAll(r={}){return this.getAll().filter(d=>jm(r,d))}notify(r){it.batch(()=>{this.listeners.forEach(d=>{d(r)})})}resumePausedMutations(){const r=this.getAll().filter(d=>d.state.isPaused);return it.batch(()=>Promise.all(r.map(d=>d.continue().catch(St))))}},Na=new WeakMap,Ft=new WeakMap,Xs=new WeakMap,Jm);function fc(c){var r;return(r=c.options.scope)==null?void 0:r.id}var aa,Fm,bv=(Fm=class extends Vs{constructor(r={}){super();ee(this,aa);this.config=r,X(this,aa,new Map)}build(r,d,u){const m=d.queryKey,x=d.queryHash??ou(m,d);let T=this.get(x);return T||(T=new hv({client:r,queryKey:m,queryHash:x,options:r.defaultQueryOptions(d),state:u,defaultOptions:r.getQueryDefaults(m)}),this.add(T)),T}add(r){p(this,aa).has(r.queryHash)||(p(this,aa).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const d=p(this,aa).get(r.queryHash);d&&(r.destroy(),d===r&&p(this,aa).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){it.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return p(this,aa).get(r)}getAll(){return[...p(this,aa).values()]}find(r){const d={exact:!0,...r};return this.getAll().find(u=>bm(d,u))}findAll(r={}){const d=this.getAll();return Object.keys(r).length>0?d.filter(u=>bm(r,u)):d}notify(r){it.batch(()=>{this.listeners.forEach(d=>{d(r)})})}onFocus(){it.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},aa=new WeakMap,Fm),Ye,al,ll,kn,wn,nl,Un,Ln,$m,jv=($m=class{constructor(c={}){ee(this,Ye);ee(this,al);ee(this,ll);ee(this,kn);ee(this,wn);ee(this,nl);ee(this,Un);ee(this,Ln);X(this,Ye,c.queryCache||new bv),X(this,al,c.mutationCache||new xv),X(this,ll,c.defaultOptions||{}),X(this,kn,new Map),X(this,wn,new Map),X(this,nl,0)}mount(){dc(this,nl)._++,p(this,nl)===1&&(X(this,Un,ru.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ye).onFocus())})),X(this,Ln,hc.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ye).onOnline())})))}unmount(){var c,r;dc(this,nl)._--,p(this,nl)===0&&((c=p(this,Un))==null||c.call(this),X(this,Un,void 0),(r=p(this,Ln))==null||r.call(this),X(this,Ln,void 0))}isFetching(c){return p(this,Ye).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return p(this,al).findAll({...c,status:"pending"}).length}getQueryData(c){var d;const r=this.defaultQueryOptions({queryKey:c});return(d=p(this,Ye).get(r.queryHash))==null?void 0:d.state.data}ensureQueryData(c){const r=this.defaultQueryOptions(c),d=p(this,Ye).build(this,r),u=d.state.data;return u===void 0?this.fetchQuery(c):(c.revalidateIfStale&&d.isStaleByTime(sl(r.staleTime,d))&&this.prefetchQuery(r),Promise.resolve(u))}getQueriesData(c){return p(this,Ye).findAll(c).map(({queryKey:r,state:d})=>{const u=d.data;return[r,u]})}setQueryData(c,r,d){const u=this.defaultQueryOptions({queryKey:c}),m=p(this,Ye).get(u.queryHash),x=m==null?void 0:m.state.data,T=tv(r,x);if(T!==void 0)return p(this,Ye).build(this,u).setData(T,{...d,manual:!0})}setQueriesData(c,r,d){return it.batch(()=>p(this,Ye).findAll(c).map(({queryKey:u})=>[u,this.setQueryData(u,r,d)]))}getQueryState(c){var d;const r=this.defaultQueryOptions({queryKey:c});return(d=p(this,Ye).get(r.queryHash))==null?void 0:d.state}removeQueries(c){const r=p(this,Ye);it.batch(()=>{r.findAll(c).forEach(d=>{r.remove(d)})})}resetQueries(c,r){const d=p(this,Ye);return it.batch(()=>(d.findAll(c).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...c},r)))}cancelQueries(c,r={}){const d={revert:!0,...r},u=it.batch(()=>p(this,Ye).findAll(c).map(m=>m.cancel(d)));return Promise.all(u).then(St).catch(St)}invalidateQueries(c,r={}){return it.batch(()=>(p(this,Ye).findAll(c).forEach(d=>{d.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},r)))}refetchQueries(c,r={}){const d={...r,cancelRefetch:r.cancelRefetch??!0},u=it.batch(()=>p(this,Ye).findAll(c).filter(m=>!m.isDisabled()&&!m.isStatic()).map(m=>{let x=m.fetch(void 0,d);return d.throwOnError||(x=x.catch(St)),m.state.fetchStatus==="paused"?Promise.resolve():x}));return Promise.all(u).then(St)}fetchQuery(c){const r=this.defaultQueryOptions(c);r.retry===void 0&&(r.retry=!1);const d=p(this,Ye).build(this,r);return d.isStaleByTime(sl(r.staleTime,d))?d.fetch(r):Promise.resolve(d.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(St).catch(St)}fetchInfiniteQuery(c){return c._type="infinite",this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(St).catch(St)}ensureInfiniteQueryData(c){return c._type="infinite",this.ensureQueryData(c)}resumePausedMutations(){return hc.isOnline()?p(this,al).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,Ye)}getMutationCache(){return p(this,al)}getDefaultOptions(){return p(this,ll)}setDefaultOptions(c){X(this,ll,c)}setQueryDefaults(c,r){p(this,kn).set(Bs(c),{queryKey:c,defaultOptions:r})}getQueryDefaults(c){const r=[...p(this,kn).values()],d={};return r.forEach(u=>{Hs(c,u.queryKey)&&Object.assign(d,u.defaultOptions)}),d}setMutationDefaults(c,r){p(this,wn).set(Bs(c),{mutationKey:c,defaultOptions:r})}getMutationDefaults(c){const r=[...p(this,wn).values()],d={};return r.forEach(u=>{Hs(c,u.mutationKey)&&Object.assign(d,u.defaultOptions)}),d}defaultQueryOptions(c){if(c._defaulted)return c;const r={...p(this,ll).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return r.queryHash||(r.queryHash=ou(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===uu&&(r.enabled=!1),r}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...p(this,ll).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){p(this,Ye).clear(),p(this,al).clear()}},Ye=new WeakMap,al=new WeakMap,ll=new WeakMap,kn=new WeakMap,wn=new WeakMap,nl=new WeakMap,Un=new WeakMap,Ln=new WeakMap,$m),Ho={exports:{}},ce={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Mm;function Sv(){if(Mm)return ce;Mm=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),M=Symbol.iterator;function R(b){return b===null||typeof b!="object"?null:(b=M&&b[M]||b["@@iterator"],typeof b=="function"?b:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function V(b,L,K){this.props=b,this.context=L,this.refs=Z,this.updater=K||O}V.prototype.isReactComponent={},V.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,L,"setState")},V.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function q(){}q.prototype=V.prototype;function Q(b,L,K){this.props=b,this.context=L,this.refs=Z,this.updater=K||O}var G=Q.prototype=new q;G.constructor=Q,B(G,V.prototype),G.isPureReactComponent=!0;var te=Array.isArray;function ie(){}var le={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function pe(b,L,K){var $=K.ref;return{$$typeof:c,type:b,key:L,ref:$!==void 0?$:null,props:K}}function Ce(b,L){return pe(b.type,L,b.props)}function F(b){return typeof b=="object"&&b!==null&&b.$$typeof===c}function ge(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(K){return L[K]})}var Ue=/\/+/g;function qe(b,L){return typeof b=="object"&&b!==null&&b.key!=null?ge(""+b.key):L.toString(36)}function ke(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(ie,ie):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function k(b,L,K,$,re){var de=typeof b;(de==="undefined"||de==="boolean")&&(b=null);var ze=!1;if(b===null)ze=!0;else switch(de){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(b.$$typeof){case c:case r:ze=!0;break;case g:return ze=b._init,k(ze(b._payload),L,K,$,re)}}if(ze)return re=re(b),ze=$===""?"."+qe(b,0):$,te(re)?(K="",ze!=null&&(K=ze.replace(Ue,"$&/")+"/"),k(re,L,K,"",function(qn){return qn})):re!=null&&(F(re)&&(re=Ce(re,K+(re.key==null||b&&b.key===re.key?"":(""+re.key).replace(Ue,"$&/")+"/")+ze)),L.push(re)),1;ze=0;var ut=$===""?".":$+":";if(te(b))for(var Ke=0;Ke<b.length;Ke++)$=b[Ke],de=ut+qe($,Ke),ze+=k($,L,K,de,re);else if(Ke=R(b),typeof Ke=="function")for(b=Ke.call(b),Ke=0;!($=b.next()).done;)$=$.value,de=ut+qe($,Ke++),ze+=k($,L,K,de,re);else if(de==="object"){if(typeof b.then=="function")return k(ke(b),L,K,$,re);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(b,L,K){if(b==null)return b;var $=[],re=0;return k(b,$,"","",function(de){return L.call(K,de,re++)}),$}function ne(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(K){(b._status===0||b._status===-1)&&(b._status=1,b._result=K)},function(K){(b._status===0||b._status===-1)&&(b._status=2,b._result=K)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var Me=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},De={map:Y,forEach:function(b,L,K){Y(b,function(){L.apply(this,arguments)},K)},count:function(b){var L=0;return Y(b,function(){L++}),L},toArray:function(b){return Y(b,function(L){return L})||[]},only:function(b){if(!F(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ce.Activity=S,ce.Children=De,ce.Component=V,ce.Fragment=d,ce.Profiler=m,ce.PureComponent=Q,ce.StrictMode=u,ce.Suspense=N,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,ce.__COMPILER_RUNTIME={__proto__:null,c:function(b){return le.H.useMemoCache(b)}},ce.cache=function(b){return function(){return b.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(b,L,K){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var $=B({},b.props),re=b.key;if(L!=null)for(de in L.key!==void 0&&(re=""+L.key),L)!se.call(L,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&L.ref===void 0||($[de]=L[de]);var de=arguments.length-2;if(de===1)$.children=K;else if(1<de){for(var ze=Array(de),ut=0;ut<de;ut++)ze[ut]=arguments[ut+2];$.children=ze}return pe(b.type,re,$)},ce.createContext=function(b){return b={$$typeof:T,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:x,_context:b},b},ce.createElement=function(b,L,K){var $,re={},de=null;if(L!=null)for($ in L.key!==void 0&&(de=""+L.key),L)se.call(L,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(re[$]=L[$]);var ze=arguments.length-2;if(ze===1)re.children=K;else if(1<ze){for(var ut=Array(ze),Ke=0;Ke<ze;Ke++)ut[Ke]=arguments[Ke+2];re.children=ut}if(b&&b.defaultProps)for($ in ze=b.defaultProps,ze)re[$]===void 0&&(re[$]=ze[$]);return pe(b,de,re)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(b){return{$$typeof:j,render:b}},ce.isValidElement=F,ce.lazy=function(b){return{$$typeof:g,_payload:{_status:-1,_result:b},_init:ne}},ce.memo=function(b,L){return{$$typeof:h,type:b,compare:L===void 0?null:L}},ce.startTransition=function(b){var L=le.T,K={};le.T=K;try{var $=b(),re=le.S;re!==null&&re(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ie,Me)}catch(de){Me(de)}finally{L!==null&&K.types!==null&&(L.types=K.types),le.T=L}},ce.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},ce.use=function(b){return le.H.use(b)},ce.useActionState=function(b,L,K){return le.H.useActionState(b,L,K)},ce.useCallback=function(b,L){return le.H.useCallback(b,L)},ce.useContext=function(b){return le.H.useContext(b)},ce.useDebugValue=function(){},ce.useDeferredValue=function(b,L){return le.H.useDeferredValue(b,L)},ce.useEffect=function(b,L){return le.H.useEffect(b,L)},ce.useEffectEvent=function(b){return le.H.useEffectEvent(b)},ce.useId=function(){return le.H.useId()},ce.useImperativeHandle=function(b,L,K){return le.H.useImperativeHandle(b,L,K)},ce.useInsertionEffect=function(b,L){return le.H.useInsertionEffect(b,L)},ce.useLayoutEffect=function(b,L){return le.H.useLayoutEffect(b,L)},ce.useMemo=function(b,L){return le.H.useMemo(b,L)},ce.useOptimistic=function(b,L){return le.H.useOptimistic(b,L)},ce.useReducer=function(b,L,K){return le.H.useReducer(b,L,K)},ce.useRef=function(b){return le.H.useRef(b)},ce.useState=function(b){return le.H.useState(b)},ce.useSyncExternalStore=function(b,L,K){return le.H.useSyncExternalStore(b,L,K)},ce.useTransition=function(){return le.H.useTransition()},ce.version="19.2.7",ce}var Om;function fu(){return Om||(Om=1,Ho.exports=Sv()),Ho.exports}var H=fu(),cy=H.createContext(void 0),Nv=c=>{const r=H.useContext(cy);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},zv=({client:c,children:r})=>(H.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),n.jsx(cy.Provider,{value:c,children:r})),ry=H.createContext(!1),Tv=()=>H.useContext(ry);ry.Provider;function Ev(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var Av=H.createContext(Ev()),Cv=()=>H.useContext(Av),Mv=(c,r,d)=>{const u=d!=null&&d.state.error&&typeof c.throwOnError=="function"?ey(c.throwOnError,[d.state.error,d]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||u)&&(r.isReset()||(c.retryOnMount=!1))},Ov=c=>{H.useEffect(()=>{c.clearReset()},[c])},_v=({result:c,errorResetBoundary:r,throwOnError:d,query:u,suspense:m})=>c.isError&&!r.isReset()&&!c.isFetching&&u&&(m&&c.data===void 0||ey(d,[c.error,u])),Rv=c=>{if(c.suspense){const d=m=>m==="static"?m:Math.max(m??1e3,1e3),u=c.staleTime;c.staleTime=typeof u=="function"?(...m)=>d(u(...m)):d(u),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},kv=(c,r)=>c.isLoading&&c.isFetching&&!r,Dv=(c,r)=>(c==null?void 0:c.suspense)&&r.isPending,_m=(c,r,d)=>r.fetchOptimistic(c).catch(()=>{d.clearReset()});function wv(c,r,d){var R,O,B,Z;const u=Tv(),m=Cv(),x=Nv(),T=x.defaultQueryOptions(c);(O=(R=x.getDefaultOptions().queries)==null?void 0:R._experimental_beforeQuery)==null||O.call(R,T);const j=x.getQueryCache().get(T.queryHash),N=c.subscribed!==!1;T._optimisticResults=u?"isRestoring":N?"optimistic":void 0,Rv(T),Mv(T,m,j),Ov(m);const h=!x.getQueryCache().get(T.queryHash),[g]=H.useState(()=>new r(x,T)),S=g.getOptimisticResult(T),M=!u&&N;if(H.useSyncExternalStore(H.useCallback(V=>{const q=M?g.subscribe(it.batchCalls(V)):St;return g.updateResult(),q},[g,M]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),H.useEffect(()=>{g.setOptions(T)},[T,g]),Dv(T,S))throw _m(T,g,m);if(_v({result:S,errorResetBoundary:m,throwOnError:T.throwOnError,query:j,suspense:T.suspense}))throw S.error;if((Z=(B=x.getDefaultOptions().queries)==null?void 0:B._experimental_afterQuery)==null||Z.call(B,T,S),T.experimental_prefetchInRender&&!qs.isServer()&&kv(S,u)){const V=h?_m(T,g,m):j==null?void 0:j.promise;V==null||V.catch(St).finally(()=>{g.updateResult()})}return T.notifyOnChangeProps?S:g.trackResult(S)}function Uv(c,r){return wv(c,mv)}var qo={exports:{}},Ds={},Qo={exports:{}},Go={};/**
17
+ */var Mm;function Sv(){if(Mm)return ce;Mm=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),M=Symbol.iterator;function R(b){return b===null||typeof b!="object"?null:(b=M&&b[M]||b["@@iterator"],typeof b=="function"?b:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function V(b,L,K){this.props=b,this.context=L,this.refs=Z,this.updater=K||O}V.prototype.isReactComponent={},V.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,L,"setState")},V.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function q(){}q.prototype=V.prototype;function Q(b,L,K){this.props=b,this.context=L,this.refs=Z,this.updater=K||O}var G=Q.prototype=new q;G.constructor=Q,B(G,V.prototype),G.isPureReactComponent=!0;var te=Array.isArray;function ie(){}var le={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function pe(b,L,K){var $=K.ref;return{$$typeof:c,type:b,key:L,ref:$!==void 0?$:null,props:K}}function Ce(b,L){return pe(b.type,L,b.props)}function F(b){return typeof b=="object"&&b!==null&&b.$$typeof===c}function ge(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(K){return L[K]})}var Ue=/\/+/g;function qe(b,L){return typeof b=="object"&&b!==null&&b.key!=null?ge(""+b.key):L.toString(36)}function De(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(ie,ie):(b.status="pending",b.then(function(L){b.status==="pending"&&(b.status="fulfilled",b.value=L)},function(L){b.status==="pending"&&(b.status="rejected",b.reason=L)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function D(b,L,K,$,re){var de=typeof b;(de==="undefined"||de==="boolean")&&(b=null);var ze=!1;if(b===null)ze=!0;else switch(de){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(b.$$typeof){case c:case r:ze=!0;break;case g:return ze=b._init,D(ze(b._payload),L,K,$,re)}}if(ze)return re=re(b),ze=$===""?"."+qe(b,0):$,te(re)?(K="",ze!=null&&(K=ze.replace(Ue,"$&/")+"/"),D(re,L,K,"",function(qn){return qn})):re!=null&&(F(re)&&(re=Ce(re,K+(re.key==null||b&&b.key===re.key?"":(""+re.key).replace(Ue,"$&/")+"/")+ze)),L.push(re)),1;ze=0;var ut=$===""?".":$+":";if(te(b))for(var Ke=0;Ke<b.length;Ke++)$=b[Ke],de=ut+qe($,Ke),ze+=D($,L,K,de,re);else if(Ke=R(b),typeof Ke=="function")for(b=Ke.call(b),Ke=0;!($=b.next()).done;)$=$.value,de=ut+qe($,Ke++),ze+=D($,L,K,de,re);else if(de==="object"){if(typeof b.then=="function")return D(De(b),L,K,$,re);throw L=String(b),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(b,L,K){if(b==null)return b;var $=[],re=0;return D(b,$,"","",function(de){return L.call(K,de,re++)}),$}function ne(b){if(b._status===-1){var L=b._result;L=L(),L.then(function(K){(b._status===0||b._status===-1)&&(b._status=1,b._result=K)},function(K){(b._status===0||b._status===-1)&&(b._status=2,b._result=K)}),b._status===-1&&(b._status=0,b._result=L)}if(b._status===1)return b._result.default;throw b._result}var Me=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},ke={map:Y,forEach:function(b,L,K){Y(b,function(){L.apply(this,arguments)},K)},count:function(b){var L=0;return Y(b,function(){L++}),L},toArray:function(b){return Y(b,function(L){return L})||[]},only:function(b){if(!F(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ce.Activity=S,ce.Children=ke,ce.Component=V,ce.Fragment=d,ce.Profiler=m,ce.PureComponent=Q,ce.StrictMode=u,ce.Suspense=N,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,ce.__COMPILER_RUNTIME={__proto__:null,c:function(b){return le.H.useMemoCache(b)}},ce.cache=function(b){return function(){return b.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(b,L,K){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var $=B({},b.props),re=b.key;if(L!=null)for(de in L.key!==void 0&&(re=""+L.key),L)!se.call(L,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&L.ref===void 0||($[de]=L[de]);var de=arguments.length-2;if(de===1)$.children=K;else if(1<de){for(var ze=Array(de),ut=0;ut<de;ut++)ze[ut]=arguments[ut+2];$.children=ze}return pe(b.type,re,$)},ce.createContext=function(b){return b={$$typeof:T,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:x,_context:b},b},ce.createElement=function(b,L,K){var $,re={},de=null;if(L!=null)for($ in L.key!==void 0&&(de=""+L.key),L)se.call(L,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(re[$]=L[$]);var ze=arguments.length-2;if(ze===1)re.children=K;else if(1<ze){for(var ut=Array(ze),Ke=0;Ke<ze;Ke++)ut[Ke]=arguments[Ke+2];re.children=ut}if(b&&b.defaultProps)for($ in ze=b.defaultProps,ze)re[$]===void 0&&(re[$]=ze[$]);return pe(b,de,re)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(b){return{$$typeof:j,render:b}},ce.isValidElement=F,ce.lazy=function(b){return{$$typeof:g,_payload:{_status:-1,_result:b},_init:ne}},ce.memo=function(b,L){return{$$typeof:h,type:b,compare:L===void 0?null:L}},ce.startTransition=function(b){var L=le.T,K={};le.T=K;try{var $=b(),re=le.S;re!==null&&re(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ie,Me)}catch(de){Me(de)}finally{L!==null&&K.types!==null&&(L.types=K.types),le.T=L}},ce.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},ce.use=function(b){return le.H.use(b)},ce.useActionState=function(b,L,K){return le.H.useActionState(b,L,K)},ce.useCallback=function(b,L){return le.H.useCallback(b,L)},ce.useContext=function(b){return le.H.useContext(b)},ce.useDebugValue=function(){},ce.useDeferredValue=function(b,L){return le.H.useDeferredValue(b,L)},ce.useEffect=function(b,L){return le.H.useEffect(b,L)},ce.useEffectEvent=function(b){return le.H.useEffectEvent(b)},ce.useId=function(){return le.H.useId()},ce.useImperativeHandle=function(b,L,K){return le.H.useImperativeHandle(b,L,K)},ce.useInsertionEffect=function(b,L){return le.H.useInsertionEffect(b,L)},ce.useLayoutEffect=function(b,L){return le.H.useLayoutEffect(b,L)},ce.useMemo=function(b,L){return le.H.useMemo(b,L)},ce.useOptimistic=function(b,L){return le.H.useOptimistic(b,L)},ce.useReducer=function(b,L,K){return le.H.useReducer(b,L,K)},ce.useRef=function(b){return le.H.useRef(b)},ce.useState=function(b){return le.H.useState(b)},ce.useSyncExternalStore=function(b,L,K){return le.H.useSyncExternalStore(b,L,K)},ce.useTransition=function(){return le.H.useTransition()},ce.version="19.2.7",ce}var Om;function fu(){return Om||(Om=1,Ho.exports=Sv()),Ho.exports}var H=fu(),cy=H.createContext(void 0),Nv=c=>{const r=H.useContext(cy);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},zv=({client:c,children:r})=>(H.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),n.jsx(cy.Provider,{value:c,children:r})),ry=H.createContext(!1),Tv=()=>H.useContext(ry);ry.Provider;function Ev(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var Av=H.createContext(Ev()),Cv=()=>H.useContext(Av),Mv=(c,r,d)=>{const u=d!=null&&d.state.error&&typeof c.throwOnError=="function"?ey(c.throwOnError,[d.state.error,d]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||u)&&(r.isReset()||(c.retryOnMount=!1))},Ov=c=>{H.useEffect(()=>{c.clearReset()},[c])},_v=({result:c,errorResetBoundary:r,throwOnError:d,query:u,suspense:m})=>c.isError&&!r.isReset()&&!c.isFetching&&u&&(m&&c.data===void 0||ey(d,[c.error,u])),Rv=c=>{if(c.suspense){const d=m=>m==="static"?m:Math.max(m??1e3,1e3),u=c.staleTime;c.staleTime=typeof u=="function"?(...m)=>d(u(...m)):d(u),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},Dv=(c,r)=>c.isLoading&&c.isFetching&&!r,kv=(c,r)=>(c==null?void 0:c.suspense)&&r.isPending,_m=(c,r,d)=>r.fetchOptimistic(c).catch(()=>{d.clearReset()});function wv(c,r,d){var R,O,B,Z;const u=Tv(),m=Cv(),x=Nv(),T=x.defaultQueryOptions(c);(O=(R=x.getDefaultOptions().queries)==null?void 0:R._experimental_beforeQuery)==null||O.call(R,T);const j=x.getQueryCache().get(T.queryHash),N=c.subscribed!==!1;T._optimisticResults=u?"isRestoring":N?"optimistic":void 0,Rv(T),Mv(T,m,j),Ov(m);const h=!x.getQueryCache().get(T.queryHash),[g]=H.useState(()=>new r(x,T)),S=g.getOptimisticResult(T),M=!u&&N;if(H.useSyncExternalStore(H.useCallback(V=>{const q=M?g.subscribe(it.batchCalls(V)):St;return g.updateResult(),q},[g,M]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),H.useEffect(()=>{g.setOptions(T)},[T,g]),kv(T,S))throw _m(T,g,m);if(_v({result:S,errorResetBoundary:m,throwOnError:T.throwOnError,query:j,suspense:T.suspense}))throw S.error;if((Z=(B=x.getDefaultOptions().queries)==null?void 0:B._experimental_afterQuery)==null||Z.call(B,T,S),T.experimental_prefetchInRender&&!qs.isServer()&&Dv(S,u)){const V=h?_m(T,g,m):j==null?void 0:j.promise;V==null||V.catch(St).finally(()=>{g.updateResult()})}return T.notifyOnChangeProps?S:g.trackResult(S)}function Uv(c,r){return wv(c,mv)}var qo={exports:{}},ks={},Qo={exports:{}},Go={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Rm;function Lv(){return Rm||(Rm=1,(function(c){function r(k,Y){var ne=k.length;k.push(Y);e:for(;0<ne;){var Me=ne-1>>>1,De=k[Me];if(0<m(De,Y))k[Me]=Y,k[ne]=De,ne=Me;else break e}}function d(k){return k.length===0?null:k[0]}function u(k){if(k.length===0)return null;var Y=k[0],ne=k.pop();if(ne!==Y){k[0]=ne;e:for(var Me=0,De=k.length,b=De>>>1;Me<b;){var L=2*(Me+1)-1,K=k[L],$=L+1,re=k[$];if(0>m(K,ne))$<De&&0>m(re,K)?(k[Me]=re,k[$]=ne,Me=$):(k[Me]=K,k[L]=ne,Me=L);else if($<De&&0>m(re,ne))k[Me]=re,k[$]=ne,Me=$;else break e}}return Y}function m(k,Y){var ne=k.sortIndex-Y.sortIndex;return ne!==0?ne:k.id-Y.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;c.unstable_now=function(){return x.now()}}else{var T=Date,j=T.now();c.unstable_now=function(){return T.now()-j}}var N=[],h=[],g=1,S=null,M=3,R=!1,O=!1,B=!1,Z=!1,V=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function G(k){for(var Y=d(h);Y!==null;){if(Y.callback===null)u(h);else if(Y.startTime<=k)u(h),Y.sortIndex=Y.expirationTime,r(N,Y);else break;Y=d(h)}}function te(k){if(B=!1,G(k),!O)if(d(N)!==null)O=!0,ie||(ie=!0,ge());else{var Y=d(h);Y!==null&&ke(te,Y.startTime-k)}}var ie=!1,le=-1,se=5,pe=-1;function Ce(){return Z?!0:!(c.unstable_now()-pe<se)}function F(){if(Z=!1,ie){var k=c.unstable_now();pe=k;var Y=!0;try{e:{O=!1,B&&(B=!1,q(le),le=-1),R=!0;var ne=M;try{t:{for(G(k),S=d(N);S!==null&&!(S.expirationTime>k&&Ce());){var Me=S.callback;if(typeof Me=="function"){S.callback=null,M=S.priorityLevel;var De=Me(S.expirationTime<=k);if(k=c.unstable_now(),typeof De=="function"){S.callback=De,G(k),Y=!0;break t}S===d(N)&&u(N),G(k)}else u(N);S=d(N)}if(S!==null)Y=!0;else{var b=d(h);b!==null&&ke(te,b.startTime-k),Y=!1}}break e}finally{S=null,M=ne,R=!1}Y=void 0}}finally{Y?ge():ie=!1}}}var ge;if(typeof Q=="function")ge=function(){Q(F)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,qe=Ue.port2;Ue.port1.onmessage=F,ge=function(){qe.postMessage(null)}}else ge=function(){V(F,0)};function ke(k,Y){le=V(function(){k(c.unstable_now())},Y)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(k){k.callback=null},c.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<k?Math.floor(1e3/k):5},c.unstable_getCurrentPriorityLevel=function(){return M},c.unstable_next=function(k){switch(M){case 1:case 2:case 3:var Y=3;break;default:Y=M}var ne=M;M=Y;try{return k()}finally{M=ne}},c.unstable_requestPaint=function(){Z=!0},c.unstable_runWithPriority=function(k,Y){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ne=M;M=k;try{return Y()}finally{M=ne}},c.unstable_scheduleCallback=function(k,Y,ne){var Me=c.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Me+ne:Me):ne=Me,k){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=ne+De,k={id:g++,callback:Y,priorityLevel:k,startTime:ne,expirationTime:De,sortIndex:-1},ne>Me?(k.sortIndex=ne,r(h,k),d(N)===null&&k===d(h)&&(B?(q(le),le=-1):B=!0,ke(te,ne-Me))):(k.sortIndex=De,r(N,k),O||R||(O=!0,ie||(ie=!0,ge()))),k},c.unstable_shouldYield=Ce,c.unstable_wrapCallback=function(k){var Y=M;return function(){var ne=M;M=Y;try{return k.apply(this,arguments)}finally{M=ne}}}})(Go)),Go}var km;function Bv(){return km||(km=1,Qo.exports=Lv()),Qo.exports}var Yo={exports:{}},ct={};/**
25
+ */var Rm;function Lv(){return Rm||(Rm=1,(function(c){function r(D,Y){var ne=D.length;D.push(Y);e:for(;0<ne;){var Me=ne-1>>>1,ke=D[Me];if(0<m(ke,Y))D[Me]=Y,D[ne]=ke,ne=Me;else break e}}function d(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var Y=D[0],ne=D.pop();if(ne!==Y){D[0]=ne;e:for(var Me=0,ke=D.length,b=ke>>>1;Me<b;){var L=2*(Me+1)-1,K=D[L],$=L+1,re=D[$];if(0>m(K,ne))$<ke&&0>m(re,K)?(D[Me]=re,D[$]=ne,Me=$):(D[Me]=K,D[L]=ne,Me=L);else if($<ke&&0>m(re,ne))D[Me]=re,D[$]=ne,Me=$;else break e}}return Y}function m(D,Y){var ne=D.sortIndex-Y.sortIndex;return ne!==0?ne:D.id-Y.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;c.unstable_now=function(){return x.now()}}else{var T=Date,j=T.now();c.unstable_now=function(){return T.now()-j}}var N=[],h=[],g=1,S=null,M=3,R=!1,O=!1,B=!1,Z=!1,V=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function G(D){for(var Y=d(h);Y!==null;){if(Y.callback===null)u(h);else if(Y.startTime<=D)u(h),Y.sortIndex=Y.expirationTime,r(N,Y);else break;Y=d(h)}}function te(D){if(B=!1,G(D),!O)if(d(N)!==null)O=!0,ie||(ie=!0,ge());else{var Y=d(h);Y!==null&&De(te,Y.startTime-D)}}var ie=!1,le=-1,se=5,pe=-1;function Ce(){return Z?!0:!(c.unstable_now()-pe<se)}function F(){if(Z=!1,ie){var D=c.unstable_now();pe=D;var Y=!0;try{e:{O=!1,B&&(B=!1,q(le),le=-1),R=!0;var ne=M;try{t:{for(G(D),S=d(N);S!==null&&!(S.expirationTime>D&&Ce());){var Me=S.callback;if(typeof Me=="function"){S.callback=null,M=S.priorityLevel;var ke=Me(S.expirationTime<=D);if(D=c.unstable_now(),typeof ke=="function"){S.callback=ke,G(D),Y=!0;break t}S===d(N)&&u(N),G(D)}else u(N);S=d(N)}if(S!==null)Y=!0;else{var b=d(h);b!==null&&De(te,b.startTime-D),Y=!1}}break e}finally{S=null,M=ne,R=!1}Y=void 0}}finally{Y?ge():ie=!1}}}var ge;if(typeof Q=="function")ge=function(){Q(F)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,qe=Ue.port2;Ue.port1.onmessage=F,ge=function(){qe.postMessage(null)}}else ge=function(){V(F,0)};function De(D,Y){le=V(function(){D(c.unstable_now())},Y)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(D){D.callback=null},c.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"):se=0<D?Math.floor(1e3/D):5},c.unstable_getCurrentPriorityLevel=function(){return M},c.unstable_next=function(D){switch(M){case 1:case 2:case 3:var Y=3;break;default:Y=M}var ne=M;M=Y;try{return D()}finally{M=ne}},c.unstable_requestPaint=function(){Z=!0},c.unstable_runWithPriority=function(D,Y){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ne=M;M=D;try{return Y()}finally{M=ne}},c.unstable_scheduleCallback=function(D,Y,ne){var Me=c.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Me+ne:Me):ne=Me,D){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=ne+ke,D={id:g++,callback:Y,priorityLevel:D,startTime:ne,expirationTime:ke,sortIndex:-1},ne>Me?(D.sortIndex=ne,r(h,D),d(N)===null&&D===d(h)&&(B?(q(le),le=-1):B=!0,De(te,ne-Me))):(D.sortIndex=ke,r(N,D),O||R||(O=!0,ie||(ie=!0,ge()))),D},c.unstable_shouldYield=Ce,c.unstable_wrapCallback=function(D){var Y=M;return function(){var ne=M;M=Y;try{return D.apply(this,arguments)}finally{M=ne}}}})(Go)),Go}var Dm;function Bv(){return Dm||(Dm=1,Qo.exports=Lv()),Qo.exports}var Yo={exports:{}},ct={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Dm;function Hv(){if(Dm)return ct;Dm=1;var c=fu();function r(N){var h="https://react.dev/errors/"+N;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+N+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var u={d:{f:d,r:function(){throw Error(r(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function x(N,h,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:S==null?null:""+S,children:N,containerInfo:h,implementation:g}}var T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(N,h){if(N==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ct.createPortal=function(N,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return x(N,h,null,g)},ct.flushSync=function(N){var h=T.T,g=u.p;try{if(T.T=null,u.p=2,N)return N()}finally{T.T=h,u.p=g,u.d.f()}},ct.preconnect=function(N,h){typeof N=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,u.d.C(N,h))},ct.prefetchDNS=function(N){typeof N=="string"&&u.d.D(N)},ct.preinit=function(N,h){if(typeof N=="string"&&h&&typeof h.as=="string"){var g=h.as,S=j(g,h.crossOrigin),M=typeof h.integrity=="string"?h.integrity:void 0,R=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?u.d.S(N,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:M,fetchPriority:R}):g==="script"&&u.d.X(N,{crossOrigin:S,integrity:M,fetchPriority:R,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ct.preinitModule=function(N,h){if(typeof N=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=j(h.as,h.crossOrigin);u.d.M(N,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&u.d.M(N)},ct.preload=function(N,h){if(typeof N=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,S=j(g,h.crossOrigin);u.d.L(N,g,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ct.preloadModule=function(N,h){if(typeof N=="string")if(h){var g=j(h.as,h.crossOrigin);u.d.m(N,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(N)},ct.requestFormReset=function(N){u.d.r(N)},ct.unstable_batchedUpdates=function(N,h){return N(h)},ct.useFormState=function(N,h,g){return T.H.useFormState(N,h,g)},ct.useFormStatus=function(){return T.H.useHostTransitionStatus()},ct.version="19.2.7",ct}var wm;function qv(){if(wm)return Yo.exports;wm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),Yo.exports=Hv(),Yo.exports}/**
33
+ */var km;function Hv(){if(km)return ct;km=1;var c=fu();function r(N){var h="https://react.dev/errors/"+N;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+N+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var u={d:{f:d,r:function(){throw Error(r(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function x(N,h,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:S==null?null:""+S,children:N,containerInfo:h,implementation:g}}var T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(N,h){if(N==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ct.createPortal=function(N,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return x(N,h,null,g)},ct.flushSync=function(N){var h=T.T,g=u.p;try{if(T.T=null,u.p=2,N)return N()}finally{T.T=h,u.p=g,u.d.f()}},ct.preconnect=function(N,h){typeof N=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,u.d.C(N,h))},ct.prefetchDNS=function(N){typeof N=="string"&&u.d.D(N)},ct.preinit=function(N,h){if(typeof N=="string"&&h&&typeof h.as=="string"){var g=h.as,S=j(g,h.crossOrigin),M=typeof h.integrity=="string"?h.integrity:void 0,R=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?u.d.S(N,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:M,fetchPriority:R}):g==="script"&&u.d.X(N,{crossOrigin:S,integrity:M,fetchPriority:R,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ct.preinitModule=function(N,h){if(typeof N=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=j(h.as,h.crossOrigin);u.d.M(N,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&u.d.M(N)},ct.preload=function(N,h){if(typeof N=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,S=j(g,h.crossOrigin);u.d.L(N,g,{crossOrigin:S,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ct.preloadModule=function(N,h){if(typeof N=="string")if(h){var g=j(h.as,h.crossOrigin);u.d.m(N,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(N)},ct.requestFormReset=function(N){u.d.r(N)},ct.unstable_batchedUpdates=function(N,h){return N(h)},ct.useFormState=function(N,h,g){return T.H.useFormState(N,h,g)},ct.useFormStatus=function(){return T.H.useHostTransitionStatus()},ct.version="19.2.7",ct}var wm;function qv(){if(wm)return Yo.exports;wm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),Yo.exports=Hv(),Yo.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@ var pm=c=>{throw TypeError(c)};var Lo=(c,r,d)=>r.has(c)||pm("Cannot "+d);var p=(
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Um;function Qv(){if(Um)return Ds;Um=1;var c=Bv(),r=fu(),d=qv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function T(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 j(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 N(e){if(x(e)!==e)throw Error(u(188))}function h(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var i=s.alternate;if(i===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===a)return N(s),e;if(i===l)return N(s),t;i=i.sibling}throw Error(u(188))}if(a.return!==l.return)a=s,l=i;else{for(var o=!1,f=s.child;f;){if(f===a){o=!0,a=s,l=i;break}if(f===l){o=!0,l=s,a=i;break}f=f.sibling}if(!o){for(f=i.child;f;){if(f===a){o=!0,a=i,l=s;break}if(f===l){o=!0,l=i,a=s;break}f=f.sibling}if(!o)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,M=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ge(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function qe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case V:return"Profiler";case Z:return"StrictMode";case te:return"Suspense";case ie:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case Q:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:qe(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return qe(e(t))}catch{}}return null}var ke=Array.isArray,k=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Me=[],De=-1;function b(e){return{current:e}}function L(e){0>De||(e.current=Me[De],Me[De]=null,De--)}function K(e,t){De++,Me[De]=e.current,e.current=t}var $=b(null),re=b(null),de=b(null),ze=b(null);function ut(e,t){switch(K(de,t),K(re,e),K($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qh(t),e=Qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L($),K($,e)}function Ke(){L($),L(re),L(de)}function qn(e){e.memoizedState!==null&&K(ze,e);var t=$.current,a=Qh(t,e.type);t!==a&&(K(re,e),K($,a))}function Zs(e){re.current===e&&(L($),L(re)),ze.current===e&&(L(ze),Ms._currentValue=ne)}var gc,yu;function rl(e){if(gc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gc=t&&t[1]||"",yu=-1<a.stack.indexOf(`
41
+ */var Um;function Qv(){if(Um)return ks;Um=1;var c=Bv(),r=fu(),d=qv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function T(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 j(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 N(e){if(x(e)!==e)throw Error(u(188))}function h(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var i=s.alternate;if(i===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===a)return N(s),e;if(i===l)return N(s),t;i=i.sibling}throw Error(u(188))}if(a.return!==l.return)a=s,l=i;else{for(var o=!1,f=s.child;f;){if(f===a){o=!0,a=s,l=i;break}if(f===l){o=!0,l=s,a=i;break}f=f.sibling}if(!o){for(f=i.child;f;){if(f===a){o=!0,a=i,l=s;break}if(f===l){o=!0,l=i,a=s;break}f=f.sibling}if(!o)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,M=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ge(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function qe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case V:return"Profiler";case Z:return"StrictMode";case te:return"Suspense";case ie:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case Q:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:qe(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return qe(e(t))}catch{}}return null}var De=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Me=[],ke=-1;function b(e){return{current:e}}function L(e){0>ke||(e.current=Me[ke],Me[ke]=null,ke--)}function K(e,t){ke++,Me[ke]=e.current,e.current=t}var $=b(null),re=b(null),de=b(null),ze=b(null);function ut(e,t){switch(K(de,t),K(re,e),K($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qh(t),e=Qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L($),K($,e)}function Ke(){L($),L(re),L(de)}function qn(e){e.memoizedState!==null&&K(ze,e);var t=$.current,a=Qh(t,e.type);t!==a&&(K(re,e),K($,a))}function Zs(e){re.current===e&&(L($),L(re)),ze.current===e&&(L(ze),Ms._currentValue=ne)}var gc,yu;function rl(e){if(gc===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gc=t&&t[1]||"",yu=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
43
  `+gc+e+yu}var xc=!1;function bc(e,t){if(!e||xc)return"";xc=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(_){var C=_}Reflect.construct(e,[],U)}else{try{U.call()}catch(_){C=_}e.call(U.prototype)}}else{try{throw Error()}catch(_){C=_}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(_){if(_&&C&&typeof _.stack=="string")return[_.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),o=i[0],f=i[1];if(o&&f){var y=o.split(`
44
44
  `),A=f.split(`
45
- `);for(s=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(l===y.length||s===A.length)for(l=y.length-1,s=A.length-1;1<=l&&0<=s&&y[l]!==A[s];)s--;for(;1<=l&&0<=s;l--,s--)if(y[l]!==A[s]){if(l!==1||s!==1)do if(l--,s--,0>s||y[l]!==A[s]){var D=`
46
- `+y[l].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=l&&0<=s);break}}}finally{xc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?rl(a):""}function Ty(e,t){switch(e.tag){case 26:case 27:case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return e.child!==t&&t!==null?rl("Suspense Fallback"):rl("Suspense");case 19:return rl("SuspenseList");case 0:case 15:return bc(e.type,!1);case 11:return bc(e.type.render,!1);case 1:return bc(e.type,!0);case 31:return rl("Activity");default:return""}}function vu(e){try{var t="",a=null;do t+=Ty(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
45
+ `);for(s=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(l===y.length||s===A.length)for(l=y.length-1,s=A.length-1;1<=l&&0<=s&&y[l]!==A[s];)s--;for(;1<=l&&0<=s;l--,s--)if(y[l]!==A[s]){if(l!==1||s!==1)do if(l--,s--,0>s||y[l]!==A[s]){var k=`
46
+ `+y[l].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=l&&0<=s);break}}}finally{xc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?rl(a):""}function Ty(e,t){switch(e.tag){case 26:case 27:case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return e.child!==t&&t!==null?rl("Suspense Fallback"):rl("Suspense");case 19:return rl("SuspenseList");case 0:case 15:return bc(e.type,!1);case 11:return bc(e.type.render,!1);case 1:return bc(e.type,!0);case 31:return rl("Activity");default:return""}}function vu(e){try{var t="",a=null;do t+=Ty(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
47
47
  Error generating stack: `+l.message+`
48
- `+l.stack}}var jc=Object.prototype.hasOwnProperty,Sc=c.unstable_scheduleCallback,Nc=c.unstable_cancelCallback,Ey=c.unstable_shouldYield,Ay=c.unstable_requestPaint,Nt=c.unstable_now,Cy=c.unstable_getCurrentPriorityLevel,pu=c.unstable_ImmediatePriority,gu=c.unstable_UserBlockingPriority,Js=c.unstable_NormalPriority,My=c.unstable_LowPriority,xu=c.unstable_IdlePriority,Oy=c.log,_y=c.unstable_setDisableYieldValue,Qn=null,zt=null;function Ta(e){if(typeof Oy=="function"&&_y(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Qn,e)}catch{}}var Tt=Math.clz32?Math.clz32:Dy,Ry=Math.log,ky=Math.LN2;function Dy(e){return e>>>=0,e===0?32:31-(Ry(e)/ky|0)|0}var Fs=256,$s=262144,Ws=4194304;function ol(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 Is(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var f=l&134217727;return f!==0?(l=f&~i,l!==0?s=ol(l):(o&=f,o!==0?s=ol(o):a||(a=f&~e,a!==0&&(s=ol(a))))):(f=l&~i,f!==0?s=ol(f):o!==0?s=ol(o):a||(a=l&~e,a!==0&&(s=ol(a)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:s}function Gn(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 bu(){var e=Ws;return Ws<<=1,(Ws&62914560)===0&&(Ws=4194304),e}function zc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Uy(e,t,a,l,s,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var f=e.entanglements,y=e.expirationTimes,A=e.hiddenUpdates;for(a=o&~a;0<a;){var D=31-Tt(a),U=1<<D;f[D]=0,y[D]=-1;var C=A[D];if(C!==null)for(A[D]=null,D=0;D<C.length;D++){var _=C[D];_!==null&&(_.lane&=-536870913)}a&=~U}l!==0&&ju(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function ju(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Su(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Tt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function Nu(e,t){var a=t&-t;return a=(a&42)!==0?1:Tc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Tc(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 Ec(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zu(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:um(e.type))}function Tu(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Ea=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ea,mt="__reactProps$"+Ea,Hl="__reactContainer$"+Ea,Ac="__reactEvents$"+Ea,Ly="__reactListeners$"+Ea,By="__reactHandles$"+Ea,Eu="__reactResources$"+Ea,Kn="__reactMarker$"+Ea;function Cc(e){delete e[tt],delete e[mt],delete e[Ac],delete e[Ly],delete e[By]}function ql(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Hl]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Jh(e);e!==null;){if(a=e[tt])return a;e=Jh(e)}return t}e=a,a=e.parentNode}return null}function Ql(e){if(e=e[tt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Gl(e){var t=e[Eu];return t||(t=e[Eu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Kn]=!0}var Au=new Set,Cu={};function ul(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Cu[e]=t,e=0;e<t.length;e++)Au.add(t[e])}var Hy=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]*$"),Mu={},Ou={};function qy(e){return jc.call(Ou,e)?!0:jc.call(Mu,e)?!1:Hy.test(e)?Ou[e]=!0:(Mu[e]=!0,!1)}function Ps(e,t,a){if(qy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ei(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _u(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qy(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=_u(e)?"checked":"value";e._valueTracker=Qy(e,t,""+e[t])}}function Ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=_u(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ti(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 Gy=/[\n"\\]/g;function Ut(e){return e.replace(Gy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oc(e,t,a,l,s,i,o,f){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?_c(e,o,wt(t)):a!=null?_c(e,o,wt(a)):l!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+wt(f):e.removeAttribute("name")}function ku(e,t,a,l,s,i,o,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Mc(e);return}a=a!=null?""+wt(a):"",t=t!=null?""+wt(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=f?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Mc(e)}function _c(e,t,a){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kl(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+wt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Du(e,t,a){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wt(a):""}function wu(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(u(92));if(ke(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=wt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Mc(e)}function Xl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Yy=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 Uu(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Yy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Lu(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&Uu(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&Uu(e,i,t[i])}function Rc(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 Ky=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"]]),Xy=/^[\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 ai(e){return Xy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var kc=null;function Dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Zl=null;function Bu(e){var t=Ql(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[mt]||null;if(!s)throw Error(u(90));Oc(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ru(l)}break e;case"textarea":Du(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kl(e,!!a.multiple,t,!1)}}}var wc=!1;function Hu(e,t,a){if(wc)return e(t,a);wc=!0;try{var l=e(t);return l}finally{if(wc=!1,(Vl!==null||Zl!==null)&&(Yi(),Vl&&(t=Vl,e=Zl,Zl=Vl=null,Bu(t),e)))for(t=0;t<e.length;t++)Bu(e[t])}}function Vn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[mt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(sa)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Uc=!1}var Aa=null,Lc=null,li=null;function qu(){if(li)return li;var e,t=Lc,a=t.length,l,s="value"in Aa?Aa.value:Aa.textContent,i=s.length;for(e=0;e<a&&t[e]===s[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===s[i-l];l++);return li=s.slice(e,1<l?1-l:void 0)}function ni(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 si(){return!0}function Qu(){return!1}function yt(e){function t(a,l,s,i,o){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?si:Qu,this.isPropagationStopped=Qu,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=yt(dl),Jn=S({},dl,{view:0,detail:0}),Vy=yt(Jn),Bc,Hc,Fn,ci=S({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,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!==Fn&&(Fn&&e.type==="mousemove"?(Bc=e.screenX-Fn.screenX,Hc=e.screenY-Fn.screenY):Hc=Bc=0,Fn=e),Bc)},movementY:function(e){return"movementY"in e?e.movementY:Hc}}),Gu=yt(ci),Zy=S({},ci,{dataTransfer:0}),Jy=yt(Zy),Fy=S({},Jn,{relatedTarget:0}),qc=yt(Fy),$y=S({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),Wy=yt($y),Iy=S({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=yt(Iy),e0=S({},dl,{data:0}),Yu=yt(e0),t0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a0={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"},l0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=l0[e])?!!t[e]:!1}function Qc(){return n0}var s0=S({},Jn,{key:function(e){if(e.key){var t=t0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),i0=yt(s0),c0=S({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ku=yt(c0),r0=S({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),o0=yt(r0),u0=S({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),d0=yt(u0),f0=S({},ci,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),h0=yt(f0),m0=S({},dl,{newState:0,oldState:0}),y0=yt(m0),v0=[9,13,27,32],Gc=sa&&"CompositionEvent"in window,$n=null;sa&&"documentMode"in document&&($n=document.documentMode);var p0=sa&&"TextEvent"in window&&!$n,Xu=sa&&(!Gc||$n&&8<$n&&11>=$n),Vu=" ",Zu=!1;function Ju(e,t){switch(e){case"keyup":return v0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function g0(e,t){switch(e){case"compositionend":return Fu(t);case"keypress":return t.which!==32?null:(Zu=!0,Vu);case"textInput":return e=t.data,e===Vu&&Zu?null:e;default:return null}}function x0(e,t){if(Jl)return e==="compositionend"||!Gc&&Ju(e,t)?(e=qu(),li=Lc=Aa=null,Jl=!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 Xu&&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 $u(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b0[e.type]:t==="textarea"}function Wu(e,t,a,l){Vl?Zl?Zl.push(l):Zl=[l]:Vl=l,t=$i(t,"onChange"),0<t.length&&(a=new ii("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Wn=null,In=null;function j0(e){Dh(e,0)}function ri(e){var t=Xn(e);if(Ru(t))return e}function Iu(e,t){if(e==="change")return t}var Pu=!1;if(sa){var Yc;if(sa){var Kc="oninput"in document;if(!Kc){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),Kc=typeof ed.oninput=="function"}Yc=Kc}else Yc=!1;Pu=Yc&&(!document.documentMode||9<document.documentMode)}function td(){Wn&&(Wn.detachEvent("onpropertychange",ad),In=Wn=null)}function ad(e){if(e.propertyName==="value"&&ri(In)){var t=[];Wu(t,In,e,Dc(e)),Hu(j0,t)}}function S0(e,t,a){e==="focusin"?(td(),Wn=t,In=a,Wn.attachEvent("onpropertychange",ad)):e==="focusout"&&td()}function N0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ri(In)}function z0(e,t){if(e==="click")return ri(t)}function T0(e,t){if(e==="input"||e==="change")return ri(t)}function E0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:E0;function Pn(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!jc.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function ld(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nd(e,t){var a=ld(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ld(a)}}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 id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ti(e.document)}return t}function Xc(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 A0=sa&&"documentMode"in document&&11>=document.documentMode,Fl=null,Vc=null,es=null,Zc=!1;function cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zc||Fl==null||Fl!==ti(l)||(l=Fl,"selectionStart"in l&&Xc(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}),es&&Pn(es,l)||(es=l,l=$i(Vc,"onSelect"),0<l.length&&(t=new ii("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Fl)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var $l={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},Jc={},rd={};sa&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function hl(e){if(Jc[e])return Jc[e];if(!$l[e])return e;var t=$l[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in rd)return Jc[e]=t[a];return e}var od=hl("animationend"),ud=hl("animationiteration"),dd=hl("animationstart"),C0=hl("transitionrun"),M0=hl("transitionstart"),O0=hl("transitioncancel"),fd=hl("transitionend"),hd=new Map,Fc="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(" ");Fc.push("scrollEnd");function Vt(e,t){hd.set(e,t),ul(t,[e])}var oi=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)},Lt=[],Wl=0,$c=0;function ui(){for(var e=Wl,t=$c=Wl=0;t<e;){var a=Lt[t];Lt[t++]=null;var l=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var i=Lt[t];if(Lt[t++]=null,l!==null&&s!==null){var o=l.pending;o===null?s.next=s:(s.next=o.next,o.next=s),l.pending=s}i!==0&&md(a,s,i)}}function di(e,t,a,l){Lt[Wl++]=e,Lt[Wl++]=t,Lt[Wl++]=a,Lt[Wl++]=l,$c|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Wc(e,t,a,l){return di(e,t,a,l),fi(e)}function ml(e,t){return di(e,null,null,t),fi(e)}function md(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-Tt(a),e=i.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),i):null}function fi(e){if(50<Ss)throw Ss=0,io=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function _0(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new _0(e,t,a,l)}function Ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function yd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,a,l,s,i){var o=0;if(l=e,typeof e=="function")Ic(e)&&(o=1);else if(typeof e=="string")o=U1(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=At(31,a,t,s),e.elementType=pe,e.lanes=i,e;case B:return yl(a.children,s,i,t);case Z:o=8,s|=24;break;case V:return e=At(12,a,t,s|2),e.elementType=V,e.lanes=i,e;case te:return e=At(13,a,t,s),e.elementType=te,e.lanes=i,e;case ie:return e=At(19,a,t,s),e.elementType=ie,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:o=10;break e;case q:o=9;break e;case G:o=11;break e;case le:o=14;break e;case se:o=16,l=null;break e}o=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=At(o,a,t,s),t.elementType=e,t.type=l,t.lanes=i,t}function yl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function Pc(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function vd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function er(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=pd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vu(t)},pd.set(e,t),t)}return{value:e,source:t,stack:vu(t)}}var Pl=[],en=0,mi=null,ts=0,Ht=[],qt=0,Ca=null,$t=1,Wt="";function ca(e,t){Pl[en++]=ts,Pl[en++]=mi,mi=e,ts=t}function gd(e,t,a){Ht[qt++]=$t,Ht[qt++]=Wt,Ht[qt++]=Ca,Ca=e;var l=$t;e=Wt;var s=32-Tt(l)-1;l&=~(1<<s),a+=1;var i=32-Tt(t)+s;if(30<i){var o=s-s%5;i=(l&(1<<o)-1).toString(32),l>>=o,s-=o,$t=1<<32-Tt(t)+s|a<<s|l,Wt=i+e}else $t=1<<i|a<<s|l,Wt=e}function tr(e){e.return!==null&&(ca(e,1),gd(e,1,0))}function ar(e){for(;e===mi;)mi=Pl[--en],Pl[en]=null,ts=Pl[--en],Pl[en]=null;for(;e===Ca;)Ca=Ht[--qt],Ht[qt]=null,Wt=Ht[--qt],Ht[qt]=null,$t=Ht[--qt],Ht[qt]=null}function xd(e,t){Ht[qt++]=$t,Ht[qt++]=Wt,Ht[qt++]=Ca,$t=t.id,Wt=t.overflow,Ca=e}var at=null,Le=null,xe=!1,Ma=null,Qt=!1,lr=Error(u(519));function Oa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw as(Bt(t,e)),lr}function bd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[mt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<zs.length;a++)he(zs[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),ku(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),wu(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Bh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Oa(e,!0)}function jd(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:at=at.return}}function tn(e){if(e!==at)return!1;if(!xe)return jd(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||So(e.type,e.memoizedProps)),a=!a),a&&Le&&Oa(e),jd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Zh(e)}else t===27?(t=Le,Ka(e.type)?(e=Ao,Ao=null,Le=e):Le=t):Le=at?Yt(e.stateNode.nextSibling):null;return!0}function vl(){Le=at=null,xe=!1}function nr(){var e=Ma;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Ma=null),e}function as(e){Ma===null?Ma=[e]:Ma.push(e)}var sr=b(null),pl=null,ra=null;function _a(e,t,a){K(sr,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=sr.current,L(sr)}function ir(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function cr(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var o=s.child;i=i.firstContext;e:for(;i!==null;){var f=i;i=s;for(var y=0;y<t.length;y++)if(f.context===t[y]){i.lanes|=a,f=i.alternate,f!==null&&(f.lanes|=a),ir(i.return,a,e),l||(o=null);break e}i=f.next}}else if(s.tag===18){if(o=s.return,o===null)throw Error(u(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),ir(o,a,e),o=null}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}}function an(e,t,a,l){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var o=s.alternate;if(o===null)throw Error(u(387));if(o=o.memoizedProps,o!==null){var f=s.type;Et(s.pendingProps.value,o.value)||(e!==null?e.push(f):e=[f])}}else if(s===ze.current){if(o=s.alternate,o===null)throw Error(u(387));o.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ms):e=[Ms])}s=s.return}e!==null&&cr(t,e,a,l),t.flags|=262144}function yi(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Sd(pl,e)}function vi(e,t){return pl===null&&gl(e),Sd(e,t)}function Sd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ra===null){if(e===null)throw Error(u(308));ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ra=ra.next=t;return a}var R0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},k0=c.unstable_scheduleCallback,D0=c.unstable_NormalPriority,Ze={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rr(){return{controller:new R0,data:new Map,refCount:0}}function ls(e){e.refCount--,e.refCount===0&&k0(D0,function(){e.controller.abort()})}var ns=null,or=0,ln=0,nn=null;function w0(e,t){if(ns===null){var a=ns=[];or=0,ln=ho(),nn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return or++,t.then(Nd,Nd),t}function Nd(){if(--or===0&&ns!==null){nn!==null&&(nn.status="fulfilled");var e=ns;ns=null,ln=0,nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function U0(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var zd=k.S;k.S=function(e,t){rh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w0(e,t),zd!==null&&zd(e,t)};var xl=b(null);function ur(){var e=xl.current;return e!==null?e:we.pooledCache}function pi(e,t){t===null?K(xl,xl.current):K(xl,t.pool)}function Td(){var e=ur();return e===null?null:{parent:Ze._currentValue,pool:e}}var sn=Error(u(460)),dr=Error(u(474)),gi=Error(u(542)),xi={then:function(){}};function Ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ad(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Md(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=we,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Md(e),e}throw jl=t,sn}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(jl=a,sn):a}}var jl=null;function Cd(){if(jl===null)throw Error(u(459));var e=jl;return jl=null,e}function Md(e){if(e===sn||e===gi)throw Error(u(483))}var cn=null,ss=0;function bi(e){var t=ss;return ss+=1,cn===null&&(cn=[]),Ad(cn,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===M?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Od(e){function t(z,v){if(e){var E=z.deletions;E===null?(z.deletions=[v],z.flags|=16):E.push(v)}}function a(z,v){if(!e)return null;for(;v!==null;)t(z,v),v=v.sibling;return null}function l(z){for(var v=new Map;z!==null;)z.key!==null?v.set(z.key,z):v.set(z.index,z),z=z.sibling;return v}function s(z,v){return z=ia(z,v),z.index=0,z.sibling=null,z}function i(z,v,E){return z.index=E,e?(E=z.alternate,E!==null?(E=E.index,E<v?(z.flags|=67108866,v):E):(z.flags|=67108866,v)):(z.flags|=1048576,v)}function o(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function f(z,v,E,w){return v===null||v.tag!==6?(v=Pc(E,z.mode,w),v.return=z,v):(v=s(v,E),v.return=z,v)}function y(z,v,E,w){var P=E.type;return P===B?D(z,v,E.props.children,w,E.key):v!==null&&(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===se&&bl(P)===v.type)?(v=s(v,E.props),is(v,E),v.return=z,v):(v=hi(E.type,E.key,E.props,null,z.mode,w),is(v,E),v.return=z,v)}function A(z,v,E,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=er(E,z.mode,w),v.return=z,v):(v=s(v,E.children||[]),v.return=z,v)}function D(z,v,E,w,P){return v===null||v.tag!==7?(v=yl(E,z.mode,w,P),v.return=z,v):(v=s(v,E),v.return=z,v)}function U(z,v,E){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Pc(""+v,z.mode,E),v.return=z,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case R:return E=hi(v.type,v.key,v.props,null,z.mode,E),is(E,v),E.return=z,E;case O:return v=er(v,z.mode,E),v.return=z,v;case se:return v=bl(v),U(z,v,E)}if(ke(v)||ge(v))return v=yl(v,z.mode,E,null),v.return=z,v;if(typeof v.then=="function")return U(z,bi(v),E);if(v.$$typeof===Q)return U(z,vi(z,v),E);ji(z,v)}return null}function C(z,v,E,w){var P=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return P!==null?null:f(z,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return E.key===P?y(z,v,E,w):null;case O:return E.key===P?A(z,v,E,w):null;case se:return E=bl(E),C(z,v,E,w)}if(ke(E)||ge(E))return P!==null?null:D(z,v,E,w,null);if(typeof E.then=="function")return C(z,v,bi(E),w);if(E.$$typeof===Q)return C(z,v,vi(z,E),w);ji(z,E)}return null}function _(z,v,E,w,P){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return z=z.get(E)||null,f(v,z,""+w,P);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case R:return z=z.get(w.key===null?E:w.key)||null,y(v,z,w,P);case O:return z=z.get(w.key===null?E:w.key)||null,A(v,z,w,P);case se:return w=bl(w),_(z,v,E,w,P)}if(ke(w)||ge(w))return z=z.get(E)||null,D(v,z,w,P,null);if(typeof w.then=="function")return _(z,v,E,bi(w),P);if(w.$$typeof===Q)return _(z,v,E,vi(v,w),P);ji(v,w)}return null}function J(z,v,E,w){for(var P=null,je=null,W=v,ue=v=0,ye=null;W!==null&&ue<E.length;ue++){W.index>ue?(ye=W,W=null):ye=W.sibling;var Se=C(z,W,E[ue],w);if(Se===null){W===null&&(W=ye);break}e&&W&&Se.alternate===null&&t(z,W),v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se,W=ye}if(ue===E.length)return a(z,W),xe&&ca(z,ue),P;if(W===null){for(;ue<E.length;ue++)W=U(z,E[ue],w),W!==null&&(v=i(W,v,ue),je===null?P=W:je.sibling=W,je=W);return xe&&ca(z,ue),P}for(W=l(W);ue<E.length;ue++)ye=_(W,z,ue,E[ue],w),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ue:ye.key),v=i(ye,v,ue),je===null?P=ye:je.sibling=ye,je=ye);return e&&W.forEach(function(Fa){return t(z,Fa)}),xe&&ca(z,ue),P}function ae(z,v,E,w){if(E==null)throw Error(u(151));for(var P=null,je=null,W=v,ue=v=0,ye=null,Se=E.next();W!==null&&!Se.done;ue++,Se=E.next()){W.index>ue?(ye=W,W=null):ye=W.sibling;var Fa=C(z,W,Se.value,w);if(Fa===null){W===null&&(W=ye);break}e&&W&&Fa.alternate===null&&t(z,W),v=i(Fa,v,ue),je===null?P=Fa:je.sibling=Fa,je=Fa,W=ye}if(Se.done)return a(z,W),xe&&ca(z,ue),P;if(W===null){for(;!Se.done;ue++,Se=E.next())Se=U(z,Se.value,w),Se!==null&&(v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se);return xe&&ca(z,ue),P}for(W=l(W);!Se.done;ue++,Se=E.next())Se=_(W,z,ue,Se.value,w),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?ue:Se.key),v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se);return e&&W.forEach(function(Z1){return t(z,Z1)}),xe&&ca(z,ue),P}function Re(z,v,E,w){if(typeof E=="object"&&E!==null&&E.type===B&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case R:e:{for(var P=E.key;v!==null;){if(v.key===P){if(P=E.type,P===B){if(v.tag===7){a(z,v.sibling),w=s(v,E.props.children),w.return=z,z=w;break e}}else if(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===se&&bl(P)===v.type){a(z,v.sibling),w=s(v,E.props),is(w,E),w.return=z,z=w;break e}a(z,v);break}else t(z,v);v=v.sibling}E.type===B?(w=yl(E.props.children,z.mode,w,E.key),w.return=z,z=w):(w=hi(E.type,E.key,E.props,null,z.mode,w),is(w,E),w.return=z,z=w)}return o(z);case O:e:{for(P=E.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){a(z,v.sibling),w=s(v,E.children||[]),w.return=z,z=w;break e}else{a(z,v);break}else t(z,v);v=v.sibling}w=er(E,z.mode,w),w.return=z,z=w}return o(z);case se:return E=bl(E),Re(z,v,E,w)}if(ke(E))return J(z,v,E,w);if(ge(E)){if(P=ge(E),typeof P!="function")throw Error(u(150));return E=P.call(E),ae(z,v,E,w)}if(typeof E.then=="function")return Re(z,v,bi(E),w);if(E.$$typeof===Q)return Re(z,v,vi(z,E),w);ji(z,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,v!==null&&v.tag===6?(a(z,v.sibling),w=s(v,E),w.return=z,z=w):(a(z,v),w=Pc(E,z.mode,w),w.return=z,z=w),o(z)):a(z,v)}return function(z,v,E,w){try{ss=0;var P=Re(z,v,E,w);return cn=null,P}catch(W){if(W===sn||W===gi)throw W;var je=At(29,W,null,z.mode);return je.lanes=w,je.return=z,je}finally{}}}var Sl=Od(!0),_d=Od(!1),Ra=!1;function fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=fi(e),md(e,null,a),t}return di(e,l,t,a),fi(e)}function cs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Su(e,a)}}function mr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?s=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?s=i=t:i=i.next=t}else s=i=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yr=!1;function rs(){if(yr){var e=nn;if(e!==null)throw e}}function os(e,t,a,l){yr=!1;var s=e.updateQueue;Ra=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,f=s.shared.pending;if(f!==null){s.shared.pending=null;var y=f,A=y.next;y.next=null,o===null?i=A:o.next=A,o=y;var D=e.alternate;D!==null&&(D=D.updateQueue,f=D.lastBaseUpdate,f!==o&&(f===null?D.firstBaseUpdate=A:f.next=A,D.lastBaseUpdate=y))}if(i!==null){var U=s.baseState;o=0,D=A=y=null,f=i;do{var C=f.lane&-536870913,_=C!==f.lane;if(_?(me&C)===C:(l&C)===C){C!==0&&C===ln&&(yr=!0),D!==null&&(D=D.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,ae=f;C=t;var Re=a;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){U=J.call(Re,U,C);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,C=typeof J=="function"?J.call(Re,U,C):J,C==null)break e;U=S({},U,C);break e;case 2:Ra=!0}}C=f.callback,C!==null&&(e.flags|=64,_&&(e.flags|=8192),_=s.callbacks,_===null?s.callbacks=[C]:_.push(C))}else _={lane:C,tag:f.tag,payload:f.payload,callback:f.callback,next:null},D===null?(A=D=_,y=U):D=D.next=_,o|=C;if(f=f.next,f===null){if(f=s.shared.pending,f===null)break;_=f,f=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);D===null&&(y=U),s.baseState=y,s.firstBaseUpdate=A,s.lastBaseUpdate=D,i===null&&(s.shared.lanes=0),Ha|=o,e.lanes=o,e.memoizedState=U}}function Rd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function kd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Rd(a[e],t)}var rn=b(null),Si=b(0);function Dd(e,t){e=ga,K(Si,e),K(rn,t),ga=e|t.baseLanes}function vr(){K(Si,ga),K(rn,rn.current)}function pr(){ga=Si.current,L(rn),L(Si)}var Ct=b(null),Gt=null;function wa(e){var t=e.alternate;K(Xe,Xe.current&1),K(Ct,e),Gt===null&&(t===null||rn.current!==null||t.memoizedState!==null)&&(Gt=e)}function gr(e){K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)}function wd(e){e.tag===22?(K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)):Ua()}function Ua(){K(Xe,Xe.current),K(Ct,Ct.current)}function Mt(e){L(Ct),Gt===e&&(Gt=null),L(Xe)}var Xe=b(0);function Ni(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||To(a)||Eo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=0,oe=null,Oe=null,Je=null,zi=!1,on=!1,Nl=!1,Ti=0,us=0,un=null,L0=0;function Qe(){throw Error(u(321))}function xr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Et(e[a],t[a]))return!1;return!0}function br(e,t,a,l,s,i){return ua=i,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?xf:wr,Nl=!1,i=a(l,s),Nl=!1,on&&(i=Ld(t,a,l,s)),Ud(e),i}function Ud(e){k.H=hs;var t=Oe!==null&&Oe.next!==null;if(ua=0,Je=Oe=oe=null,zi=!1,us=0,un=null,t)throw Error(u(300));e===null||Fe||(e=e.dependencies,e!==null&&yi(e)&&(Fe=!0))}function Ld(e,t,a,l){oe=e;var s=0;do{if(on&&(un=null),us=0,on=!1,25<=s)throw Error(u(301));if(s+=1,Je=Oe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}k.H=bf,i=t(a,l)}while(on);return i}function B0(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?ds(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(oe.flags|=1024),t}function jr(){var e=Ti!==0;return Ti=0,e}function Sr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nr(e){if(zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zi=!1}ua=0,Je=Oe=oe=null,on=!1,us=Ti=0,un=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?oe.memoizedState=Je=e:Je=Je.next=e,Je}function Ve(){if(Oe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Je===null?oe.memoizedState:Je.next;if(t!==null)Je=t,Oe=e;else{if(e===null)throw oe.alternate===null?Error(u(467)):Error(u(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Je===null?oe.memoizedState=Je=e:Je=Je.next=e}return Je}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(e){var t=us;return us+=1,un===null&&(un=[]),e=Ad(un,e,t),t=oe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?xf:wr),e}function Ai(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ds(e);if(e.$$typeof===Q)return lt(e)}throw Error(u(438,String(e)))}function zr(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ei(),oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ce;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function Ci(e){var t=Ve();return Tr(t,Oe,e)}function Tr(e,t,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var s=e.baseQueue,i=l.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}t.baseQueue=s=i,l.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var f=o=null,y=null,A=t,D=!1;do{var U=A.lane&-536870913;if(U!==A.lane?(me&U)===U:(ua&U)===U){var C=A.revertLane;if(C===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),U===ln&&(D=!0);else if((ua&C)===C){A=A.next,C===ln&&(D=!0);continue}else U={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=U,o=i):y=y.next=U,oe.lanes|=C,Ha|=C;U=A.action,Nl&&a(i,U),i=A.hasEagerState?A.eagerState:a(i,U)}else C={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=C,o=i):y=y.next=C,oe.lanes|=U,Ha|=U;A=A.next}while(A!==null&&A!==t);if(y===null?o=i:y.next=f,!Et(i,e.memoizedState)&&(Fe=!0,D&&(a=nn,a!==null)))throw a;e.memoizedState=i,e.baseState=o,e.baseQueue=y,l.lastRenderedState=i}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Er(e){var t=Ve(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,i=t.memoizedState;if(s!==null){a.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Et(i,t.memoizedState)||(Fe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Bd(e,t,a){var l=oe,s=Ve(),i=xe;if(i){if(a===void 0)throw Error(u(407));a=a()}else a=t();var o=!Et((Oe||s).memoizedState,a);if(o&&(s.memoizedState=a,Fe=!0),s=s.queue,Mr(Qd.bind(null,l,s,e),[e]),s.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,dn(9,{destroy:void 0},qd.bind(null,l,s,a,t),null),we===null)throw Error(u(349));i||(ua&127)!==0||Hd(l,t,a)}return a}function Hd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=Ei(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qd(e,t,a,l){t.value=a,t.getSnapshot=l,Gd(t)&&Yd(e)}function Qd(e,t,a){return a(function(){Gd(t)&&Yd(e)})}function Gd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function Yd(e){var t=ml(e,2);t!==null&&bt(t,e,2)}function Ar(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),Nl){Ta(!0);try{a()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Kd(e,t,a,l){return e.baseState=a,Tr(e,Oe,typeof l=="function"?l:da)}function H0(e,t,a,l,s){if(_i(e))throw Error(u(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};k.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Xd(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Xd(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var i=k.T,o={};k.T=o;try{var f=a(s,l),y=k.S;y!==null&&y(o,f),Vd(e,t,f)}catch(A){Cr(e,t,A)}finally{i!==null&&o.types!==null&&(i.types=o.types),k.T=i}}else try{i=a(s,l),Vd(e,t,i)}catch(A){Cr(e,t,A)}}function Vd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Zd(e,t,l)},function(l){return Cr(e,t,l)}):Zd(e,t,a)}function Zd(e,t,a){t.status="fulfilled",t.value=a,Jd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Xd(e,a)))}function Cr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Jd(t),t=t.next;while(t!==l)}e.action=null}function Jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fd(e,t){return t}function $d(e,t){if(xe){var a=we.formState;if(a!==null){e:{var l=oe;if(xe){if(Le){t:{for(var s=Le,i=Qt;s.nodeType!==8;){if(!i){s=null;break t}if(s=Yt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Le=Yt(s.nextSibling),l=s.data==="F!";break e}}Oa(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fd,lastRenderedState:t},a.queue=l,a=vf.bind(null,oe,l),l.dispatch=a,l=Ar(!1),i=Dr.bind(null,oe,!1,l.queue),l=dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=H0.bind(null,oe,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Wd(e){var t=Ve();return Id(t,Oe,e)}function Id(e,t,a){if(t=Tr(e,t,Fd)[0],e=Ci(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ds(t)}catch(o){throw o===sn?gi:o}else l=t;t=Ve();var s=t.queue,i=s.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,dn(9,{destroy:void 0},q0.bind(null,s,a),null)),[l,i,e]}function q0(e,t){e.action=t}function Pd(e){var t=Ve(),a=Oe;if(a!==null)return Id(t,a,e);Ve(),t=t.memoizedState,a=Ve();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function dn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Ei(),oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function ef(){return Ve().memoizedState}function Mi(e,t,a,l){var s=dt();oe.flags|=e,s.memoizedState=dn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Oi(e,t,a,l){var s=Ve();l=l===void 0?null:l;var i=s.memoizedState.inst;Oe!==null&&l!==null&&xr(l,Oe.memoizedState.deps)?s.memoizedState=dn(t,i,a,l):(oe.flags|=e,s.memoizedState=dn(1|t,i,a,l))}function tf(e,t){Mi(8390656,8,e,t)}function Mr(e,t){Oi(2048,8,e,t)}function Q0(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Ei(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function af(e){var t=Ve().memoizedState;return Q0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function lf(e,t){return Oi(4,2,e,t)}function nf(e,t){return Oi(4,4,e,t)}function sf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cf(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,sf.bind(null,t,e),a)}function Or(){}function rf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&xr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function of(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&xr(t,l[1]))return l[0];if(l=e(),Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l}function _r(e,t,a){return a===void 0||(ua&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),oe.lanes|=e,Ha|=e,a)}function uf(e,t,a,l){return Et(a,t)?a:rn.current!==null?(e=_r(e,a,l),Et(e,t)||(Fe=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=uh(),oe.lanes|=e,Ha|=e,t)}function df(e,t,a,l,s){var i=Y.p;Y.p=i!==0&&8>i?i:8;var o=k.T,f={};k.T=f,Dr(e,!1,t,a);try{var y=s(),A=k.S;if(A!==null&&A(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=U0(y,l);fs(e,t,D,Rt(e))}else fs(e,t,l,Rt(e))}catch(U){fs(e,t,{then:function(){},status:"rejected",reason:U},Rt())}finally{Y.p=i,o!==null&&f.types!==null&&(o.types=f.types),k.T=o}}function G0(){}function Rr(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=ff(e).queue;df(e,s,t,ne,a===null?G0:function(){return hf(e),a(l)})}function ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hf(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Rt())}function kr(){return lt(Ms)}function mf(){return Ve().memoizedState}function yf(){return Ve().memoizedState}function Y0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=ka(a);var l=Da(t,e,a);l!==null&&(bt(l,t,a),cs(l,t,a)),t={cache:rr()},e.payload=t;return}t=t.return}}function K0(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?pf(t,a):(a=Wc(e,t,a,l),a!==null&&(bt(a,e,l),gf(a,t,l)))}function vf(e,t,a){var l=Rt();fs(e,t,a,l)}function fs(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_i(e))pf(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,f=i(o,a);if(s.hasEagerState=!0,s.eagerState=f,Et(f,o))return di(e,t,s,0),we===null&&ui(),!1}catch{}finally{}if(a=Wc(e,t,s,l),a!==null)return bt(a,e,l),gf(a,t,l),!0}return!1}function Dr(e,t,a,l){if(l={lane:2,revertLane:ho(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(t)throw Error(u(479))}else t=Wc(e,a,l,2),t!==null&&bt(t,e,2)}function _i(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function pf(e,t){on=zi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Su(e,a)}}var hs={readContext:lt,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};hs.useEffectEvent=Qe;var xf={readContext:lt,use:Ai,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:tf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,sf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){Mi(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var s=a(t);if(Nl){Ta(!0);try{a(t)}finally{Ta(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=K0.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ar(e);var t=e.queue,a=vf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Or,useDeferredValue:function(e,t){var a=dt();return _r(a,e,t)},useTransition:function(){var e=Ar(!1);return e=df.bind(null,oe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,s=dt();if(xe){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),we===null)throw Error(u(349));(me&127)!==0||Hd(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,tf(Qd.bind(null,l,i,e),[e]),l.flags|=2048,dn(9,{destroy:void 0},qd.bind(null,l,i,a,t),null),a},useId:function(){var e=dt(),t=we.identifierPrefix;if(xe){var a=Wt,l=$t;a=(l&~(1<<32-Tt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ti++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=L0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kr,useFormState:$d,useActionState:$d,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Dr.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:zr,useCacheRefresh:function(){return dt().memoizedState=Y0.bind(null,oe)},useEffectEvent:function(e){var t=dt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},wr={readContext:lt,use:Ai,useCallback:rf,useContext:lt,useEffect:Mr,useImperativeHandle:cf,useInsertionEffect:lf,useLayoutEffect:nf,useMemo:of,useReducer:Ci,useRef:ef,useState:function(){return Ci(da)},useDebugValue:Or,useDeferredValue:function(e,t){var a=Ve();return uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ci(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Bd,useId:mf,useHostTransitionStatus:kr,useFormState:Wd,useActionState:Wd,useOptimistic:function(e,t){var a=Ve();return Kd(a,Oe,e,t)},useMemoCache:zr,useCacheRefresh:yf};wr.useEffectEvent=af;var bf={readContext:lt,use:Ai,useCallback:rf,useContext:lt,useEffect:Mr,useImperativeHandle:cf,useInsertionEffect:lf,useLayoutEffect:nf,useMemo:of,useReducer:Er,useRef:ef,useState:function(){return Er(da)},useDebugValue:Or,useDeferredValue:function(e,t){var a=Ve();return Oe===null?_r(a,e,t):uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Er(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Bd,useId:mf,useHostTransitionStatus:kr,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var a=Ve();return Oe!==null?Kd(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zr,useCacheRefresh:yf};bf.useEffectEvent=af;function Ur(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:S({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Lr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),s=ka(l);s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,l),t!==null&&(bt(t,e,l),cs(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),s=ka(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,l),t!==null&&(bt(t,e,l),cs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=ka(a);l.tag=2,t!=null&&(l.callback=t),t=Da(e,l,a),t!==null&&(bt(t,e,a),cs(t,e,a))}};function jf(e,t,a,l,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,o):t.prototype&&t.prototype.isPureReactComponent?!Pn(a,l)||!Pn(s,i):!0}function Sf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Lr.enqueueReplaceState(t,t.state,null)}function zl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=S({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Nf(e){oi(e)}function zf(e){console.error(e)}function Tf(e){oi(e)}function Ri(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ef(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Br(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Af(e){return e=ka(e),e.tag=3,e}function Cf(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var i=l.value;e.payload=function(){return s(i)},e.callback=function(){Ef(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ef(t,a,l),typeof s!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var f=l.stack;this.componentDidCatch(l.value,{componentStack:f!==null?f:""})})}function X0(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&an(t,a,s,!0),a=Ct.current,a!==null){switch(a.tag){case 31:case 13:return Gt===null?Ki():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),oo(e,l,s)),!1;case 22:return a.flags|=65536,l===xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),oo(e,l,s)),!1}throw Error(u(435,a.tag))}return oo(e,l,s),Ki(),!1}if(xe)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==lr&&(e=Error(u(422),{cause:l}),as(Bt(e,a)))):(l!==lr&&(t=Error(u(423),{cause:l}),as(Bt(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Bt(l,a),s=Br(e.stateNode,l,s),mr(e,s),Ge!==4&&(Ge=2)),!1;var i=Error(u(520),{cause:l});if(i=Bt(i,a),js===null?js=[i]:js.push(i),Ge!==4&&(Ge=2),t===null)return!0;l=Bt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Br(a.stateNode,l,e),mr(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(qa===null||!qa.has(i))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Af(s),Cf(s,e,a,l),mr(a,s),!1}a=a.return}while(a!==null);return!1}var Hr=Error(u(461)),Fe=!1;function nt(e,t,a,l){t.child=e===null?_d(t,null,a,l):Sl(t,e.child,a,l)}function Mf(e,t,a,l,s){a=a.render;var i=t.ref;if("ref"in l){var o={};for(var f in l)f!=="ref"&&(o[f]=l[f])}else o=l;return gl(t),l=br(e,t,a,o,i,s),f=jr(),e!==null&&!Fe?(Sr(e,t,s),fa(e,t,s)):(xe&&f&&tr(t),t.flags|=1,nt(e,t,l,s),t.child)}function Of(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!Ic(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,_f(e,t,i,l,s)):(e=hi(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Zr(e,s)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:Pn,a(o,l)&&e.ref===t.ref)return fa(e,t,s)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function _f(e,t,a,l,s){if(e!==null){var i=e.memoizedProps;if(Pn(i,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=i,Zr(e,s))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,fa(e,t,s)}return qr(e,t,a,l,s)}function Rf(e,t,a,l){var s=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~i}else l=0,t.child=null;return kf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pi(t,i!==null?i.cachePool:null),i!==null?Dd(t,i):vr(),wd(t);else return l=t.lanes=536870912,kf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(pi(t,i.cachePool),Dd(t,i),Ua(),t.memoizedState=null):(e!==null&&pi(t,null),vr(),Ua());return nt(e,t,s,a),t.child}function ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kf(e,t,a,l,s){var i=ur();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&pi(t,null),vr(),wd(t),e!==null&&an(e,t,l,!0),t.childLanes=s,null}function ki(e,t){return t=wi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Df(e,t,a){return Sl(t,e.child,null,a),e=ki(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function V0(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=ki(t,l),t.lanes=536870912,ms(null,e);if(gr(t),(e=Le)?(e=Vh(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=vd(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return ki(t,l)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(gr(t),s)if(t.flags&256)t.flags&=-257,t=Df(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Fe||an(e,t,a,!1),s=(a&e.childLanes)!==0,Fe||s){if(l=we,l!==null&&(o=Nu(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,ml(e,o),bt(l,e,o),Hr;Ki(),t=Df(e,t,a)}else e=i.treeContext,Le=Yt(o.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&xd(t,e),t=ki(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Di(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function qr(e,t,a,l,s){return gl(t),a=br(e,t,a,l,void 0,s),l=jr(),e!==null&&!Fe?(Sr(e,t,s),fa(e,t,s)):(xe&&l&&tr(t),t.flags|=1,nt(e,t,a,s),t.child)}function wf(e,t,a,l,s,i){return gl(t),t.updateQueue=null,a=Ld(t,l,a,s),Ud(e),l=jr(),e!==null&&!Fe?(Sr(e,t,i),fa(e,t,i)):(xe&&l&&tr(t),t.flags|=1,nt(e,t,a,i),t.child)}function Uf(e,t,a,l,s){if(gl(t),t.stateNode===null){var i=Il,o=a.contextType;typeof o=="object"&&o!==null&&(i=lt(o)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Lr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},fr(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?lt(o):Il,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ur(t,a,o,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Lr.enqueueReplaceState(i,i.state,null),os(t,l,i,s),rs(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,y=zl(a,f);i.props=y;var A=i.context,D=a.contextType;o=Il,typeof D=="object"&&D!==null&&(o=lt(D));var U=a.getDerivedStateFromProps;D=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||A!==o)&&Sf(t,i,l,o),Ra=!1;var C=t.memoizedState;i.state=C,os(t,l,i,s),rs(),A=t.memoizedState,f||C!==A||Ra?(typeof U=="function"&&(Ur(t,a,U,l),A=t.memoizedState),(y=Ra||jf(t,a,y,l,C,A,o))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),i.props=l,i.state=A,i.context=o,l=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,hr(e,t),o=t.memoizedProps,D=zl(a,o),i.props=D,U=t.pendingProps,C=i.context,A=a.contextType,y=Il,typeof A=="object"&&A!==null&&(y=lt(A)),f=a.getDerivedStateFromProps,(A=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==U||C!==y)&&Sf(t,i,l,y),Ra=!1,C=t.memoizedState,i.state=C,os(t,l,i,s),rs();var _=t.memoizedState;o!==U||C!==_||Ra||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof f=="function"&&(Ur(t,a,f,l),_=t.memoizedState),(D=Ra||jf(t,a,D,l,C,_,y)||e!==null&&e.dependencies!==null&&yi(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,_,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,_,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),i.props=l,i.state=_,i.context=y,l=D):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Di(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Sl(t,e.child,null,s),t.child=Sl(t,null,a,s)):nt(e,t,a,s),t.memoizedState=i.state,e=t.child):e=fa(e,t,s),e}function Lf(e,t,a,l){return vl(),t.flags|=256,nt(e,t,a,l),t.child}var Qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gr(e){return{baseLanes:e,cachePool:Td()}}function Yr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Bf(e,t,a){var l=t.pendingProps,s=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(s?wa(t):Ua(),(e=Le)?(e=Vh(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=vd(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Oa(t);return Eo(e)?t.lanes=32:t.lanes=536870912,null}var f=l.children;return l=l.fallback,s?(Ua(),s=t.mode,f=wi({mode:"hidden",children:f},s),l=yl(l,s,a,null),f.return=t,l.return=t,f.sibling=l,t.child=f,l=t.child,l.memoizedState=Gr(a),l.childLanes=Yr(e,o,a),t.memoizedState=Qr,ms(null,l)):(wa(t),Kr(t,f))}var y=e.memoizedState;if(y!==null&&(f=y.dehydrated,f!==null)){if(i)t.flags&256?(wa(t),t.flags&=-257,t=Xr(e,t,a)):t.memoizedState!==null?(Ua(),t.child=e.child,t.flags|=128,t=null):(Ua(),f=l.fallback,s=t.mode,l=wi({mode:"visible",children:l.children},s),f=yl(f,s,a,null),f.flags|=2,l.return=t,f.return=t,l.sibling=f,t.child=l,Sl(t,e.child,null,a),l=t.child,l.memoizedState=Gr(a),l.childLanes=Yr(e,o,a),t.memoizedState=Qr,t=ms(null,l));else if(wa(t),Eo(f)){if(o=f.nextSibling&&f.nextSibling.dataset,o)var A=o.dgst;o=A,l=Error(u(419)),l.stack="",l.digest=o,as({value:l,source:null,stack:null}),t=Xr(e,t,a)}else if(Fe||an(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=we,o!==null&&(l=Nu(o,a),l!==0&&l!==y.retryLane))throw y.retryLane=l,ml(e,l),bt(o,e,l),Hr;To(f)||Ki(),t=Xr(e,t,a)}else To(f)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Le=Yt(f.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&xd(t,e),t=Kr(t,l.children),t.flags|=4096);return t}return s?(Ua(),f=l.fallback,s=t.mode,y=e.child,A=y.sibling,l=ia(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,A!==null?f=ia(A,f):(f=yl(f,s,a,null),f.flags|=2),f.return=t,l.return=t,l.sibling=f,t.child=l,ms(null,l),l=t.child,f=e.child.memoizedState,f===null?f=Gr(a):(s=f.cachePool,s!==null?(y=Ze._currentValue,s=s.parent!==y?{parent:y,pool:y}:s):s=Td(),f={baseLanes:f.baseLanes|a,cachePool:s}),l.memoizedState=f,l.childLanes=Yr(e,o,a),t.memoizedState=Qr,ms(e.child,l)):(wa(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Kr(e,t){return t=wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wi(e,t){return e=At(22,e,null,t),e.lanes=0,e}function Xr(e,t,a){return Sl(t,e.child,null,a),e=Kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ir(e.return,t,a)}function Vr(e,t,a,l,s,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=s,o.treeForkCount=i)}function qf(e,t,a){var l=t.pendingProps,s=l.revealOrder,i=l.tail;l=l.children;var o=Xe.current,f=(o&2)!==0;if(f?(o=o&1|2,t.flags|=128):o&=1,K(Xe,o),nt(e,t,l,a),l=xe?ts:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hf(e,a,t);else if(e.tag===19)Hf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ni(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Vr(t,!1,s,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ni(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Vr(t,!0,a,null,i,l);break;case"together":Vr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(an(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Zr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function Z0(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),_a(t,Ze,e.memoizedState.cache),vl();break;case 27:case 5:qn(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Bf(e,t,a):(wa(t),e=fa(e,t,a),e!==null?e.sibling:null);wa(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(an(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return qf(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Rf(e,t,a,t.pendingProps);case 24:_a(t,Ze,e.memoizedState.cache)}return fa(e,t,a)}function Qf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Zr(e,a)&&(t.flags&128)===0)return Fe=!1,Z0(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,xe&&(t.flags&1048576)!==0&&gd(t,ts,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")Ic(e)?(l=zl(e,l),t.tag=1,t=Uf(null,t,e,l,a)):(t.tag=0,t=qr(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===G){t.tag=11,t=Mf(null,t,e,l,a);break e}else if(s===le){t.tag=14,t=Of(null,t,e,l,a);break e}}throw t=qe(e)||e,Error(u(306,t,""))}}return t;case 0:return qr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=zl(l,t.pendingProps),Uf(e,t,l,s,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var i=t.memoizedState;s=i.element,hr(e,t),os(t,l,null,a);var o=t.memoizedState;if(l=o.cache,_a(t,Ze,l),l!==i.cache&&cr(t,[Ze],a,!0),rs(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Lf(e,t,l,a);break e}else if(l!==s){s=Bt(Error(u(424)),t),as(s),t=Lf(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Yt(e.firstChild),at=t,xe=!0,Ma=null,Qt=!0,a=_d(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===s){t=fa(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=Wi(de.current).createElement(a),l[tt]=t,l[mt]=e,st(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qn(t),e===null&&xe&&(l=t.stateNode=Fh(t.type,t.pendingProps,de.current),at=t,Qt=!0,s=Le,Ka(t.type)?(Ao=s,Le=Yt(l.firstChild)):Le=s),nt(e,t,t.pendingProps.children,a),Di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((s=l=Le)&&(l=N1(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,at=t,Le=Yt(l.firstChild),Qt=!1,s=!0):s=!1),s||Oa(t)),qn(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,So(s,i)?l=null:o!==null&&So(s,o)&&(t.flags|=32),t.memoizedState!==null&&(s=br(e,t,B0,null,null,a),Ms._currentValue=s),Di(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Le)&&(a=z1(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,at=t,Le=null,e=!0):e=!1),e||Oa(t)),null;case 13:return Bf(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return Mf(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,_a(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,gl(t),s=lt(s),l=l(s),t.flags|=1,nt(e,t,l,a),t.child;case 14:return Of(e,t,t.type,t.pendingProps,a);case 15:return _f(e,t,t.type,t.pendingProps,a);case 19:return qf(e,t,a);case 31:return V0(e,t,a);case 22:return Rf(e,t,a,t.pendingProps);case 24:return gl(t),l=lt(Ze),e===null?(s=ur(),s===null&&(s=we,i=rr(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},fr(t),_a(t,Ze,s)):((e.lanes&a)!==0&&(hr(e,t),os(t,null,null,a),rs()),s=e.memoizedState,i=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),_a(t,Ze,l)):(l=i.cache,_a(t,Ze,l),l!==s.cache&&cr(t,[Ze],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ha(e){e.flags|=4}function Jr(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(mh())e.flags|=8192;else throw jl=xi,dr}else e.flags&=-16777217}function Gf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lm(t))if(mh())e.flags|=8192;else throw jl=xi,dr}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bu():536870912,e.lanes|=t,yn|=t)}function ys(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function J0(e,t,a){var l=t.pendingProps;switch(ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),oa(Ze),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(tn(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nr())),Be(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ha(t),i!==null?(Be(t),Gf(t,i)):(Be(t),Jr(t,s,null,l,a))):i?i!==e.memoizedState?(ha(t),Be(t),Gf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Be(t),Jr(t,s,e,l,a)),null;case 27:if(Zs(t),a=de.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Be(t),null}e=$.current,tn(t)?bd(t):(e=Fh(s,l,a),t.stateNode=e,ha(t))}return Be(t),null;case 5:if(Zs(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Be(t),null}if(i=$.current,tn(t))bd(t);else{var o=Wi(de.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(s,{is:l.is}):o.createElement(s)}}i[tt]=t,i[mt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(st(i,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Be(t),Jr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=de.current,tn(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=at,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Bh(e.nodeValue,a)),e||Oa(t,!0)}else e=Wi(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=tn(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[tt]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=nr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=tn(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[tt]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=nr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ui(t,t.updateQueue),Be(t),null);case 4:return Ke(),e===null&&po(t.stateNode.containerInfo),Be(t),null;case 10:return oa(t.type),Be(t),null;case 19:if(L(Xe),l=t.memoizedState,l===null)return Be(t),null;if(s=(t.flags&128)!==0,i=l.rendering,i===null)if(s)ys(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ni(e),i!==null){for(t.flags|=128,ys(l,!1),e=i.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yd(a,e),a=a.sibling;return K(Xe,Xe.current&1|2),xe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Nt()>Qi&&(t.flags|=128,s=!0,ys(l,!1),t.lanes=4194304)}else{if(!s)if(e=Ni(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),ys(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!xe)return Be(t),null}else 2*Nt()-l.renderingStartTime>Qi&&a!==536870912&&(t.flags|=128,s=!0,ys(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Nt(),e.sibling=null,a=Xe.current,K(Xe,s?a&1|2:a&1),xe&&ca(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),pr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&Ui(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&L(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(Ze),Be(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function F0(e,t){switch(ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(Ze),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Zs(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(u(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Xe),null;case 4:return Ke(),null;case 10:return oa(t.type),null;case 22:case 23:return Mt(t),pr(),e!==null&&L(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(Ze),null;case 25:return null;default:return null}}function Yf(e,t){switch(ar(t),t.tag){case 3:oa(Ze),Ke();break;case 26:case 27:case 5:Zs(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:L(Xe);break;case 10:oa(t.type);break;case 22:case 23:Mt(t),pr(),e!==null&&L(xl);break;case 24:oa(Ze)}}function vs(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==s)}}catch(f){Ae(t,t.return,f)}}function La(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var i=s.next;l=i;do{if((l.tag&e)===e){var o=l.inst,f=o.destroy;if(f!==void 0){o.destroy=void 0,s=t;var y=a,A=f;try{A()}catch(D){Ae(s,y,D)}}}l=l.next}while(l!==i)}}catch(D){Ae(t,t.return,D)}}function Kf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{kd(t,a)}catch(l){Ae(e,e.return,l)}}}function Xf(e,t,a){a.props=zl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function ps(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){Ae(e,t,s)}}function It(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){Ae(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ae(e,t,s)}else a.current=null}function Vf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){Ae(e,e.return,s)}}function Fr(e,t,a){try{var l=e.stateNode;p1(l,e.type,a,t),l[mt]=t}catch(s){Ae(e,e.return,s)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function $r(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(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&&Ka(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 Wr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wr(e,t,a),e=e.sibling;e!==null;)Wr(e,t,a),e=e.sibling}function Li(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Li(e,t,a),e=e.sibling;e!==null;)Li(e,t,a),e=e.sibling}function Jf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);st(t,l,a),t[tt]=e,t[mt]=a}catch(i){Ae(e,e.return,i)}}var ma=!1,$e=!1,Ir=!1,Ff=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function $0(e,t){if(e=e.containerInfo,bo=nc,e=id(e),Xc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,f=-1,y=-1,A=0,D=0,U=e,C=null;t:for(;;){for(var _;U!==a||s!==0&&U.nodeType!==3||(f=o+s),U!==i||l!==0&&U.nodeType!==3||(y=o+l),U.nodeType===3&&(o+=U.nodeValue.length),(_=U.firstChild)!==null;)C=U,U=_;for(;;){if(U===e)break t;if(C===a&&++A===s&&(f=o),C===i&&++D===l&&(y=o),(_=U.nextSibling)!==null)break;U=C,C=U.parentNode}U=_}a=f===-1||y===-1?null:{start:f,end:y}}else a=null}a=a||{start:0,end:0}}else a=null;for(jo={focusedElem:e,selectionRange:a},nc=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,s=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var J=zl(a.type,s);e=l.getSnapshotBeforeUpdate(J,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ae(a,a.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)zo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zo(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function $f(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),l&4&&vs(5,a);break;case 1:if(va(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ae(a,a.return,o)}else{var s=zl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ae(a,a.return,o)}}l&64&&Kf(a),l&512&&ps(a,a.return);break;case 3:if(va(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{kd(e,t)}catch(o){Ae(a,a.return,o)}}break;case 27:t===null&&l&4&&Jf(a);case 26:case 5:va(e,a),t===null&&l&4&&Vf(a),l&512&&ps(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),l&4&&Pf(e,a);break;case 13:va(e,a),l&4&&eh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=s1.bind(null,a),T1(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||$e,s=ma;var i=$e;ma=l,($e=t)&&!i?pa(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ma=s,$e=i}break;case 30:break;default:va(e,a)}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cc(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 He=null,vt=!1;function ya(e,t,a){for(a=a.child;a!==null;)If(e,t,a),a=a.sibling}function If(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Qn,a)}catch{}switch(a.tag){case 26:$e||It(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||It(a,t);var l=He,s=vt;Ka(a.type)&&(He=a.stateNode,vt=!1),ya(e,t,a),Es(a.stateNode),He=l,vt=s;break;case 5:$e||It(a,t);case 6:if(l=He,s=vt,He=null,ya(e,t,a),He=l,vt=s,He!==null)if(vt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(i){Ae(a,t,i)}else try{He.removeChild(a.stateNode)}catch(i){Ae(a,t,i)}break;case 18:He!==null&&(vt?(e=He,Kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nn(e)):Kh(He,a.stateNode));break;case 4:l=He,s=vt,He=a.stateNode.containerInfo,vt=!0,ya(e,t,a),He=l,vt=s;break;case 0:case 11:case 14:case 15:La(2,a,t),$e||La(4,a,t),ya(e,t,a);break;case 1:$e||(It(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Xf(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ya(e,t,a),$e=l;break;default:ya(e,t,a)}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nn(e)}catch(a){Ae(t,t.return,a)}}}function eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nn(e)}catch(a){Ae(t,t.return,a)}}function W0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ff),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ff),t;default:throw Error(u(435,e.tag))}}function Bi(e,t){var a=W0(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=i1.bind(null,e,l);l.then(s,s)}})}function pt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],i=e,o=t,f=o;e:for(;f!==null;){switch(f.tag){case 27:if(Ka(f.type)){He=f.stateNode,vt=!1;break e}break;case 5:He=f.stateNode,vt=!1;break e;case 3:case 4:He=f.stateNode.containerInfo,vt=!0;break e}f=f.return}if(He===null)throw Error(u(160));If(i,o,s),He=null,vt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)th(t,e),t=t.sibling}var Zt=null;function th(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),gt(e),l&4&&(La(3,e,e.return),vs(3,e),La(5,e,e.return));break;case 1:pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Zt;if(pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":i=s.getElementsByTagName("title")[0],(!i||i[Kn]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(l),s.head.insertBefore(i,s.querySelector("head > title"))),st(i,l,a),i[tt]=e,Ie(i),l=i;break e;case"link":var o=tm("link","href",s).get(l+(a.href||""));if(o){for(var f=0;f<o.length;f++)if(i=o[f],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(f,1);break t}}i=s.createElement(l),st(i,l,a),s.head.appendChild(i);break;case"meta":if(o=tm("meta","content",s).get(l+(a.content||""))){for(f=0;f<o.length;f++)if(i=o[f],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(f,1);break t}}i=s.createElement(l),st(i,l,a),s.head.appendChild(i);break;default:throw Error(u(468,l))}i[tt]=e,Ie(i),l=i}e.stateNode=l}else am(s,e.type,e.stateNode);else e.stateNode=em(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?am(s,e.type,e.stateNode):em(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fr(e,e.memoizedProps,a.memoizedProps)}break;case 27:pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),a!==null&&l&4&&Fr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),e.flags&32){s=e.stateNode;try{Xl(s,"")}catch(J){Ae(e,e.return,J)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Fr(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Ir=!0);break;case 6:if(pt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Ae(e,e.return,J)}}break;case 3:if(ec=null,s=Zt,Zt=Ii(t.containerInfo),pt(t,e),Zt=s,gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Nn(t.containerInfo)}catch(J){Ae(e,e.return,J)}Ir&&(Ir=!1,ah(e));break;case 4:l=Zt,Zt=Ii(e.stateNode.containerInfo),pt(t,e),gt(e),Zt=l;break;case 12:pt(t,e),gt(e);break;case 31:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 13:pt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qi=Nt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 22:s=e.memoizedState!==null;var y=a!==null&&a.memoizedState!==null,A=ma,D=$e;if(ma=A||s,$e=D||y,pt(t,e),$e=D,ma=A,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||y||ma||$e||Tl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){y=a=t;try{if(i=y.stateNode,s)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{f=y.stateNode;var U=y.memoizedProps.style,C=U!=null&&U.hasOwnProperty("display")?U.display:null;f.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(J){Ae(y,y.return,J)}}}else if(t.tag===6){if(a===null){y=t;try{y.stateNode.nodeValue=s?"":y.memoizedProps}catch(J){Ae(y,y.return,J)}}}else if(t.tag===18){if(a===null){y=t;try{var _=y.stateNode;s?Xh(_,!0):Xh(y.stateNode,!1)}catch(J){Ae(y,y.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bi(e,a))));break;case 19:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 30:break;case 21:break;default:pt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Zf(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,i=$r(e);Li(e,i,s);break;case 5:var o=a.stateNode;a.flags&32&&(Xl(o,""),a.flags&=-33);var f=$r(e);Li(e,f,o);break;case 3:case 4:var y=a.stateNode.containerInfo,A=$r(e);Wr(e,A,y);break;default:throw Error(u(161))}}catch(D){Ae(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ah(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ah(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$f(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:La(4,t,t.return),Tl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xf(t,t.return,a),Tl(t);break;case 27:Es(t.stateNode);case 26:case 5:It(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:pa(s,i,a),vs(4,i);break;case 1:if(pa(s,i,a),l=i,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(A){Ae(l,l.return,A)}if(l=i,s=l.updateQueue,s!==null){var f=l.stateNode;try{var y=s.shared.hiddenCallbacks;if(y!==null)for(s.shared.hiddenCallbacks=null,s=0;s<y.length;s++)Rd(y[s],f)}catch(A){Ae(l,l.return,A)}}a&&o&64&&Kf(i),ps(i,i.return);break;case 27:Jf(i);case 26:case 5:pa(s,i,a),a&&l===null&&o&4&&Vf(i),ps(i,i.return);break;case 12:pa(s,i,a);break;case 31:pa(s,i,a),a&&o&4&&Pf(s,i);break;case 13:pa(s,i,a),a&&o&4&&eh(s,i);break;case 22:i.memoizedState===null&&pa(s,i,a),ps(i,i.return);break;case 30:break;default:pa(s,i,a)}t=t.sibling}}function Pr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ls(a))}function eo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(e,t,a,l),t=t.sibling}function lh(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),s&2048&&vs(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e)));break;case 12:if(s&2048){Jt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,f=i.onPostCommit;typeof f=="function"&&f(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Ae(t,t.return,y)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Jt(e,t,a,l):gs(e,t):i._visibility&2?Jt(e,t,a,l):(i._visibility|=2,fn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Pr(o,t);break;case 24:Jt(e,t,a,l),s&2048&&eo(t.alternate,t);break;default:Jt(e,t,a,l)}}function fn(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,f=a,y=l,A=o.flags;switch(o.tag){case 0:case 11:case 15:fn(i,o,f,y,s),vs(8,o);break;case 23:break;case 22:var D=o.stateNode;o.memoizedState!==null?D._visibility&2?fn(i,o,f,y,s):gs(i,o):(D._visibility|=2,fn(i,o,f,y,s)),s&&A&2048&&Pr(o.alternate,o);break;case 24:fn(i,o,f,y,s),s&&A&2048&&eo(o.alternate,o);break;default:fn(i,o,f,y,s)}t=t.sibling}}function gs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:gs(a,l),s&2048&&Pr(l.alternate,l);break;case 24:gs(a,l),s&2048&&eo(l.alternate,l);break;default:gs(a,l)}t=t.sibling}}var xs=8192;function hn(e,t,a){if(e.subtreeFlags&xs)for(e=e.child;e!==null;)nh(e,t,a),e=e.sibling}function nh(e,t,a){switch(e.tag){case 26:hn(e,t,a),e.flags&xs&&e.memoizedState!==null&&L1(a,Zt,e.memoizedState,e.memoizedProps);break;case 5:hn(e,t,a);break;case 3:case 4:var l=Zt;Zt=Ii(e.stateNode.containerInfo),hn(e,t,a),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=xs,xs=16777216,hn(e,t,a),xs=l):hn(e,t,a));break;default:hn(e,t,a)}}function sh(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 bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,ch(l,e)}sh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&La(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hi(e)):bs(e);break;default:bs(e)}}function Hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,ch(l,e)}sh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:La(8,t,t.return),Hi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hi(t));break;default:Hi(t)}e=e.sibling}}function ch(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:La(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ls(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var s=l.sibling,i=l.return;if(Wf(l),l===a){Pe=null;break e}if(s!==null){s.return=i,Pe=s;break e}Pe=i}}}var I0={getCacheForType:function(e){var t=lt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Ze).controller.signal}},P0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,we=null,fe=null,me=0,Ee=0,Ot=null,Ba=!1,mn=!1,to=!1,ga=0,Ge=0,Ha=0,El=0,ao=0,_t=0,yn=0,js=null,xt=null,lo=!1,qi=0,rh=0,Qi=1/0,Gi=null,qa=null,We=0,Qa=null,vn=null,xa=0,no=0,so=null,oh=null,Ss=0,io=null;function Rt(){return(Ne&2)!==0&&me!==0?me&-me:k.T!==null?ho():zu()}function uh(){if(_t===0)if((me&536870912)===0||xe){var e=$s;$s<<=1,($s&3932160)===0&&($s=262144),_t=e}else _t=536870912;return e=Ct.current,e!==null&&(e.flags|=32),_t}function bt(e,t,a){(e===we&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(pn(e,0),Ga(e,me,_t,!1)),Yn(e,a),((Ne&2)===0||e!==we)&&(e===we&&((Ne&2)===0&&(El|=a),Ge===4&&Ga(e,me,_t,!1)),Pt(e))}function dh(e,t,a){if((Ne&6)!==0)throw Error(u(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Gn(e,t),s=l?a1(e,t):ro(e,t,!0),i=l;do{if(s===0){mn&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!e1(a)){s=ro(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var f=e;s=js;var y=f.current.memoizedState.isDehydrated;if(y&&(pn(f,o).flags|=256),o=ro(f,o,!1),o!==2){if(to&&!y){f.errorRecoveryDisabledLanes|=i,El|=i,s=4;break e}i=xt,xt=s,i!==null&&(xt===null?xt=i:xt.push.apply(xt,i))}s=o}if(i=!1,s!==2)continue}}if(s===1){pn(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,i=s,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,_t,!Ba);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=qi+300-Nt(),10<s)){if(Ga(l,t,_t,!Ba),Is(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=Gh(fh.bind(null,l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,"Throttled",-0,0),s);break e}fh(l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,null,-0,0)}}break}while(!0);Pt(e)}function fh(e,t,a,l,s,i,o,f,y,A,D,U,C,_){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},nh(t,i,U);var J=(i&62914560)===i?qi-Nt():(i&4194048)===i?rh-Nt():0;if(J=B1(U,J),J!==null){xa=i,e.cancelPendingCommit=J(bh.bind(null,e,t,i,a,l,s,o,f,y,D,U,null,C,_)),Ga(e,i,o,!A);return}}bh(e,t,i,a,l,s,o,f,y)}function e1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],i=s.getSnapshot;s=s.value;try{if(!Et(i(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~ao,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var i=31-Tt(s),o=1<<i;l[i]=-1,s&=~o}a!==0&&ju(e,a,t)}function Yi(){return(Ne&6)===0?(Ns(0),!1):!0}function co(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,ra=pl=null,Nr(e),cn=null,ss=0,e=fe;for(;e!==null;)Yf(e.alternate,e),e=e.return;fe=null}}function pn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,b1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,co(),we=e,fe=a=ia(e.current,null),me=t,Ee=0,Ot=null,Ba=!1,mn=Gn(e,t),to=!1,yn=_t=ao=El=Ha=Ge=0,xt=js=null,lo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Tt(l),i=1<<s;t|=e[s],l&=~i}return ga=t,ui(),a}function hh(e,t){oe=null,k.H=hs,t===sn||t===gi?(t=Cd(),Ee=3):t===dr?(t=Cd(),Ee=4):Ee=t===Hr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,fe===null&&(Ge=1,Ri(e,Bt(t,e.current)))}function mh(){var e=Ct.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function yh(){var e=k.H;return k.H=hs,e===null?hs:e}function vh(){var e=k.A;return k.A=I0,e}function Ki(){Ge=4,Ba||(me&4194048)!==me&&Ct.current!==null||(mn=!0),(Ha&134217727)===0&&(El&134217727)===0||we===null||Ga(we,me,_t,!1)}function ro(e,t,a){var l=Ne;Ne|=2;var s=yh(),i=vh();(we!==e||me!==t)&&(Gi=null,pn(e,t)),t=!1;var o=Ge;e:do try{if(Ee!==0&&fe!==null){var f=fe,y=Ot;switch(Ee){case 8:co(),o=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var A=Ee;if(Ee=0,Ot=null,gn(e,f,y,A),a&&mn){o=0;break e}break;default:A=Ee,Ee=0,Ot=null,gn(e,f,y,A)}}t1(),o=Ge;break}catch(D){hh(e,D)}while(!0);return t&&e.shellSuspendCounter++,ra=pl=null,Ne=l,k.H=s,k.A=i,fe===null&&(we=null,me=0,ui()),o}function t1(){for(;fe!==null;)ph(fe)}function a1(e,t){var a=Ne;Ne|=2;var l=yh(),s=vh();we!==e||me!==t?(Gi=null,Qi=Nt()+500,pn(e,t)):mn=Gn(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var i=Ot;t:switch(Ee){case 1:Ee=0,Ot=null,gn(e,t,i,1);break;case 2:case 9:if(Ed(i)){Ee=0,Ot=null,gh(t);break}t=function(){Ee!==2&&Ee!==9||we!==e||(Ee=7),Pt(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Ed(i)?(Ee=0,Ot=null,gh(t)):(Ee=0,Ot=null,gn(e,t,i,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var f=fe;if(o?lm(o):f.stateNode.complete){Ee=0,Ot=null;var y=f.sibling;if(y!==null)fe=y;else{var A=f.return;A!==null?(fe=A,Xi(A)):fe=null}break t}}Ee=0,Ot=null,gn(e,t,i,5);break;case 6:Ee=0,Ot=null,gn(e,t,i,6);break;case 8:co(),Ge=6;break e;default:throw Error(u(462))}}l1();break}catch(D){hh(e,D)}while(!0);return ra=pl=null,k.H=l,k.A=s,Ne=a,fe!==null?0:(we=null,me=0,ui(),Ge)}function l1(){for(;fe!==null&&!Ey();)ph(fe)}function ph(e){var t=Qf(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=wf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=wf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Nr(t);default:Yf(a,t),t=fe=yd(t,ga),t=Qf(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gn(e,t,a,l){ra=pl=null,Nr(t),cn=null,ss=0;var s=t.return;try{if(X0(e,s,t,a,me)){Ge=1,Ri(e,Bt(a,e.current)),fe=null;return}}catch(i){if(s!==null)throw fe=s,i;Ge=1,Ri(e,Bt(a,e.current)),fe=null;return}t.flags&32768?(xe||l===1?e=!0:mn||(me&536870912)!==0?e=!1:(Ba=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),xh(t,e)):Xi(t)}function Xi(e){var t=e;do{if((t.flags&32768)!==0){xh(t,Ba);return}e=t.return;var a=J0(t.alternate,t,ga);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function xh(e,t){do{var a=F0(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Ge=6,fe=null}function bh(e,t,a,l,s,i,o,f,y){e.cancelPendingCommit=null;do Vi();while(We!==0);if((Ne&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=$c,Uy(e,a,i,o,f,y),e===we&&(fe=we=null,me=0),vn=t,Qa=e,xa=a,no=i,so=s,oh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,c1(Js,function(){return Th(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null,s=Y.p,Y.p=2,o=Ne,Ne|=4;try{$0(e,t,a)}finally{Ne=o,Y.p=s,k.T=l}}We=1,jh(),Sh(),Nh()}}function jh(){if(We===1){We=0;var e=Qa,t=vn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var l=Y.p;Y.p=2;var s=Ne;Ne|=4;try{th(t,e);var i=jo,o=id(e.containerInfo),f=i.focusedElem,y=i.selectionRange;if(o!==f&&f&&f.ownerDocument&&sd(f.ownerDocument.documentElement,f)){if(y!==null&&Xc(f)){var A=y.start,D=y.end;if(D===void 0&&(D=A),"selectionStart"in f)f.selectionStart=A,f.selectionEnd=Math.min(D,f.value.length);else{var U=f.ownerDocument||document,C=U&&U.defaultView||window;if(C.getSelection){var _=C.getSelection(),J=f.textContent.length,ae=Math.min(y.start,J),Re=y.end===void 0?ae:Math.min(y.end,J);!_.extend&&ae>Re&&(o=Re,Re=ae,ae=o);var z=nd(f,ae),v=nd(f,Re);if(z&&v&&(_.rangeCount!==1||_.anchorNode!==z.node||_.anchorOffset!==z.offset||_.focusNode!==v.node||_.focusOffset!==v.offset)){var E=U.createRange();E.setStart(z.node,z.offset),_.removeAllRanges(),ae>Re?(_.addRange(E),_.extend(v.node,v.offset)):(E.setEnd(v.node,v.offset),_.addRange(E))}}}}for(U=[],_=f;_=_.parentNode;)_.nodeType===1&&U.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<U.length;f++){var w=U[f];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}nc=!!bo,jo=bo=null}finally{Ne=s,Y.p=l,k.T=a}}e.current=t,We=2}}function Sh(){if(We===2){We=0;var e=Qa,t=vn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var l=Y.p;Y.p=2;var s=Ne;Ne|=4;try{$f(e,t.alternate,t)}finally{Ne=s,Y.p=l,k.T=a}}We=3}}function Nh(){if(We===4||We===3){We=0,Ay();var e=Qa,t=vn,a=xa,l=oh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,vn=Qa=null,zh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(qa=null),Ec(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Qn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=k.T,s=Y.p,Y.p=2,k.T=null;try{for(var i=e.onRecoverableError,o=0;o<l.length;o++){var f=l[o];i(f.value,{componentStack:f.stack})}}finally{k.T=t,Y.p=s}}(xa&3)!==0&&Vi(),Pt(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===io?Ss++:(Ss=0,io=e):Ss=0,Ns(0)}}function zh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ls(t)))}function Vi(){return jh(),Sh(),Nh(),Th()}function Th(){if(We!==5)return!1;var e=Qa,t=no;no=0;var a=Ec(xa),l=k.T,s=Y.p;try{Y.p=32>a?32:a,k.T=null,a=so,so=null;var i=Qa,o=xa;if(We=0,vn=Qa=null,xa=0,(Ne&6)!==0)throw Error(u(331));var f=Ne;if(Ne|=4,ih(i.current),lh(i,i.current,o,a),Ne=f,Ns(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Qn,i)}catch{}return!0}finally{Y.p=s,k.T=l,zh(e,t)}}function Eh(e,t,a){t=Bt(a,t),t=Br(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(Yn(e,2),Pt(e))}function Ae(e,t,a){if(e.tag===3)Eh(e,e,a);else for(;t!==null;){if(t.tag===3){Eh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){e=Bt(a,e),a=Af(2),l=Da(t,a,2),l!==null&&(Cf(a,l,t,e),Yn(l,2),Pt(l));break}}t=t.return}}function oo(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new P0;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(to=!0,s.add(a),e=n1.bind(null,e,t,a),t.then(e,e))}function n1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,we===e&&(me&a)===a&&(Ge===4||Ge===3&&(me&62914560)===me&&300>Nt()-qi?(Ne&2)===0&&pn(e,0):ao|=a,yn===me&&(yn=0)),Pt(e)}function Ah(e,t){t===0&&(t=bu()),e=ml(e,t),e!==null&&(Yn(e,t),Pt(e))}function s1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ah(e,a)}function i1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Ah(e,a)}function c1(e,t){return Sc(e,t)}var Zi=null,xn=null,uo=!1,Ji=!1,fo=!1,Ya=0;function Pt(e){e!==xn&&e.next===null&&(xn===null?Zi=xn=e:xn=xn.next=e),Ji=!0,uo||(uo=!0,o1())}function Ns(e,t){if(!fo&&Ji){fo=!0;do for(var a=!1,l=Zi;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var i=0;else{var o=l.suspendedLanes,f=l.pingedLanes;i=(1<<31-Tt(42|e)+1)-1,i&=s&~(o&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,_h(l,i))}else i=me,i=Is(l,l===we?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Gn(l,i)||(a=!0,_h(l,i));l=l.next}while(a);fo=!1}}function r1(){Ch()}function Ch(){Ji=uo=!1;var e=0;Ya!==0&&x1()&&(e=Ya);for(var t=Nt(),a=null,l=Zi;l!==null;){var s=l.next,i=Mh(l,t);i===0?(l.next=null,a===null?Zi=s:a.next=s,s===null&&(xn=a)):(a=l,(e!==0||(i&3)!==0)&&(Ji=!0)),l=s}We!==0&&We!==5||Ns(e),Ya!==0&&(Ya=0)}function Mh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Tt(i),f=1<<o,y=s[o];y===-1?((f&a)===0||(f&l)!==0)&&(s[o]=wy(f,t)):y<=t&&(e.expiredLanes|=f),i&=~f}if(t=we,a=me,a=Is(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Nc(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Nc(l),Ec(a)){case 2:case 8:a=gu;break;case 32:a=Js;break;case 268435456:a=xu;break;default:a=Js}return l=Oh.bind(null,e),a=Sc(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Nc(l),e.callbackPriority=2,e.callbackNode=null,2}function Oh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Vi()&&e.callbackNode!==a)return null;var l=me;return l=Is(e,e===we?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(dh(e,l,t),Mh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?Oh.bind(null,e):null)}function _h(e,t){if(Vi())return null;dh(e,t,!0)}function o1(){j1(function(){(Ne&6)!==0?Sc(pu,r1):Ch()})}function ho(){if(Ya===0){var e=ln;e===0&&(e=Fs,Fs<<=1,(Fs&261888)===0&&(Fs=256)),Ya=e}return Ya}function Rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ai(""+e)}function kh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function u1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=Rh((s[mt]||null).action),o=l.submitter;o&&(t=(t=o[mt]||null)?Rh(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var f=new ii("action","action",null,l,s);e.push({event:f,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var y=o?kh(s,o):new FormData(s);Rr(a,{pending:!0,data:y,method:s.method,action:i},null,y)}}else typeof i=="function"&&(f.preventDefault(),y=o?kh(s,o):new FormData(s),Rr(a,{pending:!0,data:y,method:s.method,action:i},i,y))},currentTarget:s}]})}}for(var mo=0;mo<Fc.length;mo++){var yo=Fc[mo],d1=yo.toLowerCase(),f1=yo[0].toUpperCase()+yo.slice(1);Vt(d1,"on"+f1)}Vt(od,"onAnimationEnd"),Vt(ud,"onAnimationIteration"),Vt(dd,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(C0,"onTransitionRun"),Vt(M0,"onTransitionStart"),Vt(O0,"onTransitionCancel"),Vt(fd,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zs="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zs));function Dh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var o=l.length-1;0<=o;o--){var f=l[o],y=f.instance,A=f.currentTarget;if(f=f.listener,y!==i&&s.isPropagationStopped())break e;i=f,s.currentTarget=A;try{i(s)}catch(D){oi(D)}s.currentTarget=null,i=y}else for(o=0;o<l.length;o++){if(f=l[o],y=f.instance,A=f.currentTarget,f=f.listener,y!==i&&s.isPropagationStopped())break e;i=f,s.currentTarget=A;try{i(s)}catch(D){oi(D)}s.currentTarget=null,i=y}}}}function he(e,t){var a=t[Ac];a===void 0&&(a=t[Ac]=new Set);var l=e+"__bubble";a.has(l)||(wh(t,e,2,!1),a.add(l))}function vo(e,t,a){var l=0;t&&(l|=4),wh(a,e,l,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Fi]){e[Fi]=!0,Au.forEach(function(a){a!=="selectionchange"&&(h1.has(a)||vo(a,!1,e),vo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,vo("selectionchange",!1,t))}}function wh(e,t,a,l){switch(um(t)){case 2:var s=Q1;break;case 8:s=G1;break;default:s=Ro}a=s.bind(null,t,a,e),s=void 0,!Uc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function go(e,t,a,l,s){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var f=l.stateNode.containerInfo;if(f===s)break;if(o===4)for(o=l.return;o!==null;){var y=o.tag;if((y===3||y===4)&&o.stateNode.containerInfo===s)return;o=o.return}for(;f!==null;){if(o=ql(f),o===null)return;if(y=o.tag,y===5||y===6||y===26||y===27){l=i=o;continue e}f=f.parentNode}}l=l.return}Hu(function(){var A=i,D=Dc(a),U=[];e:{var C=hd.get(e);if(C!==void 0){var _=ii,J=e;switch(e){case"keypress":if(ni(a)===0)break e;case"keydown":case"keyup":_=i0;break;case"focusin":J="focus",_=qc;break;case"focusout":J="blur",_=qc;break;case"beforeblur":case"afterblur":_=qc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Gu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=o0;break;case od:case ud:case dd:_=Wy;break;case fd:_=d0;break;case"scroll":case"scrollend":_=Vy;break;case"wheel":_=h0;break;case"copy":case"cut":case"paste":_=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ku;break;case"toggle":case"beforetoggle":_=y0}var ae=(t&4)!==0,Re=!ae&&(e==="scroll"||e==="scrollend"),z=ae?C!==null?C+"Capture":null:C;ae=[];for(var v=A,E;v!==null;){var w=v;if(E=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||E===null||z===null||(w=Vn(v,z),w!=null&&ae.push(Ts(v,w,E))),Re)break;v=v.return}0<ae.length&&(C=new _(C,J,null,a,D),U.push({event:C,listeners:ae}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",C&&a!==kc&&(J=a.relatedTarget||a.fromElement)&&(ql(J)||J[Hl]))break e;if((_||C)&&(C=D.window===D?D:(C=D.ownerDocument)?C.defaultView||C.parentWindow:window,_?(J=a.relatedTarget||a.toElement,_=A,J=J?ql(J):null,J!==null&&(Re=x(J),ae=J.tag,J!==Re||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(_=null,J=A),_!==J)){if(ae=Gu,w="onMouseLeave",z="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Ku,w="onPointerLeave",z="onPointerEnter",v="pointer"),Re=_==null?C:Xn(_),E=J==null?C:Xn(J),C=new ae(w,v+"leave",_,a,D),C.target=Re,C.relatedTarget=E,w=null,ql(D)===A&&(ae=new ae(z,v+"enter",J,a,D),ae.target=E,ae.relatedTarget=Re,w=ae),Re=w,_&&J)t:{for(ae=m1,z=_,v=J,E=0,w=z;w;w=ae(w))E++;w=0;for(var P=v;P;P=ae(P))w++;for(;0<E-w;)z=ae(z),E--;for(;0<w-E;)v=ae(v),w--;for(;E--;){if(z===v||v!==null&&z===v.alternate){ae=z;break t}z=ae(z),v=ae(v)}ae=null}else ae=null;_!==null&&Uh(U,C,_,ae,!1),J!==null&&Re!==null&&Uh(U,Re,J,ae,!0)}}e:{if(C=A?Xn(A):window,_=C.nodeName&&C.nodeName.toLowerCase(),_==="select"||_==="input"&&C.type==="file")var je=Iu;else if($u(C))if(Pu)je=T0;else{je=N0;var W=S0}else _=C.nodeName,!_||_.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?A&&Rc(A.elementType)&&(je=Iu):je=z0;if(je&&(je=je(e,A))){Wu(U,je,a,D);break e}W&&W(e,C,A),e==="focusout"&&A&&C.type==="number"&&A.memoizedProps.value!=null&&_c(C,"number",C.value)}switch(W=A?Xn(A):window,e){case"focusin":($u(W)||W.contentEditable==="true")&&(Fl=W,Vc=A,es=null);break;case"focusout":es=Vc=Fl=null;break;case"mousedown":Zc=!0;break;case"contextmenu":case"mouseup":case"dragend":Zc=!1,cd(U,a,D);break;case"selectionchange":if(A0)break;case"keydown":case"keyup":cd(U,a,D)}var ue;if(Gc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Jl?Ju(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Xu&&a.locale!=="ko"&&(Jl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Jl&&(ue=qu()):(Aa=D,Lc="value"in Aa?Aa.value:Aa.textContent,Jl=!0)),W=$i(A,ye),0<W.length&&(ye=new Yu(ye,e,null,a,D),U.push({event:ye,listeners:W}),ue?ye.data=ue:(ue=Fu(a),ue!==null&&(ye.data=ue)))),(ue=p0?g0(e,a):x0(e,a))&&(ye=$i(A,"onBeforeInput"),0<ye.length&&(W=new Yu("onBeforeInput","beforeinput",null,a,D),U.push({event:W,listeners:ye}),W.data=ue)),u1(U,e,A,a,D)}Dh(U,t)})}function Ts(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $i(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=Vn(e,a),s!=null&&l.unshift(Ts(e,s,i)),s=Vn(e,t),s!=null&&l.push(Ts(e,s,i))),e.tag===3)return l;e=e.return}return[]}function m1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uh(e,t,a,l,s){for(var i=t._reactName,o=[];a!==null&&a!==l;){var f=a,y=f.alternate,A=f.stateNode;if(f=f.tag,y!==null&&y===l)break;f!==5&&f!==26&&f!==27||A===null||(y=A,s?(A=Vn(a,i),A!=null&&o.unshift(Ts(a,A,y))):s||(A=Vn(a,i),A!=null&&o.push(Ts(a,A,y)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var y1=/\r\n?/g,v1=/\u0000|\uFFFD/g;function Lh(e){return(typeof e=="string"?e:""+e).replace(y1,`
49
- `).replace(v1,"")}function Bh(e,t){return t=Lh(t),Lh(e)===t}function _e(e,t,a,l,s,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":ei(e,"class",l);break;case"tabIndex":ei(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ei(e,a,l);break;case"style":Lu(e,l,i);break;case"data":if(t!=="object"){ei(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ai(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",s.name,s,null),_e(e,t,"formEncType",s.formEncType,s,null),_e(e,t,"formMethod",s.formMethod,s,null),_e(e,t,"formTarget",s.formTarget,s,null)):(_e(e,t,"encType",s.encType,s,null),_e(e,t,"method",s.method,s,null),_e(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ai(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ai(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),Ps(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ps(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ky.get(a)||a,Ps(e,a,l))}}function xo(e,t,a,l,s,i){switch(a){case"style":Lu(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cu.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),i=e[mt]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ps(e,a,l)}}}function st(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,s=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:_e(e,t,i,o,a,null)}}s&&_e(e,t,"srcSet",a.srcSet,a,null),l&&_e(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var f=i=o=s=null,y=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var D=a[l];if(D!=null)switch(l){case"name":s=D;break;case"type":o=D;break;case"checked":y=D;break;case"defaultChecked":A=D;break;case"value":i=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:_e(e,t,l,D,a,null)}}ku(e,i,f,y,A,o,s,!1);return;case"select":he("invalid",e),l=o=i=null;for(s in a)if(a.hasOwnProperty(s)&&(f=a[s],f!=null))switch(s){case"value":i=f;break;case"defaultValue":o=f;break;case"multiple":l=f;default:_e(e,t,s,f,a,null)}t=i,a=o,e.multiple=!!l,t!=null?Kl(e,!!l,t,!1):a!=null&&Kl(e,!!l,a,!0);return;case"textarea":he("invalid",e),i=s=l=null;for(o in a)if(a.hasOwnProperty(o)&&(f=a[o],f!=null))switch(o){case"value":l=f;break;case"defaultValue":s=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:_e(e,t,o,f,a,null)}wu(e,l,s,i);return;case"option":for(y in a)if(a.hasOwnProperty(y)&&(l=a[y],l!=null))switch(y){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:_e(e,t,y,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<zs.length;l++)he(zs[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:_e(e,t,A,l,a,null)}return;default:if(Rc(t)){for(D in a)a.hasOwnProperty(D)&&(l=a[D],l!==void 0&&xo(e,t,D,l,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(l=a[f],l!=null&&_e(e,t,f,l,a,null))}function p1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,o=null,f=null,y=null,A=null,D=null;for(_ in a){var U=a[_];if(a.hasOwnProperty(_)&&U!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=U;default:l.hasOwnProperty(_)||_e(e,t,_,null,l,U)}}for(var C in l){var _=l[C];if(U=a[C],l.hasOwnProperty(C)&&(_!=null||U!=null))switch(C){case"type":i=_;break;case"name":s=_;break;case"checked":A=_;break;case"defaultChecked":D=_;break;case"value":o=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:_!==U&&_e(e,t,C,_,l,U)}}Oc(e,o,f,y,A,D,i,s);return;case"select":_=o=f=C=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":_=y;default:l.hasOwnProperty(i)||_e(e,t,i,null,l,y)}for(s in l)if(i=l[s],y=a[s],l.hasOwnProperty(s)&&(i!=null||y!=null))switch(s){case"value":C=i;break;case"defaultValue":f=i;break;case"multiple":o=i;default:i!==y&&_e(e,t,s,i,l,y)}t=f,a=o,l=_,C!=null?Kl(e,!!a,C,!1):!!l!=!!a&&(t!=null?Kl(e,!!a,t,!0):Kl(e,!!a,a?[]:"",!1));return;case"textarea":_=C=null;for(f in a)if(s=a[f],a.hasOwnProperty(f)&&s!=null&&!l.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:_e(e,t,f,null,l,s)}for(o in l)if(s=l[o],i=a[o],l.hasOwnProperty(o)&&(s!=null||i!=null))switch(o){case"value":C=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==i&&_e(e,t,o,s,l,i)}Du(e,C,_);return;case"option":for(var J in a)if(C=a[J],a.hasOwnProperty(J)&&C!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:_e(e,t,J,null,l,C)}for(y in l)if(C=l[y],_=a[y],l.hasOwnProperty(y)&&C!==_&&(C!=null||_!=null))switch(y){case"selected":e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:_e(e,t,y,C,l,_)}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 ae in a)C=a[ae],a.hasOwnProperty(ae)&&C!=null&&!l.hasOwnProperty(ae)&&_e(e,t,ae,null,l,C);for(A in l)if(C=l[A],_=a[A],l.hasOwnProperty(A)&&C!==_&&(C!=null||_!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(u(137,t));break;default:_e(e,t,A,C,l,_)}return;default:if(Rc(t)){for(var Re in a)C=a[Re],a.hasOwnProperty(Re)&&C!==void 0&&!l.hasOwnProperty(Re)&&xo(e,t,Re,void 0,l,C);for(D in l)C=l[D],_=a[D],!l.hasOwnProperty(D)||C===_||C===void 0&&_===void 0||xo(e,t,D,C,l,_);return}}for(var z in a)C=a[z],a.hasOwnProperty(z)&&C!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,C);for(U in l)C=l[U],_=a[U],!l.hasOwnProperty(U)||C===_||C==null&&_==null||_e(e,t,U,C,l,_)}function Hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],i=s.transferSize,o=s.initiatorType,f=s.duration;if(i&&f&&Hh(o)){for(o=0,f=s.responseEnd,l+=1;l<a.length;l++){var y=a[l],A=y.startTime;if(A>f)break;var D=y.transferSize,U=y.initiatorType;D&&Hh(U)&&(y=y.responseEnd,o+=D*(y<f?1:(f-A)/(y-A)))}if(--l,t+=8*(i+o)/(s.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 bo=null,jo=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function qh(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 Qh(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 So(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 No=null;function x1(){var e=window.event;return e&&e.type==="popstate"?e===No?!1:(No=e,!0):(No=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,j1=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(S1)}:Gh;function S1(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function Kh(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Nn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Es(a);for(var i=a.firstChild;i;){var o=i.nextSibling,f=i.nodeName;i[Kn]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&Es(e.ownerDocument.body);a=s}while(a);Nn(t)}function Xh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function zo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":zo(a),Cc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function N1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Kn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function z1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function Vh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function To(e){return e.data==="$?"||e.data==="$~"}function Eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(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 Ao=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Fh(e,t,a){switch(t=Wi(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cc(e)}var Kt=new Map,$h=new Set;function Ii(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=Y.d;Y.d={f:E1,r:A1,D:C1,C:M1,L:O1,m:_1,X:k1,S:R1,M:D1};function E1(){var e=ba.f(),t=Yi();return e||t}function A1(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?hf(t):ba.r(e)}var bn=typeof document>"u"?null:document;function Wh(e,t,a){var l=bn;if(l&&typeof t=="string"&&t){var s=Ut(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),$h.has(s)||($h.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),st(t,"link",e),Ie(t),l.head.appendChild(t)))}}function C1(e){ba.D(e),Wh("dns-prefetch",e,null)}function M1(e,t){ba.C(e,t),Wh("preconnect",e,t)}function O1(e,t,a){ba.L(e,t,a);var l=bn;if(l&&e&&t){var s='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Ut(a.imageSizes)+'"]')):s+='[href="'+Ut(e)+'"]';var i=s;switch(t){case"style":i=jn(e);break;case"script":i=Sn(e)}Kt.has(i)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(i,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(As(i))||t==="script"&&l.querySelector(Cs(i))||(t=l.createElement("link"),st(t,"link",e),Ie(t),l.head.appendChild(t)))}}function _1(e,t){ba.m(e,t);var a=bn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',i=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Sn(e)}if(!Kt.has(i)&&(e=S({rel:"modulepreload",href:e},t),Kt.set(i,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Cs(i)))return}l=a.createElement("link"),st(l,"link",e),Ie(l),a.head.appendChild(l)}}}function R1(e,t,a){ba.S(e,t,a);var l=bn;if(l&&e){var s=Gl(l).hoistableStyles,i=jn(e);t=t||"default";var o=s.get(i);if(!o){var f={loading:0,preload:null};if(o=l.querySelector(As(i)))f.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(i))&&Co(e,a);var y=o=l.createElement("link");Ie(y),st(y,"link",e),y._p=new Promise(function(A,D){y.onload=A,y.onerror=D}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Pi(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:f},s.set(i,o)}}}function k1(e,t){ba.X(e,t);var a=bn;if(a&&e){var l=Gl(a).hoistableScripts,s=Sn(e),i=l.get(s);i||(i=a.querySelector(Cs(s)),i||(e=S({src:e,async:!0},t),(t=Kt.get(s))&&Mo(e,t),i=a.createElement("script"),Ie(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function D1(e,t){ba.M(e,t);var a=bn;if(a&&e){var l=Gl(a).hoistableScripts,s=Sn(e),i=l.get(s);i||(i=a.querySelector(Cs(s)),i||(e=S({src:e,async:!0,type:"module"},t),(t=Kt.get(s))&&Mo(e,t),i=a.createElement("script"),Ie(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function Ih(e,t,a,l){var s=(s=de.current)?Ii(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=jn(a.href),a=Gl(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=jn(a.href);var i=Gl(s).hoistableStyles,o=i.get(e);if(o||(s=s.ownerDocument||s,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=s.querySelector(As(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),i||w1(s,e,a,o.state))),t&&l===null)throw Error(u(528,""));return o}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(a),a=Gl(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function jn(e){return'href="'+Ut(e)+'"'}function As(e){return'link[rel="stylesheet"]['+e+"]"}function Ph(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function w1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),st(t,"link",a),Ie(t),e.head.appendChild(t))}function Sn(e){return'[src="'+Ut(e)+'"]'}function Cs(e){return"script[async]"+e}function em(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var s=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),st(l,"style",s),Pi(l,a.precedence,e),t.instance=l;case"stylesheet":s=jn(a.href);var i=e.querySelector(As(s));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;l=Ph(a),(s=Kt.get(s))&&Co(l,s),i=(e.ownerDocument||e).createElement("link"),Ie(i);var o=i;return o._p=new Promise(function(f,y){o.onload=f,o.onerror=y}),st(i,"link",l),t.state.loading|=4,Pi(i,a.precedence,e),t.instance=i;case"script":return i=Sn(a.src),(s=e.querySelector(Cs(i)))?(t.instance=s,Ie(s),s):(l=a,(s=Kt.get(i))&&(l=S({},a),Mo(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),st(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Pi(l,a.precedence,e));return t.instance}function Pi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,i=s,o=0;o<l.length;o++){var f=l[o];if(f.dataset.precedence===t)i=f;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ec=null;function tm(e,t,a){if(ec===null){var l=new Map,s=ec=new Map;s.set(a,l)}else s=ec,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var i=a[s];if(!(i[Kn]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var f=l.get(o);f?f.push(i):l.set(o,[i])}}return l}function am(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function U1(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L1(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=jn(l.href),i=t.querySelector(As(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ie(i);return}i=t.ownerDocument||t,l=Ph(l),(s=Kt.get(s))&&Co(l,s),i=i.createElement("link"),Ie(i);var o=i;o._p=new Promise(function(f,y){o.onload=f,o.onerror=y}),st(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oo=0;function B1(e,t){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Oo===0&&(Oo=62500*g1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Oo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ac=null;function lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ac=new Map,t.forEach(H1,e),ac=null,tc.call(e))}function H1(e,t){if(!(t.state.loading&4)){var a=ac.get(e);if(a)var l=a.get(null);else{a=new Map,ac.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var o=s[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}s=t.instance,o=s.getAttribute("data-precedence"),i=a.get(o)||l,i===l&&a.set(null,s),a.set(o,s),this.count++,l=tc.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ms={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function q1(e,t,a,l,s,i,o,f,y){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=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function nm(e,t,a,l,s,i,o,f,y,A,D,U){return e=new q1(e,t,a,o,y,A,D,U,f),t=1,i===!0&&(t|=24),i=At(3,null,null,t),e.current=i,i.stateNode=e,t=rr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},fr(i),e}function sm(e){return e?(e=Il,e):Il}function im(e,t,a,l,s,i){s=sm(s),l.context===null?l.context=s:l.pendingContext=s,l=ka(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Da(e,l,t),a!==null&&(bt(a,e,t),cs(a,e,t))}function cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function _o(e,t){cm(e,t),(e=e.alternate)&&cm(e,t)}function rm(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&bt(t,e,67108864),_o(e,67108864)}}function om(e){if(e.tag===13||e.tag===31){var t=Rt();t=Tc(t);var a=ml(e,t);a!==null&&bt(a,e,t),_o(e,t)}}var nc=!0;function Q1(e,t,a,l){var s=k.T;k.T=null;var i=Y.p;try{Y.p=2,Ro(e,t,a,l)}finally{Y.p=i,k.T=s}}function G1(e,t,a,l){var s=k.T;k.T=null;var i=Y.p;try{Y.p=8,Ro(e,t,a,l)}finally{Y.p=i,k.T=s}}function Ro(e,t,a,l){if(nc){var s=ko(l);if(s===null)go(e,t,l,sc,a),dm(e,l);else if(K1(s,e,t,a,l))l.stopPropagation();else if(dm(e,l),t&4&&-1<Y1.indexOf(e)){for(;s!==null;){var i=Ql(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=ol(i.pendingLanes);if(o!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;o;){var y=1<<31-Tt(o);f.entanglements[1]|=y,o&=~y}Pt(i),(Ne&6)===0&&(Qi=Nt()+500,Ns(0))}}break;case 31:case 13:f=ml(i,2),f!==null&&bt(f,i,2),Yi(),_o(i,2)}if(i=ko(l),i===null&&go(e,t,l,sc,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else go(e,t,l,null,a)}}function ko(e){return e=Dc(e),Do(e)}var sc=null;function Do(e){if(sc=null,e=ql(e),e!==null){var t=x(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=T(t),e!==null)return e;e=null}else if(a===31){if(e=j(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return sc=e,null}function um(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(Cy()){case pu:return 2;case gu:return 8;case Js:case My:return 32;case xu:return 268435456;default:return 32}default:return 32}}var wo=!1,Xa=null,Va=null,Za=null,Os=new Map,_s=new Map,Ja=[],Y1="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 dm(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function Rs(e,t,a,l,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ql(t),t!==null&&rm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function K1(e,t,a,l,s){switch(t){case"focusin":return Xa=Rs(Xa,e,t,a,l,s),!0;case"dragenter":return Va=Rs(Va,e,t,a,l,s),!0;case"mouseover":return Za=Rs(Za,e,t,a,l,s),!0;case"pointerover":var i=s.pointerId;return Os.set(i,Rs(Os.get(i)||null,e,t,a,l,s)),!0;case"gotpointercapture":return i=s.pointerId,_s.set(i,Rs(_s.get(i)||null,e,t,a,l,s)),!0}return!1}function fm(e){var t=ql(e.target);if(t!==null){var a=x(t);if(a!==null){if(t=a.tag,t===13){if(t=T(a),t!==null){e.blockedOn=t,Tu(e.priority,function(){om(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,Tu(e.priority,function(){om(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ko(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);kc=l,a.target.dispatchEvent(l),kc=null}else return t=Ql(a),t!==null&&rm(t),e.blockedOn=a,!1;t.shift()}return!0}function hm(e,t,a){ic(e)&&a.delete(t)}function X1(){wo=!1,Xa!==null&&ic(Xa)&&(Xa=null),Va!==null&&ic(Va)&&(Va=null),Za!==null&&ic(Za)&&(Za=null),Os.forEach(hm),_s.forEach(hm)}function cc(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,X1)))}var rc=null;function mm(e){rc!==e&&(rc=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){rc===e&&(rc=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Do(l||a)===null)continue;break}var i=Ql(a);i!==null&&(e.splice(t,3),t-=3,Rr(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Nn(e){function t(y){return cc(y,e)}Xa!==null&&cc(Xa,e),Va!==null&&cc(Va,e),Za!==null&&cc(Za,e),Os.forEach(t),_s.forEach(t);for(var a=0;a<Ja.length;a++){var l=Ja[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)fm(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],i=a[l+1],o=s[mt]||null;if(typeof i=="function")o||mm(a);else if(o){var f=null;if(i&&i.hasAttribute("formAction")){if(s=i,o=i[mt]||null)f=o.formAction;else if(Do(s)!==null)continue}else f=o.action;typeof f=="function"?a[l+1]=f:(a.splice(l,3),l-=3),mm(a)}}}function ym(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return s=o})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Uo(e){this._internalRoot=e}oc.prototype.render=Uo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Rt();im(a,l,e,t,null,null)},oc.prototype.unmount=Uo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;im(e.current,2,null,e,null,null),Yi(),t[Hl]=null}};function oc(e){this._internalRoot=e}oc.prototype.unstable_scheduleHydration=function(e){if(e){var t=zu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&fm(e)}};var vm=r.version;if(vm!=="19.2.7")throw Error(u(527,vm,"19.2.7"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=h(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var V1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{Qn=uc.inject(V1),zt=uc}catch{}}return Ds.createRoot=function(e,t){if(!m(e))throw Error(u(299));var a=!1,l="",s=Nf,i=zf,o=Tf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=nm(e,1,!1,null,null,a,l,null,s,i,o,ym),e[Hl]=t.current,po(e),new Uo(t)},Ds.hydrateRoot=function(e,t,a){if(!m(e))throw Error(u(299));var l=!1,s="",i=Nf,o=zf,f=Tf,y=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=nm(e,1,!0,t,a??null,l,s,y,i,o,f,ym),t.context=sm(null),a=t.current,l=Rt(),l=Tc(l),s=ka(l),s.callback=null,Da(a,s,l),a=l,t.current.lanes=a,Yn(t,a),Pt(t),e[Hl]=t.current,po(e),new oc(t)},Ds.version="19.2.7",Ds}var Lm;function Gv(){if(Lm)return qo.exports;Lm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),qo.exports=Qv(),qo.exports}var Yv=Gv();/**
48
+ `+l.stack}}var jc=Object.prototype.hasOwnProperty,Sc=c.unstable_scheduleCallback,Nc=c.unstable_cancelCallback,Ey=c.unstable_shouldYield,Ay=c.unstable_requestPaint,Nt=c.unstable_now,Cy=c.unstable_getCurrentPriorityLevel,pu=c.unstable_ImmediatePriority,gu=c.unstable_UserBlockingPriority,Js=c.unstable_NormalPriority,My=c.unstable_LowPriority,xu=c.unstable_IdlePriority,Oy=c.log,_y=c.unstable_setDisableYieldValue,Qn=null,zt=null;function Ta(e){if(typeof Oy=="function"&&_y(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Qn,e)}catch{}}var Tt=Math.clz32?Math.clz32:ky,Ry=Math.log,Dy=Math.LN2;function ky(e){return e>>>=0,e===0?32:31-(Ry(e)/Dy|0)|0}var Fs=256,$s=262144,Ws=4194304;function ol(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 Is(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var f=l&134217727;return f!==0?(l=f&~i,l!==0?s=ol(l):(o&=f,o!==0?s=ol(o):a||(a=f&~e,a!==0&&(s=ol(a))))):(f=l&~i,f!==0?s=ol(f):o!==0?s=ol(o):a||(a=l&~e,a!==0&&(s=ol(a)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:s}function Gn(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 bu(){var e=Ws;return Ws<<=1,(Ws&62914560)===0&&(Ws=4194304),e}function zc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Uy(e,t,a,l,s,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var f=e.entanglements,y=e.expirationTimes,A=e.hiddenUpdates;for(a=o&~a;0<a;){var k=31-Tt(a),U=1<<k;f[k]=0,y[k]=-1;var C=A[k];if(C!==null)for(A[k]=null,k=0;k<C.length;k++){var _=C[k];_!==null&&(_.lane&=-536870913)}a&=~U}l!==0&&ju(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function ju(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Tt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Su(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Tt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function Nu(e,t){var a=t&-t;return a=(a&42)!==0?1:Tc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Tc(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 Ec(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zu(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:um(e.type))}function Tu(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Ea=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ea,mt="__reactProps$"+Ea,Hl="__reactContainer$"+Ea,Ac="__reactEvents$"+Ea,Ly="__reactListeners$"+Ea,By="__reactHandles$"+Ea,Eu="__reactResources$"+Ea,Kn="__reactMarker$"+Ea;function Cc(e){delete e[tt],delete e[mt],delete e[Ac],delete e[Ly],delete e[By]}function ql(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Hl]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Jh(e);e!==null;){if(a=e[tt])return a;e=Jh(e)}return t}e=a,a=e.parentNode}return null}function Ql(e){if(e=e[tt]||e[Hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Gl(e){var t=e[Eu];return t||(t=e[Eu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Kn]=!0}var Au=new Set,Cu={};function ul(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Cu[e]=t,e=0;e<t.length;e++)Au.add(t[e])}var Hy=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]*$"),Mu={},Ou={};function qy(e){return jc.call(Ou,e)?!0:jc.call(Mu,e)?!1:Hy.test(e)?Ou[e]=!0:(Mu[e]=!0,!1)}function Ps(e,t,a){if(qy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ei(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _u(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qy(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=_u(e)?"checked":"value";e._valueTracker=Qy(e,t,""+e[t])}}function Ru(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=_u(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ti(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 Gy=/[\n"\\]/g;function Ut(e){return e.replace(Gy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oc(e,t,a,l,s,i,o,f){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?_c(e,o,wt(t)):a!=null?_c(e,o,wt(a)):l!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+wt(f):e.removeAttribute("name")}function Du(e,t,a,l,s,i,o,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Mc(e);return}a=a!=null?""+wt(a):"",t=t!=null?""+wt(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=f?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Mc(e)}function _c(e,t,a){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kl(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+wt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ku(e,t,a){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wt(a):""}function wu(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(u(92));if(De(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=wt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Mc(e)}function Xl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Yy=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 Uu(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Yy.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Lu(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&Uu(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&Uu(e,i,t[i])}function Rc(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 Ky=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"]]),Xy=/^[\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 ai(e){return Xy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Dc=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Zl=null;function Bu(e){var t=Ql(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[mt]||null;if(!s)throw Error(u(90));Oc(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ru(l)}break e;case"textarea":ku(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kl(e,!!a.multiple,t,!1)}}}var wc=!1;function Hu(e,t,a){if(wc)return e(t,a);wc=!0;try{var l=e(t);return l}finally{if(wc=!1,(Vl!==null||Zl!==null)&&(Yi(),Vl&&(t=Vl,e=Zl,Zl=Vl=null,Bu(t),e)))for(t=0;t<e.length;t++)Bu(e[t])}}function Vn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[mt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(sa)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Uc=!1}var Aa=null,Lc=null,li=null;function qu(){if(li)return li;var e,t=Lc,a=t.length,l,s="value"in Aa?Aa.value:Aa.textContent,i=s.length;for(e=0;e<a&&t[e]===s[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===s[i-l];l++);return li=s.slice(e,1<l?1-l:void 0)}function ni(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 si(){return!0}function Qu(){return!1}function yt(e){function t(a,l,s,i,o){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?si:Qu,this.isPropagationStopped=Qu,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ii=yt(dl),Jn=S({},dl,{view:0,detail:0}),Vy=yt(Jn),Bc,Hc,Fn,ci=S({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,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!==Fn&&(Fn&&e.type==="mousemove"?(Bc=e.screenX-Fn.screenX,Hc=e.screenY-Fn.screenY):Hc=Bc=0,Fn=e),Bc)},movementY:function(e){return"movementY"in e?e.movementY:Hc}}),Gu=yt(ci),Zy=S({},ci,{dataTransfer:0}),Jy=yt(Zy),Fy=S({},Jn,{relatedTarget:0}),qc=yt(Fy),$y=S({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),Wy=yt($y),Iy=S({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=yt(Iy),e0=S({},dl,{data:0}),Yu=yt(e0),t0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a0={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"},l0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=l0[e])?!!t[e]:!1}function Qc(){return n0}var s0=S({},Jn,{key:function(e){if(e.key){var t=t0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),i0=yt(s0),c0=S({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ku=yt(c0),r0=S({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),o0=yt(r0),u0=S({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),d0=yt(u0),f0=S({},ci,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),h0=yt(f0),m0=S({},dl,{newState:0,oldState:0}),y0=yt(m0),v0=[9,13,27,32],Gc=sa&&"CompositionEvent"in window,$n=null;sa&&"documentMode"in document&&($n=document.documentMode);var p0=sa&&"TextEvent"in window&&!$n,Xu=sa&&(!Gc||$n&&8<$n&&11>=$n),Vu=" ",Zu=!1;function Ju(e,t){switch(e){case"keyup":return v0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function g0(e,t){switch(e){case"compositionend":return Fu(t);case"keypress":return t.which!==32?null:(Zu=!0,Vu);case"textInput":return e=t.data,e===Vu&&Zu?null:e;default:return null}}function x0(e,t){if(Jl)return e==="compositionend"||!Gc&&Ju(e,t)?(e=qu(),li=Lc=Aa=null,Jl=!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 Xu&&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 $u(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b0[e.type]:t==="textarea"}function Wu(e,t,a,l){Vl?Zl?Zl.push(l):Zl=[l]:Vl=l,t=$i(t,"onChange"),0<t.length&&(a=new ii("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Wn=null,In=null;function j0(e){kh(e,0)}function ri(e){var t=Xn(e);if(Ru(t))return e}function Iu(e,t){if(e==="change")return t}var Pu=!1;if(sa){var Yc;if(sa){var Kc="oninput"in document;if(!Kc){var ed=document.createElement("div");ed.setAttribute("oninput","return;"),Kc=typeof ed.oninput=="function"}Yc=Kc}else Yc=!1;Pu=Yc&&(!document.documentMode||9<document.documentMode)}function td(){Wn&&(Wn.detachEvent("onpropertychange",ad),In=Wn=null)}function ad(e){if(e.propertyName==="value"&&ri(In)){var t=[];Wu(t,In,e,kc(e)),Hu(j0,t)}}function S0(e,t,a){e==="focusin"?(td(),Wn=t,In=a,Wn.attachEvent("onpropertychange",ad)):e==="focusout"&&td()}function N0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ri(In)}function z0(e,t){if(e==="click")return ri(t)}function T0(e,t){if(e==="input"||e==="change")return ri(t)}function E0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:E0;function Pn(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!jc.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function ld(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nd(e,t){var a=ld(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ld(a)}}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 id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ti(e.document)}return t}function Xc(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 A0=sa&&"documentMode"in document&&11>=document.documentMode,Fl=null,Vc=null,es=null,Zc=!1;function cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zc||Fl==null||Fl!==ti(l)||(l=Fl,"selectionStart"in l&&Xc(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}),es&&Pn(es,l)||(es=l,l=$i(Vc,"onSelect"),0<l.length&&(t=new ii("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Fl)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var $l={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},Jc={},rd={};sa&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function hl(e){if(Jc[e])return Jc[e];if(!$l[e])return e;var t=$l[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in rd)return Jc[e]=t[a];return e}var od=hl("animationend"),ud=hl("animationiteration"),dd=hl("animationstart"),C0=hl("transitionrun"),M0=hl("transitionstart"),O0=hl("transitioncancel"),fd=hl("transitionend"),hd=new Map,Fc="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(" ");Fc.push("scrollEnd");function Vt(e,t){hd.set(e,t),ul(t,[e])}var oi=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)},Lt=[],Wl=0,$c=0;function ui(){for(var e=Wl,t=$c=Wl=0;t<e;){var a=Lt[t];Lt[t++]=null;var l=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var i=Lt[t];if(Lt[t++]=null,l!==null&&s!==null){var o=l.pending;o===null?s.next=s:(s.next=o.next,o.next=s),l.pending=s}i!==0&&md(a,s,i)}}function di(e,t,a,l){Lt[Wl++]=e,Lt[Wl++]=t,Lt[Wl++]=a,Lt[Wl++]=l,$c|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Wc(e,t,a,l){return di(e,t,a,l),fi(e)}function ml(e,t){return di(e,null,null,t),fi(e)}function md(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-Tt(a),e=i.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),i):null}function fi(e){if(50<Ss)throw Ss=0,io=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function _0(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new _0(e,t,a,l)}function Ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function yd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function hi(e,t,a,l,s,i){var o=0;if(l=e,typeof e=="function")Ic(e)&&(o=1);else if(typeof e=="string")o=U1(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=At(31,a,t,s),e.elementType=pe,e.lanes=i,e;case B:return yl(a.children,s,i,t);case Z:o=8,s|=24;break;case V:return e=At(12,a,t,s|2),e.elementType=V,e.lanes=i,e;case te:return e=At(13,a,t,s),e.elementType=te,e.lanes=i,e;case ie:return e=At(19,a,t,s),e.elementType=ie,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:o=10;break e;case q:o=9;break e;case G:o=11;break e;case le:o=14;break e;case se:o=16,l=null;break e}o=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=At(o,a,t,s),t.elementType=e,t.type=l,t.lanes=i,t}function yl(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function Pc(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function vd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function er(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=pd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vu(t)},pd.set(e,t),t)}return{value:e,source:t,stack:vu(t)}}var Pl=[],en=0,mi=null,ts=0,Ht=[],qt=0,Ca=null,$t=1,Wt="";function ca(e,t){Pl[en++]=ts,Pl[en++]=mi,mi=e,ts=t}function gd(e,t,a){Ht[qt++]=$t,Ht[qt++]=Wt,Ht[qt++]=Ca,Ca=e;var l=$t;e=Wt;var s=32-Tt(l)-1;l&=~(1<<s),a+=1;var i=32-Tt(t)+s;if(30<i){var o=s-s%5;i=(l&(1<<o)-1).toString(32),l>>=o,s-=o,$t=1<<32-Tt(t)+s|a<<s|l,Wt=i+e}else $t=1<<i|a<<s|l,Wt=e}function tr(e){e.return!==null&&(ca(e,1),gd(e,1,0))}function ar(e){for(;e===mi;)mi=Pl[--en],Pl[en]=null,ts=Pl[--en],Pl[en]=null;for(;e===Ca;)Ca=Ht[--qt],Ht[qt]=null,Wt=Ht[--qt],Ht[qt]=null,$t=Ht[--qt],Ht[qt]=null}function xd(e,t){Ht[qt++]=$t,Ht[qt++]=Wt,Ht[qt++]=Ca,$t=t.id,Wt=t.overflow,Ca=e}var at=null,Le=null,xe=!1,Ma=null,Qt=!1,lr=Error(u(519));function Oa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw as(Bt(t,e)),lr}function bd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[mt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<zs.length;a++)he(zs[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Du(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),wu(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Bh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Oa(e,!0)}function jd(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:at=at.return}}function tn(e){if(e!==at)return!1;if(!xe)return jd(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||So(e.type,e.memoizedProps)),a=!a),a&&Le&&Oa(e),jd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Zh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Zh(e)}else t===27?(t=Le,Ka(e.type)?(e=Ao,Ao=null,Le=e):Le=t):Le=at?Yt(e.stateNode.nextSibling):null;return!0}function vl(){Le=at=null,xe=!1}function nr(){var e=Ma;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Ma=null),e}function as(e){Ma===null?Ma=[e]:Ma.push(e)}var sr=b(null),pl=null,ra=null;function _a(e,t,a){K(sr,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=sr.current,L(sr)}function ir(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function cr(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var o=s.child;i=i.firstContext;e:for(;i!==null;){var f=i;i=s;for(var y=0;y<t.length;y++)if(f.context===t[y]){i.lanes|=a,f=i.alternate,f!==null&&(f.lanes|=a),ir(i.return,a,e),l||(o=null);break e}i=f.next}}else if(s.tag===18){if(o=s.return,o===null)throw Error(u(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),ir(o,a,e),o=null}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}}function an(e,t,a,l){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var o=s.alternate;if(o===null)throw Error(u(387));if(o=o.memoizedProps,o!==null){var f=s.type;Et(s.pendingProps.value,o.value)||(e!==null?e.push(f):e=[f])}}else if(s===ze.current){if(o=s.alternate,o===null)throw Error(u(387));o.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ms):e=[Ms])}s=s.return}e!==null&&cr(t,e,a,l),t.flags|=262144}function yi(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Sd(pl,e)}function vi(e,t){return pl===null&&gl(e),Sd(e,t)}function Sd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ra===null){if(e===null)throw Error(u(308));ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ra=ra.next=t;return a}var R0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},D0=c.unstable_scheduleCallback,k0=c.unstable_NormalPriority,Ze={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rr(){return{controller:new R0,data:new Map,refCount:0}}function ls(e){e.refCount--,e.refCount===0&&D0(k0,function(){e.controller.abort()})}var ns=null,or=0,ln=0,nn=null;function w0(e,t){if(ns===null){var a=ns=[];or=0,ln=ho(),nn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return or++,t.then(Nd,Nd),t}function Nd(){if(--or===0&&ns!==null){nn!==null&&(nn.status="fulfilled");var e=ns;ns=null,ln=0,nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function U0(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var zd=D.S;D.S=function(e,t){rh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w0(e,t),zd!==null&&zd(e,t)};var xl=b(null);function ur(){var e=xl.current;return e!==null?e:we.pooledCache}function pi(e,t){t===null?K(xl,xl.current):K(xl,t.pool)}function Td(){var e=ur();return e===null?null:{parent:Ze._currentValue,pool:e}}var sn=Error(u(460)),dr=Error(u(474)),gi=Error(u(542)),xi={then:function(){}};function Ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ad(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Md(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=we,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Md(e),e}throw jl=t,sn}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(jl=a,sn):a}}var jl=null;function Cd(){if(jl===null)throw Error(u(459));var e=jl;return jl=null,e}function Md(e){if(e===sn||e===gi)throw Error(u(483))}var cn=null,ss=0;function bi(e){var t=ss;return ss+=1,cn===null&&(cn=[]),Ad(cn,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===M?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Od(e){function t(z,v){if(e){var E=z.deletions;E===null?(z.deletions=[v],z.flags|=16):E.push(v)}}function a(z,v){if(!e)return null;for(;v!==null;)t(z,v),v=v.sibling;return null}function l(z){for(var v=new Map;z!==null;)z.key!==null?v.set(z.key,z):v.set(z.index,z),z=z.sibling;return v}function s(z,v){return z=ia(z,v),z.index=0,z.sibling=null,z}function i(z,v,E){return z.index=E,e?(E=z.alternate,E!==null?(E=E.index,E<v?(z.flags|=67108866,v):E):(z.flags|=67108866,v)):(z.flags|=1048576,v)}function o(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function f(z,v,E,w){return v===null||v.tag!==6?(v=Pc(E,z.mode,w),v.return=z,v):(v=s(v,E),v.return=z,v)}function y(z,v,E,w){var P=E.type;return P===B?k(z,v,E.props.children,w,E.key):v!==null&&(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===se&&bl(P)===v.type)?(v=s(v,E.props),is(v,E),v.return=z,v):(v=hi(E.type,E.key,E.props,null,z.mode,w),is(v,E),v.return=z,v)}function A(z,v,E,w){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=er(E,z.mode,w),v.return=z,v):(v=s(v,E.children||[]),v.return=z,v)}function k(z,v,E,w,P){return v===null||v.tag!==7?(v=yl(E,z.mode,w,P),v.return=z,v):(v=s(v,E),v.return=z,v)}function U(z,v,E){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Pc(""+v,z.mode,E),v.return=z,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case R:return E=hi(v.type,v.key,v.props,null,z.mode,E),is(E,v),E.return=z,E;case O:return v=er(v,z.mode,E),v.return=z,v;case se:return v=bl(v),U(z,v,E)}if(De(v)||ge(v))return v=yl(v,z.mode,E,null),v.return=z,v;if(typeof v.then=="function")return U(z,bi(v),E);if(v.$$typeof===Q)return U(z,vi(z,v),E);ji(z,v)}return null}function C(z,v,E,w){var P=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return P!==null?null:f(z,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return E.key===P?y(z,v,E,w):null;case O:return E.key===P?A(z,v,E,w):null;case se:return E=bl(E),C(z,v,E,w)}if(De(E)||ge(E))return P!==null?null:k(z,v,E,w,null);if(typeof E.then=="function")return C(z,v,bi(E),w);if(E.$$typeof===Q)return C(z,v,vi(z,E),w);ji(z,E)}return null}function _(z,v,E,w,P){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return z=z.get(E)||null,f(v,z,""+w,P);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case R:return z=z.get(w.key===null?E:w.key)||null,y(v,z,w,P);case O:return z=z.get(w.key===null?E:w.key)||null,A(v,z,w,P);case se:return w=bl(w),_(z,v,E,w,P)}if(De(w)||ge(w))return z=z.get(E)||null,k(v,z,w,P,null);if(typeof w.then=="function")return _(z,v,E,bi(w),P);if(w.$$typeof===Q)return _(z,v,E,vi(v,w),P);ji(v,w)}return null}function J(z,v,E,w){for(var P=null,je=null,W=v,ue=v=0,ye=null;W!==null&&ue<E.length;ue++){W.index>ue?(ye=W,W=null):ye=W.sibling;var Se=C(z,W,E[ue],w);if(Se===null){W===null&&(W=ye);break}e&&W&&Se.alternate===null&&t(z,W),v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se,W=ye}if(ue===E.length)return a(z,W),xe&&ca(z,ue),P;if(W===null){for(;ue<E.length;ue++)W=U(z,E[ue],w),W!==null&&(v=i(W,v,ue),je===null?P=W:je.sibling=W,je=W);return xe&&ca(z,ue),P}for(W=l(W);ue<E.length;ue++)ye=_(W,z,ue,E[ue],w),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ue:ye.key),v=i(ye,v,ue),je===null?P=ye:je.sibling=ye,je=ye);return e&&W.forEach(function(Fa){return t(z,Fa)}),xe&&ca(z,ue),P}function ae(z,v,E,w){if(E==null)throw Error(u(151));for(var P=null,je=null,W=v,ue=v=0,ye=null,Se=E.next();W!==null&&!Se.done;ue++,Se=E.next()){W.index>ue?(ye=W,W=null):ye=W.sibling;var Fa=C(z,W,Se.value,w);if(Fa===null){W===null&&(W=ye);break}e&&W&&Fa.alternate===null&&t(z,W),v=i(Fa,v,ue),je===null?P=Fa:je.sibling=Fa,je=Fa,W=ye}if(Se.done)return a(z,W),xe&&ca(z,ue),P;if(W===null){for(;!Se.done;ue++,Se=E.next())Se=U(z,Se.value,w),Se!==null&&(v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se);return xe&&ca(z,ue),P}for(W=l(W);!Se.done;ue++,Se=E.next())Se=_(W,z,ue,Se.value,w),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?ue:Se.key),v=i(Se,v,ue),je===null?P=Se:je.sibling=Se,je=Se);return e&&W.forEach(function(Z1){return t(z,Z1)}),xe&&ca(z,ue),P}function Re(z,v,E,w){if(typeof E=="object"&&E!==null&&E.type===B&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case R:e:{for(var P=E.key;v!==null;){if(v.key===P){if(P=E.type,P===B){if(v.tag===7){a(z,v.sibling),w=s(v,E.props.children),w.return=z,z=w;break e}}else if(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===se&&bl(P)===v.type){a(z,v.sibling),w=s(v,E.props),is(w,E),w.return=z,z=w;break e}a(z,v);break}else t(z,v);v=v.sibling}E.type===B?(w=yl(E.props.children,z.mode,w,E.key),w.return=z,z=w):(w=hi(E.type,E.key,E.props,null,z.mode,w),is(w,E),w.return=z,z=w)}return o(z);case O:e:{for(P=E.key;v!==null;){if(v.key===P)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){a(z,v.sibling),w=s(v,E.children||[]),w.return=z,z=w;break e}else{a(z,v);break}else t(z,v);v=v.sibling}w=er(E,z.mode,w),w.return=z,z=w}return o(z);case se:return E=bl(E),Re(z,v,E,w)}if(De(E))return J(z,v,E,w);if(ge(E)){if(P=ge(E),typeof P!="function")throw Error(u(150));return E=P.call(E),ae(z,v,E,w)}if(typeof E.then=="function")return Re(z,v,bi(E),w);if(E.$$typeof===Q)return Re(z,v,vi(z,E),w);ji(z,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,v!==null&&v.tag===6?(a(z,v.sibling),w=s(v,E),w.return=z,z=w):(a(z,v),w=Pc(E,z.mode,w),w.return=z,z=w),o(z)):a(z,v)}return function(z,v,E,w){try{ss=0;var P=Re(z,v,E,w);return cn=null,P}catch(W){if(W===sn||W===gi)throw W;var je=At(29,W,null,z.mode);return je.lanes=w,je.return=z,je}finally{}}}var Sl=Od(!0),_d=Od(!1),Ra=!1;function fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ka(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=fi(e),md(e,null,a),t}return di(e,l,t,a),fi(e)}function cs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Su(e,a)}}function mr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?s=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?s=i=t:i=i.next=t}else s=i=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yr=!1;function rs(){if(yr){var e=nn;if(e!==null)throw e}}function os(e,t,a,l){yr=!1;var s=e.updateQueue;Ra=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,f=s.shared.pending;if(f!==null){s.shared.pending=null;var y=f,A=y.next;y.next=null,o===null?i=A:o.next=A,o=y;var k=e.alternate;k!==null&&(k=k.updateQueue,f=k.lastBaseUpdate,f!==o&&(f===null?k.firstBaseUpdate=A:f.next=A,k.lastBaseUpdate=y))}if(i!==null){var U=s.baseState;o=0,k=A=y=null,f=i;do{var C=f.lane&-536870913,_=C!==f.lane;if(_?(me&C)===C:(l&C)===C){C!==0&&C===ln&&(yr=!0),k!==null&&(k=k.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,ae=f;C=t;var Re=a;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){U=J.call(Re,U,C);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,C=typeof J=="function"?J.call(Re,U,C):J,C==null)break e;U=S({},U,C);break e;case 2:Ra=!0}}C=f.callback,C!==null&&(e.flags|=64,_&&(e.flags|=8192),_=s.callbacks,_===null?s.callbacks=[C]:_.push(C))}else _={lane:C,tag:f.tag,payload:f.payload,callback:f.callback,next:null},k===null?(A=k=_,y=U):k=k.next=_,o|=C;if(f=f.next,f===null){if(f=s.shared.pending,f===null)break;_=f,f=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);k===null&&(y=U),s.baseState=y,s.firstBaseUpdate=A,s.lastBaseUpdate=k,i===null&&(s.shared.lanes=0),Ha|=o,e.lanes=o,e.memoizedState=U}}function Rd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Dd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Rd(a[e],t)}var rn=b(null),Si=b(0);function kd(e,t){e=ga,K(Si,e),K(rn,t),ga=e|t.baseLanes}function vr(){K(Si,ga),K(rn,rn.current)}function pr(){ga=Si.current,L(rn),L(Si)}var Ct=b(null),Gt=null;function wa(e){var t=e.alternate;K(Xe,Xe.current&1),K(Ct,e),Gt===null&&(t===null||rn.current!==null||t.memoizedState!==null)&&(Gt=e)}function gr(e){K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)}function wd(e){e.tag===22?(K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)):Ua()}function Ua(){K(Xe,Xe.current),K(Ct,Ct.current)}function Mt(e){L(Ct),Gt===e&&(Gt=null),L(Xe)}var Xe=b(0);function Ni(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||To(a)||Eo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=0,oe=null,Oe=null,Je=null,zi=!1,on=!1,Nl=!1,Ti=0,us=0,un=null,L0=0;function Qe(){throw Error(u(321))}function xr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Et(e[a],t[a]))return!1;return!0}function br(e,t,a,l,s,i){return ua=i,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?xf:wr,Nl=!1,i=a(l,s),Nl=!1,on&&(i=Ld(t,a,l,s)),Ud(e),i}function Ud(e){D.H=hs;var t=Oe!==null&&Oe.next!==null;if(ua=0,Je=Oe=oe=null,zi=!1,us=0,un=null,t)throw Error(u(300));e===null||Fe||(e=e.dependencies,e!==null&&yi(e)&&(Fe=!0))}function Ld(e,t,a,l){oe=e;var s=0;do{if(on&&(un=null),us=0,on=!1,25<=s)throw Error(u(301));if(s+=1,Je=Oe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=bf,i=t(a,l)}while(on);return i}function B0(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?ds(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(oe.flags|=1024),t}function jr(){var e=Ti!==0;return Ti=0,e}function Sr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nr(e){if(zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zi=!1}ua=0,Je=Oe=oe=null,on=!1,us=Ti=0,un=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?oe.memoizedState=Je=e:Je=Je.next=e,Je}function Ve(){if(Oe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Je===null?oe.memoizedState:Je.next;if(t!==null)Je=t,Oe=e;else{if(e===null)throw oe.alternate===null?Error(u(467)):Error(u(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Je===null?oe.memoizedState=Je=e:Je=Je.next=e}return Je}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(e){var t=us;return us+=1,un===null&&(un=[]),e=Ad(un,e,t),t=oe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?xf:wr),e}function Ai(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ds(e);if(e.$$typeof===Q)return lt(e)}throw Error(u(438,String(e)))}function zr(e){var t=null,a=oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=oe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ei(),oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ce;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function Ci(e){var t=Ve();return Tr(t,Oe,e)}function Tr(e,t,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var s=e.baseQueue,i=l.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}t.baseQueue=s=i,l.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var f=o=null,y=null,A=t,k=!1;do{var U=A.lane&-536870913;if(U!==A.lane?(me&U)===U:(ua&U)===U){var C=A.revertLane;if(C===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),U===ln&&(k=!0);else if((ua&C)===C){A=A.next,C===ln&&(k=!0);continue}else U={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=U,o=i):y=y.next=U,oe.lanes|=C,Ha|=C;U=A.action,Nl&&a(i,U),i=A.hasEagerState?A.eagerState:a(i,U)}else C={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=C,o=i):y=y.next=C,oe.lanes|=U,Ha|=U;A=A.next}while(A!==null&&A!==t);if(y===null?o=i:y.next=f,!Et(i,e.memoizedState)&&(Fe=!0,k&&(a=nn,a!==null)))throw a;e.memoizedState=i,e.baseState=o,e.baseQueue=y,l.lastRenderedState=i}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Er(e){var t=Ve(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,i=t.memoizedState;if(s!==null){a.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Et(i,t.memoizedState)||(Fe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Bd(e,t,a){var l=oe,s=Ve(),i=xe;if(i){if(a===void 0)throw Error(u(407));a=a()}else a=t();var o=!Et((Oe||s).memoizedState,a);if(o&&(s.memoizedState=a,Fe=!0),s=s.queue,Mr(Qd.bind(null,l,s,e),[e]),s.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,dn(9,{destroy:void 0},qd.bind(null,l,s,a,t),null),we===null)throw Error(u(349));i||(ua&127)!==0||Hd(l,t,a)}return a}function Hd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=oe.updateQueue,t===null?(t=Ei(),oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qd(e,t,a,l){t.value=a,t.getSnapshot=l,Gd(t)&&Yd(e)}function Qd(e,t,a){return a(function(){Gd(t)&&Yd(e)})}function Gd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function Yd(e){var t=ml(e,2);t!==null&&bt(t,e,2)}function Ar(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),Nl){Ta(!0);try{a()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Kd(e,t,a,l){return e.baseState=a,Tr(e,Oe,typeof l=="function"?l:da)}function H0(e,t,a,l,s){if(_i(e))throw Error(u(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};D.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Xd(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Xd(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var i=D.T,o={};D.T=o;try{var f=a(s,l),y=D.S;y!==null&&y(o,f),Vd(e,t,f)}catch(A){Cr(e,t,A)}finally{i!==null&&o.types!==null&&(i.types=o.types),D.T=i}}else try{i=a(s,l),Vd(e,t,i)}catch(A){Cr(e,t,A)}}function Vd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Zd(e,t,l)},function(l){return Cr(e,t,l)}):Zd(e,t,a)}function Zd(e,t,a){t.status="fulfilled",t.value=a,Jd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Xd(e,a)))}function Cr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Jd(t),t=t.next;while(t!==l)}e.action=null}function Jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fd(e,t){return t}function $d(e,t){if(xe){var a=we.formState;if(a!==null){e:{var l=oe;if(xe){if(Le){t:{for(var s=Le,i=Qt;s.nodeType!==8;){if(!i){s=null;break t}if(s=Yt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Le=Yt(s.nextSibling),l=s.data==="F!";break e}}Oa(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fd,lastRenderedState:t},a.queue=l,a=vf.bind(null,oe,l),l.dispatch=a,l=Ar(!1),i=kr.bind(null,oe,!1,l.queue),l=dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=H0.bind(null,oe,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Wd(e){var t=Ve();return Id(t,Oe,e)}function Id(e,t,a){if(t=Tr(e,t,Fd)[0],e=Ci(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ds(t)}catch(o){throw o===sn?gi:o}else l=t;t=Ve();var s=t.queue,i=s.dispatch;return a!==t.memoizedState&&(oe.flags|=2048,dn(9,{destroy:void 0},q0.bind(null,s,a),null)),[l,i,e]}function q0(e,t){e.action=t}function Pd(e){var t=Ve(),a=Oe;if(a!==null)return Id(t,a,e);Ve(),t=t.memoizedState,a=Ve();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function dn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Ei(),oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function ef(){return Ve().memoizedState}function Mi(e,t,a,l){var s=dt();oe.flags|=e,s.memoizedState=dn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Oi(e,t,a,l){var s=Ve();l=l===void 0?null:l;var i=s.memoizedState.inst;Oe!==null&&l!==null&&xr(l,Oe.memoizedState.deps)?s.memoizedState=dn(t,i,a,l):(oe.flags|=e,s.memoizedState=dn(1|t,i,a,l))}function tf(e,t){Mi(8390656,8,e,t)}function Mr(e,t){Oi(2048,8,e,t)}function Q0(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Ei(),oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function af(e){var t=Ve().memoizedState;return Q0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function lf(e,t){return Oi(4,2,e,t)}function nf(e,t){return Oi(4,4,e,t)}function sf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cf(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,sf.bind(null,t,e),a)}function Or(){}function rf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&xr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function of(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&xr(t,l[1]))return l[0];if(l=e(),Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l}function _r(e,t,a){return a===void 0||(ua&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),oe.lanes|=e,Ha|=e,a)}function uf(e,t,a,l){return Et(a,t)?a:rn.current!==null?(e=_r(e,a,l),Et(e,t)||(Fe=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=uh(),oe.lanes|=e,Ha|=e,t)}function df(e,t,a,l,s){var i=Y.p;Y.p=i!==0&&8>i?i:8;var o=D.T,f={};D.T=f,kr(e,!1,t,a);try{var y=s(),A=D.S;if(A!==null&&A(f,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var k=U0(y,l);fs(e,t,k,Rt(e))}else fs(e,t,l,Rt(e))}catch(U){fs(e,t,{then:function(){},status:"rejected",reason:U},Rt())}finally{Y.p=i,o!==null&&f.types!==null&&(o.types=f.types),D.T=o}}function G0(){}function Rr(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=ff(e).queue;df(e,s,t,ne,a===null?G0:function(){return hf(e),a(l)})}function ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:ne},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hf(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Rt())}function Dr(){return lt(Ms)}function mf(){return Ve().memoizedState}function yf(){return Ve().memoizedState}function Y0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Da(a);var l=ka(t,e,a);l!==null&&(bt(l,t,a),cs(l,t,a)),t={cache:rr()},e.payload=t;return}t=t.return}}function K0(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?pf(t,a):(a=Wc(e,t,a,l),a!==null&&(bt(a,e,l),gf(a,t,l)))}function vf(e,t,a){var l=Rt();fs(e,t,a,l)}function fs(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_i(e))pf(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,f=i(o,a);if(s.hasEagerState=!0,s.eagerState=f,Et(f,o))return di(e,t,s,0),we===null&&ui(),!1}catch{}finally{}if(a=Wc(e,t,s,l),a!==null)return bt(a,e,l),gf(a,t,l),!0}return!1}function kr(e,t,a,l){if(l={lane:2,revertLane:ho(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(t)throw Error(u(479))}else t=Wc(e,a,l,2),t!==null&&bt(t,e,2)}function _i(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function pf(e,t){on=zi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function gf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Su(e,a)}}var hs={readContext:lt,use:Ai,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};hs.useEffectEvent=Qe;var xf={readContext:lt,use:Ai,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:tf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,sf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){Mi(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var s=a(t);if(Nl){Ta(!0);try{a(t)}finally{Ta(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=K0.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ar(e);var t=e.queue,a=vf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Or,useDeferredValue:function(e,t){var a=dt();return _r(a,e,t)},useTransition:function(){var e=Ar(!1);return e=df.bind(null,oe,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=oe,s=dt();if(xe){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),we===null)throw Error(u(349));(me&127)!==0||Hd(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,tf(Qd.bind(null,l,i,e),[e]),l.flags|=2048,dn(9,{destroy:void 0},qd.bind(null,l,i,a,t),null),a},useId:function(){var e=dt(),t=we.identifierPrefix;if(xe){var a=Wt,l=$t;a=(l&~(1<<32-Tt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ti++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=L0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dr,useFormState:$d,useActionState:$d,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=kr.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:zr,useCacheRefresh:function(){return dt().memoizedState=Y0.bind(null,oe)},useEffectEvent:function(e){var t=dt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},wr={readContext:lt,use:Ai,useCallback:rf,useContext:lt,useEffect:Mr,useImperativeHandle:cf,useInsertionEffect:lf,useLayoutEffect:nf,useMemo:of,useReducer:Ci,useRef:ef,useState:function(){return Ci(da)},useDebugValue:Or,useDeferredValue:function(e,t){var a=Ve();return uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ci(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Bd,useId:mf,useHostTransitionStatus:Dr,useFormState:Wd,useActionState:Wd,useOptimistic:function(e,t){var a=Ve();return Kd(a,Oe,e,t)},useMemoCache:zr,useCacheRefresh:yf};wr.useEffectEvent=af;var bf={readContext:lt,use:Ai,useCallback:rf,useContext:lt,useEffect:Mr,useImperativeHandle:cf,useInsertionEffect:lf,useLayoutEffect:nf,useMemo:of,useReducer:Er,useRef:ef,useState:function(){return Er(da)},useDebugValue:Or,useDeferredValue:function(e,t){var a=Ve();return Oe===null?_r(a,e,t):uf(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Er(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Bd,useId:mf,useHostTransitionStatus:Dr,useFormState:Pd,useActionState:Pd,useOptimistic:function(e,t){var a=Ve();return Oe!==null?Kd(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zr,useCacheRefresh:yf};bf.useEffectEvent=af;function Ur(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:S({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Lr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),s=Da(l);s.payload=t,a!=null&&(s.callback=a),t=ka(e,s,l),t!==null&&(bt(t,e,l),cs(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),s=Da(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=ka(e,s,l),t!==null&&(bt(t,e,l),cs(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Da(a);l.tag=2,t!=null&&(l.callback=t),t=ka(e,l,a),t!==null&&(bt(t,e,a),cs(t,e,a))}};function jf(e,t,a,l,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,o):t.prototype&&t.prototype.isPureReactComponent?!Pn(a,l)||!Pn(s,i):!0}function Sf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Lr.enqueueReplaceState(t,t.state,null)}function zl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=S({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Nf(e){oi(e)}function zf(e){console.error(e)}function Tf(e){oi(e)}function Ri(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ef(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Br(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Af(e){return e=Da(e),e.tag=3,e}function Cf(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var i=l.value;e.payload=function(){return s(i)},e.callback=function(){Ef(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ef(t,a,l),typeof s!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var f=l.stack;this.componentDidCatch(l.value,{componentStack:f!==null?f:""})})}function X0(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&an(t,a,s,!0),a=Ct.current,a!==null){switch(a.tag){case 31:case 13:return Gt===null?Ki():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===xi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),oo(e,l,s)),!1;case 22:return a.flags|=65536,l===xi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),oo(e,l,s)),!1}throw Error(u(435,a.tag))}return oo(e,l,s),Ki(),!1}if(xe)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==lr&&(e=Error(u(422),{cause:l}),as(Bt(e,a)))):(l!==lr&&(t=Error(u(423),{cause:l}),as(Bt(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Bt(l,a),s=Br(e.stateNode,l,s),mr(e,s),Ge!==4&&(Ge=2)),!1;var i=Error(u(520),{cause:l});if(i=Bt(i,a),js===null?js=[i]:js.push(i),Ge!==4&&(Ge=2),t===null)return!0;l=Bt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Br(a.stateNode,l,e),mr(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(qa===null||!qa.has(i))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Af(s),Cf(s,e,a,l),mr(a,s),!1}a=a.return}while(a!==null);return!1}var Hr=Error(u(461)),Fe=!1;function nt(e,t,a,l){t.child=e===null?_d(t,null,a,l):Sl(t,e.child,a,l)}function Mf(e,t,a,l,s){a=a.render;var i=t.ref;if("ref"in l){var o={};for(var f in l)f!=="ref"&&(o[f]=l[f])}else o=l;return gl(t),l=br(e,t,a,o,i,s),f=jr(),e!==null&&!Fe?(Sr(e,t,s),fa(e,t,s)):(xe&&f&&tr(t),t.flags|=1,nt(e,t,l,s),t.child)}function Of(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!Ic(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,_f(e,t,i,l,s)):(e=hi(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Zr(e,s)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:Pn,a(o,l)&&e.ref===t.ref)return fa(e,t,s)}return t.flags|=1,e=ia(i,l),e.ref=t.ref,e.return=t,t.child=e}function _f(e,t,a,l,s){if(e!==null){var i=e.memoizedProps;if(Pn(i,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=i,Zr(e,s))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,fa(e,t,s)}return qr(e,t,a,l,s)}function Rf(e,t,a,l){var s=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~i}else l=0,t.child=null;return Df(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pi(t,i!==null?i.cachePool:null),i!==null?kd(t,i):vr(),wd(t);else return l=t.lanes=536870912,Df(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(pi(t,i.cachePool),kd(t,i),Ua(),t.memoizedState=null):(e!==null&&pi(t,null),vr(),Ua());return nt(e,t,s,a),t.child}function ms(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Df(e,t,a,l,s){var i=ur();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&pi(t,null),vr(),wd(t),e!==null&&an(e,t,l,!0),t.childLanes=s,null}function Di(e,t){return t=wi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function kf(e,t,a){return Sl(t,e.child,null,a),e=Di(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function V0(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=Di(t,l),t.lanes=536870912,ms(null,e);if(gr(t),(e=Le)?(e=Vh(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=vd(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Oa(t);return t.lanes=536870912,null}return Di(t,l)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(gr(t),s)if(t.flags&256)t.flags&=-257,t=kf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Fe||an(e,t,a,!1),s=(a&e.childLanes)!==0,Fe||s){if(l=we,l!==null&&(o=Nu(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,ml(e,o),bt(l,e,o),Hr;Ki(),t=kf(e,t,a)}else e=i.treeContext,Le=Yt(o.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&xd(t,e),t=Di(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function qr(e,t,a,l,s){return gl(t),a=br(e,t,a,l,void 0,s),l=jr(),e!==null&&!Fe?(Sr(e,t,s),fa(e,t,s)):(xe&&l&&tr(t),t.flags|=1,nt(e,t,a,s),t.child)}function wf(e,t,a,l,s,i){return gl(t),t.updateQueue=null,a=Ld(t,l,a,s),Ud(e),l=jr(),e!==null&&!Fe?(Sr(e,t,i),fa(e,t,i)):(xe&&l&&tr(t),t.flags|=1,nt(e,t,a,i),t.child)}function Uf(e,t,a,l,s){if(gl(t),t.stateNode===null){var i=Il,o=a.contextType;typeof o=="object"&&o!==null&&(i=lt(o)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Lr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},fr(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?lt(o):Il,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ur(t,a,o,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Lr.enqueueReplaceState(i,i.state,null),os(t,l,i,s),rs(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,y=zl(a,f);i.props=y;var A=i.context,k=a.contextType;o=Il,typeof k=="object"&&k!==null&&(o=lt(k));var U=a.getDerivedStateFromProps;k=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,k||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||A!==o)&&Sf(t,i,l,o),Ra=!1;var C=t.memoizedState;i.state=C,os(t,l,i,s),rs(),A=t.memoizedState,f||C!==A||Ra?(typeof U=="function"&&(Ur(t,a,U,l),A=t.memoizedState),(y=Ra||jf(t,a,y,l,C,A,o))?(k||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=A),i.props=l,i.state=A,i.context=o,l=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,hr(e,t),o=t.memoizedProps,k=zl(a,o),i.props=k,U=t.pendingProps,C=i.context,A=a.contextType,y=Il,typeof A=="object"&&A!==null&&(y=lt(A)),f=a.getDerivedStateFromProps,(A=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==U||C!==y)&&Sf(t,i,l,y),Ra=!1,C=t.memoizedState,i.state=C,os(t,l,i,s),rs();var _=t.memoizedState;o!==U||C!==_||Ra||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof f=="function"&&(Ur(t,a,f,l),_=t.memoizedState),(k=Ra||jf(t,a,k,l,C,_,y)||e!==null&&e.dependencies!==null&&yi(e.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,_,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,_,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),i.props=l,i.state=_,i.context=y,l=k):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,ki(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Sl(t,e.child,null,s),t.child=Sl(t,null,a,s)):nt(e,t,a,s),t.memoizedState=i.state,e=t.child):e=fa(e,t,s),e}function Lf(e,t,a,l){return vl(),t.flags|=256,nt(e,t,a,l),t.child}var Qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gr(e){return{baseLanes:e,cachePool:Td()}}function Yr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Bf(e,t,a){var l=t.pendingProps,s=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),o&&(s=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(s?wa(t):Ua(),(e=Le)?(e=Vh(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:$t,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=vd(e),a.return=t,t.child=a,at=t,Le=null)):e=null,e===null)throw Oa(t);return Eo(e)?t.lanes=32:t.lanes=536870912,null}var f=l.children;return l=l.fallback,s?(Ua(),s=t.mode,f=wi({mode:"hidden",children:f},s),l=yl(l,s,a,null),f.return=t,l.return=t,f.sibling=l,t.child=f,l=t.child,l.memoizedState=Gr(a),l.childLanes=Yr(e,o,a),t.memoizedState=Qr,ms(null,l)):(wa(t),Kr(t,f))}var y=e.memoizedState;if(y!==null&&(f=y.dehydrated,f!==null)){if(i)t.flags&256?(wa(t),t.flags&=-257,t=Xr(e,t,a)):t.memoizedState!==null?(Ua(),t.child=e.child,t.flags|=128,t=null):(Ua(),f=l.fallback,s=t.mode,l=wi({mode:"visible",children:l.children},s),f=yl(f,s,a,null),f.flags|=2,l.return=t,f.return=t,l.sibling=f,t.child=l,Sl(t,e.child,null,a),l=t.child,l.memoizedState=Gr(a),l.childLanes=Yr(e,o,a),t.memoizedState=Qr,t=ms(null,l));else if(wa(t),Eo(f)){if(o=f.nextSibling&&f.nextSibling.dataset,o)var A=o.dgst;o=A,l=Error(u(419)),l.stack="",l.digest=o,as({value:l,source:null,stack:null}),t=Xr(e,t,a)}else if(Fe||an(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=we,o!==null&&(l=Nu(o,a),l!==0&&l!==y.retryLane))throw y.retryLane=l,ml(e,l),bt(o,e,l),Hr;To(f)||Ki(),t=Xr(e,t,a)}else To(f)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Le=Yt(f.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&xd(t,e),t=Kr(t,l.children),t.flags|=4096);return t}return s?(Ua(),f=l.fallback,s=t.mode,y=e.child,A=y.sibling,l=ia(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,A!==null?f=ia(A,f):(f=yl(f,s,a,null),f.flags|=2),f.return=t,l.return=t,l.sibling=f,t.child=l,ms(null,l),l=t.child,f=e.child.memoizedState,f===null?f=Gr(a):(s=f.cachePool,s!==null?(y=Ze._currentValue,s=s.parent!==y?{parent:y,pool:y}:s):s=Td(),f={baseLanes:f.baseLanes|a,cachePool:s}),l.memoizedState=f,l.childLanes=Yr(e,o,a),t.memoizedState=Qr,ms(e.child,l)):(wa(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Kr(e,t){return t=wi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wi(e,t){return e=At(22,e,null,t),e.lanes=0,e}function Xr(e,t,a){return Sl(t,e.child,null,a),e=Kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ir(e.return,t,a)}function Vr(e,t,a,l,s,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=s,o.treeForkCount=i)}function qf(e,t,a){var l=t.pendingProps,s=l.revealOrder,i=l.tail;l=l.children;var o=Xe.current,f=(o&2)!==0;if(f?(o=o&1|2,t.flags|=128):o&=1,K(Xe,o),nt(e,t,l,a),l=xe?ts:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hf(e,a,t);else if(e.tag===19)Hf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ni(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Vr(t,!1,s,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ni(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Vr(t,!0,a,null,i,l);break;case"together":Vr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(an(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Zr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function Z0(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),_a(t,Ze,e.memoizedState.cache),vl();break;case 27:case 5:qn(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Bf(e,t,a):(wa(t),e=fa(e,t,a),e!==null?e.sibling:null);wa(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(an(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return qf(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Rf(e,t,a,t.pendingProps);case 24:_a(t,Ze,e.memoizedState.cache)}return fa(e,t,a)}function Qf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Zr(e,a)&&(t.flags&128)===0)return Fe=!1,Z0(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,xe&&(t.flags&1048576)!==0&&gd(t,ts,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")Ic(e)?(l=zl(e,l),t.tag=1,t=Uf(null,t,e,l,a)):(t.tag=0,t=qr(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===G){t.tag=11,t=Mf(null,t,e,l,a);break e}else if(s===le){t.tag=14,t=Of(null,t,e,l,a);break e}}throw t=qe(e)||e,Error(u(306,t,""))}}return t;case 0:return qr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=zl(l,t.pendingProps),Uf(e,t,l,s,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var i=t.memoizedState;s=i.element,hr(e,t),os(t,l,null,a);var o=t.memoizedState;if(l=o.cache,_a(t,Ze,l),l!==i.cache&&cr(t,[Ze],a,!0),rs(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Lf(e,t,l,a);break e}else if(l!==s){s=Bt(Error(u(424)),t),as(s),t=Lf(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Yt(e.firstChild),at=t,xe=!0,Ma=null,Qt=!0,a=_d(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===s){t=fa(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return ki(e,t),e===null?(a=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=Wi(de.current).createElement(a),l[tt]=t,l[mt]=e,st(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qn(t),e===null&&xe&&(l=t.stateNode=Fh(t.type,t.pendingProps,de.current),at=t,Qt=!0,s=Le,Ka(t.type)?(Ao=s,Le=Yt(l.firstChild)):Le=s),nt(e,t,t.pendingProps.children,a),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((s=l=Le)&&(l=N1(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,at=t,Le=Yt(l.firstChild),Qt=!1,s=!0):s=!1),s||Oa(t)),qn(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,So(s,i)?l=null:o!==null&&So(s,o)&&(t.flags|=32),t.memoizedState!==null&&(s=br(e,t,B0,null,null,a),Ms._currentValue=s),ki(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Le)&&(a=z1(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,at=t,Le=null,e=!0):e=!1),e||Oa(t)),null;case 13:return Bf(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Sl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return Mf(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,_a(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,gl(t),s=lt(s),l=l(s),t.flags|=1,nt(e,t,l,a),t.child;case 14:return Of(e,t,t.type,t.pendingProps,a);case 15:return _f(e,t,t.type,t.pendingProps,a);case 19:return qf(e,t,a);case 31:return V0(e,t,a);case 22:return Rf(e,t,a,t.pendingProps);case 24:return gl(t),l=lt(Ze),e===null?(s=ur(),s===null&&(s=we,i=rr(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},fr(t),_a(t,Ze,s)):((e.lanes&a)!==0&&(hr(e,t),os(t,null,null,a),rs()),s=e.memoizedState,i=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),_a(t,Ze,l)):(l=i.cache,_a(t,Ze,l),l!==s.cache&&cr(t,[Ze],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ha(e){e.flags|=4}function Jr(e,t,a,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(mh())e.flags|=8192;else throw jl=xi,dr}else e.flags&=-16777217}function Gf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lm(t))if(mh())e.flags|=8192;else throw jl=xi,dr}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bu():536870912,e.lanes|=t,yn|=t)}function ys(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function J0(e,t,a){var l=t.pendingProps;switch(ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),oa(Ze),Ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(tn(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nr())),Be(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ha(t),i!==null?(Be(t),Gf(t,i)):(Be(t),Jr(t,s,null,l,a))):i?i!==e.memoizedState?(ha(t),Be(t),Gf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Be(t),Jr(t,s,e,l,a)),null;case 27:if(Zs(t),a=de.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Be(t),null}e=$.current,tn(t)?bd(t):(e=Fh(s,l,a),t.stateNode=e,ha(t))}return Be(t),null;case 5:if(Zs(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return Be(t),null}if(i=$.current,tn(t))bd(t);else{var o=Wi(de.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(s,{is:l.is}):o.createElement(s)}}i[tt]=t,i[mt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(st(i,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Be(t),Jr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=de.current,tn(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=at,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Bh(e.nodeValue,a)),e||Oa(t,!0)}else e=Wi(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=tn(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[tt]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=nr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=tn(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[tt]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=nr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ui(t,t.updateQueue),Be(t),null);case 4:return Ke(),e===null&&po(t.stateNode.containerInfo),Be(t),null;case 10:return oa(t.type),Be(t),null;case 19:if(L(Xe),l=t.memoizedState,l===null)return Be(t),null;if(s=(t.flags&128)!==0,i=l.rendering,i===null)if(s)ys(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ni(e),i!==null){for(t.flags|=128,ys(l,!1),e=i.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yd(a,e),a=a.sibling;return K(Xe,Xe.current&1|2),xe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Nt()>Qi&&(t.flags|=128,s=!0,ys(l,!1),t.lanes=4194304)}else{if(!s)if(e=Ni(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),ys(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!xe)return Be(t),null}else 2*Nt()-l.renderingStartTime>Qi&&a!==536870912&&(t.flags|=128,s=!0,ys(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Nt(),e.sibling=null,a=Xe.current,K(Xe,s?a&1|2:a&1),xe&&ca(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),pr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&Ui(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&L(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(Ze),Be(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function F0(e,t){switch(ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(Ze),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Zs(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(u(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Xe),null;case 4:return Ke(),null;case 10:return oa(t.type),null;case 22:case 23:return Mt(t),pr(),e!==null&&L(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(Ze),null;case 25:return null;default:return null}}function Yf(e,t){switch(ar(t),t.tag){case 3:oa(Ze),Ke();break;case 26:case 27:case 5:Zs(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:L(Xe);break;case 10:oa(t.type);break;case 22:case 23:Mt(t),pr(),e!==null&&L(xl);break;case 24:oa(Ze)}}function vs(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==s)}}catch(f){Ae(t,t.return,f)}}function La(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var i=s.next;l=i;do{if((l.tag&e)===e){var o=l.inst,f=o.destroy;if(f!==void 0){o.destroy=void 0,s=t;var y=a,A=f;try{A()}catch(k){Ae(s,y,k)}}}l=l.next}while(l!==i)}}catch(k){Ae(t,t.return,k)}}function Kf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Dd(t,a)}catch(l){Ae(e,e.return,l)}}}function Xf(e,t,a){a.props=zl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function ps(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){Ae(e,t,s)}}function It(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){Ae(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Ae(e,t,s)}else a.current=null}function Vf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){Ae(e,e.return,s)}}function Fr(e,t,a){try{var l=e.stateNode;p1(l,e.type,a,t),l[mt]=t}catch(s){Ae(e,e.return,s)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function $r(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(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&&Ka(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 Wr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Wr(e,t,a),e=e.sibling;e!==null;)Wr(e,t,a),e=e.sibling}function Li(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Li(e,t,a),e=e.sibling;e!==null;)Li(e,t,a),e=e.sibling}function Jf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);st(t,l,a),t[tt]=e,t[mt]=a}catch(i){Ae(e,e.return,i)}}var ma=!1,$e=!1,Ir=!1,Ff=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function $0(e,t){if(e=e.containerInfo,bo=nc,e=id(e),Xc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,f=-1,y=-1,A=0,k=0,U=e,C=null;t:for(;;){for(var _;U!==a||s!==0&&U.nodeType!==3||(f=o+s),U!==i||l!==0&&U.nodeType!==3||(y=o+l),U.nodeType===3&&(o+=U.nodeValue.length),(_=U.firstChild)!==null;)C=U,U=_;for(;;){if(U===e)break t;if(C===a&&++A===s&&(f=o),C===i&&++k===l&&(y=o),(_=U.nextSibling)!==null)break;U=C,C=U.parentNode}U=_}a=f===-1||y===-1?null:{start:f,end:y}}else a=null}a=a||{start:0,end:0}}else a=null;for(jo={focusedElem:e,selectionRange:a},nc=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,s=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var J=zl(a.type,s);e=l.getSnapshotBeforeUpdate(J,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ae(a,a.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)zo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zo(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function $f(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:va(e,a),l&4&&vs(5,a);break;case 1:if(va(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ae(a,a.return,o)}else{var s=zl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ae(a,a.return,o)}}l&64&&Kf(a),l&512&&ps(a,a.return);break;case 3:if(va(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Dd(e,t)}catch(o){Ae(a,a.return,o)}}break;case 27:t===null&&l&4&&Jf(a);case 26:case 5:va(e,a),t===null&&l&4&&Vf(a),l&512&&ps(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),l&4&&Pf(e,a);break;case 13:va(e,a),l&4&&eh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=s1.bind(null,a),T1(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||$e,s=ma;var i=$e;ma=l,($e=t)&&!i?pa(e,a,(a.subtreeFlags&8772)!==0):va(e,a),ma=s,$e=i}break;case 30:break;default:va(e,a)}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cc(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 He=null,vt=!1;function ya(e,t,a){for(a=a.child;a!==null;)If(e,t,a),a=a.sibling}function If(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Qn,a)}catch{}switch(a.tag){case 26:$e||It(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||It(a,t);var l=He,s=vt;Ka(a.type)&&(He=a.stateNode,vt=!1),ya(e,t,a),Es(a.stateNode),He=l,vt=s;break;case 5:$e||It(a,t);case 6:if(l=He,s=vt,He=null,ya(e,t,a),He=l,vt=s,He!==null)if(vt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(i){Ae(a,t,i)}else try{He.removeChild(a.stateNode)}catch(i){Ae(a,t,i)}break;case 18:He!==null&&(vt?(e=He,Kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nn(e)):Kh(He,a.stateNode));break;case 4:l=He,s=vt,He=a.stateNode.containerInfo,vt=!0,ya(e,t,a),He=l,vt=s;break;case 0:case 11:case 14:case 15:La(2,a,t),$e||La(4,a,t),ya(e,t,a);break;case 1:$e||(It(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Xf(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ya(e,t,a),$e=l;break;default:ya(e,t,a)}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Nn(e)}catch(a){Ae(t,t.return,a)}}}function eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Nn(e)}catch(a){Ae(t,t.return,a)}}function W0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ff),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ff),t;default:throw Error(u(435,e.tag))}}function Bi(e,t){var a=W0(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=i1.bind(null,e,l);l.then(s,s)}})}function pt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],i=e,o=t,f=o;e:for(;f!==null;){switch(f.tag){case 27:if(Ka(f.type)){He=f.stateNode,vt=!1;break e}break;case 5:He=f.stateNode,vt=!1;break e;case 3:case 4:He=f.stateNode.containerInfo,vt=!0;break e}f=f.return}if(He===null)throw Error(u(160));If(i,o,s),He=null,vt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)th(t,e),t=t.sibling}var Zt=null;function th(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),gt(e),l&4&&(La(3,e,e.return),vs(3,e),La(5,e,e.return));break;case 1:pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Zt;if(pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":i=s.getElementsByTagName("title")[0],(!i||i[Kn]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(l),s.head.insertBefore(i,s.querySelector("head > title"))),st(i,l,a),i[tt]=e,Ie(i),l=i;break e;case"link":var o=tm("link","href",s).get(l+(a.href||""));if(o){for(var f=0;f<o.length;f++)if(i=o[f],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(f,1);break t}}i=s.createElement(l),st(i,l,a),s.head.appendChild(i);break;case"meta":if(o=tm("meta","content",s).get(l+(a.content||""))){for(f=0;f<o.length;f++)if(i=o[f],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(f,1);break t}}i=s.createElement(l),st(i,l,a),s.head.appendChild(i);break;default:throw Error(u(468,l))}i[tt]=e,Ie(i),l=i}e.stateNode=l}else am(s,e.type,e.stateNode);else e.stateNode=em(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?am(s,e.type,e.stateNode):em(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fr(e,e.memoizedProps,a.memoizedProps)}break;case 27:pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),a!==null&&l&4&&Fr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(pt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),e.flags&32){s=e.stateNode;try{Xl(s,"")}catch(J){Ae(e,e.return,J)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Fr(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Ir=!0);break;case 6:if(pt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Ae(e,e.return,J)}}break;case 3:if(ec=null,s=Zt,Zt=Ii(t.containerInfo),pt(t,e),Zt=s,gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Nn(t.containerInfo)}catch(J){Ae(e,e.return,J)}Ir&&(Ir=!1,ah(e));break;case 4:l=Zt,Zt=Ii(e.stateNode.containerInfo),pt(t,e),gt(e),Zt=l;break;case 12:pt(t,e),gt(e);break;case 31:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 13:pt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qi=Nt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 22:s=e.memoizedState!==null;var y=a!==null&&a.memoizedState!==null,A=ma,k=$e;if(ma=A||s,$e=k||y,pt(t,e),$e=k,ma=A,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||y||ma||$e||Tl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){y=a=t;try{if(i=y.stateNode,s)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{f=y.stateNode;var U=y.memoizedProps.style,C=U!=null&&U.hasOwnProperty("display")?U.display:null;f.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(J){Ae(y,y.return,J)}}}else if(t.tag===6){if(a===null){y=t;try{y.stateNode.nodeValue=s?"":y.memoizedProps}catch(J){Ae(y,y.return,J)}}}else if(t.tag===18){if(a===null){y=t;try{var _=y.stateNode;s?Xh(_,!0):Xh(y.stateNode,!1)}catch(J){Ae(y,y.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bi(e,a))));break;case 19:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 30:break;case 21:break;default:pt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Zf(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,i=$r(e);Li(e,i,s);break;case 5:var o=a.stateNode;a.flags&32&&(Xl(o,""),a.flags&=-33);var f=$r(e);Li(e,f,o);break;case 3:case 4:var y=a.stateNode.containerInfo,A=$r(e);Wr(e,A,y);break;default:throw Error(u(161))}}catch(k){Ae(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ah(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ah(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$f(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:La(4,t,t.return),Tl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xf(t,t.return,a),Tl(t);break;case 27:Es(t.stateNode);case 26:case 5:It(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:pa(s,i,a),vs(4,i);break;case 1:if(pa(s,i,a),l=i,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(A){Ae(l,l.return,A)}if(l=i,s=l.updateQueue,s!==null){var f=l.stateNode;try{var y=s.shared.hiddenCallbacks;if(y!==null)for(s.shared.hiddenCallbacks=null,s=0;s<y.length;s++)Rd(y[s],f)}catch(A){Ae(l,l.return,A)}}a&&o&64&&Kf(i),ps(i,i.return);break;case 27:Jf(i);case 26:case 5:pa(s,i,a),a&&l===null&&o&4&&Vf(i),ps(i,i.return);break;case 12:pa(s,i,a);break;case 31:pa(s,i,a),a&&o&4&&Pf(s,i);break;case 13:pa(s,i,a),a&&o&4&&eh(s,i);break;case 22:i.memoizedState===null&&pa(s,i,a),ps(i,i.return);break;case 30:break;default:pa(s,i,a)}t=t.sibling}}function Pr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ls(a))}function eo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(e,t,a,l),t=t.sibling}function lh(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),s&2048&&vs(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ls(e)));break;case 12:if(s&2048){Jt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,f=i.onPostCommit;typeof f=="function"&&f(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Ae(t,t.return,y)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Jt(e,t,a,l):gs(e,t):i._visibility&2?Jt(e,t,a,l):(i._visibility|=2,fn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Pr(o,t);break;case 24:Jt(e,t,a,l),s&2048&&eo(t.alternate,t);break;default:Jt(e,t,a,l)}}function fn(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,f=a,y=l,A=o.flags;switch(o.tag){case 0:case 11:case 15:fn(i,o,f,y,s),vs(8,o);break;case 23:break;case 22:var k=o.stateNode;o.memoizedState!==null?k._visibility&2?fn(i,o,f,y,s):gs(i,o):(k._visibility|=2,fn(i,o,f,y,s)),s&&A&2048&&Pr(o.alternate,o);break;case 24:fn(i,o,f,y,s),s&&A&2048&&eo(o.alternate,o);break;default:fn(i,o,f,y,s)}t=t.sibling}}function gs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:gs(a,l),s&2048&&Pr(l.alternate,l);break;case 24:gs(a,l),s&2048&&eo(l.alternate,l);break;default:gs(a,l)}t=t.sibling}}var xs=8192;function hn(e,t,a){if(e.subtreeFlags&xs)for(e=e.child;e!==null;)nh(e,t,a),e=e.sibling}function nh(e,t,a){switch(e.tag){case 26:hn(e,t,a),e.flags&xs&&e.memoizedState!==null&&L1(a,Zt,e.memoizedState,e.memoizedProps);break;case 5:hn(e,t,a);break;case 3:case 4:var l=Zt;Zt=Ii(e.stateNode.containerInfo),hn(e,t,a),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=xs,xs=16777216,hn(e,t,a),xs=l):hn(e,t,a));break;default:hn(e,t,a)}}function sh(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 bs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,ch(l,e)}sh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(e),e=e.sibling}function ih(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&La(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hi(e)):bs(e);break;default:bs(e)}}function Hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Pe=l,ch(l,e)}sh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:La(8,t,t.return),Hi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hi(t));break;default:Hi(t)}e=e.sibling}}function ch(e,t){for(;Pe!==null;){var a=Pe;switch(a.tag){case 0:case 11:case 15:La(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ls(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Pe=l;else e:for(a=e;Pe!==null;){l=Pe;var s=l.sibling,i=l.return;if(Wf(l),l===a){Pe=null;break e}if(s!==null){s.return=i,Pe=s;break e}Pe=i}}}var I0={getCacheForType:function(e){var t=lt(Ze),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Ze).controller.signal}},P0=typeof WeakMap=="function"?WeakMap:Map,Ne=0,we=null,fe=null,me=0,Ee=0,Ot=null,Ba=!1,mn=!1,to=!1,ga=0,Ge=0,Ha=0,El=0,ao=0,_t=0,yn=0,js=null,xt=null,lo=!1,qi=0,rh=0,Qi=1/0,Gi=null,qa=null,We=0,Qa=null,vn=null,xa=0,no=0,so=null,oh=null,Ss=0,io=null;function Rt(){return(Ne&2)!==0&&me!==0?me&-me:D.T!==null?ho():zu()}function uh(){if(_t===0)if((me&536870912)===0||xe){var e=$s;$s<<=1,($s&3932160)===0&&($s=262144),_t=e}else _t=536870912;return e=Ct.current,e!==null&&(e.flags|=32),_t}function bt(e,t,a){(e===we&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(pn(e,0),Ga(e,me,_t,!1)),Yn(e,a),((Ne&2)===0||e!==we)&&(e===we&&((Ne&2)===0&&(El|=a),Ge===4&&Ga(e,me,_t,!1)),Pt(e))}function dh(e,t,a){if((Ne&6)!==0)throw Error(u(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Gn(e,t),s=l?a1(e,t):ro(e,t,!0),i=l;do{if(s===0){mn&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!e1(a)){s=ro(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var f=e;s=js;var y=f.current.memoizedState.isDehydrated;if(y&&(pn(f,o).flags|=256),o=ro(f,o,!1),o!==2){if(to&&!y){f.errorRecoveryDisabledLanes|=i,El|=i,s=4;break e}i=xt,xt=s,i!==null&&(xt===null?xt=i:xt.push.apply(xt,i))}s=o}if(i=!1,s!==2)continue}}if(s===1){pn(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,i=s,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,_t,!Ba);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=qi+300-Nt(),10<s)){if(Ga(l,t,_t,!Ba),Is(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=Gh(fh.bind(null,l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,"Throttled",-0,0),s);break e}fh(l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,null,-0,0)}}break}while(!0);Pt(e)}function fh(e,t,a,l,s,i,o,f,y,A,k,U,C,_){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},nh(t,i,U);var J=(i&62914560)===i?qi-Nt():(i&4194048)===i?rh-Nt():0;if(J=B1(U,J),J!==null){xa=i,e.cancelPendingCommit=J(bh.bind(null,e,t,i,a,l,s,o,f,y,k,U,null,C,_)),Ga(e,i,o,!A);return}}bh(e,t,i,a,l,s,o,f,y)}function e1(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],i=s.getSnapshot;s=s.value;try{if(!Et(i(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,a,l){t&=~ao,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var i=31-Tt(s),o=1<<i;l[i]=-1,s&=~o}a!==0&&ju(e,a,t)}function Yi(){return(Ne&6)===0?(Ns(0),!1):!0}function co(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,ra=pl=null,Nr(e),cn=null,ss=0,e=fe;for(;e!==null;)Yf(e.alternate,e),e=e.return;fe=null}}function pn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,b1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,co(),we=e,fe=a=ia(e.current,null),me=t,Ee=0,Ot=null,Ba=!1,mn=Gn(e,t),to=!1,yn=_t=ao=El=Ha=Ge=0,xt=js=null,lo=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-Tt(l),i=1<<s;t|=e[s],l&=~i}return ga=t,ui(),a}function hh(e,t){oe=null,D.H=hs,t===sn||t===gi?(t=Cd(),Ee=3):t===dr?(t=Cd(),Ee=4):Ee=t===Hr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,fe===null&&(Ge=1,Ri(e,Bt(t,e.current)))}function mh(){var e=Ct.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function yh(){var e=D.H;return D.H=hs,e===null?hs:e}function vh(){var e=D.A;return D.A=I0,e}function Ki(){Ge=4,Ba||(me&4194048)!==me&&Ct.current!==null||(mn=!0),(Ha&134217727)===0&&(El&134217727)===0||we===null||Ga(we,me,_t,!1)}function ro(e,t,a){var l=Ne;Ne|=2;var s=yh(),i=vh();(we!==e||me!==t)&&(Gi=null,pn(e,t)),t=!1;var o=Ge;e:do try{if(Ee!==0&&fe!==null){var f=fe,y=Ot;switch(Ee){case 8:co(),o=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var A=Ee;if(Ee=0,Ot=null,gn(e,f,y,A),a&&mn){o=0;break e}break;default:A=Ee,Ee=0,Ot=null,gn(e,f,y,A)}}t1(),o=Ge;break}catch(k){hh(e,k)}while(!0);return t&&e.shellSuspendCounter++,ra=pl=null,Ne=l,D.H=s,D.A=i,fe===null&&(we=null,me=0,ui()),o}function t1(){for(;fe!==null;)ph(fe)}function a1(e,t){var a=Ne;Ne|=2;var l=yh(),s=vh();we!==e||me!==t?(Gi=null,Qi=Nt()+500,pn(e,t)):mn=Gn(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var i=Ot;t:switch(Ee){case 1:Ee=0,Ot=null,gn(e,t,i,1);break;case 2:case 9:if(Ed(i)){Ee=0,Ot=null,gh(t);break}t=function(){Ee!==2&&Ee!==9||we!==e||(Ee=7),Pt(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Ed(i)?(Ee=0,Ot=null,gh(t)):(Ee=0,Ot=null,gn(e,t,i,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var f=fe;if(o?lm(o):f.stateNode.complete){Ee=0,Ot=null;var y=f.sibling;if(y!==null)fe=y;else{var A=f.return;A!==null?(fe=A,Xi(A)):fe=null}break t}}Ee=0,Ot=null,gn(e,t,i,5);break;case 6:Ee=0,Ot=null,gn(e,t,i,6);break;case 8:co(),Ge=6;break e;default:throw Error(u(462))}}l1();break}catch(k){hh(e,k)}while(!0);return ra=pl=null,D.H=l,D.A=s,Ne=a,fe!==null?0:(we=null,me=0,ui(),Ge)}function l1(){for(;fe!==null&&!Ey();)ph(fe)}function ph(e){var t=Qf(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=wf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=wf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Nr(t);default:Yf(a,t),t=fe=yd(t,ga),t=Qf(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gn(e,t,a,l){ra=pl=null,Nr(t),cn=null,ss=0;var s=t.return;try{if(X0(e,s,t,a,me)){Ge=1,Ri(e,Bt(a,e.current)),fe=null;return}}catch(i){if(s!==null)throw fe=s,i;Ge=1,Ri(e,Bt(a,e.current)),fe=null;return}t.flags&32768?(xe||l===1?e=!0:mn||(me&536870912)!==0?e=!1:(Ba=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ct.current,l!==null&&l.tag===13&&(l.flags|=16384))),xh(t,e)):Xi(t)}function Xi(e){var t=e;do{if((t.flags&32768)!==0){xh(t,Ba);return}e=t.return;var a=J0(t.alternate,t,ga);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function xh(e,t){do{var a=F0(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Ge=6,fe=null}function bh(e,t,a,l,s,i,o,f,y){e.cancelPendingCommit=null;do Vi();while(We!==0);if((Ne&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=$c,Uy(e,a,i,o,f,y),e===we&&(fe=we=null,me=0),vn=t,Qa=e,xa=a,no=i,so=s,oh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,c1(Js,function(){return Th(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,s=Y.p,Y.p=2,o=Ne,Ne|=4;try{$0(e,t,a)}finally{Ne=o,Y.p=s,D.T=l}}We=1,jh(),Sh(),Nh()}}function jh(){if(We===1){We=0;var e=Qa,t=vn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=Y.p;Y.p=2;var s=Ne;Ne|=4;try{th(t,e);var i=jo,o=id(e.containerInfo),f=i.focusedElem,y=i.selectionRange;if(o!==f&&f&&f.ownerDocument&&sd(f.ownerDocument.documentElement,f)){if(y!==null&&Xc(f)){var A=y.start,k=y.end;if(k===void 0&&(k=A),"selectionStart"in f)f.selectionStart=A,f.selectionEnd=Math.min(k,f.value.length);else{var U=f.ownerDocument||document,C=U&&U.defaultView||window;if(C.getSelection){var _=C.getSelection(),J=f.textContent.length,ae=Math.min(y.start,J),Re=y.end===void 0?ae:Math.min(y.end,J);!_.extend&&ae>Re&&(o=Re,Re=ae,ae=o);var z=nd(f,ae),v=nd(f,Re);if(z&&v&&(_.rangeCount!==1||_.anchorNode!==z.node||_.anchorOffset!==z.offset||_.focusNode!==v.node||_.focusOffset!==v.offset)){var E=U.createRange();E.setStart(z.node,z.offset),_.removeAllRanges(),ae>Re?(_.addRange(E),_.extend(v.node,v.offset)):(E.setEnd(v.node,v.offset),_.addRange(E))}}}}for(U=[],_=f;_=_.parentNode;)_.nodeType===1&&U.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<U.length;f++){var w=U[f];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}nc=!!bo,jo=bo=null}finally{Ne=s,Y.p=l,D.T=a}}e.current=t,We=2}}function Sh(){if(We===2){We=0;var e=Qa,t=vn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=Y.p;Y.p=2;var s=Ne;Ne|=4;try{$f(e,t.alternate,t)}finally{Ne=s,Y.p=l,D.T=a}}We=3}}function Nh(){if(We===4||We===3){We=0,Ay();var e=Qa,t=vn,a=xa,l=oh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,vn=Qa=null,zh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(qa=null),Ec(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Qn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,s=Y.p,Y.p=2,D.T=null;try{for(var i=e.onRecoverableError,o=0;o<l.length;o++){var f=l[o];i(f.value,{componentStack:f.stack})}}finally{D.T=t,Y.p=s}}(xa&3)!==0&&Vi(),Pt(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===io?Ss++:(Ss=0,io=e):Ss=0,Ns(0)}}function zh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ls(t)))}function Vi(){return jh(),Sh(),Nh(),Th()}function Th(){if(We!==5)return!1;var e=Qa,t=no;no=0;var a=Ec(xa),l=D.T,s=Y.p;try{Y.p=32>a?32:a,D.T=null,a=so,so=null;var i=Qa,o=xa;if(We=0,vn=Qa=null,xa=0,(Ne&6)!==0)throw Error(u(331));var f=Ne;if(Ne|=4,ih(i.current),lh(i,i.current,o,a),Ne=f,Ns(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Qn,i)}catch{}return!0}finally{Y.p=s,D.T=l,zh(e,t)}}function Eh(e,t,a){t=Bt(a,t),t=Br(e.stateNode,t,2),e=ka(e,t,2),e!==null&&(Yn(e,2),Pt(e))}function Ae(e,t,a){if(e.tag===3)Eh(e,e,a);else for(;t!==null;){if(t.tag===3){Eh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){e=Bt(a,e),a=Af(2),l=ka(t,a,2),l!==null&&(Cf(a,l,t,e),Yn(l,2),Pt(l));break}}t=t.return}}function oo(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new P0;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(to=!0,s.add(a),e=n1.bind(null,e,t,a),t.then(e,e))}function n1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,we===e&&(me&a)===a&&(Ge===4||Ge===3&&(me&62914560)===me&&300>Nt()-qi?(Ne&2)===0&&pn(e,0):ao|=a,yn===me&&(yn=0)),Pt(e)}function Ah(e,t){t===0&&(t=bu()),e=ml(e,t),e!==null&&(Yn(e,t),Pt(e))}function s1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ah(e,a)}function i1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Ah(e,a)}function c1(e,t){return Sc(e,t)}var Zi=null,xn=null,uo=!1,Ji=!1,fo=!1,Ya=0;function Pt(e){e!==xn&&e.next===null&&(xn===null?Zi=xn=e:xn=xn.next=e),Ji=!0,uo||(uo=!0,o1())}function Ns(e,t){if(!fo&&Ji){fo=!0;do for(var a=!1,l=Zi;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var i=0;else{var o=l.suspendedLanes,f=l.pingedLanes;i=(1<<31-Tt(42|e)+1)-1,i&=s&~(o&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,_h(l,i))}else i=me,i=Is(l,l===we?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Gn(l,i)||(a=!0,_h(l,i));l=l.next}while(a);fo=!1}}function r1(){Ch()}function Ch(){Ji=uo=!1;var e=0;Ya!==0&&x1()&&(e=Ya);for(var t=Nt(),a=null,l=Zi;l!==null;){var s=l.next,i=Mh(l,t);i===0?(l.next=null,a===null?Zi=s:a.next=s,s===null&&(xn=a)):(a=l,(e!==0||(i&3)!==0)&&(Ji=!0)),l=s}We!==0&&We!==5||Ns(e),Ya!==0&&(Ya=0)}function Mh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Tt(i),f=1<<o,y=s[o];y===-1?((f&a)===0||(f&l)!==0)&&(s[o]=wy(f,t)):y<=t&&(e.expiredLanes|=f),i&=~f}if(t=we,a=me,a=Is(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Nc(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Gn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Nc(l),Ec(a)){case 2:case 8:a=gu;break;case 32:a=Js;break;case 268435456:a=xu;break;default:a=Js}return l=Oh.bind(null,e),a=Sc(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Nc(l),e.callbackPriority=2,e.callbackNode=null,2}function Oh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Vi()&&e.callbackNode!==a)return null;var l=me;return l=Is(e,e===we?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(dh(e,l,t),Mh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?Oh.bind(null,e):null)}function _h(e,t){if(Vi())return null;dh(e,t,!0)}function o1(){j1(function(){(Ne&6)!==0?Sc(pu,r1):Ch()})}function ho(){if(Ya===0){var e=ln;e===0&&(e=Fs,Fs<<=1,(Fs&261888)===0&&(Fs=256)),Ya=e}return Ya}function Rh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ai(""+e)}function Dh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function u1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=Rh((s[mt]||null).action),o=l.submitter;o&&(t=(t=o[mt]||null)?Rh(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var f=new ii("action","action",null,l,s);e.push({event:f,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var y=o?Dh(s,o):new FormData(s);Rr(a,{pending:!0,data:y,method:s.method,action:i},null,y)}}else typeof i=="function"&&(f.preventDefault(),y=o?Dh(s,o):new FormData(s),Rr(a,{pending:!0,data:y,method:s.method,action:i},i,y))},currentTarget:s}]})}}for(var mo=0;mo<Fc.length;mo++){var yo=Fc[mo],d1=yo.toLowerCase(),f1=yo[0].toUpperCase()+yo.slice(1);Vt(d1,"on"+f1)}Vt(od,"onAnimationEnd"),Vt(ud,"onAnimationIteration"),Vt(dd,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(C0,"onTransitionRun"),Vt(M0,"onTransitionStart"),Vt(O0,"onTransitionCancel"),Vt(fd,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zs="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zs));function kh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var o=l.length-1;0<=o;o--){var f=l[o],y=f.instance,A=f.currentTarget;if(f=f.listener,y!==i&&s.isPropagationStopped())break e;i=f,s.currentTarget=A;try{i(s)}catch(k){oi(k)}s.currentTarget=null,i=y}else for(o=0;o<l.length;o++){if(f=l[o],y=f.instance,A=f.currentTarget,f=f.listener,y!==i&&s.isPropagationStopped())break e;i=f,s.currentTarget=A;try{i(s)}catch(k){oi(k)}s.currentTarget=null,i=y}}}}function he(e,t){var a=t[Ac];a===void 0&&(a=t[Ac]=new Set);var l=e+"__bubble";a.has(l)||(wh(t,e,2,!1),a.add(l))}function vo(e,t,a){var l=0;t&&(l|=4),wh(a,e,l,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Fi]){e[Fi]=!0,Au.forEach(function(a){a!=="selectionchange"&&(h1.has(a)||vo(a,!1,e),vo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,vo("selectionchange",!1,t))}}function wh(e,t,a,l){switch(um(t)){case 2:var s=Q1;break;case 8:s=G1;break;default:s=Ro}a=s.bind(null,t,a,e),s=void 0,!Uc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function go(e,t,a,l,s){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var f=l.stateNode.containerInfo;if(f===s)break;if(o===4)for(o=l.return;o!==null;){var y=o.tag;if((y===3||y===4)&&o.stateNode.containerInfo===s)return;o=o.return}for(;f!==null;){if(o=ql(f),o===null)return;if(y=o.tag,y===5||y===6||y===26||y===27){l=i=o;continue e}f=f.parentNode}}l=l.return}Hu(function(){var A=i,k=kc(a),U=[];e:{var C=hd.get(e);if(C!==void 0){var _=ii,J=e;switch(e){case"keypress":if(ni(a)===0)break e;case"keydown":case"keyup":_=i0;break;case"focusin":J="focus",_=qc;break;case"focusout":J="blur",_=qc;break;case"beforeblur":case"afterblur":_=qc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Gu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=o0;break;case od:case ud:case dd:_=Wy;break;case fd:_=d0;break;case"scroll":case"scrollend":_=Vy;break;case"wheel":_=h0;break;case"copy":case"cut":case"paste":_=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ku;break;case"toggle":case"beforetoggle":_=y0}var ae=(t&4)!==0,Re=!ae&&(e==="scroll"||e==="scrollend"),z=ae?C!==null?C+"Capture":null:C;ae=[];for(var v=A,E;v!==null;){var w=v;if(E=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||E===null||z===null||(w=Vn(v,z),w!=null&&ae.push(Ts(v,w,E))),Re)break;v=v.return}0<ae.length&&(C=new _(C,J,null,a,k),U.push({event:C,listeners:ae}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",C&&a!==Dc&&(J=a.relatedTarget||a.fromElement)&&(ql(J)||J[Hl]))break e;if((_||C)&&(C=k.window===k?k:(C=k.ownerDocument)?C.defaultView||C.parentWindow:window,_?(J=a.relatedTarget||a.toElement,_=A,J=J?ql(J):null,J!==null&&(Re=x(J),ae=J.tag,J!==Re||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(_=null,J=A),_!==J)){if(ae=Gu,w="onMouseLeave",z="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Ku,w="onPointerLeave",z="onPointerEnter",v="pointer"),Re=_==null?C:Xn(_),E=J==null?C:Xn(J),C=new ae(w,v+"leave",_,a,k),C.target=Re,C.relatedTarget=E,w=null,ql(k)===A&&(ae=new ae(z,v+"enter",J,a,k),ae.target=E,ae.relatedTarget=Re,w=ae),Re=w,_&&J)t:{for(ae=m1,z=_,v=J,E=0,w=z;w;w=ae(w))E++;w=0;for(var P=v;P;P=ae(P))w++;for(;0<E-w;)z=ae(z),E--;for(;0<w-E;)v=ae(v),w--;for(;E--;){if(z===v||v!==null&&z===v.alternate){ae=z;break t}z=ae(z),v=ae(v)}ae=null}else ae=null;_!==null&&Uh(U,C,_,ae,!1),J!==null&&Re!==null&&Uh(U,Re,J,ae,!0)}}e:{if(C=A?Xn(A):window,_=C.nodeName&&C.nodeName.toLowerCase(),_==="select"||_==="input"&&C.type==="file")var je=Iu;else if($u(C))if(Pu)je=T0;else{je=N0;var W=S0}else _=C.nodeName,!_||_.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?A&&Rc(A.elementType)&&(je=Iu):je=z0;if(je&&(je=je(e,A))){Wu(U,je,a,k);break e}W&&W(e,C,A),e==="focusout"&&A&&C.type==="number"&&A.memoizedProps.value!=null&&_c(C,"number",C.value)}switch(W=A?Xn(A):window,e){case"focusin":($u(W)||W.contentEditable==="true")&&(Fl=W,Vc=A,es=null);break;case"focusout":es=Vc=Fl=null;break;case"mousedown":Zc=!0;break;case"contextmenu":case"mouseup":case"dragend":Zc=!1,cd(U,a,k);break;case"selectionchange":if(A0)break;case"keydown":case"keyup":cd(U,a,k)}var ue;if(Gc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Jl?Ju(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Xu&&a.locale!=="ko"&&(Jl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Jl&&(ue=qu()):(Aa=k,Lc="value"in Aa?Aa.value:Aa.textContent,Jl=!0)),W=$i(A,ye),0<W.length&&(ye=new Yu(ye,e,null,a,k),U.push({event:ye,listeners:W}),ue?ye.data=ue:(ue=Fu(a),ue!==null&&(ye.data=ue)))),(ue=p0?g0(e,a):x0(e,a))&&(ye=$i(A,"onBeforeInput"),0<ye.length&&(W=new Yu("onBeforeInput","beforeinput",null,a,k),U.push({event:W,listeners:ye}),W.data=ue)),u1(U,e,A,a,k)}kh(U,t)})}function Ts(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $i(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=Vn(e,a),s!=null&&l.unshift(Ts(e,s,i)),s=Vn(e,t),s!=null&&l.push(Ts(e,s,i))),e.tag===3)return l;e=e.return}return[]}function m1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uh(e,t,a,l,s){for(var i=t._reactName,o=[];a!==null&&a!==l;){var f=a,y=f.alternate,A=f.stateNode;if(f=f.tag,y!==null&&y===l)break;f!==5&&f!==26&&f!==27||A===null||(y=A,s?(A=Vn(a,i),A!=null&&o.unshift(Ts(a,A,y))):s||(A=Vn(a,i),A!=null&&o.push(Ts(a,A,y)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var y1=/\r\n?/g,v1=/\u0000|\uFFFD/g;function Lh(e){return(typeof e=="string"?e:""+e).replace(y1,`
49
+ `).replace(v1,"")}function Bh(e,t){return t=Lh(t),Lh(e)===t}function _e(e,t,a,l,s,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Xl(e,""+l);break;case"className":ei(e,"class",l);break;case"tabIndex":ei(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ei(e,a,l);break;case"style":Lu(e,l,i);break;case"data":if(t!=="object"){ei(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ai(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",s.name,s,null),_e(e,t,"formEncType",s.formEncType,s,null),_e(e,t,"formMethod",s.formMethod,s,null),_e(e,t,"formTarget",s.formTarget,s,null)):(_e(e,t,"encType",s.encType,s,null),_e(e,t,"method",s.method,s,null),_e(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ai(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ai(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),Ps(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ps(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Ky.get(a)||a,Ps(e,a,l))}}function xo(e,t,a,l,s,i){switch(a){case"style":Lu(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cu.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),i=e[mt]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ps(e,a,l)}}}function st(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,s=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:_e(e,t,i,o,a,null)}}s&&_e(e,t,"srcSet",a.srcSet,a,null),l&&_e(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var f=i=o=s=null,y=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var k=a[l];if(k!=null)switch(l){case"name":s=k;break;case"type":o=k;break;case"checked":y=k;break;case"defaultChecked":A=k;break;case"value":i=k;break;case"defaultValue":f=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(u(137,t));break;default:_e(e,t,l,k,a,null)}}Du(e,i,f,y,A,o,s,!1);return;case"select":he("invalid",e),l=o=i=null;for(s in a)if(a.hasOwnProperty(s)&&(f=a[s],f!=null))switch(s){case"value":i=f;break;case"defaultValue":o=f;break;case"multiple":l=f;default:_e(e,t,s,f,a,null)}t=i,a=o,e.multiple=!!l,t!=null?Kl(e,!!l,t,!1):a!=null&&Kl(e,!!l,a,!0);return;case"textarea":he("invalid",e),i=s=l=null;for(o in a)if(a.hasOwnProperty(o)&&(f=a[o],f!=null))switch(o){case"value":l=f;break;case"defaultValue":s=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:_e(e,t,o,f,a,null)}wu(e,l,s,i);return;case"option":for(y in a)if(a.hasOwnProperty(y)&&(l=a[y],l!=null))switch(y){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:_e(e,t,y,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<zs.length;l++)he(zs[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:_e(e,t,A,l,a,null)}return;default:if(Rc(t)){for(k in a)a.hasOwnProperty(k)&&(l=a[k],l!==void 0&&xo(e,t,k,l,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(l=a[f],l!=null&&_e(e,t,f,l,a,null))}function p1(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,o=null,f=null,y=null,A=null,k=null;for(_ in a){var U=a[_];if(a.hasOwnProperty(_)&&U!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=U;default:l.hasOwnProperty(_)||_e(e,t,_,null,l,U)}}for(var C in l){var _=l[C];if(U=a[C],l.hasOwnProperty(C)&&(_!=null||U!=null))switch(C){case"type":i=_;break;case"name":s=_;break;case"checked":A=_;break;case"defaultChecked":k=_;break;case"value":o=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:_!==U&&_e(e,t,C,_,l,U)}}Oc(e,o,f,y,A,k,i,s);return;case"select":_=o=f=C=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":_=y;default:l.hasOwnProperty(i)||_e(e,t,i,null,l,y)}for(s in l)if(i=l[s],y=a[s],l.hasOwnProperty(s)&&(i!=null||y!=null))switch(s){case"value":C=i;break;case"defaultValue":f=i;break;case"multiple":o=i;default:i!==y&&_e(e,t,s,i,l,y)}t=f,a=o,l=_,C!=null?Kl(e,!!a,C,!1):!!l!=!!a&&(t!=null?Kl(e,!!a,t,!0):Kl(e,!!a,a?[]:"",!1));return;case"textarea":_=C=null;for(f in a)if(s=a[f],a.hasOwnProperty(f)&&s!=null&&!l.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:_e(e,t,f,null,l,s)}for(o in l)if(s=l[o],i=a[o],l.hasOwnProperty(o)&&(s!=null||i!=null))switch(o){case"value":C=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==i&&_e(e,t,o,s,l,i)}ku(e,C,_);return;case"option":for(var J in a)if(C=a[J],a.hasOwnProperty(J)&&C!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:_e(e,t,J,null,l,C)}for(y in l)if(C=l[y],_=a[y],l.hasOwnProperty(y)&&C!==_&&(C!=null||_!=null))switch(y){case"selected":e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:_e(e,t,y,C,l,_)}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 ae in a)C=a[ae],a.hasOwnProperty(ae)&&C!=null&&!l.hasOwnProperty(ae)&&_e(e,t,ae,null,l,C);for(A in l)if(C=l[A],_=a[A],l.hasOwnProperty(A)&&C!==_&&(C!=null||_!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(u(137,t));break;default:_e(e,t,A,C,l,_)}return;default:if(Rc(t)){for(var Re in a)C=a[Re],a.hasOwnProperty(Re)&&C!==void 0&&!l.hasOwnProperty(Re)&&xo(e,t,Re,void 0,l,C);for(k in l)C=l[k],_=a[k],!l.hasOwnProperty(k)||C===_||C===void 0&&_===void 0||xo(e,t,k,C,l,_);return}}for(var z in a)C=a[z],a.hasOwnProperty(z)&&C!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,C);for(U in l)C=l[U],_=a[U],!l.hasOwnProperty(U)||C===_||C==null&&_==null||_e(e,t,U,C,l,_)}function Hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],i=s.transferSize,o=s.initiatorType,f=s.duration;if(i&&f&&Hh(o)){for(o=0,f=s.responseEnd,l+=1;l<a.length;l++){var y=a[l],A=y.startTime;if(A>f)break;var k=y.transferSize,U=y.initiatorType;k&&Hh(U)&&(y=y.responseEnd,o+=k*(y<f?1:(f-A)/(y-A)))}if(--l,t+=8*(i+o)/(s.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 bo=null,jo=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function qh(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 Qh(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 So(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 No=null;function x1(){var e=window.event;return e&&e.type==="popstate"?e===No?!1:(No=e,!0):(No=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,j1=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(S1)}:Gh;function S1(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function Kh(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Nn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Es(a);for(var i=a.firstChild;i;){var o=i.nextSibling,f=i.nodeName;i[Kn]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&Es(e.ownerDocument.body);a=s}while(a);Nn(t)}function Xh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function zo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":zo(a),Cc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function N1(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Kn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function z1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function Vh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function To(e){return e.data==="$?"||e.data==="$~"}function Eo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(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 Ao=null;function Zh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Fh(e,t,a){switch(t=Wi(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cc(e)}var Kt=new Map,$h=new Set;function Ii(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=Y.d;Y.d={f:E1,r:A1,D:C1,C:M1,L:O1,m:_1,X:D1,S:R1,M:k1};function E1(){var e=ba.f(),t=Yi();return e||t}function A1(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?hf(t):ba.r(e)}var bn=typeof document>"u"?null:document;function Wh(e,t,a){var l=bn;if(l&&typeof t=="string"&&t){var s=Ut(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),$h.has(s)||($h.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),st(t,"link",e),Ie(t),l.head.appendChild(t)))}}function C1(e){ba.D(e),Wh("dns-prefetch",e,null)}function M1(e,t){ba.C(e,t),Wh("preconnect",e,t)}function O1(e,t,a){ba.L(e,t,a);var l=bn;if(l&&e&&t){var s='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Ut(a.imageSizes)+'"]')):s+='[href="'+Ut(e)+'"]';var i=s;switch(t){case"style":i=jn(e);break;case"script":i=Sn(e)}Kt.has(i)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(i,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(As(i))||t==="script"&&l.querySelector(Cs(i))||(t=l.createElement("link"),st(t,"link",e),Ie(t),l.head.appendChild(t)))}}function _1(e,t){ba.m(e,t);var a=bn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',i=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Sn(e)}if(!Kt.has(i)&&(e=S({rel:"modulepreload",href:e},t),Kt.set(i,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Cs(i)))return}l=a.createElement("link"),st(l,"link",e),Ie(l),a.head.appendChild(l)}}}function R1(e,t,a){ba.S(e,t,a);var l=bn;if(l&&e){var s=Gl(l).hoistableStyles,i=jn(e);t=t||"default";var o=s.get(i);if(!o){var f={loading:0,preload:null};if(o=l.querySelector(As(i)))f.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(i))&&Co(e,a);var y=o=l.createElement("link");Ie(y),st(y,"link",e),y._p=new Promise(function(A,k){y.onload=A,y.onerror=k}),y.addEventListener("load",function(){f.loading|=1}),y.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Pi(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:f},s.set(i,o)}}}function D1(e,t){ba.X(e,t);var a=bn;if(a&&e){var l=Gl(a).hoistableScripts,s=Sn(e),i=l.get(s);i||(i=a.querySelector(Cs(s)),i||(e=S({src:e,async:!0},t),(t=Kt.get(s))&&Mo(e,t),i=a.createElement("script"),Ie(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function k1(e,t){ba.M(e,t);var a=bn;if(a&&e){var l=Gl(a).hoistableScripts,s=Sn(e),i=l.get(s);i||(i=a.querySelector(Cs(s)),i||(e=S({src:e,async:!0,type:"module"},t),(t=Kt.get(s))&&Mo(e,t),i=a.createElement("script"),Ie(i),st(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function Ih(e,t,a,l){var s=(s=de.current)?Ii(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=jn(a.href),a=Gl(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=jn(a.href);var i=Gl(s).hoistableStyles,o=i.get(e);if(o||(s=s.ownerDocument||s,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=s.querySelector(As(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),i||w1(s,e,a,o.state))),t&&l===null)throw Error(u(528,""));return o}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sn(a),a=Gl(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function jn(e){return'href="'+Ut(e)+'"'}function As(e){return'link[rel="stylesheet"]['+e+"]"}function Ph(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function w1(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),st(t,"link",a),Ie(t),e.head.appendChild(t))}function Sn(e){return'[src="'+Ut(e)+'"]'}function Cs(e){return"script[async]"+e}function em(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var s=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),st(l,"style",s),Pi(l,a.precedence,e),t.instance=l;case"stylesheet":s=jn(a.href);var i=e.querySelector(As(s));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;l=Ph(a),(s=Kt.get(s))&&Co(l,s),i=(e.ownerDocument||e).createElement("link"),Ie(i);var o=i;return o._p=new Promise(function(f,y){o.onload=f,o.onerror=y}),st(i,"link",l),t.state.loading|=4,Pi(i,a.precedence,e),t.instance=i;case"script":return i=Sn(a.src),(s=e.querySelector(Cs(i)))?(t.instance=s,Ie(s),s):(l=a,(s=Kt.get(i))&&(l=S({},a),Mo(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),st(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Pi(l,a.precedence,e));return t.instance}function Pi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,i=s,o=0;o<l.length;o++){var f=l[o];if(f.dataset.precedence===t)i=f;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ec=null;function tm(e,t,a){if(ec===null){var l=new Map,s=ec=new Map;s.set(a,l)}else s=ec,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var i=a[s];if(!(i[Kn]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var f=l.get(o);f?f.push(i):l.set(o,[i])}}return l}function am(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function U1(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L1(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=jn(l.href),i=t.querySelector(As(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ie(i);return}i=t.ownerDocument||t,l=Ph(l),(s=Kt.get(s))&&Co(l,s),i=i.createElement("link"),Ie(i);var o=i;o._p=new Promise(function(f,y){o.onload=f,o.onerror=y}),st(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oo=0;function B1(e,t){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Oo===0&&(Oo=62500*g1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Oo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ac=null;function lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ac=new Map,t.forEach(H1,e),ac=null,tc.call(e))}function H1(e,t){if(!(t.state.loading&4)){var a=ac.get(e);if(a)var l=a.get(null);else{a=new Map,ac.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var o=s[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}s=t.instance,o=s.getAttribute("data-precedence"),i=a.get(o)||l,i===l&&a.set(null,s),a.set(o,s),this.count++,l=tc.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ms={$$typeof:Q,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function q1(e,t,a,l,s,i,o,f,y){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=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function nm(e,t,a,l,s,i,o,f,y,A,k,U){return e=new q1(e,t,a,o,y,A,k,U,f),t=1,i===!0&&(t|=24),i=At(3,null,null,t),e.current=i,i.stateNode=e,t=rr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},fr(i),e}function sm(e){return e?(e=Il,e):Il}function im(e,t,a,l,s,i){s=sm(s),l.context===null?l.context=s:l.pendingContext=s,l=Da(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=ka(e,l,t),a!==null&&(bt(a,e,t),cs(a,e,t))}function cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function _o(e,t){cm(e,t),(e=e.alternate)&&cm(e,t)}function rm(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&bt(t,e,67108864),_o(e,67108864)}}function om(e){if(e.tag===13||e.tag===31){var t=Rt();t=Tc(t);var a=ml(e,t);a!==null&&bt(a,e,t),_o(e,t)}}var nc=!0;function Q1(e,t,a,l){var s=D.T;D.T=null;var i=Y.p;try{Y.p=2,Ro(e,t,a,l)}finally{Y.p=i,D.T=s}}function G1(e,t,a,l){var s=D.T;D.T=null;var i=Y.p;try{Y.p=8,Ro(e,t,a,l)}finally{Y.p=i,D.T=s}}function Ro(e,t,a,l){if(nc){var s=Do(l);if(s===null)go(e,t,l,sc,a),dm(e,l);else if(K1(s,e,t,a,l))l.stopPropagation();else if(dm(e,l),t&4&&-1<Y1.indexOf(e)){for(;s!==null;){var i=Ql(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=ol(i.pendingLanes);if(o!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;o;){var y=1<<31-Tt(o);f.entanglements[1]|=y,o&=~y}Pt(i),(Ne&6)===0&&(Qi=Nt()+500,Ns(0))}}break;case 31:case 13:f=ml(i,2),f!==null&&bt(f,i,2),Yi(),_o(i,2)}if(i=Do(l),i===null&&go(e,t,l,sc,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else go(e,t,l,null,a)}}function Do(e){return e=kc(e),ko(e)}var sc=null;function ko(e){if(sc=null,e=ql(e),e!==null){var t=x(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=T(t),e!==null)return e;e=null}else if(a===31){if(e=j(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return sc=e,null}function um(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(Cy()){case pu:return 2;case gu:return 8;case Js:case My:return 32;case xu:return 268435456;default:return 32}default:return 32}}var wo=!1,Xa=null,Va=null,Za=null,Os=new Map,_s=new Map,Ja=[],Y1="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 dm(e,t){switch(e){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function Rs(e,t,a,l,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ql(t),t!==null&&rm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function K1(e,t,a,l,s){switch(t){case"focusin":return Xa=Rs(Xa,e,t,a,l,s),!0;case"dragenter":return Va=Rs(Va,e,t,a,l,s),!0;case"mouseover":return Za=Rs(Za,e,t,a,l,s),!0;case"pointerover":var i=s.pointerId;return Os.set(i,Rs(Os.get(i)||null,e,t,a,l,s)),!0;case"gotpointercapture":return i=s.pointerId,_s.set(i,Rs(_s.get(i)||null,e,t,a,l,s)),!0}return!1}function fm(e){var t=ql(e.target);if(t!==null){var a=x(t);if(a!==null){if(t=a.tag,t===13){if(t=T(a),t!==null){e.blockedOn=t,Tu(e.priority,function(){om(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,Tu(e.priority,function(){om(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ic(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Do(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Dc=l,a.target.dispatchEvent(l),Dc=null}else return t=Ql(a),t!==null&&rm(t),e.blockedOn=a,!1;t.shift()}return!0}function hm(e,t,a){ic(e)&&a.delete(t)}function X1(){wo=!1,Xa!==null&&ic(Xa)&&(Xa=null),Va!==null&&ic(Va)&&(Va=null),Za!==null&&ic(Za)&&(Za=null),Os.forEach(hm),_s.forEach(hm)}function cc(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,X1)))}var rc=null;function mm(e){rc!==e&&(rc=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){rc===e&&(rc=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(ko(l||a)===null)continue;break}var i=Ql(a);i!==null&&(e.splice(t,3),t-=3,Rr(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Nn(e){function t(y){return cc(y,e)}Xa!==null&&cc(Xa,e),Va!==null&&cc(Va,e),Za!==null&&cc(Za,e),Os.forEach(t),_s.forEach(t);for(var a=0;a<Ja.length;a++){var l=Ja[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)fm(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],i=a[l+1],o=s[mt]||null;if(typeof i=="function")o||mm(a);else if(o){var f=null;if(i&&i.hasAttribute("formAction")){if(s=i,o=i[mt]||null)f=o.formAction;else if(ko(s)!==null)continue}else f=o.action;typeof f=="function"?a[l+1]=f:(a.splice(l,3),l-=3),mm(a)}}}function ym(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return s=o})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Uo(e){this._internalRoot=e}oc.prototype.render=Uo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Rt();im(a,l,e,t,null,null)},oc.prototype.unmount=Uo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;im(e.current,2,null,e,null,null),Yi(),t[Hl]=null}};function oc(e){this._internalRoot=e}oc.prototype.unstable_scheduleHydration=function(e){if(e){var t=zu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&fm(e)}};var vm=r.version;if(vm!=="19.2.7")throw Error(u(527,vm,"19.2.7"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=h(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var V1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{Qn=uc.inject(V1),zt=uc}catch{}}return ks.createRoot=function(e,t){if(!m(e))throw Error(u(299));var a=!1,l="",s=Nf,i=zf,o=Tf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=nm(e,1,!1,null,null,a,l,null,s,i,o,ym),e[Hl]=t.current,po(e),new Uo(t)},ks.hydrateRoot=function(e,t,a){if(!m(e))throw Error(u(299));var l=!1,s="",i=Nf,o=zf,f=Tf,y=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=nm(e,1,!0,t,a??null,l,s,y,i,o,f,ym),t.context=sm(null),a=t.current,l=Rt(),l=Tc(l),s=Da(l),s.callback=null,ka(a,s,l),a=l,t.current.lanes=a,Yn(t,a),Pt(t),e[Hl]=t.current,po(e),new oc(t)},ks.version="19.2.7",ks}var Lm;function Gv(){if(Lm)return qo.exports;Lm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),qo.exports=Qv(),qo.exports}var Yv=Gv();/**
50
50
  * @license lucide-react v0.471.2 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
@@ -206,12 +206,12 @@ Error generating stack: `+l.message+`
206
206
  *
207
207
  * This source code is licensed under the ISC license.
208
208
  * See the LICENSE file in the root directory of this source tree.
209
- */const Rp=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],kp=I("LayoutDashboard",Rp);/**
209
+ */const Rp=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Dp=I("LayoutDashboard",Rp);/**
210
210
  * @license lucide-react v0.471.2 - ISC
211
211
  *
212
212
  * This source code is licensed under the ISC license.
213
213
  * See the LICENSE file in the root directory of this source tree.
214
- */const Dp=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],wp=I("LockOpen",Dp);/**
214
+ */const kp=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],wp=I("LockOpen",kp);/**
215
215
  * @license lucide-react v0.471.2 - ISC
216
216
  *
217
217
  * This source code is licensed under the ISC license.
@@ -351,26 +351,26 @@ Error generating stack: `+l.message+`
351
351
  *
352
352
  * This source code is licensed under the ISC license.
353
353
  * See the LICENSE file in the root directory of this source tree.
354
- */const Ng=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mu=I("X",Ng);function zg(){const[c,r]=H.useState([]),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/adapters/skills").then(j=>j.json()).then(j=>{j.success&&r(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,15e3);return()=>clearInterval(T)},[]);const m={file_system:Cp,editing:cg,orchestration:za,governance:vy,quality:dy,search:by,memory:hu};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(gy,{size:20,style:{display:"inline-block",verticalAlign:"middle",marginRight:8}}),"Adapter Skills"]}),!d&&n.jsxs("span",{className:"badge",children:[c.length," adapters"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Loading adapter skills..."}),!d&&n.jsx("div",{className:"adapter-list",children:c.map(x=>n.jsxs("div",{className:"adapter-item",children:[n.jsxs("div",{className:"adapter-header",children:[n.jsxs("span",{className:"adapter-name",children:[n.jsx(Hn,{size:14,style:{display:"inline-block",verticalAlign:"middle",marginRight:6}}),x.id]}),n.jsxs("span",{className:"adapter-meta",children:[n.jsx(Sg,{size:12,style:{display:"inline-block",verticalAlign:"middle",marginRight:4}}),x.toolsCount," tools · ",x.skillCount," skills"]})]}),n.jsx("div",{className:"adapter-skills-grid",children:x.skills.map(T=>{const j=m[T];return n.jsxs("span",{className:"skill-badge",style:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[j?n.jsx(j,{size:12}):n.jsx("span",{style:{fontSize:"10px"},children:"•"}),T.replace(/_/g," ")]},T)})})]},x.id))})]})}function ht(c,r=0){var m;const d=Uv({queryKey:[c],queryFn:async()=>{const x=await fetch(`/api${c}`);if(!x.ok)throw new Error(`${x.status} ${x.statusText}`);const T=await x.json();let j=T;return T&&typeof T=="object"&&"success"in T&&"data"in T&&(j=T.data),["/agents","/approvals","/logs","/messages","/tasks","/memory/search","/compliance"].some(h=>c.startsWith(h))&&!Array.isArray(j)?[]:j},refetchInterval:r||!1}),u=H.useCallback(()=>{d.refetch()},[d.refetch]);return{data:d.data,loading:d.isLoading,error:((m=d.error)==null?void 0:m.message)??null,refetch:u}}function Bl({handlers:c={},port:r}={}){const d=H.useRef(null),[u,m]=H.useState(!1);return H.useEffect(()=>{let x,T=0;function j(){var S;(S=d.current)==null||S.close();const N=location.port,h=r||N||"5858",g=new WebSocket(`ws://${location.hostname}:${h}/ws`);d.current=g,g.onopen=()=>{m(!0),T=0},g.onclose=()=>{m(!1),T<10&&(T++,x=setTimeout(j,3e3*Math.min(T,5)))},g.onmessage=M=>{try{const R=JSON.parse(M.data);if(R.type==="pong")return;const O=c[R.type];O&&O(R.payload||{})}catch{}}}return j(),()=>{var N;clearTimeout(x),(N=d.current)==null||N.close()}},[]),u}const Tg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function jy(){const{data:c,loading:r,error:d}=ht("/agents",5e3),[u,m]=H.useState([]),[x,T]=H.useState(null);Bl({handlers:{agent_update:h=>{const g=h;g.name&&m(S=>{const M=g.name.replace("@","");return S.some(O=>O.name.replace("@","")===M)?S.map(O=>O.name.replace("@","")===M?{...O,...g}:O):[...S,g]})}}});const j=u.length?u:Array.isArray(c)?c:[];Array.isArray(c)&&u.length===0&&c.length>0&&m(c);const N=Tg.map(h=>{const g=j.find(S=>S.name.replace("@","")===h);return g?{...g,name:h}:{name:h,state:"READY",task:"Idle",last_updated:new Date().toISOString()}});return r&&!j.length?n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Governed Specialist Monitor"]})}),n.jsx("div",{className:"empty-state",children:"Loading specialists..."})]}):d&&!j.length?n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Governed Specialist Monitor"]})}),n.jsxs("div",{className:"error",children:["Error: ",d]})]}):n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Specialist Monitor"]}),n.jsxs("span",{className:"badge",children:[N.length," specialists"]})]}),n.jsx("div",{className:"agent-list-container",children:n.jsx("div",{className:"agent-grid",children:N.map(h=>{const g=x===h.name,S=h.state.toLowerCase();return n.jsxs("div",{className:`agent-card ${g?"expanded":""}`,onClick:()=>T(g?null:h.name),children:[n.jsxs("div",{className:"agent-header",children:[n.jsx("span",{className:`agent-dot ${S}`}),n.jsxs("span",{className:"agent-name",children:["@",h.name]}),n.jsx("span",{className:`agent-state ${S}`,children:h.state}),g?n.jsx(hy,{size:14,className:"text-muted"}):n.jsx(fy,{size:14,className:"text-muted"})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Task:"}),n.jsx("span",{className:"detail-value",children:h.task||"Idle"})]}),g&&n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Updated:"}),n.jsx("span",{className:"detail-value",children:new Date(h.last_updated).toLocaleString()})]})]},h.name)})})})]})}function Sy(){const{data:c}=ht("/approvals",5e3),[r,d]=H.useState([]),[u,m]=H.useState(null);Bl({handlers:{approval:h=>{const g=h;g.id&&(d(S=>[g,...S]),T(`New approval: ${g.traceId}`,"success"))}}});const x=r.length?r:Array.isArray(c)?c:[];Array.isArray(c)&&r.length===0&&c.length>0&&d(c);function T(h,g){m({msg:h,type:g}),setTimeout(()=>m(null),4e3)}async function j(h,g,S){try{const M=S==="approve"?`/api/approve/${g}`:`/api/reject/${g}`;(await fetch(M,{method:"POST"})).ok?(d(S==="approve"?O=>O.map(B=>B.traceId===g?{...B,status:"APPROVED"}:B):O=>O.map(B=>B.traceId===g?{...B,status:"REJECTED"}:B)),T(S==="approve"?"Approved":"Rejected","success")):T("Failed","error")}catch{T("Network error","error")}}const N=x.filter(h=>h.status==="PENDING");return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(il,{size:20})," HITL Policy Gates"]}),n.jsxs("span",{className:"badge",children:[N.length," pending overrides"]})]}),u&&n.jsx("div",{className:`toast toast-${u.type}`,children:u.msg}),n.jsxs("div",{className:"list-container",children:[x.length===0&&n.jsx("div",{className:"empty-state",children:"No approvals"}),x.map(h=>n.jsxs("div",{className:"list-item",style:{opacity:h.status==="APPROVED"||h.status==="REJECTED"?.6:1},children:[n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Trace:"}),n.jsx("span",{className:"trace-id",children:h.traceId})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Task:"}),n.jsx("span",{className:"detail-value",children:h.description})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Status:"}),n.jsx("span",{className:`status-${h.status.toLowerCase()}`,style:{fontSize:"0.85rem"},children:h.status})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Time:"}),n.jsx("span",{className:"detail-value",children:new Date(h.timestamp).toLocaleString()})]}),h.status==="PENDING"&&n.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[n.jsxs("button",{className:"btn btn-primary",onClick:()=>j(h.id,h.traceId,"approve"),children:[n.jsx(dy,{size:14})," Approve"]}),n.jsxs("button",{className:"btn btn-danger",onClick:()=>j(h.id,h.traceId,"reject"),children:[n.jsx(mu,{size:14})," Reject"]})]})]},h.id))]})]})}function Eg(){const{data:c,loading:r,error:d}=ht("/compliance",15e3),[u,m]=H.useState("ALL"),[x,T]=H.useState(null),j=Array.isArray(c)?c:[],N=u==="ALL"?j:j.filter(g=>g.status===u),h={PASS:j.filter(g=>g.status==="PASS").length,FAIL:j.filter(g=>g.status==="FAIL").length,WARN:j.filter(g=>g.status==="WARN").length};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Ll,{size:20})," Compliance Auditing"]}),n.jsxs("span",{className:"badge",children:[j.length," files"]})]}),r&&!j.length&&n.jsx("div",{className:"empty-state",children:"Running checks..."}),d&&!j.length&&n.jsxs("div",{className:"error",children:["Error: ",d]}),j.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"stats-grid",children:Object.entries(h).map(([g,S])=>n.jsxs("div",{className:`stat-box ${g.toLowerCase()}`,children:[n.jsx("span",{className:"stat-count",children:S}),n.jsx("span",{className:"stat-label",children:g})]},g))}),n.jsx("div",{className:"filter-tabs",children:["ALL","PASS","FAIL","WARN"].map(g=>n.jsx("button",{className:`filter-tab ${u===g?"active":""}`,onClick:()=>m(g),children:g},g))}),n.jsxs("div",{className:"list-container",children:[N.length===0&&n.jsx("div",{className:"empty-state",children:"No results"}),N.map(g=>{const S=x===g.file;return n.jsxs("div",{className:"list-item",onClick:()=>T(S?null:g.file),children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[g.status==="PASS"?n.jsx(Ll,{size:14,style:{color:"#22c55e",flexShrink:0}}):g.status==="FAIL"?n.jsx(my,{size:14,style:{color:"#ef4444",flexShrink:0}}):n.jsx(ot,{size:14,style:{color:"#eab308",flexShrink:0}}),n.jsx("span",{style:{flex:1,fontFamily:"'JetBrains Mono', monospace",fontSize:"0.8rem"},children:g.file}),n.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:g.status==="PASS"?"#22c55e":g.status==="FAIL"?"#ef4444":"#eab308"},children:g.status})]}),S&&g.violations.length>0&&n.jsx("div",{style:{marginTop:8,borderTop:"1px solid #334155",paddingTop:8},children:g.violations.map((M,R)=>n.jsxs("div",{style:{fontSize:"0.8rem",color:"#ef4444",marginTop:4},children:[n.jsx(ot,{size:12,style:{display:"inline",marginRight:4}}),M]},R))})]},g.file)})]})]})]})}function Ag(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("violations"),N=async()=>{u(!0);try{const R=await fetch("/api/discipline");if(!R.ok)throw new Error(`HTTP ${R.status}`);const O=await R.json();if(O.success)r(O.data);else throw new Error(O.error||"Failed to fetch discipline stats");x(null)}catch(R){x(R.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const R=setInterval(N,5e3);return()=>clearInterval(R)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Discipline Stats..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Discipline Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const h=Object.entries(c||{}).sort((R,O)=>T==="violations"?O[1].violations-R[1].violations:O[1].totalCalls-R[1].totalCalls),g=h.reduce((R,[,O])=>R+O.violations,0),S=h.reduce((R,[,O])=>R+O.totalCalls,0),M=h.some(([,R])=>R.inCooldown);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #2a0a0a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(il,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"AI Discipline Engine"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Real-time AI behavior monitoring & enforcement"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Total Calls"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:S}),n.jsx("div",{className:"stat-card-desc",children:"All agent tool calls"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:16,style:{color:g>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Violations"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:g>0?"var(--color-error)":"var(--color-success)"},children:g}),n.jsx("div",{className:"stat-card-desc",children:g>0?"Rules broken":"All clear"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:M?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Cooldown"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:M?"var(--color-warning)":"var(--color-success)"},children:M?"Active":"None"}),n.jsx("div",{className:"stat-card-desc",children:M?"Agent(s) rate limited":"All agents active"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:h.length}),n.jsx("div",{className:"stat-card-desc",children:"Tracked agents"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Discipline Status"}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:`filter-tab ${T==="violations"?"active":""}`,onClick:()=>j("violations"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Violations"}),n.jsx("button",{className:`filter-tab ${T==="calls"?"active":""}`,onClick:()=>j("calls"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Calls"})]})]}),n.jsxs("div",{className:"list-container",children:[h.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),h.map(([R,O])=>{const B=O.totalCalls>0?(O.violations/O.totalCalls*100).toFixed(1):"0.0";return n.jsxs("div",{className:"list-item",style:{borderLeft:O.inCooldown?"3px solid var(--color-warning)":O.violations>0?"3px solid var(--color-error)":"3px solid var(--color-success)"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",R]}),O.inCooldown&&n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["Cooldown ",Math.ceil(O.cooldownRemaining/1e3),"s"]}),O.violations>0&&n.jsxs("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:[O.violations," violations"]}),O.violations===0&&n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:"Clean"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.75rem",color:"var(--color-dim)"},children:[n.jsxs("span",{children:[O.totalCalls," total"]}),n.jsxs("span",{children:[O.recentCalls,"/min"]}),n.jsxs("span",{children:[B,"% violation rate"]})]})]}),O.lastViolation&&n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-error)",background:"rgba(239, 68, 68, 0.05)",padding:"6px 8px",borderRadius:4,marginTop:4},children:[n.jsx("strong",{children:"Last violation:"})," ",O.lastViolation]})]},R)})]})]})]})}const Cg={lint:Pv,compliance:iu,test:dg,runtime:sg,security:ot};function Mg(){const[c,r]=H.useState([]),[d,u]=H.useState("ALL"),[m,x]=H.useState(!1);Bl({handlers:{error:h=>{const g=h;g.id&&r(S=>[g,...S].slice(0,100))}}});const T=c.filter(h=>!(d!=="ALL"&&h.type!==d||!m&&h.resolved)),j=c.filter(h=>!h.resolved).length,N={lint:"#eab308",compliance:"#ef4444",test:"#3b82f6",runtime:"#ef4444",security:"#a855f7"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(ot,{size:20})," Policy & Audit Exceptions"]}),n.jsxs("span",{className:"badge",style:{background:j>0?"var(--color-accent-glow)":"var(--color-border)",color:j>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[j," active"]})]}),n.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12,flexWrap:"wrap",alignItems:"center"},children:[n.jsx("div",{className:"filter-tabs",style:{margin:0},children:["ALL","lint","compliance","test","runtime","security"].map(h=>n.jsx("button",{className:`filter-tab ${d===h?"active":""}`,onClick:()=>u(h),children:h.toUpperCase()},h))}),n.jsxs("label",{style:{fontSize:"0.8rem",color:"var(--color-text-secondary)",display:"flex",alignItems:"center",gap:4,cursor:"pointer"},children:[n.jsx("input",{type:"checkbox",checked:m,onChange:h=>x(h.target.checked)}),"Show resolved"]})]}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No errors tracked"}),T.map(h=>{const g=N[h.type]||"#64748b",S=Cg[h.type]||ot;return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${g}`,opacity:h.resolved?.5:1},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(h.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500,fontSize:"0.75rem"},children:h.agent}),n.jsxs("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${g}20`,color:g,display:"flex",alignItems:"center",gap:3},children:[n.jsx(S,{size:10}),h.type]}),h.file&&n.jsxs("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:[h.file,":",h.line]}),h.resolved&&n.jsxs("span",{style:{color:"#22c55e",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:2},children:[n.jsx(Ll,{size:10})," Resolved"]})]}),n.jsx("div",{style:{fontSize:"0.85rem",color:"#f87171",wordBreak:"break-word"},children:h.message})]},h.id)})]})]})}function Og(){const[c,r]=H.useState(null),[d,u]=H.useState("default"),[m,x]=H.useState(null),[T,j]=H.useState(!0),[N,h]=H.useState(null),[g,S]=H.useState(!1),M=async()=>{j(!0);try{const q=await fetch("/api/finops");if(!q.ok)throw new Error(`HTTP ${q.status}`);const Q=await q.json();if(Q.success)r(Q.data);else throw new Error(Q.error||"Failed to fetch budget state");h(null)}catch(q){h(q.message)}finally{j(!1)}},R=async q=>{try{const Q=await fetch(`/api/finops/check?agent=${encodeURIComponent(q)}`);if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&x(G.data)}catch{x(null)}},O=async()=>{if(confirm("Budget period'u sıfırlamak istediğinize emin misiniz?")){S(!0);try{(await fetch("/api/finops/reset",{method:"POST"})).ok&&await M()}finally{S(!1)}}};if(H.useEffect(()=>{M();const q=setInterval(M,1e4);return()=>clearInterval(q)},[]),H.useEffect(()=>{d&&R(d)},[d,c]),T&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading FinOps Budget..."})});if(N&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," FinOps Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:N})]});const B=c?Object.keys(c.agentSpend):[],V=c?c.monthlySpend/100*100:0;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #0a2a1a 100%)",border:"1px solid #065f46"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #065f46"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(mc,{size:28,style:{color:"var(--color-success)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"FinOps Budget Manager"}),n.jsxs("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:["Team: ",n.jsx("strong",{children:(c==null?void 0:c.team)||"N/A"})]})]})]}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:"sidebar-btn",onClick:O,disabled:g,style:{width:"auto",padding:"6px 12px"},children:g?"Resetting...":"Reset Period"}),n.jsxs("button",{className:"sidebar-btn",onClick:M,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mc,{size:16,style:{color:"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Monthly Spend"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"},children:["$",(c==null?void 0:c.monthlySpend.toFixed(2))||"0.00"]}),n.jsx("div",{className:"stat-card-desc",children:"Current period spend"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:V>80?"var(--color-warning)":"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Usage"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:[V.toFixed(1),"%"]}),n.jsx("div",{className:"stat-card-desc",children:"Of monthly budget used"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pg,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:B.length}),n.jsx("div",{className:"stat-card-desc",children:"Active spenders"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Status"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"},children:c!=null&&c.blocked?"BLOCKED":"Active"}),n.jsx("div",{className:"stat-card-desc",children:c!=null&&c.blocked?"Budget exceeded":"Within budget"})]})]}),(c==null?void 0:c.blocked)&&n.jsxs("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:6,color:"var(--color-error)",fontSize:"0.85rem"},children:[n.jsx("strong",{children:"⛔ Budget Blocked:"})," ",c.blockReason]}),(c==null?void 0:c.triggeredAlerts)&&c.triggeredAlerts.length>0&&n.jsx("div",{style:{marginTop:8,display:"flex",gap:6,flexWrap:"wrap"},children:c.triggeredAlerts.map(q=>n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["⚠️ ",q,"% threshold triggered"]},q))})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Spend Breakdown"}),n.jsx("div",{style:{display:"flex",gap:8,alignItems:"center"},children:n.jsxs("select",{value:d,onChange:q=>u(q.target.value),style:{padding:"4px 8px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.8rem"},children:[B.length===0&&n.jsx("option",{value:"default",children:"No agents yet"}),B.map(q=>n.jsx("option",{value:q,children:q},q))]})})]}),n.jsxs("div",{className:"list-container",children:[B.length===0&&n.jsx("div",{className:"empty-state",children:"No agent spending recorded yet"}),B.map(q=>{const Q=(c==null?void 0:c.agentSpend[q])||0,G=(m==null?void 0:m.agentMaxBudget)||50,te=G>0?Q/G*100:0,ie=te>=100;return n.jsxs("div",{className:"list-item",style:{borderLeft:ie?"3px solid var(--color-error)":te>80?"3px solid var(--color-warning)":"3px solid var(--color-success)"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",q]}),ie&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Over Limit"}),te>80&&!ie&&n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:"Warning"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,fontSize:"0.75rem",color:"var(--color-dim)"},children:[n.jsxs("span",{children:["$",Q.toFixed(3)]}),n.jsxs("span",{children:[te.toFixed(1),"%"]})]})]}),n.jsx("div",{style:{width:"100%",height:4,background:"#1f2937",borderRadius:2,marginTop:4,overflow:"hidden"},children:n.jsx("div",{style:{width:`${Math.min(te,100)}%`,height:"100%",background:ie?"var(--color-error)":te>80?"var(--color-warning)":"var(--color-success)",borderRadius:2,transition:"width 0.3s ease"}})})]},q)})]})]}),c&&n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Budget Period"})}),n.jsxs("div",{style:{padding:12,fontSize:"0.8rem",color:"var(--color-dim)",display:"flex",gap:24,flexWrap:"wrap"},children:[n.jsxs("span",{children:["📅 Start: ",new Date(c.periodStart).toLocaleDateString()]}),n.jsxs("span",{children:["📅 End: ",new Date(c.periodEnd).toLocaleDateString()]}),c.lastSync&&n.jsxs("span",{children:["🔄 Last Sync: ",new Date(c.lastSync).toLocaleTimeString()]})]})]})]})}const _g=["ALL","ACTION","DELEGATION","SUBTASK","REPLY","ALERT"];function Rg(){const{data:c}=ht("/messages",5e3),[r,d]=H.useState([]),[u,m]=H.useState("ALL");Bl({handlers:{message:j=>{const N=j;N.id&&d(h=>[N,...h].slice(0,200))}}});const x=r.length?r:Array.isArray(c)?c:[];Array.isArray(c)&&r.length===0&&c.length>0&&d(c);const T=u==="ALL"?x:x.filter(j=>j.category===u);return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(py,{size:20})," Hermes Messages"]}),n.jsxs("span",{className:"badge",children:[x.length," messages"]})]}),n.jsx("div",{className:"filter-tabs",children:_g.map(j=>n.jsx("button",{className:`filter-tab ${u===j?"active":""}`,onClick:()=>m(j),children:j},j))}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No messages"}),T.slice(0,100).map(j=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(j.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#a855f7",fontWeight:500},children:j.from}),n.jsx("span",{style:{color:"#64748b"},children:"→"}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500},children:j.to}),n.jsx("span",{className:"badge",style:{fontSize:"0.65rem"},children:j.category}),n.jsx("span",{style:{marginLeft:"auto",fontSize:"0.7rem",color:j.status==="PENDING"?"#eab308":"#64748b"},children:j.status})]}),n.jsxs("div",{style:{fontSize:"0.8rem",color:"#cbd5e1",wordBreak:"break-word"},children:[j.content.substring(0,150),j.content.length>150?"...":""]}),n.jsxs("div",{className:"trace-id",style:{marginTop:4},children:["Trace: ",j.traceId]})]},j.id))]})]})}function Ny(){const[c,r]=H.useState(null);H.useEffect(()=>{const u=()=>{fetch("/api/hermes/stats").then(x=>x.json()).then(x=>{x.success&&r(x.data)}).catch(()=>{})};u();const m=setInterval(u,5e3);return()=>clearInterval(m)},[]);const d={DELEGATION:"#3b82f6",ACTION:"#f59e0b",ALERT:"#ef4444",SUBTASK:"#8b5cf6",REPLY:"#22c55e"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(pc,{size:20})," Hermes Queue"]}),c&&n.jsxs("span",{className:"badge",style:{background:c.pending>0?"rgba(59, 130, 246, 0.15)":"var(--color-border)",color:c.pending>0?"#3b82f6":"var(--color-text-secondary)"},children:[c.pending," pending / ",c.total," total"]})]}),!c&&n.jsx("div",{className:"empty-state",children:"Loading queue stats..."}),c&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{marginBottom:12},children:[n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:6},children:"BY CATEGORY"}),n.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:Object.entries(c.byCategory).map(([u,m])=>{const x=d[u]||"#64748b",T=Math.max(...Object.values(c.byCategory),1),j=m/T*100;return n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.8rem"},children:[n.jsx("span",{style:{width:80,color:x,fontWeight:500},children:u}),n.jsx("div",{style:{flex:1,height:14,background:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:3,overflow:"hidden"},children:n.jsx("div",{style:{width:`${j}%`,height:"100%",background:x,borderRadius:3,opacity:.7}})}),n.jsx("span",{style:{width:30,textAlign:"right",color:"var(--color-text-primary)"},children:m})]},u)})})]}),n.jsxs("div",{children:[n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:6},children:"BY STATUS"}),n.jsx("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:Object.entries(c.byStatus).map(([u,m])=>n.jsxs("div",{style:{padding:"6px 12px",borderRadius:6,background:"var(--color-bg)",border:"1px solid var(--color-border)",fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"var(--color-text-secondary)",marginRight:6},children:u}),n.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:500},children:m})]},u))})]}),n.jsxs("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid var(--color-border)"},children:[n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:4},children:[n.jsx(cl,{size:12,style:{display:"inline",marginRight:4}}),"QUEUE DEPTH"]}),n.jsx("div",{style:{height:20,background:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:10,overflow:"hidden"},children:n.jsx("div",{style:{width:`${Math.min(c.pending/Math.max(c.total,1)*100,100)}%`,height:"100%",background:c.pending>10?"#f59e0b":c.pending>0?"#3b82f6":"#22c55e",borderRadius:10,transition:"width 0.5s ease"}})})]})]})]})}function kg(){var V,q;const[c,r]=H.useState(null),[d,u]=H.useState("src"),[m,x]=H.useState(""),[T,j]=H.useState([]),[N,h]=H.useState(null),[g,S]=H.useState(!1),[M,R]=H.useState(null),O=async()=>{try{const Q=await fetch("/api/license");if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&r(G.data.config)}catch{}},B=async()=>{if(!(!d||!m)){S(!0),R(null);try{const Q=await fetch(`/api/license?path=${encodeURIComponent(d)}&content=${encodeURIComponent(m)}`);if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();if(G.success)j(G.data.matches||[]),h(G.data.summary);else throw new Error(G.error||"Scan failed")}catch(Q){R(Q.message),j([]),h(null)}finally{S(!1)}}};H.useEffect(()=>{O()},[]);const Z=Q=>{switch(Q){case"CRITICAL":return"var(--color-error)";case"HIGH":return"var(--color-warning)";case"MEDIUM":return"var(--color-accent-primary)";case"LOW":return"var(--color-success)";default:return"var(--color-text-soft)"}};return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #1a0a2a 100%)",border:"1px solid #5b21b6"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #5b21b6"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(uy,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"License Compliance Scanner"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"SPDX & Copyleft License Detection"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:O,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),c&&n.jsxs("div",{style:{display:"flex",gap:12,padding:"12px 0",flexWrap:"wrap"},children:[n.jsxs("span",{className:"badge",style:{background:"rgba(59, 130, 246, 0.1)",color:"var(--color-accent-primary)"},children:["Blocklist: ",((V=c.BLOCKLIST)==null?void 0:V.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:["Allowlist: ",((q=c.ALLOWLIST)==null?void 0:q.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:c.BLOCK_COPYLEFT?"rgba(239, 68, 68, 0.1)":"rgba(34, 197, 94, 0.1)",color:c.BLOCK_COPYLEFT?"var(--color-error)":"var(--color-success)"},children:["Block Copyleft: ",c.BLOCK_COPYLEFT?"ON":"OFF"]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Scan Code for Licenses"})}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:12},children:[n.jsxs("div",{children:[n.jsx("label",{style:{fontSize:"0.8rem",color:"var(--color-text-soft)",marginBottom:4,display:"block"},children:"File Path (e.g., src/component.ts)"}),n.jsx("input",{type:"text",value:d,onChange:Q=>u(Q.target.value),placeholder:"src/component.ts",style:{width:"100%",padding:"8px 12px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.85rem"}})]}),n.jsxs("div",{children:[n.jsx("label",{style:{fontSize:"0.8rem",color:"var(--color-text-soft)",marginBottom:4,display:"block"},children:"Code Content"}),n.jsx("textarea",{value:m,onChange:Q=>x(Q.target.value),placeholder:"// SPDX-License-Identifier: MIT ...",rows:6,style:{width:"100%",padding:"8px 12px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.8rem",fontFamily:"monospace",resize:"vertical"}})]}),n.jsx("button",{className:"sidebar-btn",onClick:B,disabled:g||!d||!m,style:{width:"auto",padding:"8px 16px",alignSelf:"flex-start"},children:g?"Scanning...":"Scan for Licenses"}),M&&n.jsx("div",{style:{color:"var(--color-error)",fontSize:"0.8rem"},children:M})]})]}),N&&n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Scan Results"}),N.hasBlocked&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"⛔ Blocked"})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:12,padding:"16px"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(bp,{size:14}),n.jsx("span",{className:"stat-title",children:"Licenses"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem"},children:N.uniqueLicenses.length})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(eg,{size:14,style:{color:N.hasBlocked?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Blocked"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem",color:N.hasBlocked?"var(--color-error)":"var(--color-success)"},children:N.hasBlocked?"Yes":"No"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:14,style:{color:N.requiresAttribution?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Attribution"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem"},children:N.requiresAttribution?"Required":"Not needed"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:14,style:{color:Z(N.highestSeverity)}}),n.jsx("span",{className:"stat-title",children:"Severity"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem",color:Z(N.highestSeverity)},children:N.highestSeverity})]})]}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No licenses detected"}),T.map((Q,G)=>n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${Z(Q.severity)}`},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsx("span",{style:{color:Z(Q.severity),fontWeight:600},children:Q.spdxId}),n.jsx("span",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:Q.license}),Q.blocked&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"BLOCKED"})]}),n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:["Line ",Q.line," · ",Q.source]})]}),Q.snippet&&n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-text-soft)",marginTop:4,fontFamily:"monospace",background:"rgba(0,0,0,0.2)",padding:"4px 8px",borderRadius:3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q.snippet})]},G))]})]})]})}const Dg={SUCCESS:"#22c55e",ERROR:"#ef4444",FAIL:"#ef4444",WARN:"#eab308",INFO:"#3b82f6",DEBUG:"#64748b",PENDING:"#eab308",APPROVED:"#22c55e",REJECTED:"#ef4444",BLOCKED:"#ef4444",TIMEOUT:"#ef4444"};function zy(){const{data:c,loading:r}=ht("/logs",5e3),[d,u]=H.useState([]),[m,x]=H.useState("ALL"),[T,j]=H.useState("ALL");Bl({handlers:{log:S=>{const M=S;M.logs&&u(R=>[...M.logs,...R].slice(0,200))}}});const N=d.length?d:Array.isArray(c)?c:[];Array.isArray(c)&&d.length===0&&c.length>0&&u(c);const h=[...new Set(N.map(S=>S.agent))].filter(Boolean),g=N.filter(S=>!(m!=="ALL"&&S.status!==m&&S.action!==m||T!=="ALL"&&S.agent!==T));return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(xy,{size:20})," Audit Logs"]}),n.jsxs("span",{className:"badge",children:[N.length," entries"]})]}),n.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12,flexWrap:"wrap",alignItems:"center"},children:[n.jsxs("select",{value:T,onChange:S=>j(S.target.value),style:{padding:"4px 8px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.8rem"},children:[n.jsx("option",{value:"ALL",children:"All Specialists"}),h.map(S=>n.jsx("option",{value:S,children:S},S))]}),n.jsx("div",{className:"filter-tabs",style:{margin:0},children:["ALL","SUCCESS","ERROR","WARN","INFO","DEBUG"].map(S=>n.jsx("button",{className:`filter-tab ${m===S?"active":""}`,onClick:()=>x(S),children:S},S))})]}),r&&!N.length&&n.jsx("div",{className:"empty-state",children:"Loading logs..."}),n.jsxs("div",{className:"list-container",children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No log entries"}),g.slice(0,100).map((S,M)=>{const R=Dg[S.status||S.action]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${R}`},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(S.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500,fontSize:"0.75rem"},children:S.agent}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${R}20`,color:R},children:S.status||S.action}),S.traceId&&n.jsx("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:S.traceId})]}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"#cbd5e1",wordBreak:"break-word"},children:[n.jsx("strong",{style:{color:"#e2e8f0"},children:S.action}),": ",S.summary]})]},S.id||M)})]})]})}function wg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),N=async()=>{u(!0);try{const O=await fetch("/api/loop-detector");if(!O.ok)throw new Error(`HTTP ${O.status}`);const B=await O.json();if(B.success)r(B.data);else throw new Error(B.error||"Failed to fetch loop stats");x(null)}catch(O){x(O.message)}finally{u(!1)}},h=async O=>{j(O);try{(await fetch(`/api/loop-detector/clear/${encodeURIComponent(O)}`,{method:"POST"})).ok&&await N()}finally{j(null)}};if(H.useEffect(()=>{N();const O=setInterval(N,5e3);return()=>clearInterval(O)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Loop Detector..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Loop Detector Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const g=Object.entries(c||{}),S=g.reduce((O,[,B])=>O+B.cooldownCount,0),M=g.filter(([,O])=>O.inCooldown).length,R=g.filter(([,O])=>O.lastAlert!==null).length;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #2a0a1a 100%)",border:"1px solid #7f1d1d"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #7f1d1d"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(lg,{size:28,style:{color:"var(--color-warning)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"Loop Detector"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Multi-pattern infinite loop prevention"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:g.length}),n.jsx("div",{className:"stat-card-desc",children:"Monitored agents"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:16,style:{color:R>0?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Alerts"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:R>0?"var(--color-warning)":"var(--color-success)"},children:R}),n.jsx("div",{className:"stat-card-desc",children:"Active loop alerts"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:M>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Cooldown"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:M>0?"var(--color-error)":"var(--color-success)"},children:M}),n.jsx("div",{className:"stat-card-desc",children:"Agents in cooldown"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(my,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Total Cooldowns"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:S}),n.jsx("div",{className:"stat-card-desc",children:"Since server start"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Loop Status"}),n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:M>0?`${M} agent(s) in cooldown`:"All agents normal"})]}),n.jsxs("div",{className:"list-container",children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),g.map(([O,B])=>{var Q,G;const Z=((Q=B.lastAlert)==null?void 0:Q.type)||null,V=((G=B.lastAlert)==null?void 0:G.severity)||null,q=B.inCooldown?"var(--color-error)":V==="warning"?"var(--color-warning)":"var(--color-success)";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${q}`},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",O]}),B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Cooldown"}),Z&&!B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:Z.replace(/_/g," ")}),!Z&&!B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:"Normal"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)",display:"flex",gap:8},children:[n.jsxs("span",{children:[B.totalCalls," calls"]}),n.jsxs("span",{children:[B.cooldownCount," cooldowns"]})]}),B.inCooldown&&n.jsx("button",{className:"sidebar-btn",onClick:()=>h(O),disabled:T===O,style:{width:"auto",padding:"2px 8px",fontSize:"0.7rem"},children:T===O?"...":"Clear"})]})]}),B.lastAlert&&n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-text-soft)",background:"rgba(239, 68, 68, 0.05)",padding:"6px 8px",borderRadius:4,marginTop:4},children:[n.jsx("strong",{children:"Last alert:"})," ",B.lastAlert.detail]}),(Object.keys(B.consecutiveTools).length>0||Object.keys(B.fileWrites).length>0)&&n.jsxs("div",{style:{display:"flex",gap:12,marginTop:6,fontSize:"0.7rem",color:"var(--color-dim)",flexWrap:"wrap"},children:[Object.entries(B.consecutiveTools).filter(([,te])=>te>0).map(([te,ie])=>n.jsxs("span",{style:{background:"rgba(59, 130, 246, 0.1)",padding:"2px 6px",borderRadius:3},children:["🔄 ",te,": ",ie,"x"]},te)),Object.entries(B.fileWrites).map(([te,ie])=>n.jsxs("span",{style:{background:"rgba(234, 179, 8, 0.1)",padding:"2px 6px",borderRadius:3},children:["📝 ",te.split("/").pop(),": ",ie,"x"]},te))]})]},O)})]})]})]})}function Ug(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),[N,h]=H.useState({enabled:!1,hasToken:!1,hasUsers:!1}),g=async()=>{u(!0);try{const R=await fetch("/api/health");if(!R.ok)throw new Error(`HTTP ${R.status}`);const O=await R.json(),B=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",Z=window.location.port||"5858",V=window.location.hostname;r({mode:"unified",port:parseInt(Z),host:V,sessions:0,version:O.version||"0.0.14",dashboardUrl:`http://${V}:${Z}`,mcpSseUrl:`http://${V}:${Z}/mcp/sse`,isLocal:B});try{await fetch("/api/mcp/sessions",{headers:{}}),h({enabled:!1,hasToken:!1,hasUsers:!1})}catch{h({enabled:!0,hasToken:!0,hasUsers:!1})}try{const q=await fetch("/api/mcp/sessions");if(q.ok){const Q=await q.json();Q.success&&Q.data&&r(G=>G&&{...G,sessions:Q.data.total||0})}}catch{}x(null)}catch(R){x(R.message)}finally{u(!1)}};H.useEffect(()=>{g();const R=setInterval(g,1e4);return()=>clearInterval(R)},[]);const S=(R,O)=>{navigator.clipboard.writeText(R).then(()=>{j(O),setTimeout(()=>j(null),2e3)})};if(d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading MCP Configuration..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(yc,{size:20,style:{color:"#ef4444"}})," MCP Setup Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const M=c;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:M.isLocal?"linear-gradient(135deg, #0f172a 0%, #2a0a0a 100%)":"linear-gradient(135deg, #2a0a0a 0%, #0f172a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(yc,{size:28,style:{color:"#ef4444"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"#f8fafc"},children:"MCP Server Configuration"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"#94a3b8"},children:M.isLocal?"Local mode - only you can connect":"Network mode - team can connect"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:g,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bm,{size:16,style:{color:"#ef4444"}}),n.jsx("span",{className:"stat-title",children:"Server Mode"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:"#ef4444"},children:M.mode==="unified"?"Unified":"Stdio"}),n.jsx("div",{className:"stat-card-desc",children:"MCP + Dashboard tek portta"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(vc,{size:16,style:{color:M.isLocal?"#eab308":"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Access Type"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:M.isLocal?"#eab308":"#22c55e"},children:M.isLocal?"Local":"Network"}),n.jsx("div",{className:"stat-card-desc",children:M.isLocal?"Only this machine":"Accessible from LAN"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(vy,{size:16,style:{color:N.enabled?"#22c55e":"#eab308"}}),n.jsx("span",{className:"stat-title",children:"Authentication"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:N.enabled?"#22c55e":"#eab308"},children:N.enabled?"Protected":"Open"}),n.jsx("div",{className:"stat-card-desc",children:N.enabled?"MCP_AUTH_TOKEN set":"No auth configured"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Wp,{size:16,style:{color:"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Active Sessions"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:"#22c55e"},children:M.sessions}),n.jsx("div",{className:"stat-card-desc",children:"Connected AI clients"})]})]})]}),n.jsxs("div",{className:"card",style:{borderColor:N.enabled?"#22c55e":"#eab308"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[N.enabled?n.jsx(il,{size:18,style:{color:"#22c55e"}}):n.jsx(wp,{size:18,style:{color:"#eab308"}}),"Server Security"]}),N.enabled?n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"#22c55e"},children:"🔒 Protected"}):n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"#eab308"},children:"⚠ Open Access"})]}),n.jsx("div",{style:{padding:"0 12px 12px",fontSize:"0.85rem",color:"#94a3b8"},children:N.enabled?n.jsxs("p",{style:{margin:0},children:[n.jsx("strong",{style:{color:"#22c55e"},children:"Authentication aktif."})," Tüm API/MCP istekleri",n.jsx("code",{style:{fontFamily:"monospace",color:"#ef4444",background:"#1a1a1a",padding:"1px 4px",borderRadius:2},children:" Authorization: Bearer <token> "}),"header'ı gerektirir. Dashboard statik dosyaları halka açıktır."]}):n.jsxs("p",{style:{margin:0},children:[n.jsx("strong",{style:{color:"#eab308"},children:"Uyarı: Authentication kapalı."})," Sunucuya bağlanabilen herkes tüm API'ye erişebilir. Korumak için: ",n.jsx("code",{style:{fontFamily:"monospace",color:"#ef4444",background:"#1a1a1a",padding:"1px 4px",borderRadius:2},children:"MCP_AUTH_TOKEN=gizli-anahtar"})]})})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",style:{borderColor:"#1e293b"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Bm,{size:18})," Local Setup (Solo)"]}),n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"#eab308"},children:"Single Dev"})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[n.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",margin:0},children:"Her geliştirici kendi bilgisayarında çalıştırır. Sadece kendi IDE'si bağlanır."}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Terminal:"}),n.jsxs("div",{onClick:()=>S("atabey mcp start","local-cmd"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#ef4444",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.8rem"},children:["atabey mcp start",n.jsx("span",{style:{float:"right",color:T==="local-cmd"?"#22c55e":"#64748b"},children:T==="local-cmd"?"✓ Copied":"📋"})]})]}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"mcp.json:"}),n.jsxs("div",{onClick:()=>S(JSON.stringify({mcpServers:{atabey:{command:"atabey",args:["mcp","start"]}}},null,2),"local-json"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#22c55e",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:[`{
354
+ */const Ng=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mu=I("X",Ng);function zg(){const[c,r]=H.useState([]),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/adapters/skills").then(j=>j.json()).then(j=>{j.success&&r(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,15e3);return()=>clearInterval(T)},[]);const m={file_system:Cp,editing:cg,orchestration:za,governance:vy,quality:dy,search:by,memory:hu};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(gy,{size:20,style:{display:"inline-block",verticalAlign:"middle",marginRight:8}}),"Adapter Skills"]}),!d&&n.jsxs("span",{className:"badge",children:[c.length," adapters"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Loading adapter skills..."}),!d&&n.jsx("div",{className:"adapter-list",children:c.map(x=>n.jsxs("div",{className:"adapter-item",children:[n.jsxs("div",{className:"adapter-header",children:[n.jsxs("span",{className:"adapter-name",children:[n.jsx(Hn,{size:14,style:{display:"inline-block",verticalAlign:"middle",marginRight:6}}),x.id]}),n.jsxs("span",{className:"adapter-meta",children:[n.jsx(Sg,{size:12,style:{display:"inline-block",verticalAlign:"middle",marginRight:4}}),x.toolsCount," tools · ",x.skillCount," skills"]})]}),n.jsx("div",{className:"adapter-skills-grid",children:x.skills.map(T=>{const j=m[T];return n.jsxs("span",{className:"skill-badge",style:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[j?n.jsx(j,{size:12}):n.jsx("span",{style:{fontSize:"10px"},children:"•"}),T.replace(/_/g," ")]},T)})})]},x.id))})]})}function ht(c,r=0){var m;const d=Uv({queryKey:[c],queryFn:async()=>{const x=await fetch(`/api${c}`);if(!x.ok)throw new Error(`${x.status} ${x.statusText}`);const T=await x.json();let j=T;return T&&typeof T=="object"&&"success"in T&&"data"in T&&(j=T.data),["/agents","/approvals","/logs","/messages","/tasks","/memory/search","/compliance"].some(h=>c.startsWith(h))&&!Array.isArray(j)?[]:j},refetchInterval:r||!1}),u=H.useCallback(()=>{d.refetch()},[d.refetch]);return{data:d.data,loading:d.isLoading,error:((m=d.error)==null?void 0:m.message)??null,refetch:u}}function Bl({handlers:c={},port:r}={}){const d=H.useRef(null),[u,m]=H.useState(!1);return H.useEffect(()=>{let x,T=0;function j(){var S;(S=d.current)==null||S.close();const N=location.port,h=r||N||"5858",g=new WebSocket(`ws://${location.hostname}:${h}/ws`);d.current=g,g.onopen=()=>{m(!0),T=0},g.onclose=()=>{m(!1),T<10&&(T++,x=setTimeout(j,3e3*Math.min(T,5)))},g.onmessage=M=>{try{const R=JSON.parse(M.data);if(R.type==="pong")return;const O=c[R.type];O&&O(R.payload||{})}catch{}}}return j(),()=>{var N;clearTimeout(x),(N=d.current)==null||N.close()}},[]),u}const Tg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function jy(){const{data:c,loading:r,error:d}=ht("/agents",5e3),[u,m]=H.useState([]),[x,T]=H.useState(null);Bl({handlers:{agent_update:h=>{const g=h;g.name&&m(S=>{const M=g.name.replace("@","");return S.some(O=>O.name.replace("@","")===M)?S.map(O=>O.name.replace("@","")===M?{...O,...g}:O):[...S,g]})}}});const j=u.length?u:Array.isArray(c)?c:[];Array.isArray(c)&&u.length===0&&c.length>0&&m(c);const N=Tg.map(h=>{const g=j.find(S=>S.name.replace("@","")===h);return g?{...g,name:h}:{name:h,state:"READY",task:"Idle",last_updated:new Date().toISOString()}});return r&&!j.length?n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Governed Specialist Monitor"]})}),n.jsx("div",{className:"empty-state",children:"Loading specialists..."})]}):d&&!j.length?n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Governed Specialist Monitor"]})}),n.jsxs("div",{className:"error",children:["Error: ",d]})]}):n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Ls,{size:20})," Specialist Monitor"]}),n.jsxs("span",{className:"badge",children:[N.length," specialists"]})]}),n.jsx("div",{className:"agent-list-container",children:n.jsx("div",{className:"agent-grid",children:N.map(h=>{const g=x===h.name,S=h.state.toLowerCase();return n.jsxs("div",{className:`agent-card ${g?"expanded":""}`,onClick:()=>T(g?null:h.name),children:[n.jsxs("div",{className:"agent-header",children:[n.jsx("span",{className:`agent-dot ${S}`}),n.jsxs("span",{className:"agent-name",children:["@",h.name]}),n.jsx("span",{className:`agent-state ${S}`,children:h.state}),g?n.jsx(hy,{size:14,className:"text-muted"}):n.jsx(fy,{size:14,className:"text-muted"})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Task:"}),n.jsx("span",{className:"detail-value",children:h.task||"Idle"})]}),g&&n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Updated:"}),n.jsx("span",{className:"detail-value",children:new Date(h.last_updated).toLocaleString()})]})]},h.name)})})})]})}function Sy(){const{data:c}=ht("/approvals",5e3),[r,d]=H.useState([]),[u,m]=H.useState(null);Bl({handlers:{approval:h=>{const g=h;g.id&&(d(S=>[g,...S]),T(`New approval: ${g.traceId}`,"success"))}}});const x=r.length?r:Array.isArray(c)?c:[];Array.isArray(c)&&r.length===0&&c.length>0&&d(c);function T(h,g){m({msg:h,type:g}),setTimeout(()=>m(null),4e3)}async function j(h,g,S){try{const M=S==="approve"?`/api/approve/${g}`:`/api/reject/${g}`;(await fetch(M,{method:"POST"})).ok?(d(S==="approve"?O=>O.map(B=>B.traceId===g?{...B,status:"APPROVED"}:B):O=>O.map(B=>B.traceId===g?{...B,status:"REJECTED"}:B)),T(S==="approve"?"Approved":"Rejected","success")):T("Failed","error")}catch{T("Network error","error")}}const N=x.filter(h=>h.status==="PENDING");return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(il,{size:20})," HITL Policy Gates"]}),n.jsxs("span",{className:"badge",children:[N.length," pending overrides"]})]}),u&&n.jsx("div",{className:`toast toast-${u.type}`,children:u.msg}),n.jsxs("div",{className:"list-container",children:[x.length===0&&n.jsx("div",{className:"empty-state",children:"No approvals"}),x.map(h=>n.jsxs("div",{className:"list-item",style:{opacity:h.status==="APPROVED"||h.status==="REJECTED"?.6:1},children:[n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Trace:"}),n.jsx("span",{className:"trace-id",children:h.traceId})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Task:"}),n.jsx("span",{className:"detail-value",children:h.description})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Status:"}),n.jsx("span",{className:`status-${h.status.toLowerCase()}`,style:{fontSize:"0.85rem"},children:h.status})]}),n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Time:"}),n.jsx("span",{className:"detail-value",children:new Date(h.timestamp).toLocaleString()})]}),h.status==="PENDING"&&n.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[n.jsxs("button",{className:"btn btn-primary",onClick:()=>j(h.id,h.traceId,"approve"),children:[n.jsx(dy,{size:14})," Approve"]}),n.jsxs("button",{className:"btn btn-danger",onClick:()=>j(h.id,h.traceId,"reject"),children:[n.jsx(mu,{size:14})," Reject"]})]})]},h.id))]})]})}function Eg(){const{data:c,loading:r,error:d}=ht("/compliance",15e3),[u,m]=H.useState("ALL"),[x,T]=H.useState(null),j=Array.isArray(c)?c:[],N=u==="ALL"?j:j.filter(g=>g.status===u),h={PASS:j.filter(g=>g.status==="PASS").length,FAIL:j.filter(g=>g.status==="FAIL").length,WARN:j.filter(g=>g.status==="WARN").length};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Ll,{size:20})," Compliance Auditing"]}),n.jsxs("span",{className:"badge",children:[j.length," files"]})]}),r&&!j.length&&n.jsx("div",{className:"empty-state",children:"Running checks..."}),d&&!j.length&&n.jsxs("div",{className:"error",children:["Error: ",d]}),j.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"stats-grid",children:Object.entries(h).map(([g,S])=>n.jsxs("div",{className:`stat-box ${g.toLowerCase()}`,children:[n.jsx("span",{className:"stat-count",children:S}),n.jsx("span",{className:"stat-label",children:g})]},g))}),n.jsx("div",{className:"filter-tabs",children:["ALL","PASS","FAIL","WARN"].map(g=>n.jsx("button",{className:`filter-tab ${u===g?"active":""}`,onClick:()=>m(g),children:g},g))}),n.jsxs("div",{className:"list-container",children:[N.length===0&&n.jsx("div",{className:"empty-state",children:"No results"}),N.map(g=>{const S=x===g.file;return n.jsxs("div",{className:"list-item",onClick:()=>T(S?null:g.file),children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[g.status==="PASS"?n.jsx(Ll,{size:14,style:{color:"#22c55e",flexShrink:0}}):g.status==="FAIL"?n.jsx(my,{size:14,style:{color:"#ef4444",flexShrink:0}}):n.jsx(ot,{size:14,style:{color:"#eab308",flexShrink:0}}),n.jsx("span",{style:{flex:1,fontFamily:"'JetBrains Mono', monospace",fontSize:"0.8rem"},children:g.file}),n.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:g.status==="PASS"?"#22c55e":g.status==="FAIL"?"#ef4444":"#eab308"},children:g.status})]}),S&&g.violations.length>0&&n.jsx("div",{style:{marginTop:8,borderTop:"1px solid #334155",paddingTop:8},children:g.violations.map((M,R)=>n.jsxs("div",{style:{fontSize:"0.8rem",color:"#ef4444",marginTop:4},children:[n.jsx(ot,{size:12,style:{display:"inline",marginRight:4}}),M]},R))})]},g.file)})]})]})]})}function Ag(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("violations"),N=async()=>{u(!0);try{const R=await fetch("/api/discipline");if(!R.ok)throw new Error(`HTTP ${R.status}`);const O=await R.json();if(O.success)r(O.data);else throw new Error(O.error||"Failed to fetch discipline stats");x(null)}catch(R){x(R.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const R=setInterval(N,5e3);return()=>clearInterval(R)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Discipline Stats..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Discipline Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const h=Object.entries(c||{}).sort((R,O)=>T==="violations"?O[1].violations-R[1].violations:O[1].totalCalls-R[1].totalCalls),g=h.reduce((R,[,O])=>R+O.violations,0),S=h.reduce((R,[,O])=>R+O.totalCalls,0),M=h.some(([,R])=>R.inCooldown);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #2a0a0a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(il,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"AI Discipline Engine"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Real-time AI behavior monitoring & enforcement"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Total Calls"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:S}),n.jsx("div",{className:"stat-card-desc",children:"All agent tool calls"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:16,style:{color:g>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Violations"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:g>0?"var(--color-error)":"var(--color-success)"},children:g}),n.jsx("div",{className:"stat-card-desc",children:g>0?"Rules broken":"All clear"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:M?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Cooldown"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:M?"var(--color-warning)":"var(--color-success)"},children:M?"Active":"None"}),n.jsx("div",{className:"stat-card-desc",children:M?"Agent(s) rate limited":"All agents active"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:h.length}),n.jsx("div",{className:"stat-card-desc",children:"Tracked agents"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Discipline Status"}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:`filter-tab ${T==="violations"?"active":""}`,onClick:()=>j("violations"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Violations"}),n.jsx("button",{className:`filter-tab ${T==="calls"?"active":""}`,onClick:()=>j("calls"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Calls"})]})]}),n.jsxs("div",{className:"list-container",children:[h.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),h.map(([R,O])=>{const B=O.totalCalls>0?(O.violations/O.totalCalls*100).toFixed(1):"0.0";return n.jsxs("div",{className:"list-item",style:{borderLeft:O.inCooldown?"3px solid var(--color-warning)":O.violations>0?"3px solid var(--color-error)":"3px solid var(--color-success)"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",R]}),O.inCooldown&&n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["Cooldown ",Math.ceil(O.cooldownRemaining/1e3),"s"]}),O.violations>0&&n.jsxs("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:[O.violations," violations"]}),O.violations===0&&n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:"Clean"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.75rem",color:"var(--color-dim)"},children:[n.jsxs("span",{children:[O.totalCalls," total"]}),n.jsxs("span",{children:[O.recentCalls,"/min"]}),n.jsxs("span",{children:[B,"% violation rate"]})]})]}),O.lastViolation&&n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-error)",background:"rgba(239, 68, 68, 0.05)",padding:"6px 8px",borderRadius:4,marginTop:4},children:[n.jsx("strong",{children:"Last violation:"})," ",O.lastViolation]})]},R)})]})]})]})}const Cg={lint:Pv,compliance:iu,test:dg,runtime:sg,security:ot};function Mg(){const[c,r]=H.useState([]),[d,u]=H.useState("ALL"),[m,x]=H.useState(!1);Bl({handlers:{error:h=>{const g=h;g.id&&r(S=>[g,...S].slice(0,100))}}});const T=c.filter(h=>!(d!=="ALL"&&h.type!==d||!m&&h.resolved)),j=c.filter(h=>!h.resolved).length,N={lint:"#eab308",compliance:"#ef4444",test:"#3b82f6",runtime:"#ef4444",security:"#a855f7"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(ot,{size:20})," Policy & Audit Exceptions"]}),n.jsxs("span",{className:"badge",style:{background:j>0?"var(--color-accent-glow)":"var(--color-border)",color:j>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[j," active"]})]}),n.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12,flexWrap:"wrap",alignItems:"center"},children:[n.jsx("div",{className:"filter-tabs",style:{margin:0},children:["ALL","lint","compliance","test","runtime","security"].map(h=>n.jsx("button",{className:`filter-tab ${d===h?"active":""}`,onClick:()=>u(h),children:h.toUpperCase()},h))}),n.jsxs("label",{style:{fontSize:"0.8rem",color:"var(--color-text-secondary)",display:"flex",alignItems:"center",gap:4,cursor:"pointer"},children:[n.jsx("input",{type:"checkbox",checked:m,onChange:h=>x(h.target.checked)}),"Show resolved"]})]}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No errors tracked"}),T.map(h=>{const g=N[h.type]||"#64748b",S=Cg[h.type]||ot;return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${g}`,opacity:h.resolved?.5:1},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(h.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500,fontSize:"0.75rem"},children:h.agent}),n.jsxs("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${g}20`,color:g,display:"flex",alignItems:"center",gap:3},children:[n.jsx(S,{size:10}),h.type]}),h.file&&n.jsxs("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:[h.file,":",h.line]}),h.resolved&&n.jsxs("span",{style:{color:"#22c55e",fontSize:"0.65rem",display:"flex",alignItems:"center",gap:2},children:[n.jsx(Ll,{size:10})," Resolved"]})]}),n.jsx("div",{style:{fontSize:"0.85rem",color:"#f87171",wordBreak:"break-word"},children:h.message})]},h.id)})]})]})}function Og(){const[c,r]=H.useState(null),[d,u]=H.useState("default"),[m,x]=H.useState(null),[T,j]=H.useState(!0),[N,h]=H.useState(null),[g,S]=H.useState(!1),M=async()=>{j(!0);try{const q=await fetch("/api/finops");if(!q.ok)throw new Error(`HTTP ${q.status}`);const Q=await q.json();if(Q.success)r(Q.data);else throw new Error(Q.error||"Failed to fetch budget state");h(null)}catch(q){h(q.message)}finally{j(!1)}},R=async q=>{try{const Q=await fetch(`/api/finops/check?agent=${encodeURIComponent(q)}`);if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&x(G.data)}catch{x(null)}},O=async()=>{if(confirm("Budget period'u sıfırlamak istediğinize emin misiniz?")){S(!0);try{(await fetch("/api/finops/reset",{method:"POST"})).ok&&await M()}finally{S(!1)}}};if(H.useEffect(()=>{M();const q=setInterval(M,1e4);return()=>clearInterval(q)},[]),H.useEffect(()=>{d&&R(d)},[d,c]),T&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading FinOps Budget..."})});if(N&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," FinOps Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:N})]});const B=c?Object.keys(c.agentSpend):[],V=c?c.monthlySpend/100*100:0;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #0a2a1a 100%)",border:"1px solid #065f46"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #065f46"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(mc,{size:28,style:{color:"var(--color-success)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"FinOps Budget Manager"}),n.jsxs("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:["Team: ",n.jsx("strong",{children:(c==null?void 0:c.team)||"N/A"})]})]})]}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:"sidebar-btn",onClick:O,disabled:g,style:{width:"auto",padding:"6px 12px"},children:g?"Resetting...":"Reset Period"}),n.jsxs("button",{className:"sidebar-btn",onClick:M,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mc,{size:16,style:{color:"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Monthly Spend"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"},children:["$",(c==null?void 0:c.monthlySpend.toFixed(2))||"0.00"]}),n.jsx("div",{className:"stat-card-desc",children:"Current period spend"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:V>80?"var(--color-warning)":"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Usage"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:[V.toFixed(1),"%"]}),n.jsx("div",{className:"stat-card-desc",children:"Of monthly budget used"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pg,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:B.length}),n.jsx("div",{className:"stat-card-desc",children:"Active spenders"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Status"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.blocked?"var(--color-error)":"var(--color-success)"},children:c!=null&&c.blocked?"BLOCKED":"Active"}),n.jsx("div",{className:"stat-card-desc",children:c!=null&&c.blocked?"Budget exceeded":"Within budget"})]})]}),(c==null?void 0:c.blocked)&&n.jsxs("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:6,color:"var(--color-error)",fontSize:"0.85rem"},children:[n.jsx("strong",{children:"⛔ Budget Blocked:"})," ",c.blockReason]}),(c==null?void 0:c.triggeredAlerts)&&c.triggeredAlerts.length>0&&n.jsx("div",{style:{marginTop:8,display:"flex",gap:6,flexWrap:"wrap"},children:c.triggeredAlerts.map(q=>n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["⚠️ ",q,"% threshold triggered"]},q))})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Spend Breakdown"}),n.jsx("div",{style:{display:"flex",gap:8,alignItems:"center"},children:n.jsxs("select",{value:d,onChange:q=>u(q.target.value),style:{padding:"4px 8px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.8rem"},children:[B.length===0&&n.jsx("option",{value:"default",children:"No agents yet"}),B.map(q=>n.jsx("option",{value:q,children:q},q))]})})]}),n.jsxs("div",{className:"list-container",children:[B.length===0&&n.jsx("div",{className:"empty-state",children:"No agent spending recorded yet"}),B.map(q=>{const Q=(c==null?void 0:c.agentSpend[q])||0,G=(m==null?void 0:m.agentMaxBudget)||50,te=G>0?Q/G*100:0,ie=te>=100;return n.jsxs("div",{className:"list-item",style:{borderLeft:ie?"3px solid var(--color-error)":te>80?"3px solid var(--color-warning)":"3px solid var(--color-success)"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",q]}),ie&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Over Limit"}),te>80&&!ie&&n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:"Warning"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,fontSize:"0.75rem",color:"var(--color-dim)"},children:[n.jsxs("span",{children:["$",Q.toFixed(3)]}),n.jsxs("span",{children:[te.toFixed(1),"%"]})]})]}),n.jsx("div",{style:{width:"100%",height:4,background:"#1f2937",borderRadius:2,marginTop:4,overflow:"hidden"},children:n.jsx("div",{style:{width:`${Math.min(te,100)}%`,height:"100%",background:ie?"var(--color-error)":te>80?"var(--color-warning)":"var(--color-success)",borderRadius:2,transition:"width 0.3s ease"}})})]},q)})]})]}),c&&n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Budget Period"})}),n.jsxs("div",{style:{padding:12,fontSize:"0.8rem",color:"var(--color-dim)",display:"flex",gap:24,flexWrap:"wrap"},children:[n.jsxs("span",{children:["📅 Start: ",new Date(c.periodStart).toLocaleDateString()]}),n.jsxs("span",{children:["📅 End: ",new Date(c.periodEnd).toLocaleDateString()]}),c.lastSync&&n.jsxs("span",{children:["🔄 Last Sync: ",new Date(c.lastSync).toLocaleTimeString()]})]})]})]})}const _g=["ALL","ACTION","DELEGATION","SUBTASK","REPLY","ALERT"];function Rg(){const{data:c}=ht("/messages",5e3),[r,d]=H.useState([]),[u,m]=H.useState("ALL");Bl({handlers:{message:j=>{const N=j;N.id&&d(h=>[N,...h].slice(0,200))}}});const x=r.length?r:Array.isArray(c)?c:[];Array.isArray(c)&&r.length===0&&c.length>0&&d(c);const T=u==="ALL"?x:x.filter(j=>j.category===u);return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(py,{size:20})," Hermes Messages"]}),n.jsxs("span",{className:"badge",children:[x.length," messages"]})]}),n.jsx("div",{className:"filter-tabs",children:_g.map(j=>n.jsx("button",{className:`filter-tab ${u===j?"active":""}`,onClick:()=>m(j),children:j},j))}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No messages"}),T.slice(0,100).map(j=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(j.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#a855f7",fontWeight:500},children:j.from}),n.jsx("span",{style:{color:"#64748b"},children:"→"}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500},children:j.to}),n.jsx("span",{className:"badge",style:{fontSize:"0.65rem"},children:j.category}),n.jsx("span",{style:{marginLeft:"auto",fontSize:"0.7rem",color:j.status==="PENDING"?"#eab308":"#64748b"},children:j.status})]}),n.jsxs("div",{style:{fontSize:"0.8rem",color:"#cbd5e1",wordBreak:"break-word"},children:[j.content.substring(0,150),j.content.length>150?"...":""]}),n.jsxs("div",{className:"trace-id",style:{marginTop:4},children:["Trace: ",j.traceId]})]},j.id))]})]})}function Ny(){const[c,r]=H.useState(null);H.useEffect(()=>{const u=()=>{fetch("/api/hermes/stats").then(x=>x.json()).then(x=>{x.success&&r(x.data)}).catch(()=>{})};u();const m=setInterval(u,5e3);return()=>clearInterval(m)},[]);const d={DELEGATION:"#3b82f6",ACTION:"#f59e0b",ALERT:"#ef4444",SUBTASK:"#8b5cf6",REPLY:"#22c55e"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(pc,{size:20})," Hermes Queue"]}),c&&n.jsxs("span",{className:"badge",style:{background:c.pending>0?"rgba(59, 130, 246, 0.15)":"var(--color-border)",color:c.pending>0?"#3b82f6":"var(--color-text-secondary)"},children:[c.pending," pending / ",c.total," total"]})]}),!c&&n.jsx("div",{className:"empty-state",children:"Loading queue stats..."}),c&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{style:{marginBottom:12},children:[n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:6},children:"BY CATEGORY"}),n.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:Object.entries(c.byCategory).map(([u,m])=>{const x=d[u]||"#64748b",T=Math.max(...Object.values(c.byCategory),1),j=m/T*100;return n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:"0.8rem"},children:[n.jsx("span",{style:{width:80,color:x,fontWeight:500},children:u}),n.jsx("div",{style:{flex:1,height:14,background:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:3,overflow:"hidden"},children:n.jsx("div",{style:{width:`${j}%`,height:"100%",background:x,borderRadius:3,opacity:.7}})}),n.jsx("span",{style:{width:30,textAlign:"right",color:"var(--color-text-primary)"},children:m})]},u)})})]}),n.jsxs("div",{children:[n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:6},children:"BY STATUS"}),n.jsx("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:Object.entries(c.byStatus).map(([u,m])=>n.jsxs("div",{style:{padding:"6px 12px",borderRadius:6,background:"var(--color-bg)",border:"1px solid var(--color-border)",fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"var(--color-text-secondary)",marginRight:6},children:u}),n.jsx("span",{style:{color:"var(--color-text-primary)",fontWeight:500},children:m})]},u))})]}),n.jsxs("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid var(--color-border)"},children:[n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-text-secondary)",marginBottom:4},children:[n.jsx(cl,{size:12,style:{display:"inline",marginRight:4}}),"QUEUE DEPTH"]}),n.jsx("div",{style:{height:20,background:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:10,overflow:"hidden"},children:n.jsx("div",{style:{width:`${Math.min(c.pending/Math.max(c.total,1)*100,100)}%`,height:"100%",background:c.pending>10?"#f59e0b":c.pending>0?"#3b82f6":"#22c55e",borderRadius:10,transition:"width 0.5s ease"}})})]})]})]})}function Dg(){var V,q;const[c,r]=H.useState(null),[d,u]=H.useState("src"),[m,x]=H.useState(""),[T,j]=H.useState([]),[N,h]=H.useState(null),[g,S]=H.useState(!1),[M,R]=H.useState(null),O=async()=>{try{const Q=await fetch("/api/license");if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&r(G.data.config)}catch{}},B=async()=>{if(!(!d||!m)){S(!0),R(null);try{const Q=await fetch(`/api/license?path=${encodeURIComponent(d)}&content=${encodeURIComponent(m)}`);if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();if(G.success)j(G.data.matches||[]),h(G.data.summary);else throw new Error(G.error||"Scan failed")}catch(Q){R(Q.message),j([]),h(null)}finally{S(!1)}}};H.useEffect(()=>{O()},[]);const Z=Q=>{switch(Q){case"CRITICAL":return"var(--color-error)";case"HIGH":return"var(--color-warning)";case"MEDIUM":return"var(--color-accent-primary)";case"LOW":return"var(--color-success)";default:return"var(--color-text-soft)"}};return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #1a0a2a 100%)",border:"1px solid #5b21b6"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #5b21b6"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(uy,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"License Compliance Scanner"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"SPDX & Copyleft License Detection"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:O,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),c&&n.jsxs("div",{style:{display:"flex",gap:12,padding:"12px 0",flexWrap:"wrap"},children:[n.jsxs("span",{className:"badge",style:{background:"rgba(59, 130, 246, 0.1)",color:"var(--color-accent-primary)"},children:["Blocklist: ",((V=c.BLOCKLIST)==null?void 0:V.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:["Allowlist: ",((q=c.ALLOWLIST)==null?void 0:q.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:c.BLOCK_COPYLEFT?"rgba(239, 68, 68, 0.1)":"rgba(34, 197, 94, 0.1)",color:c.BLOCK_COPYLEFT?"var(--color-error)":"var(--color-success)"},children:["Block Copyleft: ",c.BLOCK_COPYLEFT?"ON":"OFF"]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Scan Code for Licenses"})}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:12},children:[n.jsxs("div",{children:[n.jsx("label",{style:{fontSize:"0.8rem",color:"var(--color-text-soft)",marginBottom:4,display:"block"},children:"File Path (e.g., src/component.ts)"}),n.jsx("input",{type:"text",value:d,onChange:Q=>u(Q.target.value),placeholder:"src/component.ts",style:{width:"100%",padding:"8px 12px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.85rem"}})]}),n.jsxs("div",{children:[n.jsx("label",{style:{fontSize:"0.8rem",color:"var(--color-text-soft)",marginBottom:4,display:"block"},children:"Code Content"}),n.jsx("textarea",{value:m,onChange:Q=>x(Q.target.value),placeholder:"// SPDX-License-Identifier: MIT ...",rows:6,style:{width:"100%",padding:"8px 12px",background:"#111827",color:"white",border:"1px solid #374151",borderRadius:4,fontSize:"0.8rem",fontFamily:"monospace",resize:"vertical"}})]}),n.jsx("button",{className:"sidebar-btn",onClick:B,disabled:g||!d||!m,style:{width:"auto",padding:"8px 16px",alignSelf:"flex-start"},children:g?"Scanning...":"Scan for Licenses"}),M&&n.jsx("div",{style:{color:"var(--color-error)",fontSize:"0.8rem"},children:M})]})]}),N&&n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Scan Results"}),N.hasBlocked&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"⛔ Blocked"})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:12,padding:"16px"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(bp,{size:14}),n.jsx("span",{className:"stat-title",children:"Licenses"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem"},children:N.uniqueLicenses.length})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(eg,{size:14,style:{color:N.hasBlocked?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Blocked"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem",color:N.hasBlocked?"var(--color-error)":"var(--color-success)"},children:N.hasBlocked?"Yes":"No"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:14,style:{color:N.requiresAttribution?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Attribution"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem"},children:N.requiresAttribution?"Required":"Not needed"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:14,style:{color:Z(N.highestSeverity)}}),n.jsx("span",{className:"stat-title",children:"Severity"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.3rem",color:Z(N.highestSeverity)},children:N.highestSeverity})]})]}),n.jsxs("div",{className:"list-container",children:[T.length===0&&n.jsx("div",{className:"empty-state",children:"No licenses detected"}),T.map((Q,G)=>n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${Z(Q.severity)}`},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsx("span",{style:{color:Z(Q.severity),fontWeight:600},children:Q.spdxId}),n.jsx("span",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:Q.license}),Q.blocked&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"BLOCKED"})]}),n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:["Line ",Q.line," · ",Q.source]})]}),Q.snippet&&n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-text-soft)",marginTop:4,fontFamily:"monospace",background:"rgba(0,0,0,0.2)",padding:"4px 8px",borderRadius:3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q.snippet})]},G))]})]})]})}const kg={SUCCESS:"#22c55e",ERROR:"#ef4444",FAIL:"#ef4444",WARN:"#eab308",INFO:"#3b82f6",DEBUG:"#64748b",PENDING:"#eab308",APPROVED:"#22c55e",REJECTED:"#ef4444",BLOCKED:"#ef4444",TIMEOUT:"#ef4444"};function zy(){const{data:c,loading:r}=ht("/logs",5e3),[d,u]=H.useState([]),[m,x]=H.useState("ALL"),[T,j]=H.useState("ALL");Bl({handlers:{log:S=>{const M=S;M.logs&&u(R=>[...M.logs,...R].slice(0,200))}}});const N=d.length?d:Array.isArray(c)?c:[];Array.isArray(c)&&d.length===0&&c.length>0&&u(c);const h=[...new Set(N.map(S=>S.agent))].filter(Boolean),g=N.filter(S=>!(m!=="ALL"&&S.status!==m&&S.action!==m||T!=="ALL"&&S.agent!==T));return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(xy,{size:20})," Audit Logs"]}),n.jsxs("span",{className:"badge",children:[N.length," entries"]})]}),n.jsxs("div",{style:{display:"flex",gap:8,marginBottom:12,flexWrap:"wrap",alignItems:"center"},children:[n.jsxs("select",{value:T,onChange:S=>j(S.target.value),style:{padding:"4px 8px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.8rem"},children:[n.jsx("option",{value:"ALL",children:"All Specialists"}),h.map(S=>n.jsx("option",{value:S,children:S},S))]}),n.jsx("div",{className:"filter-tabs",style:{margin:0},children:["ALL","SUCCESS","ERROR","WARN","INFO","DEBUG"].map(S=>n.jsx("button",{className:`filter-tab ${m===S?"active":""}`,onClick:()=>x(S),children:S},S))})]}),r&&!N.length&&n.jsx("div",{className:"empty-state",children:"Loading logs..."}),n.jsxs("div",{className:"list-container",children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No log entries"}),g.slice(0,100).map((S,M)=>{const R=kg[S.status||S.action]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${R}`},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:4,fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(S.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"#38bdf8",fontWeight:500,fontSize:"0.75rem"},children:S.agent}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${R}20`,color:R},children:S.status||S.action}),S.traceId&&n.jsx("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:S.traceId})]}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"#cbd5e1",wordBreak:"break-word"},children:[n.jsx("strong",{style:{color:"#e2e8f0"},children:S.action}),": ",S.summary]})]},S.id||M)})]})]})}function wg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),N=async()=>{u(!0);try{const O=await fetch("/api/loop-detector");if(!O.ok)throw new Error(`HTTP ${O.status}`);const B=await O.json();if(B.success)r(B.data);else throw new Error(B.error||"Failed to fetch loop stats");x(null)}catch(O){x(O.message)}finally{u(!1)}},h=async O=>{j(O);try{(await fetch(`/api/loop-detector/clear/${encodeURIComponent(O)}`,{method:"POST"})).ok&&await N()}finally{j(null)}};if(H.useEffect(()=>{N();const O=setInterval(N,5e3);return()=>clearInterval(O)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Loop Detector..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Loop Detector Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const g=Object.entries(c||{}),S=g.reduce((O,[,B])=>O+B.cooldownCount,0),M=g.filter(([,O])=>O.inCooldown).length,R=g.filter(([,O])=>O.lastAlert!==null).length;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #2a0a1a 100%)",border:"1px solid #7f1d1d"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #7f1d1d"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(lg,{size:28,style:{color:"var(--color-warning)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"Loop Detector"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Multi-pattern infinite loop prevention"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Agents"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:g.length}),n.jsx("div",{className:"stat-card-desc",children:"Monitored agents"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(ot,{size:16,style:{color:R>0?"var(--color-warning)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Alerts"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:R>0?"var(--color-warning)":"var(--color-success)"},children:R}),n.jsx("div",{className:"stat-card-desc",children:"Active loop alerts"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:16,style:{color:M>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Cooldown"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:M>0?"var(--color-error)":"var(--color-success)"},children:M}),n.jsx("div",{className:"stat-card-desc",children:"Agents in cooldown"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(my,{size:16,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Total Cooldowns"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-muted)"},children:S}),n.jsx("div",{className:"stat-card-desc",children:"Since server start"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Agent Loop Status"}),n.jsx("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)"},children:M>0?`${M} agent(s) in cooldown`:"All agents normal"})]}),n.jsxs("div",{className:"list-container",children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),g.map(([O,B])=>{var Q,G;const Z=((Q=B.lastAlert)==null?void 0:Q.type)||null,V=((G=B.lastAlert)==null?void 0:G.severity)||null,q=B.inCooldown?"var(--color-error)":V==="warning"?"var(--color-warning)":"var(--color-success)";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${q}`},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:["@",O]}),B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Cooldown"}),Z&&!B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:Z.replace(/_/g," ")}),!Z&&!B.inCooldown&&n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"var(--color-success)"},children:"Normal"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-dim)",display:"flex",gap:8},children:[n.jsxs("span",{children:[B.totalCalls," calls"]}),n.jsxs("span",{children:[B.cooldownCount," cooldowns"]})]}),B.inCooldown&&n.jsx("button",{className:"sidebar-btn",onClick:()=>h(O),disabled:T===O,style:{width:"auto",padding:"2px 8px",fontSize:"0.7rem"},children:T===O?"...":"Clear"})]})]}),B.lastAlert&&n.jsxs("div",{style:{fontSize:"0.75rem",color:"var(--color-text-soft)",background:"rgba(239, 68, 68, 0.05)",padding:"6px 8px",borderRadius:4,marginTop:4},children:[n.jsx("strong",{children:"Last alert:"})," ",B.lastAlert.detail]}),(Object.keys(B.consecutiveTools).length>0||Object.keys(B.fileWrites).length>0)&&n.jsxs("div",{style:{display:"flex",gap:12,marginTop:6,fontSize:"0.7rem",color:"var(--color-dim)",flexWrap:"wrap"},children:[Object.entries(B.consecutiveTools).filter(([,te])=>te>0).map(([te,ie])=>n.jsxs("span",{style:{background:"rgba(59, 130, 246, 0.1)",padding:"2px 6px",borderRadius:3},children:["🔄 ",te,": ",ie,"x"]},te)),Object.entries(B.fileWrites).map(([te,ie])=>n.jsxs("span",{style:{background:"rgba(234, 179, 8, 0.1)",padding:"2px 6px",borderRadius:3},children:["📝 ",te.split("/").pop(),": ",ie,"x"]},te))]})]},O)})]})]})]})}function Ug(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),[N,h]=H.useState({enabled:!1,hasToken:!1,hasUsers:!1}),g=async()=>{u(!0);try{const R=await fetch("/api/health");if(!R.ok)throw new Error(`HTTP ${R.status}`);const O=await R.json(),B=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",Z=window.location.port||"5858",V=window.location.hostname;r({mode:"unified",port:parseInt(Z),host:V,sessions:0,version:O.version||"0.0.14",dashboardUrl:`http://${V}:${Z}`,mcpSseUrl:`http://${V}:${Z}/mcp/sse`,isLocal:B});try{await fetch("/api/mcp/sessions",{headers:{}}),h({enabled:!1,hasToken:!1,hasUsers:!1})}catch{h({enabled:!0,hasToken:!0,hasUsers:!1})}try{const q=await fetch("/api/mcp/sessions");if(q.ok){const Q=await q.json();Q.success&&Q.data&&r(G=>G&&{...G,sessions:Q.data.total||0})}}catch{}x(null)}catch(R){x(R.message)}finally{u(!1)}};H.useEffect(()=>{g();const R=setInterval(g,1e4);return()=>clearInterval(R)},[]);const S=(R,O)=>{navigator.clipboard.writeText(R).then(()=>{j(O),setTimeout(()=>j(null),2e3)})};if(d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading MCP Configuration..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(yc,{size:20,style:{color:"#ef4444"}})," MCP Setup Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const M=c;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:M.isLocal?"linear-gradient(135deg, #0f172a 0%, #2a0a0a 100%)":"linear-gradient(135deg, #2a0a0a 0%, #0f172a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(yc,{size:28,style:{color:"#ef4444"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"#f8fafc"},children:"MCP Server Configuration"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"#94a3b8"},children:M.isLocal?"Local mode - only you can connect":"Network mode - team can connect"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:g,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bm,{size:16,style:{color:"#ef4444"}}),n.jsx("span",{className:"stat-title",children:"Server Mode"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:"#ef4444"},children:M.mode==="unified"?"Unified":"Stdio"}),n.jsx("div",{className:"stat-card-desc",children:"MCP + Dashboard on single port"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(vc,{size:16,style:{color:M.isLocal?"#eab308":"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Access Type"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:M.isLocal?"#eab308":"#22c55e"},children:M.isLocal?"Local":"Network"}),n.jsx("div",{className:"stat-card-desc",children:M.isLocal?"Only this machine":"Accessible from LAN"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(vy,{size:16,style:{color:N.enabled?"#22c55e":"#eab308"}}),n.jsx("span",{className:"stat-title",children:"Authentication"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:N.enabled?"#22c55e":"#eab308"},children:N.enabled?"Protected":"Open"}),n.jsx("div",{className:"stat-card-desc",children:N.enabled?"MCP_AUTH_TOKEN set":"No auth configured"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Wp,{size:16,style:{color:"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Active Sessions"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:"#22c55e"},children:M.sessions}),n.jsx("div",{className:"stat-card-desc",children:"Connected AI clients"})]})]})]}),n.jsxs("div",{className:"card",style:{borderColor:N.enabled?"#22c55e":"#eab308"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[N.enabled?n.jsx(il,{size:18,style:{color:"#22c55e"}}):n.jsx(wp,{size:18,style:{color:"#eab308"}}),"Server Security"]}),N.enabled?n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"#22c55e"},children:"🔒 Protected"}):n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"#eab308"},children:"⚠ Open Access"})]}),n.jsx("div",{style:{padding:"0 12px 12px",fontSize:"0.85rem",color:"#94a3b8"},children:N.enabled?n.jsxs("p",{style:{margin:0},children:[n.jsx("strong",{style:{color:"#22c55e"},children:"Authentication active."})," All API/MCP requests require",n.jsx("code",{style:{fontFamily:"monospace",color:"#ef4444",background:"#1a1a1a",padding:"1px 4px",borderRadius:2},children:" Authorization: Bearer <token> "}),"header. Dashboard static files are public."]}):n.jsxs("p",{style:{margin:0},children:[n.jsx("strong",{style:{color:"#eab308"},children:"Warning: Authentication is off."})," Anyone who can reach the server can access all APIs. To protect: ",n.jsx("code",{style:{fontFamily:"monospace",color:"#ef4444",background:"#1a1a1a",padding:"1px 4px",borderRadius:2},children:"MCP_AUTH_TOKEN=your-secret-key"})]})})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",style:{borderColor:"#1e293b"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Bm,{size:18})," Local Setup (Solo)"]}),n.jsx("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"#eab308"},children:"Single Dev"})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[n.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",margin:0},children:"Each developer runs on their own machine. Only their own IDE connects."}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Terminal:"}),n.jsxs("div",{onClick:()=>S("atabey mcp start","local-cmd"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#ef4444",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.8rem"},children:["atabey mcp start",n.jsx("span",{style:{float:"right",color:T==="local-cmd"?"#22c55e":"#64748b"},children:T==="local-cmd"?"✓ Copied":"📋"})]})]}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"mcp.json:"}),n.jsxs("div",{onClick:()=>S(JSON.stringify({mcpServers:{atabey:{command:"atabey",args:["mcp","start"]}}},null,2),"local-json"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#22c55e",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:[`{
355
355
  "mcpServers": {
356
356
  "atabey": {
357
357
  "command": "atabey",
358
358
  "args": ["mcp", "start"]
359
359
  }
360
360
  }
361
- }`,n.jsx("span",{style:{float:"right",color:T==="local-json"?"#22c55e":"#64748b"},children:T==="local-json"?"✓ Copied":"📋"})]})]})]})]}),n.jsxs("div",{className:"card",style:{borderColor:"#312e81"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Kp,{size:18})," Network Setup (Team)"]}),n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"#22c55e"},children:"Multi-Dev"})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[n.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",margin:0},children:"Tek sunucu tüm ekibe hizmet verir. Herkes aynı MCP'ye bağlanır."}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Server (bir kişi çalıştırır):"}),n.jsxs("div",{onClick:()=>S("MCP_HOST=0.0.0.0 MCP_AUTH_TOKEN=gizli-key atabey mcp start","net-cmd"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#ef4444",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.8rem"},children:["MCP_HOST=0.0.0.0 MCP_AUTH_TOKEN=gizli-key atabey mcp start",n.jsx("span",{style:{float:"right",color:T==="net-cmd"?"#22c55e":"#64748b"},children:T==="net-cmd"?"✓ Copied":"📋"})]})]}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Her geliştiricinin mcp.json'u:"}),n.jsxs("div",{onClick:()=>S(JSON.stringify({mcpServers:{atabey:{url:M.mcpSseUrl,headers:{Authorization:"Bearer gizli-key"},env:{ATABEY_PROJECT_ROOT:"/path/to/project"}}}},null,2),"net-json"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#22c55e",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:[`{
361
+ }`,n.jsx("span",{style:{float:"right",color:T==="local-json"?"#22c55e":"#64748b"},children:T==="local-json"?"✓ Copied":"📋"})]})]})]})]}),n.jsxs("div",{className:"card",style:{borderColor:"#312e81"},children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(Kp,{size:18})," Network Setup (Team)"]}),n.jsx("span",{className:"badge",style:{background:"rgba(34, 197, 94, 0.1)",color:"#22c55e"},children:"Multi-Dev"})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[n.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",margin:0},children:"Single server serves the entire team. Everyone connects to the same MCP."}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Server (one person runs):"}),n.jsxs("div",{onClick:()=>S("MCP_HOST=0.0.0.0 MCP_AUTH_TOKEN=secret-key atabey mcp start","net-cmd"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#ef4444",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.8rem"},children:["MCP_HOST=0.0.0.0 MCP_AUTH_TOKEN=secret-key atabey mcp start",n.jsx("span",{style:{float:"right",color:T==="net-cmd"?"#22c55e":"#64748b"},children:T==="net-cmd"?"✓ Copied":"📋"})]})]}),n.jsxs("div",{style:{fontSize:"0.8rem"},children:[n.jsx("div",{style:{color:"#64748b",marginBottom:4},children:"Each developer's mcp.json:"}),n.jsxs("div",{onClick:()=>S(JSON.stringify({mcpServers:{atabey:{url:M.mcpSseUrl,headers:{Authorization:"Bearer secret-key"},env:{ATABEY_PROJECT_ROOT:"/path/to/project"}}}},null,2),"net-json"),style:{padding:"8px 12px",background:"#090d16",borderRadius:4,fontFamily:"monospace",color:"#22c55e",cursor:"pointer",border:"1px solid #1e293b",fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:[`{
362
362
  "mcpServers": {
363
363
  "atabey": {
364
364
  "url": "${M.mcpSseUrl}",
365
365
  "headers": {
366
- "Authorization": "Bearer gizli-key"
366
+ "Authorization": "Bearer secret-key"
367
367
  },
368
368
  "env": {
369
369
  "ATABEY_PROJECT_ROOT": "/path/to/project"
370
370
  }
371
371
  }
372
372
  }
373
- }`,n.jsx("span",{style:{float:"right",color:T==="net-json"?"#22c55e":"#64748b"},children:T==="net-json"?"✓ Copied":"📋"})]})]})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Hn,{size:18})," Environment Variables"]})}),n.jsx("div",{style:{padding:12},children:n.jsxs("table",{style:{width:"100%",fontSize:"0.8rem",borderCollapse:"collapse"},children:[n.jsx("thead",{children:n.jsxs("tr",{style:{color:"#64748b",borderBottom:"1px solid #1e293b"},children:[n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Variable"}),n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Default"}),n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Description"})]})}),n.jsxs("tbody",{children:[n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_TRANSPORT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"unified"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{children:"unified"})," (önerilen): Tek portta MCP + Dashboard",n.jsx("br",{}),n.jsx("strong",{children:"stdio"}),": Sadece MCP, dashboard ayrı"]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_AUTH_TOKEN"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"-"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{style:{color:"#22c55e"},children:"Güvenlik!"})," API Key. Ayarlanırsa tüm istekler ",n.jsx("code",{children:"Authorization: Bearer <token>"})," gerektirir."]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_AUTH_USERS"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"-"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:["Kullanıcı bazlı token: ",n.jsx("code",{children:"ali:key1,veli:key2"})]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_PORT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"5858"}),n.jsx("td",{style:{padding:"8px",color:"#94a3b8"},children:"Sunucu portu"})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_HOST"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"0.0.0.0"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{children:"0.0.0.0"}),": Açık (network)",n.jsx("br",{}),n.jsx("strong",{children:"localhost"}),": Güvenli (solo)"]})]}),n.jsxs("tr",{children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"ATABEY_PROJECT_ROOT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"process.cwd()"}),n.jsx("td",{style:{padding:"8px",color:"#94a3b8"},children:"Proje kök dizini (SSE modunda zorunlu)"})]})]})]})})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Quick Reference"})}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:8,fontSize:"0.8rem"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"Dashboard URL"}),n.jsxs("span",{onClick:()=>S(M.dashboardUrl,"dash-url"),style:{fontFamily:"monospace",color:"#ef4444",cursor:"pointer"},children:[M.dashboardUrl," ",T==="dash-url"?"✓":"📋"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"MCP SSE URL"}),n.jsxs("span",{onClick:()=>S(M.mcpSseUrl,"sse-url"),style:{fontFamily:"monospace",color:"#22c55e",cursor:"pointer"},children:[M.mcpSseUrl," ",T==="sse-url"?"✓":"📋"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"WebSocket URL"}),n.jsxs("span",{style:{fontFamily:"monospace",color:"#a78bfa"},children:["ws://",M.host,":",M.port,"/ws"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"API Health"}),n.jsxs("span",{style:{fontFamily:"monospace",color:"#22c55e"},children:["http://",M.host,":",M.port,"/api/health"]})]})]})]})]})}function Lg(){const{data:c,loading:r,error:d}=ht("/memory/search",15e3),[u,m]=H.useState([]),[x,T]=H.useState(""),[j,N]=H.useState(null),[h,g]=H.useState(!1);Bl({handlers:{memory_update:O=>{const B=O;B.id&&m(Z=>[B,...Z].slice(0,100))}}});const S=u.length?u:Array.isArray(c)?c:[];Array.isArray(c)&&u.length===0&&c.length>0&&m(c);const M=async()=>{if(!x.trim()){N(null);return}g(!0);try{const B=await(await fetch(`/api/memory/search?q=${encodeURIComponent(x)}&limit=10`)).json();N(B.data||[])}catch{N([])}g(!1)},R=j!==null?j:S;return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(hu,{size:20})," Memory Insights"]}),n.jsxs("span",{className:"badge",children:[S.length," entries"]})]}),n.jsxs("div",{className:"search-bar",children:[n.jsx("input",{type:"text",placeholder:"Search vector memory...",value:x,onChange:O=>T(O.target.value),onKeyDown:O=>O.key==="Enter"&&M(),className:"search-input"}),n.jsx("button",{className:"btn btn-ghost",onClick:M,disabled:h,children:h?"...":n.jsxs(n.Fragment,{children:[n.jsx(by,{size:14})," Search"]})}),j!==null&&n.jsxs("button",{className:"btn btn-ghost",onClick:()=>{N(null),T("")},children:[n.jsx(mu,{size:14})," Clear"]})]}),r&&!S.length&&n.jsx("div",{className:"empty-state",children:"Loading memory..."}),d&&!S.length&&n.jsxs("div",{className:"error",children:["Error: ",d]}),n.jsxs("div",{className:"list-container",children:[R.length===0&&n.jsx("div",{className:"empty-state",children:j!==null?"No results found":"No memory entries"}),R.slice(0,50).map((O,B)=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{className:"memory-meta",children:[n.jsx("span",{className:"memory-tag",children:O.type||"memory"}),O.relevance!==void 0&&n.jsxs("span",{className:O.relevance>.7?"status-ready":O.relevance>.4?"status-executing":"text-muted",children:[(O.relevance*100).toFixed(0),"% match"]}),n.jsx("span",{className:"trace-id",style:{marginLeft:"auto"},children:new Date(O.timestamp).toLocaleString()})]}),n.jsxs("div",{className:"memory-text",children:[O.content.substring(0,200),O.content.length>200?"...":""]})]},O.id||B))]})]})}function Bg(){const{data:c,loading:r}=ht("/tasks",5e3),[d,u]=H.useState("ALL"),[m,x]=H.useState(null),T=c||[],j=d==="ALL"?T:T.filter(h=>h.status===d),N={total:T.length,pending:T.filter(h=>h.status==="PENDING").length,inProgress:T.filter(h=>h.status==="IN_PROGRESS").length,completed:T.filter(h=>h.status==="COMPLETED").length,blocked:T.filter(h=>h.status==="BLOCKED"||h.status==="FAILED").length};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(yy,{size:20})," Task Planner"]}),n.jsxs("span",{className:"badge",children:[T.length," tasks"]})]}),n.jsxs("div",{className:"stats-grid",children:[n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:N.total}),n.jsx("span",{className:"stat-label",children:"Total"})]}),n.jsxs("div",{className:"stat-box warn",children:[n.jsx("span",{className:"stat-count",children:N.pending}),n.jsx("span",{className:"stat-label",children:"Pending"})]}),n.jsxs("div",{className:"stat-box info",children:[n.jsx("span",{className:"stat-count",children:N.inProgress}),n.jsx("span",{className:"stat-label",children:"In Progress"})]}),n.jsxs("div",{className:"stat-box pass",children:[n.jsx("span",{className:"stat-count",children:N.completed}),n.jsx("span",{className:"stat-label",children:"Completed"})]}),n.jsxs("div",{className:"stat-box fail",children:[n.jsx("span",{className:"stat-count",children:N.blocked}),n.jsx("span",{className:"stat-label",children:"Blocked"})]})]}),n.jsx("div",{className:"filter-tabs",children:["ALL","PENDING","IN_PROGRESS","COMPLETED","BLOCKED","FAILED"].map(h=>n.jsx("button",{className:`filter-tab ${d===h?"active":""}`,onClick:()=>u(h),children:h.replace("_"," ")},h))}),r&&!T.length&&n.jsx("div",{className:"empty-state",children:"Loading plans..."}),n.jsxs("div",{className:"list-container",children:[j.length===0&&n.jsx("div",{className:"empty-state",children:"No tasks found"}),j.slice(0,50).map(h=>{const g=m===h.id,S=h.status.toLowerCase();return n.jsxs("div",{className:`list-item task-item ${S}`,onClick:()=>x(g?null:h.id),children:[n.jsxs("div",{className:"task-header",children:[n.jsx("span",{className:"trace-id",children:h.traceId}),n.jsxs("span",{className:"task-agent",children:["@",h.agent]}),n.jsx("span",{className:`task-status-badge ${S}`,children:h.status.replace("_"," ")}),n.jsx("span",{className:"text-muted",style:{marginLeft:"auto"},children:h.priority}),g?n.jsx(hy,{size:14,className:"text-muted"}):n.jsx(fy,{size:14,className:"text-muted"})]}),n.jsx("div",{className:"text-secondary text-sm",children:h.description}),g&&n.jsxs("div",{className:"task-details",children:[n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Created:"}),n.jsx("span",{className:"detail-value",children:h.createdAt?new Date(h.createdAt).toLocaleString():"Unknown"})]}),h.dependencies.length>0&&n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Depends on:"}),n.jsx("span",{className:"detail-value",children:h.dependencies.join(", ")})]})]})]},h.id)})]})]})}const Hg={USER_DATA:"var(--color-accent-primary)",SECURITY:"var(--color-accent-primary)",COMPLIANCE:"var(--color-success)",OPERATIONAL:"var(--color-accent-primary)",CONFIDENTIAL:"var(--color-warning)",RESTRICTED:"var(--color-accent-primary)"};function qg(){var le,se,pe,Ce;const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(""),[N,h]=H.useState(!1),[g,S]=H.useState(null),[M,R]=H.useState(null),[O,B]=H.useState("ALL"),Z=async()=>{u(!0);try{const F=await fetch("/api/audit");if(!F.ok)throw new Error("Failed to fetch privacy audit logs");const ge=await F.json();if(ge.success)r(ge.data);else throw new Error("API returned failure status");x(null)}catch(F){x(F.message)}finally{u(!1)}};H.useEffect(()=>{Z()},[]);const V=async F=>{if(F.preventDefault(),T!=="KVKK-RIGHT-TO-ERASURE"){alert("Please enter the correct confirmation code: KVKK-RIGHT-TO-ERASURE");return}if(confirm("Are you sure you want to execute Right to Erasure? This will permanently delete all logs containing personal data.")){h(!0),S(null);try{const Ue=await(await fetch("/api/audit/erase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirmationCode:T})})).json();if(Ue.success)S(Ue.message),j(""),Z();else throw new Error(Ue.error||"Erasure failed")}catch(ge){alert("Erasure failed: "+ge.message)}finally{h(!1)}}};if(d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading GDPR/KVKK Privacy Logs..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(iu,{size:20,style:{color:"var(--color-error)"}})," Privacy Governance Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const q=c==null?void 0:c.stats,Q=(c==null?void 0:c.entries)||[],G=((le=q==null?void 0:q.byAction)==null?void 0:le.MASK_PII)||((se=q==null?void 0:q.byAction)==null?void 0:se.PII_MASKED)||0,te=((pe=q==null?void 0:q.byAction)==null?void 0:pe.PII_DETECTED)||0,ie=O==="ALL"?Q:Q.filter(F=>F.dataCategory===O);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(il,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"GDPR & KVKK Compliance Auditor"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Automated PII Masking, Data Retention TTL & Erasure Log"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:Z,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(iu,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Total Audit Entries"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:(q==null?void 0:q.total)||0}),n.jsx("div",{className:"stat-card-desc",children:"Evaluated compliance records"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ko,{size:16,style:{color:"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"PII Masked"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-success)"},children:G}),n.jsx("div",{className:"stat-card-desc",children:"Sensitive records scrubbed"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(gp,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"PII Detected"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-warning)"},children:te}),n.jsx("div",{className:"stat-card-desc",children:"Potential PII flagged"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cp,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"Data Retention TTL"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-warning)"},children:"30 Days"}),n.jsx("div",{className:"stat-card-desc",children:"Auto-deleted after expiry"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hm,{size:16,style:{color:"var(--color-error)"}}),n.jsx("span",{className:"stat-title",children:"Expired Cleaned"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-error)"},children:(q==null?void 0:q.expiredCount)||0}),n.jsx("div",{className:"stat-card-desc",children:"Records removed by TTL"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(zp,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Restricted Data"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-primary)"},children:((Ce=q==null?void 0:q.byCategory)==null?void 0:Ce.RESTRICTED)||0}),n.jsx("div",{className:"stat-card-desc",children:"Highest sensitivity level"})]})]})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Hm,{size:18,style:{color:"var(--color-error)"}})," GDPR Art. 17 & KVKK Art. 7 Data Subject Erasure"]})}),n.jsxs("div",{style:{padding:12},children:[n.jsxs("p",{style:{fontSize:"0.85rem",color:"var(--color-text-soft)",marginBottom:12},children:["Simulate the ",n.jsx("strong",{children:"Right to Erasure (Unutulma Hakkı)"}),". If a user requests erasure of their personal data, entering the validation code below will wipe their personal data entries from Atabey."]}),n.jsxs("form",{onSubmit:V,style:{display:"flex",flexDirection:"column",gap:8},children:[n.jsx("input",{type:"text",placeholder:"Enter confirmation: KVKK-RIGHT-TO-ERASURE",value:T,onChange:F=>j(F.target.value),style:{padding:"8px 12px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.85rem"}}),n.jsx("button",{type:"submit",disabled:N||T!=="KVKK-RIGHT-TO-ERASURE",style:{padding:"8px 12px",borderRadius:4,background:T==="KVKK-RIGHT-TO-ERASURE"?"var(--color-accent-primary)":"#1f2937",color:"#fff",border:"none",cursor:T==="KVKK-RIGHT-TO-ERASURE"?"pointer":"not-allowed",fontWeight:600,fontSize:"0.85rem"},children:N?"Processing Erasure...":"Execute Right to Erasure"})]}),g&&n.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(34, 197, 94, 0.1)",border:"1px solid var(--color-success)",borderRadius:4,color:"var(--color-success)",fontSize:"0.8rem"},children:g})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Data Classification Breakdown"}),n.jsxs("span",{className:"badge",children:[n.jsx(Ep,{size:12,style:{marginRight:4}}),Object.keys((q==null?void 0:q.byCategory)||{}).length," categories"]})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[Object.entries((q==null?void 0:q.byCategory)||{}).map(([F,ge])=>{const Ue=q!=null&&q.total?Math.round(ge/q.total*100):0,qe=Hg[F]||"var(--color-accent-primary)";let ke="Standard";return(F==="USER_DATA"||F==="CONFIDENTIAL")&&(ke="Confidential"),(F==="SECURITY"||F==="RESTRICTED")&&(ke="Restricted"),n.jsxs("div",{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",marginBottom:4},children:[n.jsxs("span",{style:{fontWeight:500},children:[F,n.jsx("span",{style:{marginLeft:6,fontSize:"0.65rem",padding:"1px 4px",borderRadius:2,background:ke==="Restricted"?"rgba(239, 68, 68, 0.15)":"rgba(234, 179, 8, 0.15)",color:ke==="Restricted"?"var(--color-error)":"var(--color-warning)"},children:ke})]}),n.jsxs("span",{style:{color:"var(--color-text-soft)"},children:[ge," (",Ue,"%)"]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${Ue}%`,background:qe,borderRadius:4,transition:"width 0.3s ease"}})})]},F)}),Object.keys((q==null?void 0:q.byCategory)||{}).length===0&&n.jsx("div",{className:"empty-state",children:"No classified categories recorded yet"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"PII Compliance Audit Trail"}),n.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[n.jsxs("select",{value:O,onChange:F=>B(F.target.value),style:{padding:"4px 8px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.75rem"},children:[n.jsx("option",{value:"ALL",children:"All Categories"}),n.jsx("option",{value:"USER_DATA",children:"User Data"}),n.jsx("option",{value:"SECURITY",children:"Security"}),n.jsx("option",{value:"COMPLIANCE",children:"Compliance"}),n.jsx("option",{value:"OPERATIONAL",children:"Operational"}),n.jsx("option",{value:"RESTRICTED",children:"Restricted"}),n.jsx("option",{value:"CONFIDENTIAL",children:"Confidential"})]}),n.jsxs("span",{className:"badge",children:[ie.length," events"]})]})]}),n.jsxs("div",{className:"list-container",children:[ie.length===0&&n.jsx("div",{className:"empty-state",children:"No compliance events logged yet"}),ie.map((F,ge)=>{const Ue=M===ge,qe=F.dataCategory==="USER_DATA",ke=F.dataCategory==="RESTRICTED";let k="3px solid var(--color-dim)";return qe&&(k="3px solid var(--color-accent-primary)"),ke&&(k="3px solid var(--color-error)"),n.jsxs("div",{className:"list-item",style:{borderLeft:k,cursor:"pointer",background:Ue?"rgba(255, 255, 255, 0.02)":void 0},onClick:()=>R(Ue?null:ge),children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"var(--color-dim)"},children:new Date(F.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"var(--color-accent-primary)",fontWeight:500},children:F.agent}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:qe?"var(--color-accent-glow)":"rgba(59, 130, 246, 0.1)",color:"var(--color-accent-primary)"},children:F.dataCategory||"OPERATIONAL"}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:F.status==="SUCCESS"?"rgba(34, 197, 94, 0.1)":"rgba(239, 68, 68, 0.1)",color:F.status==="SUCCESS"?"var(--color-success)":"var(--color-error)"},children:F.status})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[F.action.toLowerCase().includes("pii")||F.action.toLowerCase().includes("mask")?n.jsxs("span",{style:{fontSize:"0.65rem",padding:"1px 6px",borderRadius:3,background:"rgba(16, 185, 129, 0.1)",color:"var(--color-success)",display:"flex",alignItems:"center",gap:3},children:[n.jsx(Ko,{size:10})," Masked"]}):null,n.jsxs("span",{style:{fontSize:"0.7rem",color:"var(--color-dim)"},children:["TTL: ",F.retentionDays||30,"d"]})]})]}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-text-soft)"},children:[n.jsx("strong",{style:{color:"var(--color-text-primary)"},children:F.action}),F.details&&n.jsxs("span",{style:{marginLeft:8,fontSize:"0.7rem",color:"var(--color-success)",background:"rgba(16, 185, 129, 0.1)",padding:"1px 6px",borderRadius:2,display:"inline-flex",alignItems:"center",gap:3},children:[n.jsx(Ko,{size:10})," PII Auto-Redacted"]})]}),Ue&&F.details&&n.jsxs("div",{onClick:Y=>Y.stopPropagation(),style:{marginTop:10,padding:10,background:"var(--color-code-bg)",border:"1px solid var(--color-code-border)",borderRadius:4,fontSize:"0.8rem",fontFamily:"monospace",color:"var(--color-success)",overflowX:"auto"},children:[n.jsxs("div",{style:{color:"var(--color-text-soft)",borderBottom:"1px solid var(--color-code-border)",paddingBottom:4,marginBottom:6,display:"flex",justifyContent:"space-between"},children:[n.jsx("span",{children:"[KVKK / GDPR Compliance Details]"}),n.jsx("span",{style:{color:"var(--color-accent-primary)"},children:"PII auto-redacted"})]}),n.jsx("pre",{style:{margin:0},children:JSON.stringify(F.details,null,2)})]}),Ue&&F.traceId&&n.jsxs("div",{style:{marginTop:6,fontSize:"0.75rem",color:"var(--color-dim)",fontFamily:"monospace"},children:["Trace: ",F.traceId]})]},F.id||ge)})]})]})]})}function Qg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/quality?path=src").then(j=>j.json()).then(j=>{j.success&&r(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,1e4);return()=>clearInterval(T)},[]);const m={"any-type":"#ef4444",complexity:"#f59e0b"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(cl,{size:20})," Quality Gate Analysis"]}),c&&n.jsxs("span",{className:"badge",style:{background:c.totalIssues>0?"var(--color-accent-glow)":"var(--color-border)",color:c.totalIssues>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[c.totalIssues," issues"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Analyzing codebase..."}),c&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"1fr 1fr",margin:"0 0 12px 0"},children:[n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.anyTypes>0?"var(--color-accent-primary)":"#22c55e"},children:c.anyTypes}),n.jsx("span",{className:"stat-label",children:"any types"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.longFunctions>0?"#f59e0b":"#22c55e"},children:c.longFunctions}),n.jsx("span",{className:"stat-label",children:"long funcs"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.deepNesting>0?"#f59e0b":"#22c55e"},children:c.deepNesting}),n.jsx("span",{className:"stat-label",children:"deep nesting"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:c.totalFiles}),n.jsxs("span",{className:"stat-label",children:[n.jsx(Sp,{size:12,style:{display:"inline",marginRight:2}}),"files scanned"]})]})]}),n.jsxs("div",{className:"list-container",style:{maxHeight:200},children:[c.issues.length===0&&n.jsx("div",{className:"empty-state",children:"No quality issues found"}),c.issues.map((x,T)=>{const j=m[x.type]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${j}`},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:2,fontSize:"0.75rem"},children:[n.jsxs("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${j}20`,color:j,display:"flex",alignItems:"center",gap:2},children:[n.jsx(ot,{size:10}),x.type]}),n.jsx("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:x.file})]}),n.jsx("div",{style:{fontSize:"0.8rem",color:"#cbd5e1"},children:x.message})]},T)})]})]})]})}function Gg(){var h,g,S,M,R,O,B,Z;const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),T=async()=>{u(!0);try{const V=await fetch("/api/telemetry");if(!V.ok)throw new Error(`HTTP ${V.status}`);const q=await V.json();if(q.success)r(q.data);else throw new Error(q.error||"Failed to fetch telemetry status");x(null)}catch(V){x(V.message)}finally{u(!1)}};if(H.useEffect(()=>{T();const V=setInterval(T,1e4);return()=>clearInterval(V)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Telemetry Status..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Telemetry Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const j=(c==null?void 0:c.serverUrl)&&c.serverUrl.length>0,N=c?c.eventsThisMinute/(((h=c.config)==null?void 0:h.MAX_EVENTS_PER_MINUTE)||200)*100:0;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #0a1a2a 100%)",border:"1px solid #1e3a5f"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #1e3a5f"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(op,{size:28,style:{color:j?"var(--color-success)":"var(--color-text-soft)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"Telemetry Streamer"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Edge-to-Cloud Event Streaming"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:T,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[c!=null&&c.enabled?n.jsx(Ll,{size:16,style:{color:"var(--color-success)"}}):n.jsx(ot,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"Status"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.enabled?"var(--color-success)":"var(--color-warning)"},children:c!=null&&c.enabled?"Active":"Disabled"}),n.jsx("div",{className:"stat-card-desc",children:c!=null&&c.enabled?"Streaming enabled":"Telemetry off"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[j?n.jsx(vc,{size:16,style:{color:"var(--color-success)"}}):n.jsx(xg,{size:16,style:{color:"var(--color-text-soft)"}}),n.jsx("span",{className:"stat-title",children:"Server"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:j?"var(--color-success)":"var(--color-text-soft)"},children:j?"Connected":"Offline"}),n.jsx("div",{className:"stat-card-desc",children:j?new URL(c.serverUrl).hostname:"No server configured"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(fp,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Queue"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:(c==null?void 0:c.queueSize)||0}),n.jsx("div",{className:"stat-card-desc",children:"Pending events"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:N>80?"var(--color-warning)":"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Rate"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:[(c==null?void 0:c.eventsThisMinute)||0,"/min"]}),n.jsx("div",{className:"stat-card-desc",children:"Events this minute"})]})]}),(c==null?void 0:c.wsConnected)&&n.jsxs("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(34, 197, 94, 0.1)",border:"1px solid rgba(34, 197, 94, 0.3)",borderRadius:6,color:"var(--color-success)",fontSize:"0.85rem",display:"flex",alignItems:"center",gap:8},children:[n.jsx(vc,{size:14})," WebSocket connected — real-time streaming active"]}),!j&&(c==null?void 0:c.enabled)&&n.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(234, 179, 8, 0.1)",border:"1px solid rgba(234, 179, 8, 0.3)",borderRadius:6,color:"var(--color-warning)",fontSize:"0.85rem"},children:"⚠️ Telemetry enabled but no server URL configured. Events will be saved to local fallback."})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Stream Configuration"})}),n.jsxs("div",{style:{padding:12,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:12},children:[n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Server URL"}),n.jsx("div",{style:{fontSize:"0.85rem",color:c!=null&&c.serverUrl?"var(--color-accent-primary)":"var(--color-text-soft)"},children:(c==null?void 0:c.serverUrl)||"Not configured"})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Batch Size"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[((g=c==null?void 0:c.config)==null?void 0:g.BATCH_SIZE)||50," events"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Flush Interval"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[(((S=c==null?void 0:c.config)==null?void 0:S.FLUSH_INTERVAL_MS)||3e4)/1e3,"s"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Max Retries"}),n.jsx("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:((M=c==null?void 0:c.config)==null?void 0:M.MAX_RETRIES)||3})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Rate Limit"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[((R=c==null?void 0:c.config)==null?void 0:R.MAX_EVENTS_PER_MINUTE)||200,"/min"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Transport"}),n.jsx("div",{style:{fontSize:"0.85rem",color:(O=c==null?void 0:c.config)!=null&&O.USE_WEBSOCKET?"var(--color-success)":"var(--color-accent-primary)"},children:(B=c==null?void 0:c.config)!=null&&B.USE_WEBSOCKET?"WebSocket":"HTTPS Batch"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Data Flow Diagram"})}),n.jsxs("div",{style:{padding:16,fontSize:"0.75rem",color:"var(--color-dim)",fontFamily:"monospace",lineHeight:1.8},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[n.jsx("span",{style:{color:"var(--color-accent-primary)"},children:"[Local MCP]"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:"var(--color-warning)"},children:"SQLite Queue"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:"var(--color-accent-muted)"},children:"Batch Processor"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:j?"var(--color-success)":"var(--color-text-soft)"},children:(Z=c==null?void 0:c.config)!=null&&Z.USE_WEBSOCKET?"WebSocket":"HTTPS"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:j?"var(--color-success)":"var(--color-text-soft)"},children:j?"[Enterprise Server]":"[Local Fallback JSONL]"})]}),n.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,flexWrap:"wrap"},children:[n.jsx("span",{children:"🔒 PII masked before transmission"}),n.jsx("span",{children:"🔄 Retry with exponential backoff"}),n.jsxs("span",{children:["📁 Fallback: ",c!=null&&c.serverUrl?"pending-events.jsonl":"local storage"]})]})]})]})]})}const Xo=.003;function ws(c){return c>=1e6?(c/1e6).toFixed(1)+"M":c>=1e3?(c/1e3).toFixed(1)+"K":c.toString()}function qm(c){return c<1?"< $0.01":`$${c.toFixed(2)}`}function Yg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("tokens"),N=async()=>{u(!0);try{const M=await fetch("/api/metrics");if(!M.ok)throw new Error(`HTTP ${M.status}`);const R=await M.json();if(R.success)r(R.data);else throw new Error(R.error||"Failed to fetch metrics");x(null)}catch(M){x(M.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const M=setInterval(N,1e4);return()=>clearInterval(M)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Token Economy Metrics..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"#ef4444"}})," Token Economy Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const h=c,g=Object.entries(h.byAgent).sort((M,R)=>T==="tokens"?R[1].tokens-M[1].tokens:R[1].calls-M[1].calls),S=Math.max(...g.map(([,M])=>M.tokens),1);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(Hn,{size:28,style:{color:"#38bdf8"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"#f8fafc"},children:"Token Economy & Cost Tracking"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"#94a3b8"},children:"Estimated token usage based on tool call payload sizes (~1 token = 4 chars)"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"#38bdf8"}}),n.jsx("span",{className:"stat-title",children:"Total Tool Calls"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:ws(h.totalToolCalls)}),n.jsx("div",{className:"stat-card-desc",children:"MCP tool invocations"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pc,{size:16,style:{color:"#eab308"}}),n.jsx("span",{className:"stat-title",children:"Est. Tokens"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#eab308"},children:ws(h.totalEstimatedTokens)}),n.jsxs("div",{className:"stat-card-desc",children:["~",h.totalEstimatedTokens>0?(h.totalEstimatedTokens/h.totalToolCalls).toFixed(0):0," tokens/call avg"]})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mc,{size:16,style:{color:"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Est. Cost"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#22c55e"},children:qm(h.totalEstimatedCost)}),n.jsxs("div",{className:"stat-card-desc",children:["At ~$",Xo,"/1K tokens"]})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mg,{size:16,style:{color:"#a78bfa"}}),n.jsx("span",{className:"stat-title",children:"Cost Efficiency"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#a78bfa"},children:h.totalEstimatedCost>0?(h.totalToolCalls/h.totalEstimatedCost).toFixed(1):"N/A"}),n.jsx("div",{className:"stat-card-desc",children:"Calls per cent"})]})]})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Token Usage by Agent"}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:`filter-tab ${T==="tokens"?"active":""}`,onClick:()=>j("tokens"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Tokens"}),n.jsx("button",{className:`filter-tab ${T==="calls"?"active":""}`,onClick:()=>j("calls"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Calls"})]})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:8},children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),g.map(([M,R])=>{const O=R.tokens/S*100;return n.jsxs("div",{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",marginBottom:2},children:[n.jsxs("span",{style:{fontWeight:500,color:"#38bdf8"},children:["@",M]}),n.jsxs("span",{style:{color:"#94a3b8"},children:[ws(R.tokens)," tokens · ",R.calls," calls · ",qm(R.cost)]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${O}%`,background:R.cost>.1?"#f43f5e":R.cost>.05?"#eab308":"#22c55e",borderRadius:4,transition:"width 0.3s ease",minWidth:O>0?4:0}})})]},M)})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Top Actions by Token Usage"}),n.jsxs("span",{className:"badge",children:[Object.keys(h.byAction).length," unique actions"]})]}),n.jsxs("div",{className:"list-container",children:[Object.entries(h.byAction).sort((M,R)=>R[1].tokens-M[1].tokens).slice(0,15).map(([M,R])=>{const O=R.tokens>1e4,B=M.includes("read")||M.includes("list"),Z=M.includes("write")||M.includes("replace");return n.jsxs("div",{className:"list-item",style:{fontSize:"0.8rem"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:O?"#ef4444":B?"#38bdf8":Z?"#22c55e":"#64748b",display:"inline-block"}}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.75rem"},children:M})]}),n.jsxs("span",{style:{color:"#94a3b8",fontSize:"0.7rem"},children:[ws(R.tokens)," tokens · ",R.calls,"x"]})]}),O&&n.jsx("div",{style:{fontSize:"0.65rem",color:"#ef4444",marginTop:2},children:"⚠ High token consumption - consider optimizing"})]},M)}),Object.keys(h.byAction).length===0&&n.jsx("div",{className:"empty-state",children:"No actions recorded"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Recent Tool Activity"}),n.jsxs("span",{className:"badge",children:[h.recentEntries.length," entries"]})]}),n.jsxs("div",{className:"list-container",children:[h.recentEntries.length===0&&n.jsx("div",{className:"empty-state",children:"No recent activity"}),h.recentEntries.slice(-50).reverse().map((M,R)=>n.jsx("div",{className:"list-item",style:{fontSize:"0.75rem"},children:n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(M.timestamp).toLocaleTimeString()}),n.jsxs("span",{style:{color:"#38bdf8",fontWeight:500},children:["@",M.agent]}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",color:"#cbd5e1"},children:M.action})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:M.estimatedTokens>1e3?"#eab308":"#64748b"},children:[ws(M.estimatedTokens)," tok"]}),n.jsxs("span",{style:{color:"#64748b"},children:["~$",(M.estimatedTokens/1e3*Xo).toFixed(5)]}),M.error&&n.jsx("span",{style:{color:"#ef4444"},title:M.error,children:"⚠"})]})]})},R))]})]}),n.jsxs("div",{style:{fontSize:"0.75rem",color:"#64748b",padding:"8px 0",textAlign:"center"},children:[n.jsx("strong",{children:"Note:"})," Token estimates are based on tool call payload sizes (1 token ≈ 4 characters). Actual token usage may vary by AI provider. Pricing based on ~$",Xo,"/1K tokens (Claude Sonnet pricing). Does not include AI response tokens or system prompt tokens."]})]})}const Kg=`
373
+ }`,n.jsx("span",{style:{float:"right",color:T==="net-json"?"#22c55e":"#64748b"},children:T==="net-json"?"✓ Copied":"📋"})]})]})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Hn,{size:18})," Environment Variables"]})}),n.jsx("div",{style:{padding:12},children:n.jsxs("table",{style:{width:"100%",fontSize:"0.8rem",borderCollapse:"collapse"},children:[n.jsx("thead",{children:n.jsxs("tr",{style:{color:"#64748b",borderBottom:"1px solid #1e293b"},children:[n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Variable"}),n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Default"}),n.jsx("th",{style:{textAlign:"left",padding:"6px 8px"},children:"Description"})]})}),n.jsxs("tbody",{children:[n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_TRANSPORT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"unified"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{children:"unified"})," (recommended): MCP + Dashboard on single port",n.jsx("br",{}),n.jsx("strong",{children:"stdio"}),": MCP only, dashboard separate"]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_AUTH_TOKEN"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"-"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{style:{color:"#22c55e"},children:"Security!"})," API Key. If set, all requests require ",n.jsx("code",{children:"Authorization: Bearer <token>"}),"."]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_AUTH_USERS"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"-"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:["Per-user tokens: ",n.jsx("code",{children:"ali:key1,veli:key2"})]})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_PORT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"5858"}),n.jsx("td",{style:{padding:"8px",color:"#94a3b8"},children:"Server port"})]}),n.jsxs("tr",{style:{borderBottom:"1px solid #1e293b"},children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"MCP_HOST"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"0.0.0.0"}),n.jsxs("td",{style:{padding:"8px",color:"#94a3b8"},children:[n.jsx("strong",{children:"0.0.0.0"}),": Open (network)",n.jsx("br",{}),n.jsx("strong",{children:"localhost"}),": Secure (solo)"]})]}),n.jsxs("tr",{children:[n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#ef4444"},children:"ATABEY_PROJECT_ROOT"}),n.jsx("td",{style:{padding:"8px",fontFamily:"monospace",color:"#64748b"},children:"process.cwd()"}),n.jsx("td",{style:{padding:"8px",color:"#94a3b8"},children:"Project root directory (required in SSE mode)"})]})]})]})})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Quick Reference"})}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:8,fontSize:"0.8rem"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"Dashboard URL"}),n.jsxs("span",{onClick:()=>S(M.dashboardUrl,"dash-url"),style:{fontFamily:"monospace",color:"#ef4444",cursor:"pointer"},children:[M.dashboardUrl," ",T==="dash-url"?"✓":"📋"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"MCP SSE URL"}),n.jsxs("span",{onClick:()=>S(M.mcpSseUrl,"sse-url"),style:{fontFamily:"monospace",color:"#22c55e",cursor:"pointer"},children:[M.mcpSseUrl," ",T==="sse-url"?"✓":"📋"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0",borderBottom:"1px solid #1e293b"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"WebSocket URL"}),n.jsxs("span",{style:{fontFamily:"monospace",color:"#a78bfa"},children:["ws://",M.host,":",M.port,"/ws"]})]}),n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"6px 0"},children:[n.jsx("span",{style:{color:"#94a3b8"},children:"API Health"}),n.jsxs("span",{style:{fontFamily:"monospace",color:"#22c55e"},children:["http://",M.host,":",M.port,"/api/health"]})]})]})]})]})}function Lg(){const{data:c,loading:r,error:d}=ht("/memory/search",15e3),[u,m]=H.useState([]),[x,T]=H.useState(""),[j,N]=H.useState(null),[h,g]=H.useState(!1);Bl({handlers:{memory_update:O=>{const B=O;B.id&&m(Z=>[B,...Z].slice(0,100))}}});const S=u.length?u:Array.isArray(c)?c:[];Array.isArray(c)&&u.length===0&&c.length>0&&m(c);const M=async()=>{if(!x.trim()){N(null);return}g(!0);try{const B=await(await fetch(`/api/memory/search?q=${encodeURIComponent(x)}&limit=10`)).json();N(B.data||[])}catch{N([])}g(!1)},R=j!==null?j:S;return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(hu,{size:20})," Memory Insights"]}),n.jsxs("span",{className:"badge",children:[S.length," entries"]})]}),n.jsxs("div",{className:"search-bar",children:[n.jsx("input",{type:"text",placeholder:"Search vector memory...",value:x,onChange:O=>T(O.target.value),onKeyDown:O=>O.key==="Enter"&&M(),className:"search-input"}),n.jsx("button",{className:"btn btn-ghost",onClick:M,disabled:h,children:h?"...":n.jsxs(n.Fragment,{children:[n.jsx(by,{size:14})," Search"]})}),j!==null&&n.jsxs("button",{className:"btn btn-ghost",onClick:()=>{N(null),T("")},children:[n.jsx(mu,{size:14})," Clear"]})]}),r&&!S.length&&n.jsx("div",{className:"empty-state",children:"Loading memory..."}),d&&!S.length&&n.jsxs("div",{className:"error",children:["Error: ",d]}),n.jsxs("div",{className:"list-container",children:[R.length===0&&n.jsx("div",{className:"empty-state",children:j!==null?"No results found":"No memory entries"}),R.slice(0,50).map((O,B)=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{className:"memory-meta",children:[n.jsx("span",{className:"memory-tag",children:O.type||"memory"}),O.relevance!==void 0&&n.jsxs("span",{className:O.relevance>.7?"status-ready":O.relevance>.4?"status-executing":"text-muted",children:[(O.relevance*100).toFixed(0),"% match"]}),n.jsx("span",{className:"trace-id",style:{marginLeft:"auto"},children:new Date(O.timestamp).toLocaleString()})]}),n.jsxs("div",{className:"memory-text",children:[O.content.substring(0,200),O.content.length>200?"...":""]})]},O.id||B))]})]})}function Bg(){const{data:c,loading:r}=ht("/tasks",5e3),[d,u]=H.useState("ALL"),[m,x]=H.useState(null),T=c||[],j=d==="ALL"?T:T.filter(h=>h.status===d),N={total:T.length,pending:T.filter(h=>h.status==="PENDING").length,inProgress:T.filter(h=>h.status==="IN_PROGRESS").length,completed:T.filter(h=>h.status==="COMPLETED").length,blocked:T.filter(h=>h.status==="BLOCKED"||h.status==="FAILED").length};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(yy,{size:20})," Task Planner"]}),n.jsxs("span",{className:"badge",children:[T.length," tasks"]})]}),n.jsxs("div",{className:"stats-grid",children:[n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:N.total}),n.jsx("span",{className:"stat-label",children:"Total"})]}),n.jsxs("div",{className:"stat-box warn",children:[n.jsx("span",{className:"stat-count",children:N.pending}),n.jsx("span",{className:"stat-label",children:"Pending"})]}),n.jsxs("div",{className:"stat-box info",children:[n.jsx("span",{className:"stat-count",children:N.inProgress}),n.jsx("span",{className:"stat-label",children:"In Progress"})]}),n.jsxs("div",{className:"stat-box pass",children:[n.jsx("span",{className:"stat-count",children:N.completed}),n.jsx("span",{className:"stat-label",children:"Completed"})]}),n.jsxs("div",{className:"stat-box fail",children:[n.jsx("span",{className:"stat-count",children:N.blocked}),n.jsx("span",{className:"stat-label",children:"Blocked"})]})]}),n.jsx("div",{className:"filter-tabs",children:["ALL","PENDING","IN_PROGRESS","COMPLETED","BLOCKED","FAILED"].map(h=>n.jsx("button",{className:`filter-tab ${d===h?"active":""}`,onClick:()=>u(h),children:h.replace("_"," ")},h))}),r&&!T.length&&n.jsx("div",{className:"empty-state",children:"Loading plans..."}),n.jsxs("div",{className:"list-container",children:[j.length===0&&n.jsx("div",{className:"empty-state",children:"No tasks found"}),j.slice(0,50).map(h=>{const g=m===h.id,S=h.status.toLowerCase();return n.jsxs("div",{className:`list-item task-item ${S}`,onClick:()=>x(g?null:h.id),children:[n.jsxs("div",{className:"task-header",children:[n.jsx("span",{className:"trace-id",children:h.traceId}),n.jsxs("span",{className:"task-agent",children:["@",h.agent]}),n.jsx("span",{className:`task-status-badge ${S}`,children:h.status.replace("_"," ")}),n.jsx("span",{className:"text-muted",style:{marginLeft:"auto"},children:h.priority}),g?n.jsx(hy,{size:14,className:"text-muted"}):n.jsx(fy,{size:14,className:"text-muted"})]}),n.jsx("div",{className:"text-secondary text-sm",children:h.description}),g&&n.jsxs("div",{className:"task-details",children:[n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Created:"}),n.jsx("span",{className:"detail-value",children:h.createdAt?new Date(h.createdAt).toLocaleString():"Unknown"})]}),h.dependencies.length>0&&n.jsxs("div",{className:"detail-row",children:[n.jsx("span",{className:"detail-label",children:"Depends on:"}),n.jsx("span",{className:"detail-value",children:h.dependencies.join(", ")})]})]})]},h.id)})]})]})}const Hg={USER_DATA:"var(--color-accent-primary)",SECURITY:"var(--color-accent-primary)",COMPLIANCE:"var(--color-success)",OPERATIONAL:"var(--color-accent-primary)",CONFIDENTIAL:"var(--color-warning)",RESTRICTED:"var(--color-accent-primary)"};function qg(){var le,se,pe,Ce;const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(""),[N,h]=H.useState(!1),[g,S]=H.useState(null),[M,R]=H.useState(null),[O,B]=H.useState("ALL"),Z=async()=>{u(!0);try{const F=await fetch("/api/audit");if(!F.ok)throw new Error("Failed to fetch privacy audit logs");const ge=await F.json();if(ge.success)r(ge.data);else throw new Error("API returned failure status");x(null)}catch(F){x(F.message)}finally{u(!1)}};H.useEffect(()=>{Z()},[]);const V=async F=>{if(F.preventDefault(),T!=="KVKK-RIGHT-TO-ERASURE"){alert("Please enter the correct confirmation code: KVKK-RIGHT-TO-ERASURE");return}if(confirm("Are you sure you want to execute Right to Erasure? This will permanently delete all logs containing personal data.")){h(!0),S(null);try{const Ue=await(await fetch("/api/audit/erase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirmationCode:T})})).json();if(Ue.success)S(Ue.message),j(""),Z();else throw new Error(Ue.error||"Erasure failed")}catch(ge){alert("Erasure failed: "+ge.message)}finally{h(!1)}}};if(d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading GDPR/KVKK Privacy Logs..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(iu,{size:20,style:{color:"var(--color-error)"}})," Privacy Governance Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const q=c==null?void 0:c.stats,Q=(c==null?void 0:c.entries)||[],G=((le=q==null?void 0:q.byAction)==null?void 0:le.MASK_PII)||((se=q==null?void 0:q.byAction)==null?void 0:se.PII_MASKED)||0,te=((pe=q==null?void 0:q.byAction)==null?void 0:pe.PII_DETECTED)||0,ie=O==="ALL"?Q:Q.filter(F=>F.dataCategory===O);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(il,{size:28,style:{color:"var(--color-accent-primary)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"GDPR & KVKK Compliance Auditor"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Automated PII Masking, Data Retention TTL & Erasure Log"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:Z,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(iu,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Total Audit Entries"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:(q==null?void 0:q.total)||0}),n.jsx("div",{className:"stat-card-desc",children:"Evaluated compliance records"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ko,{size:16,style:{color:"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"PII Masked"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-success)"},children:G}),n.jsx("div",{className:"stat-card-desc",children:"Sensitive records scrubbed"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(gp,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"PII Detected"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-warning)"},children:te}),n.jsx("div",{className:"stat-card-desc",children:"Potential PII flagged"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cp,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"Data Retention TTL"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-warning)"},children:"30 Days"}),n.jsx("div",{className:"stat-card-desc",children:"Auto-deleted after expiry"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hm,{size:16,style:{color:"var(--color-error)"}}),n.jsx("span",{className:"stat-title",children:"Expired Cleaned"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-error)"},children:(q==null?void 0:q.expiredCount)||0}),n.jsx("div",{className:"stat-card-desc",children:"Records removed by TTL"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(zp,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Restricted Data"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"var(--color-accent-primary)"},children:((Ce=q==null?void 0:q.byCategory)==null?void 0:Ce.RESTRICTED)||0}),n.jsx("div",{className:"stat-card-desc",children:"Highest sensitivity level"})]})]})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(Hm,{size:18,style:{color:"var(--color-error)"}})," GDPR Art. 17 & KVKK Art. 7 Data Subject Erasure"]})}),n.jsxs("div",{style:{padding:12},children:[n.jsxs("p",{style:{fontSize:"0.85rem",color:"var(--color-text-soft)",marginBottom:12},children:["Simulate the ",n.jsx("strong",{children:"Right to Erasure (Unutulma Hakkı)"}),". If a user requests erasure of their personal data, entering the validation code below will wipe their personal data entries from Atabey."]}),n.jsxs("form",{onSubmit:V,style:{display:"flex",flexDirection:"column",gap:8},children:[n.jsx("input",{type:"text",placeholder:"Enter confirmation: KVKK-RIGHT-TO-ERASURE",value:T,onChange:F=>j(F.target.value),style:{padding:"8px 12px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.85rem"}}),n.jsx("button",{type:"submit",disabled:N||T!=="KVKK-RIGHT-TO-ERASURE",style:{padding:"8px 12px",borderRadius:4,background:T==="KVKK-RIGHT-TO-ERASURE"?"var(--color-accent-primary)":"#1f2937",color:"#fff",border:"none",cursor:T==="KVKK-RIGHT-TO-ERASURE"?"pointer":"not-allowed",fontWeight:600,fontSize:"0.85rem"},children:N?"Processing Erasure...":"Execute Right to Erasure"})]}),g&&n.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(34, 197, 94, 0.1)",border:"1px solid var(--color-success)",borderRadius:4,color:"var(--color-success)",fontSize:"0.8rem"},children:g})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Data Classification Breakdown"}),n.jsxs("span",{className:"badge",children:[n.jsx(Ep,{size:12,style:{marginRight:4}}),Object.keys((q==null?void 0:q.byCategory)||{}).length," categories"]})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:10},children:[Object.entries((q==null?void 0:q.byCategory)||{}).map(([F,ge])=>{const Ue=q!=null&&q.total?Math.round(ge/q.total*100):0,qe=Hg[F]||"var(--color-accent-primary)";let De="Standard";return(F==="USER_DATA"||F==="CONFIDENTIAL")&&(De="Confidential"),(F==="SECURITY"||F==="RESTRICTED")&&(De="Restricted"),n.jsxs("div",{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",marginBottom:4},children:[n.jsxs("span",{style:{fontWeight:500},children:[F,n.jsx("span",{style:{marginLeft:6,fontSize:"0.65rem",padding:"1px 4px",borderRadius:2,background:De==="Restricted"?"rgba(239, 68, 68, 0.15)":"rgba(234, 179, 8, 0.15)",color:De==="Restricted"?"var(--color-error)":"var(--color-warning)"},children:De})]}),n.jsxs("span",{style:{color:"var(--color-text-soft)"},children:[ge," (",Ue,"%)"]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${Ue}%`,background:qe,borderRadius:4,transition:"width 0.3s ease"}})})]},F)}),Object.keys((q==null?void 0:q.byCategory)||{}).length===0&&n.jsx("div",{className:"empty-state",children:"No classified categories recorded yet"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"PII Compliance Audit Trail"}),n.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[n.jsxs("select",{value:O,onChange:F=>B(F.target.value),style:{padding:"4px 8px",borderRadius:4,border:"1px solid var(--color-border)",background:"var(--color-bg)",color:"var(--color-text-primary)",fontSize:"0.75rem"},children:[n.jsx("option",{value:"ALL",children:"All Categories"}),n.jsx("option",{value:"USER_DATA",children:"User Data"}),n.jsx("option",{value:"SECURITY",children:"Security"}),n.jsx("option",{value:"COMPLIANCE",children:"Compliance"}),n.jsx("option",{value:"OPERATIONAL",children:"Operational"}),n.jsx("option",{value:"RESTRICTED",children:"Restricted"}),n.jsx("option",{value:"CONFIDENTIAL",children:"Confidential"})]}),n.jsxs("span",{className:"badge",children:[ie.length," events"]})]})]}),n.jsxs("div",{className:"list-container",children:[ie.length===0&&n.jsx("div",{className:"empty-state",children:"No compliance events logged yet"}),ie.map((F,ge)=>{const Ue=M===ge,qe=F.dataCategory==="USER_DATA",De=F.dataCategory==="RESTRICTED";let D="3px solid var(--color-dim)";return qe&&(D="3px solid var(--color-accent-primary)"),De&&(D="3px solid var(--color-error)"),n.jsxs("div",{className:"list-item",style:{borderLeft:D,cursor:"pointer",background:Ue?"rgba(255, 255, 255, 0.02)":void 0},onClick:()=>R(Ue?null:ge),children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:4},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",fontSize:"0.8rem"},children:[n.jsx("span",{style:{color:"var(--color-dim)"},children:new Date(F.timestamp).toLocaleTimeString()}),n.jsx("span",{style:{color:"var(--color-accent-primary)",fontWeight:500},children:F.agent}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:qe?"var(--color-accent-glow)":"rgba(59, 130, 246, 0.1)",color:"var(--color-accent-primary)"},children:F.dataCategory||"OPERATIONAL"}),n.jsx("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:F.status==="SUCCESS"?"rgba(34, 197, 94, 0.1)":"rgba(239, 68, 68, 0.1)",color:F.status==="SUCCESS"?"var(--color-success)":"var(--color-error)"},children:F.status})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[F.action.toLowerCase().includes("pii")||F.action.toLowerCase().includes("mask")?n.jsxs("span",{style:{fontSize:"0.65rem",padding:"1px 6px",borderRadius:3,background:"rgba(16, 185, 129, 0.1)",color:"var(--color-success)",display:"flex",alignItems:"center",gap:3},children:[n.jsx(Ko,{size:10})," Masked"]}):null,n.jsxs("span",{style:{fontSize:"0.7rem",color:"var(--color-dim)"},children:["TTL: ",F.retentionDays||30,"d"]})]})]}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-text-soft)"},children:[n.jsx("strong",{style:{color:"var(--color-text-primary)"},children:F.action}),F.details&&n.jsxs("span",{style:{marginLeft:8,fontSize:"0.7rem",color:"var(--color-success)",background:"rgba(16, 185, 129, 0.1)",padding:"1px 6px",borderRadius:2,display:"inline-flex",alignItems:"center",gap:3},children:[n.jsx(Ko,{size:10})," PII Auto-Redacted"]})]}),Ue&&F.details&&n.jsxs("div",{onClick:Y=>Y.stopPropagation(),style:{marginTop:10,padding:10,background:"var(--color-code-bg)",border:"1px solid var(--color-code-border)",borderRadius:4,fontSize:"0.8rem",fontFamily:"monospace",color:"var(--color-success)",overflowX:"auto"},children:[n.jsxs("div",{style:{color:"var(--color-text-soft)",borderBottom:"1px solid var(--color-code-border)",paddingBottom:4,marginBottom:6,display:"flex",justifyContent:"space-between"},children:[n.jsx("span",{children:"[KVKK / GDPR Compliance Details]"}),n.jsx("span",{style:{color:"var(--color-accent-primary)"},children:"PII auto-redacted"})]}),n.jsx("pre",{style:{margin:0},children:JSON.stringify(F.details,null,2)})]}),Ue&&F.traceId&&n.jsxs("div",{style:{marginTop:6,fontSize:"0.75rem",color:"var(--color-dim)",fontFamily:"monospace"},children:["Trace: ",F.traceId]})]},F.id||ge)})]})]})]})}function Qg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/quality?path=src").then(j=>j.json()).then(j=>{j.success&&r(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,1e4);return()=>clearInterval(T)},[]);const m={"any-type":"#ef4444",complexity:"#f59e0b"};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(cl,{size:20})," Quality Gate Analysis"]}),c&&n.jsxs("span",{className:"badge",style:{background:c.totalIssues>0?"var(--color-accent-glow)":"var(--color-border)",color:c.totalIssues>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[c.totalIssues," issues"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Analyzing codebase..."}),c&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"stats-grid",style:{gridTemplateColumns:"1fr 1fr",margin:"0 0 12px 0"},children:[n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.anyTypes>0?"var(--color-accent-primary)":"#22c55e"},children:c.anyTypes}),n.jsx("span",{className:"stat-label",children:"any types"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.longFunctions>0?"#f59e0b":"#22c55e"},children:c.longFunctions}),n.jsx("span",{className:"stat-label",children:"long funcs"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",style:{color:c.deepNesting>0?"#f59e0b":"#22c55e"},children:c.deepNesting}),n.jsx("span",{className:"stat-label",children:"deep nesting"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:c.totalFiles}),n.jsxs("span",{className:"stat-label",children:[n.jsx(Sp,{size:12,style:{display:"inline",marginRight:2}}),"files scanned"]})]})]}),n.jsxs("div",{className:"list-container",style:{maxHeight:200},children:[c.issues.length===0&&n.jsx("div",{className:"empty-state",children:"No quality issues found"}),c.issues.map((x,T)=>{const j=m[x.type]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${j}`},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:2,fontSize:"0.75rem"},children:[n.jsxs("span",{style:{padding:"1px 6px",borderRadius:3,fontSize:"0.65rem",background:`${j}20`,color:j,display:"flex",alignItems:"center",gap:2},children:[n.jsx(ot,{size:10}),x.type]}),n.jsx("span",{className:"trace-id",style:{fontSize:"0.65rem"},children:x.file})]}),n.jsx("div",{style:{fontSize:"0.8rem",color:"#cbd5e1"},children:x.message})]},T)})]})]})]})}function Gg(){var h,g,S,M,R,O,B,Z;const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),T=async()=>{u(!0);try{const V=await fetch("/api/telemetry");if(!V.ok)throw new Error(`HTTP ${V.status}`);const q=await V.json();if(q.success)r(q.data);else throw new Error(q.error||"Failed to fetch telemetry status");x(null)}catch(V){x(V.message)}finally{u(!1)}};if(H.useEffect(()=>{T();const V=setInterval(T,1e4);return()=>clearInterval(V)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Telemetry Status..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"var(--color-error)"}})," Telemetry Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const j=(c==null?void 0:c.serverUrl)&&c.serverUrl.length>0,N=c?c.eventsThisMinute/(((h=c.config)==null?void 0:h.MAX_EVENTS_PER_MINUTE)||200)*100:0;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #0a1a2a 100%)",border:"1px solid #1e3a5f"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #1e3a5f"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(op,{size:28,style:{color:j?"var(--color-success)":"var(--color-text-soft)"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"var(--color-heading)"},children:"Telemetry Streamer"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"var(--color-text-soft)"},children:"Edge-to-Cloud Event Streaming"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:T,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[c!=null&&c.enabled?n.jsx(Ll,{size:16,style:{color:"var(--color-success)"}}):n.jsx(ot,{size:16,style:{color:"var(--color-warning)"}}),n.jsx("span",{className:"stat-title",children:"Status"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:c!=null&&c.enabled?"var(--color-success)":"var(--color-warning)"},children:c!=null&&c.enabled?"Active":"Disabled"}),n.jsx("div",{className:"stat-card-desc",children:c!=null&&c.enabled?"Streaming enabled":"Telemetry off"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[j?n.jsx(vc,{size:16,style:{color:"var(--color-success)"}}):n.jsx(xg,{size:16,style:{color:"var(--color-text-soft)"}}),n.jsx("span",{className:"stat-title",children:"Server"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:j?"var(--color-success)":"var(--color-text-soft)"},children:j?"Connected":"Offline"}),n.jsx("div",{className:"stat-card-desc",children:j?new URL(c.serverUrl).hostname:"No server configured"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(fp,{size:16,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Queue"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:(c==null?void 0:c.queueSize)||0}),n.jsx("div",{className:"stat-card-desc",children:"Pending events"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:N>80?"var(--color-warning)":"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"Rate"})]}),n.jsxs("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:[(c==null?void 0:c.eventsThisMinute)||0,"/min"]}),n.jsx("div",{className:"stat-card-desc",children:"Events this minute"})]})]}),(c==null?void 0:c.wsConnected)&&n.jsxs("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(34, 197, 94, 0.1)",border:"1px solid rgba(34, 197, 94, 0.3)",borderRadius:6,color:"var(--color-success)",fontSize:"0.85rem",display:"flex",alignItems:"center",gap:8},children:[n.jsx(vc,{size:14})," WebSocket connected — real-time streaming active"]}),!j&&(c==null?void 0:c.enabled)&&n.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(234, 179, 8, 0.1)",border:"1px solid rgba(234, 179, 8, 0.3)",borderRadius:6,color:"var(--color-warning)",fontSize:"0.85rem"},children:"⚠️ Telemetry enabled but no server URL configured. Events will be saved to local fallback."})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Stream Configuration"})}),n.jsxs("div",{style:{padding:12,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:12},children:[n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Server URL"}),n.jsx("div",{style:{fontSize:"0.85rem",color:c!=null&&c.serverUrl?"var(--color-accent-primary)":"var(--color-text-soft)"},children:(c==null?void 0:c.serverUrl)||"Not configured"})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Batch Size"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[((g=c==null?void 0:c.config)==null?void 0:g.BATCH_SIZE)||50," events"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Flush Interval"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[(((S=c==null?void 0:c.config)==null?void 0:S.FLUSH_INTERVAL_MS)||3e4)/1e3,"s"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Max Retries"}),n.jsx("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:((M=c==null?void 0:c.config)==null?void 0:M.MAX_RETRIES)||3})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Rate Limit"}),n.jsxs("div",{style:{fontSize:"0.85rem",color:"var(--color-heading)"},children:[((R=c==null?void 0:c.config)==null?void 0:R.MAX_EVENTS_PER_MINUTE)||200,"/min"]})]}),n.jsxs("div",{style:{background:"#111827",padding:"10px 12px",borderRadius:6,border:"1px solid #1f2937"},children:[n.jsx("div",{style:{fontSize:"0.7rem",color:"var(--color-dim)",marginBottom:2},children:"Transport"}),n.jsx("div",{style:{fontSize:"0.85rem",color:(O=c==null?void 0:c.config)!=null&&O.USE_WEBSOCKET?"var(--color-success)":"var(--color-accent-primary)"},children:(B=c==null?void 0:c.config)!=null&&B.USE_WEBSOCKET?"WebSocket":"HTTPS Batch"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsx("h2",{children:"Data Flow Diagram"})}),n.jsxs("div",{style:{padding:16,fontSize:"0.75rem",color:"var(--color-dim)",fontFamily:"monospace",lineHeight:1.8},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[n.jsx("span",{style:{color:"var(--color-accent-primary)"},children:"[Local MCP]"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:"var(--color-warning)"},children:"SQLite Queue"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:"var(--color-accent-muted)"},children:"Batch Processor"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:j?"var(--color-success)":"var(--color-text-soft)"},children:(Z=c==null?void 0:c.config)!=null&&Z.USE_WEBSOCKET?"WebSocket":"HTTPS"}),n.jsx("span",{children:"→"}),n.jsx("span",{style:{color:j?"var(--color-success)":"var(--color-text-soft)"},children:j?"[Enterprise Server]":"[Local Fallback JSONL]"})]}),n.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,flexWrap:"wrap"},children:[n.jsx("span",{children:"🔒 PII masked before transmission"}),n.jsx("span",{children:"🔄 Retry with exponential backoff"}),n.jsxs("span",{children:["📁 Fallback: ",c!=null&&c.serverUrl?"pending-events.jsonl":"local storage"]})]})]})]})]})}const Xo=.003;function ws(c){return c>=1e6?(c/1e6).toFixed(1)+"M":c>=1e3?(c/1e3).toFixed(1)+"K":c.toString()}function qm(c){return c<1?"< $0.01":`$${c.toFixed(2)}`}function Yg(){const[c,r]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("tokens"),N=async()=>{u(!0);try{const M=await fetch("/api/metrics");if(!M.ok)throw new Error(`HTTP ${M.status}`);const R=await M.json();if(R.success)r(R.data);else throw new Error(R.error||"Failed to fetch metrics");x(null)}catch(M){x(M.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const M=setInterval(N,1e4);return()=>clearInterval(M)},[]),d&&!c)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Token Economy Metrics..."})});if(m&&!c)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(ot,{size:20,style:{color:"#ef4444"}})," Token Economy Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const h=c,g=Object.entries(h.byAgent).sort((M,R)=>T==="tokens"?R[1].tokens-M[1].tokens:R[1].calls-M[1].calls),S=Math.max(...g.map(([,M])=>M.tokens),1);return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:"linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%)",border:"1px solid #312e81"},children:[n.jsxs("div",{className:"card-header",style:{borderBottom:"1px solid #312e81"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[n.jsx(Hn,{size:28,style:{color:"#38bdf8"}}),n.jsxs("div",{children:[n.jsx("h2",{style:{margin:0,fontSize:"1.25rem",color:"#f8fafc"},children:"Token Economy & Cost Tracking"}),n.jsx("p",{style:{margin:0,fontSize:"0.8rem",color:"#94a3b8"},children:"Estimated token usage based on tool call payload sizes (~1 token = 4 chars)"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:N,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),n.jsxs("div",{className:"quick-stats-grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,padding:"16px 0 0 0"},children:[n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(cl,{size:16,style:{color:"#38bdf8"}}),n.jsx("span",{className:"stat-title",children:"Total Tool Calls"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem"},children:ws(h.totalToolCalls)}),n.jsx("div",{className:"stat-card-desc",children:"MCP tool invocations"})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pc,{size:16,style:{color:"#eab308"}}),n.jsx("span",{className:"stat-title",children:"Est. Tokens"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#eab308"},children:ws(h.totalEstimatedTokens)}),n.jsxs("div",{className:"stat-card-desc",children:["~",h.totalEstimatedTokens>0?(h.totalEstimatedTokens/h.totalToolCalls).toFixed(0):0," tokens/call avg"]})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mc,{size:16,style:{color:"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Est. Cost"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#22c55e"},children:qm(h.totalEstimatedCost)}),n.jsxs("div",{className:"stat-card-desc",children:["At ~$",Xo,"/1K tokens"]})]}),n.jsxs("div",{className:"stat-card",style:{background:"#111827",borderColor:"#1f2937"},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(mg,{size:16,style:{color:"#a78bfa"}}),n.jsx("span",{className:"stat-title",children:"Cost Efficiency"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.5rem",color:"#a78bfa"},children:h.totalEstimatedCost>0?(h.totalToolCalls/h.totalEstimatedCost).toFixed(1):"N/A"}),n.jsx("div",{className:"stat-card-desc",children:"Calls per cent"})]})]})]}),n.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:16},children:[n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Token Usage by Agent"}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:`filter-tab ${T==="tokens"?"active":""}`,onClick:()=>j("tokens"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Tokens"}),n.jsx("button",{className:`filter-tab ${T==="calls"?"active":""}`,onClick:()=>j("calls"),style:{fontSize:"0.7rem",padding:"2px 8px"},children:"By Calls"})]})]}),n.jsxs("div",{style:{padding:12,display:"flex",flexDirection:"column",gap:8},children:[g.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),g.map(([M,R])=>{const O=R.tokens/S*100;return n.jsxs("div",{children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"0.8rem",marginBottom:2},children:[n.jsxs("span",{style:{fontWeight:500,color:"#38bdf8"},children:["@",M]}),n.jsxs("span",{style:{color:"#94a3b8"},children:[ws(R.tokens)," tokens · ",R.calls," calls · ",qm(R.cost)]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${O}%`,background:R.cost>.1?"#f43f5e":R.cost>.05?"#eab308":"#22c55e",borderRadius:4,transition:"width 0.3s ease",minWidth:O>0?4:0}})})]},M)})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Top Actions by Token Usage"}),n.jsxs("span",{className:"badge",children:[Object.keys(h.byAction).length," unique actions"]})]}),n.jsxs("div",{className:"list-container",children:[Object.entries(h.byAction).sort((M,R)=>R[1].tokens-M[1].tokens).slice(0,15).map(([M,R])=>{const O=R.tokens>1e4,B=M.includes("read")||M.includes("list"),Z=M.includes("write")||M.includes("replace");return n.jsxs("div",{className:"list-item",style:{fontSize:"0.8rem"},children:[n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:O?"#ef4444":B?"#38bdf8":Z?"#22c55e":"#64748b",display:"inline-block"}}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.75rem"},children:M})]}),n.jsxs("span",{style:{color:"#94a3b8",fontSize:"0.7rem"},children:[ws(R.tokens)," tokens · ",R.calls,"x"]})]}),O&&n.jsx("div",{style:{fontSize:"0.65rem",color:"#ef4444",marginTop:2},children:"⚠ High token consumption - consider optimizing"})]},M)}),Object.keys(h.byAction).length===0&&n.jsx("div",{className:"empty-state",children:"No actions recorded"})]})]})]}),n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsx("h2",{children:"Recent Tool Activity"}),n.jsxs("span",{className:"badge",children:[h.recentEntries.length," entries"]})]}),n.jsxs("div",{className:"list-container",children:[h.recentEntries.length===0&&n.jsx("div",{className:"empty-state",children:"No recent activity"}),h.recentEntries.slice(-50).reverse().map((M,R)=>n.jsx("div",{className:"list-item",style:{fontSize:"0.75rem"},children:n.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[n.jsx("span",{style:{color:"#64748b"},children:new Date(M.timestamp).toLocaleTimeString()}),n.jsxs("span",{style:{color:"#38bdf8",fontWeight:500},children:["@",M.agent]}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",color:"#cbd5e1"},children:M.action})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:M.estimatedTokens>1e3?"#eab308":"#64748b"},children:[ws(M.estimatedTokens)," tok"]}),n.jsxs("span",{style:{color:"#64748b"},children:["~$",(M.estimatedTokens/1e3*Xo).toFixed(5)]}),M.error&&n.jsx("span",{style:{color:"#ef4444"},title:M.error,children:"⚠"})]})]})},R))]})]}),n.jsxs("div",{style:{fontSize:"0.75rem",color:"#64748b",padding:"8px 0",textAlign:"center"},children:[n.jsx("strong",{children:"Note:"})," Token estimates are based on tool call payload sizes (1 token ≈ 4 characters). Actual token usage may vary by AI provider. Pricing based on ~$",Xo,"/1K tokens (Claude Sonnet pricing). Does not include AI response tokens or system prompt tokens."]})]})}const Kg=`
374
374
  /* ─── CSS Variables (Light/Dark Themes) ────────────── */
375
375
  :root {
376
376
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
@@ -1218,4 +1218,4 @@ a:hover { color: var(--color-accent-hover); text-decoration: underline; }
1218
1218
  .animate-fade-in {
1219
1219
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
1220
1220
  }
1221
- `,zn=[{id:"dashboard",label:"Overview",Component:null,desc:"Governance Overview",icon:kp},{id:"agents",label:"Specialists",Component:jy,desc:"13 Governed Specialists",icon:Ls},{id:"hermes",label:"Hermes",Component:Ny,desc:"Message Queue Stats",icon:pc},{id:"messages",label:"Audit Trail",Component:Rg,desc:"Hermes Message Queue",icon:py},{id:"approvals",label:"HITL Gates",Component:Sy,desc:"Human-in-the-Loop Gates",icon:il},{id:"tasks",label:"Tasks",Component:Bg,desc:"Task Planning & DAG",icon:yy},{id:"logs",label:"Execution",Component:zy,desc:"Specialist Execution Logs",icon:xy},{id:"quality",label:"Quality",Component:Qg,desc:"Code Quality Analysis",icon:cl},{id:"errors",label:"Exceptions",Component:Mg,desc:"Policy & Audit Exceptions",icon:ot},{id:"memory",label:"Memory",Component:Lg,desc:"Vector Memory Search",icon:hu},{id:"compliance",label:"Compliance",Component:Eg,desc:"Quality Gate Status",icon:Ll},{id:"finops",label:"FinOps",Component:Og,desc:"Budget & Cost Management",icon:mc},{id:"loop",label:"Loop Detector",Component:wg,desc:"Loop Prevention & Cooldowns",icon:Bn},{id:"license",label:"License",Component:kg,desc:"SPDX & Copyleft Scanner",icon:uy},{id:"telemetry",label:"Telemetry",Component:Gg,desc:"Edge-to-Cloud Streaming",icon:vc},{id:"privacy",label:"GDPR / KVKK",Component:qg,desc:"GDPR & KVKK Compliance",icon:il},{id:"discipline",label:"Discipline",Component:Ag,desc:"AI Discipline & Rules",icon:Bn},{id:"mcp",label:"MCP Setup",Component:Ug,desc:"MCP Configuration",icon:yc},{id:"adapters",label:"Adapters",Component:zg,desc:"Adapter-Skill Mapping",icon:gy},{id:"tokens",label:"Token Econ",Component:Yg,desc:"Token Economy & Cost",icon:Hn}],Xg={};zn.forEach(c=>{Xg[c.id]=c.icon});const Vg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function Zg({onNavigate:c}){var le,se,pe,Ce,F,ge,Ue,qe,ke;const{data:r}=ht("/agents",5e3),{data:d}=ht("/hermes/stats",5e3),{data:u}=ht("/approvals",5e3),{data:m}=ht("/compliance?path=src",1e4),x=Array.isArray(r)?r.filter(k=>k.state!=="READY"&&k.state!=="Idle").length:0,T=Vg.length,j=(d==null?void 0:d.pending)??0,N=Array.isArray(u)?u.filter(k=>k.status==="PENDING").length:0,h=((le=m==null?void 0:m.summary)==null?void 0:le.totalViolations)??0,{data:g}=ht("/audit",1e4),S=((pe=(se=g==null?void 0:g.stats)==null?void 0:se.byAction)==null?void 0:pe.MASK_PII)||((F=(Ce=g==null?void 0:g.stats)==null?void 0:Ce.byAction)==null?void 0:F.PII_MASKED)||0,M=((Ue=(ge=g==null?void 0:g.stats)==null?void 0:ge.byAction)==null?void 0:Ue.PII_DETECTED)||0,R=((ke=(qe=g==null?void 0:g.stats)==null?void 0:qe.byCategory)==null?void 0:ke.RESTRICTED)||0,{data:O}=ht("/metrics",1e4),B=(O==null?void 0:O.totalToolCalls)??0,Z=(O==null?void 0:O.totalEstimatedTokens)??0,V=(O==null?void 0:O.totalEstimatedCost)??0,{data:q}=ht("/mcp/sessions",1e4),Q=(q==null?void 0:q.total)??0,{data:G}=ht("/discipline",1e4),te=Object.values(G||{}).reduce((k,Y)=>k+(Y.violations||0),0),ie=Object.values(G||{}).some(k=>k.inCooldown);return n.jsxs("div",{className:"dashboard-overview animate-fade-in",children:[n.jsxs("div",{className:"hero-banner",children:[n.jsxs("div",{className:"hero-title-group",children:[n.jsx("h1",{children:"Governance Plane"}),n.jsxs("p",{style:{marginTop:"0.25rem",fontSize:"0.85rem",opacity:.8},children:["Governance Engine: ",n.jsx("span",{style:{color:"var(--color-success)",fontWeight:600},children:"Active"})," | Policy Target: ",n.jsx("span",{style:{color:"var(--color-highlight)",fontWeight:600},children:"Phase 0 Enforced"})]})]}),n.jsx("div",{className:"hero-meta",children:n.jsx("span",{className:"hero-badge",children:"v0.0.14"})})]}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("agents"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ls,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Specialists"})]}),n.jsxs("div",{className:"stat-card-value",children:[x," / ",T]}),n.jsx("div",{className:"stat-card-desc",children:"Governed specialist nodes active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("hermes"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pc,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Hermes Queue"})]}),n.jsx("div",{className:"stat-card-value",children:j}),n.jsx("div",{className:"stat-card-desc",children:"Pending messages in transit"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("approvals"),style:{borderColor:N>0?"var(--color-accent-primary)":void 0,background:N>0?"var(--color-accent-glow)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"HITL Gates"})]}),n.jsx("div",{className:"stat-card-value",style:{color:N>0?"var(--color-accent-primary)":void 0},children:N}),n.jsx("div",{className:"stat-card-desc",children:N>0?"Manual overrides pending":"All gates clear"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("compliance"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Gate Auditing"})]}),n.jsx("div",{className:"stat-card-value",style:{color:h>0?"var(--color-warning)":void 0},children:h}),n.jsx("div",{className:"stat-card-desc",children:"Quality Gate violations"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("privacy"),style:{borderColor:M>0?"var(--color-accent-primary)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:20,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"GDPR / KVKK"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-primary)",fontSize:"1.1rem"},children:S>0?`${S} masked`:"Active"}),n.jsx("div",{className:"stat-card-desc",children:M>0?`${M} PII · ${R} restricted`:"PII masking active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("discipline"),style:{borderColor:ie?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:20,style:{color:te>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Discipline"})]}),n.jsx("div",{className:"stat-card-value",style:{color:te>0?"var(--color-error)":"var(--color-success)",fontSize:"1.1rem"},children:te>0?`${te} violations`:"All Clean"}),n.jsx("div",{className:"stat-card-desc",children:ie?"Agent(s) in cooldown":"All agents compliant"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("mcp"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(yc,{size:20,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"MCP Server"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-primary)",fontSize:"1.1rem"},children:Q>0?`${Q} session(s)`:"Ready"}),n.jsx("div",{className:"stat-card-desc",children:Q>0?"AI clients connected":"Waiting for AI clients"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("tokens"),style:{borderColor:V>.1?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:20,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Token Economy"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-muted)",fontSize:"1.1rem"},children:B>0?`${B} calls`:"Active"}),n.jsx("div",{className:"stat-card-desc",children:Z>0?`${(Z/1e3).toFixed(1)}K tokens · ~$${V.toFixed(2)}`:"Tracking tool call metrics"})]})]}),n.jsxs("div",{className:"dashboard-grid",children:[n.jsx(jy,{}),n.jsx(Ny,{}),n.jsx("div",{className:"card-full",children:n.jsx(Sy,{})}),n.jsx("div",{className:"card-full",children:n.jsx(zy,{})})]})]})}function Jg(){const[c,r]=H.useState("dashboard"),[d,u]=H.useState(!1),[m,x]=H.useState(()=>localStorage.getItem("atabey-theme")||"dark"),T=Bl();H.useEffect(()=>{document.documentElement.classList.remove("theme-dark","theme-light"),document.documentElement.classList.add(`theme-${m}`)},[m]);const j=()=>{const g=m==="dark"?"light":"dark";x(g),localStorage.setItem("atabey-theme",g)},N=zn.find(g=>g.id===c)||zn[0],h=N.Component;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:Kg}),n.jsx("div",{className:`sidebar-overlay ${d?"open":""}`,onClick:()=>u(!1)}),n.jsxs("div",{className:"app-shell",children:[n.jsxs("aside",{className:`sidebar ${d?"open":""}`,children:[n.jsx("div",{className:"sidebar-header",children:n.jsx("span",{className:"sidebar-logo",children:"[ATABEY]"})}),n.jsx("nav",{className:"sidebar-nav",children:zn.map(g=>{const S=g.icon;return n.jsxs("button",{className:`sidebar-btn ${c===g.id?"active":""}`,onClick:()=>{r(g.id),u(!1)},title:g.desc,children:[n.jsx(S,{}),n.jsx("span",{className:"sidebar-label",children:g.label})]},g.id)})}),n.jsxs("div",{className:"sidebar-footer",children:[n.jsxs("div",{className:"ws-indicator",children:[n.jsx("span",{className:"ws-dot",style:{background:T?"var(--color-success)":"var(--color-error)",boxShadow:T?"0 0 6px var(--color-success)":"none"}}),T?"WS Live":"WS Offline"]}),n.jsx("div",{style:{marginTop:6,opacity:.6},children:"Atabey Governance Engine v0.0.14"})]})]}),n.jsxs("div",{className:"main-area",children:[n.jsxs("header",{className:"main-header",children:[n.jsxs("div",{className:"main-header-left",children:[n.jsx("button",{className:"menu-toggle",onClick:()=>u(!d),children:d?n.jsx(mu,{}):n.jsx(Bp,{})}),n.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem",fontWeight:500,fontSize:"0.95rem"},children:[n.jsx("span",{style:{opacity:.85},children:"Hermes Control Center"}),n.jsx("span",{style:{opacity:.4},children:"/"}),n.jsx("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:N.label})]})]}),n.jsxs("div",{className:"main-header-right",children:[n.jsx("button",{className:"theme-toggle-btn",onClick:j,title:`Switch to ${m==="dark"?"light":"dark"} mode`,style:{marginRight:"0.5rem"},children:m==="dark"?n.jsx(og,{size:16}):n.jsx(Gp,{size:16})}),n.jsxs("span",{className:"badge",children:[zn.length-1," modules"]}),n.jsxs("a",{href:"/api/health",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--color-accent-primary)",display:"flex",alignItems:"center",gap:4},children:[n.jsx(yp,{size:14})," API"]}),n.jsxs("a",{href:"https://github.com/ysf-bkr/atabey",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--color-accent-primary)",display:"flex",alignItems:"center",gap:4},children:[n.jsx(_p,{size:14})," GitHub"]})]})]}),n.jsx("main",{className:"main-content",children:c==="dashboard"?n.jsx(Zg,{onNavigate:g=>r(g)}):n.jsx("div",{className:"focused-view animate-fade-in",children:h&&n.jsx(h,{})})}),n.jsxs("footer",{className:"main-footer",children:[zn.length-1," Modules Live · Port ",window.location.port||"5858"]})]})]})]})}const Fg=new jv({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:2,staleTime:5e3}}});Yv.createRoot(document.getElementById("root")).render(n.jsx(H.StrictMode,{children:n.jsx(zv,{client:Fg,children:n.jsx(Jg,{})})}));
1221
+ `,zn=[{id:"dashboard",label:"Overview",Component:null,desc:"Governance Overview",icon:Dp},{id:"agents",label:"Specialists",Component:jy,desc:"13 Governed Specialists",icon:Ls},{id:"hermes",label:"Hermes",Component:Ny,desc:"Message Queue Stats",icon:pc},{id:"messages",label:"Audit Trail",Component:Rg,desc:"Hermes Message Queue",icon:py},{id:"approvals",label:"HITL Gates",Component:Sy,desc:"Human-in-the-Loop Gates",icon:il},{id:"tasks",label:"Tasks",Component:Bg,desc:"Task Planning & DAG",icon:yy},{id:"logs",label:"Execution",Component:zy,desc:"Specialist Execution Logs",icon:xy},{id:"quality",label:"Quality",Component:Qg,desc:"Code Quality Analysis",icon:cl},{id:"errors",label:"Exceptions",Component:Mg,desc:"Policy & Audit Exceptions",icon:ot},{id:"memory",label:"Memory",Component:Lg,desc:"Vector Memory Search",icon:hu},{id:"compliance",label:"Compliance",Component:Eg,desc:"Quality Gate Status",icon:Ll},{id:"finops",label:"FinOps",Component:Og,desc:"Budget & Cost Management",icon:mc},{id:"loop",label:"Loop Detector",Component:wg,desc:"Loop Prevention & Cooldowns",icon:Bn},{id:"license",label:"License",Component:Dg,desc:"SPDX & Copyleft Scanner",icon:uy},{id:"telemetry",label:"Telemetry",Component:Gg,desc:"Edge-to-Cloud Streaming",icon:vc},{id:"privacy",label:"GDPR / KVKK",Component:qg,desc:"GDPR & KVKK Compliance",icon:il},{id:"discipline",label:"Discipline",Component:Ag,desc:"AI Discipline & Rules",icon:Bn},{id:"mcp",label:"MCP Setup",Component:Ug,desc:"MCP Configuration",icon:yc},{id:"adapters",label:"Adapters",Component:zg,desc:"Adapter-Skill Mapping",icon:gy},{id:"tokens",label:"Token Econ",Component:Yg,desc:"Token Economy & Cost",icon:Hn}],Xg={};zn.forEach(c=>{Xg[c.id]=c.icon});const Vg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function Zg({onNavigate:c}){var le,se,pe,Ce,F,ge,Ue,qe,De;const{data:r}=ht("/agents",5e3),{data:d}=ht("/hermes/stats",5e3),{data:u}=ht("/approvals",5e3),{data:m}=ht("/compliance?path=src",1e4),x=Array.isArray(r)?r.filter(D=>D.state!=="READY"&&D.state!=="Idle").length:0,T=Vg.length,j=(d==null?void 0:d.pending)??0,N=Array.isArray(u)?u.filter(D=>D.status==="PENDING").length:0,h=((le=m==null?void 0:m.summary)==null?void 0:le.totalViolations)??0,{data:g}=ht("/audit",1e4),S=((pe=(se=g==null?void 0:g.stats)==null?void 0:se.byAction)==null?void 0:pe.MASK_PII)||((F=(Ce=g==null?void 0:g.stats)==null?void 0:Ce.byAction)==null?void 0:F.PII_MASKED)||0,M=((Ue=(ge=g==null?void 0:g.stats)==null?void 0:ge.byAction)==null?void 0:Ue.PII_DETECTED)||0,R=((De=(qe=g==null?void 0:g.stats)==null?void 0:qe.byCategory)==null?void 0:De.RESTRICTED)||0,{data:O}=ht("/metrics",1e4),B=(O==null?void 0:O.totalToolCalls)??0,Z=(O==null?void 0:O.totalEstimatedTokens)??0,V=(O==null?void 0:O.totalEstimatedCost)??0,{data:q}=ht("/mcp/sessions",1e4),Q=(q==null?void 0:q.total)??0,{data:G}=ht("/discipline",1e4),te=Object.values(G||{}).reduce((D,Y)=>D+(Y.violations||0),0),ie=Object.values(G||{}).some(D=>D.inCooldown);return n.jsxs("div",{className:"dashboard-overview animate-fade-in",children:[n.jsxs("div",{className:"hero-banner",children:[n.jsxs("div",{className:"hero-title-group",children:[n.jsx("h1",{children:"Governance Plane"}),n.jsxs("p",{style:{marginTop:"0.25rem",fontSize:"0.85rem",opacity:.8},children:["Governance Engine: ",n.jsx("span",{style:{color:"var(--color-success)",fontWeight:600},children:"Active"})," | Policy Target: ",n.jsx("span",{style:{color:"var(--color-highlight)",fontWeight:600},children:"Phase 0 Enforced"})]})]}),n.jsx("div",{className:"hero-meta",children:n.jsx("span",{className:"hero-badge",children:"v0.0.15"})})]}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("agents"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ls,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Specialists"})]}),n.jsxs("div",{className:"stat-card-value",children:[x," / ",T]}),n.jsx("div",{className:"stat-card-desc",children:"Governed specialist nodes active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("hermes"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pc,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Hermes Queue"})]}),n.jsx("div",{className:"stat-card-value",children:j}),n.jsx("div",{className:"stat-card-desc",children:"Pending messages in transit"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("approvals"),style:{borderColor:N>0?"var(--color-accent-primary)":void 0,background:N>0?"var(--color-accent-glow)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"HITL Gates"})]}),n.jsx("div",{className:"stat-card-value",style:{color:N>0?"var(--color-accent-primary)":void 0},children:N}),n.jsx("div",{className:"stat-card-desc",children:N>0?"Manual overrides pending":"All gates clear"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("compliance"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:20,className:"stat-icon"}),n.jsx("span",{className:"stat-title",children:"Gate Auditing"})]}),n.jsx("div",{className:"stat-card-value",style:{color:h>0?"var(--color-warning)":void 0},children:h}),n.jsx("div",{className:"stat-card-desc",children:"Quality Gate violations"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("privacy"),style:{borderColor:M>0?"var(--color-accent-primary)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:20,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"GDPR / KVKK"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-primary)",fontSize:"1.1rem"},children:S>0?`${S} masked`:"Active"}),n.jsx("div",{className:"stat-card-desc",children:M>0?`${M} PII · ${R} restricted`:"PII masking active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("discipline"),style:{borderColor:ie?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:20,style:{color:te>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Discipline"})]}),n.jsx("div",{className:"stat-card-value",style:{color:te>0?"var(--color-error)":"var(--color-success)",fontSize:"1.1rem"},children:te>0?`${te} violations`:"All Clean"}),n.jsx("div",{className:"stat-card-desc",children:ie?"Agent(s) in cooldown":"All agents compliant"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("mcp"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(yc,{size:20,style:{color:"var(--color-accent-primary)"}}),n.jsx("span",{className:"stat-title",children:"MCP Server"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-primary)",fontSize:"1.1rem"},children:Q>0?`${Q} session(s)`:"Ready"}),n.jsx("div",{className:"stat-card-desc",children:Q>0?"AI clients connected":"Waiting for AI clients"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>c("tokens"),style:{borderColor:V>.1?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:20,style:{color:"var(--color-accent-muted)"}}),n.jsx("span",{className:"stat-title",children:"Token Economy"})]}),n.jsx("div",{className:"stat-card-value",style:{color:"var(--color-accent-muted)",fontSize:"1.1rem"},children:B>0?`${B} calls`:"Active"}),n.jsx("div",{className:"stat-card-desc",children:Z>0?`${(Z/1e3).toFixed(1)}K tokens · ~$${V.toFixed(2)}`:"Tracking tool call metrics"})]})]}),n.jsxs("div",{className:"dashboard-grid",children:[n.jsx(jy,{}),n.jsx(Ny,{}),n.jsx("div",{className:"card-full",children:n.jsx(Sy,{})}),n.jsx("div",{className:"card-full",children:n.jsx(zy,{})})]})]})}function Jg(){const[c,r]=H.useState("dashboard"),[d,u]=H.useState(!1),[m,x]=H.useState(()=>localStorage.getItem("atabey-theme")||"dark"),T=Bl();H.useEffect(()=>{document.documentElement.classList.remove("theme-dark","theme-light"),document.documentElement.classList.add(`theme-${m}`)},[m]);const j=()=>{const g=m==="dark"?"light":"dark";x(g),localStorage.setItem("atabey-theme",g)},N=zn.find(g=>g.id===c)||zn[0],h=N.Component;return n.jsxs(n.Fragment,{children:[n.jsx("style",{children:Kg}),n.jsx("div",{className:`sidebar-overlay ${d?"open":""}`,onClick:()=>u(!1)}),n.jsxs("div",{className:"app-shell",children:[n.jsxs("aside",{className:`sidebar ${d?"open":""}`,children:[n.jsx("div",{className:"sidebar-header",children:n.jsx("span",{className:"sidebar-logo",children:"[ATABEY]"})}),n.jsx("nav",{className:"sidebar-nav",children:zn.map(g=>{const S=g.icon;return n.jsxs("button",{className:`sidebar-btn ${c===g.id?"active":""}`,onClick:()=>{r(g.id),u(!1)},title:g.desc,children:[n.jsx(S,{}),n.jsx("span",{className:"sidebar-label",children:g.label})]},g.id)})}),n.jsxs("div",{className:"sidebar-footer",children:[n.jsxs("div",{className:"ws-indicator",children:[n.jsx("span",{className:"ws-dot",style:{background:T?"var(--color-success)":"var(--color-error)",boxShadow:T?"0 0 6px var(--color-success)":"none"}}),T?"WS Live":"WS Offline"]}),n.jsx("div",{style:{marginTop:6,opacity:.6},children:"Atabey Governance Engine v0.0.15"})]})]}),n.jsxs("div",{className:"main-area",children:[n.jsxs("header",{className:"main-header",children:[n.jsxs("div",{className:"main-header-left",children:[n.jsx("button",{className:"menu-toggle",onClick:()=>u(!d),children:d?n.jsx(mu,{}):n.jsx(Bp,{})}),n.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"0.5rem",fontWeight:500,fontSize:"0.95rem"},children:[n.jsx("span",{style:{opacity:.85},children:"Hermes Control Center"}),n.jsx("span",{style:{opacity:.4},children:"/"}),n.jsx("span",{style:{color:"var(--color-accent-primary)",fontWeight:600},children:N.label})]})]}),n.jsxs("div",{className:"main-header-right",children:[n.jsx("button",{className:"theme-toggle-btn",onClick:j,title:`Switch to ${m==="dark"?"light":"dark"} mode`,style:{marginRight:"0.5rem"},children:m==="dark"?n.jsx(og,{size:16}):n.jsx(Gp,{size:16})}),n.jsxs("span",{className:"badge",children:[zn.length-1," modules"]}),n.jsxs("a",{href:"/api/health",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--color-accent-primary)",display:"flex",alignItems:"center",gap:4},children:[n.jsx(yp,{size:14})," API"]}),n.jsxs("a",{href:"https://github.com/ysf-bkr/atabey",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--color-accent-primary)",display:"flex",alignItems:"center",gap:4},children:[n.jsx(_p,{size:14})," GitHub"]})]})]}),n.jsx("main",{className:"main-content",children:c==="dashboard"?n.jsx(Zg,{onNavigate:g=>r(g)}):n.jsx("div",{className:"focused-view animate-fade-in",children:h&&n.jsx(h,{})})}),n.jsxs("footer",{className:"main-footer",children:[zn.length-1," Modules Live · Port ",window.location.port||"5858"]})]})]})]})}const Fg=new jv({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:2,staleTime:5e3}}});Yv.createRoot(document.getElementById("root")).render(n.jsx(H.StrictMode,{children:n.jsx(zv,{client:Fg,children:n.jsx(Jg,{})})}));