atabey-mcp 0.0.19 → 0.0.21

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.
Files changed (70) hide show
  1. package/README.md +2 -2
  2. package/dist/atabey/src/cli/platforms/core.d.ts +4 -0
  3. package/dist/atabey/src/cli/platforms/core.js +12 -8
  4. package/dist/atabey/src/cli/platforms/core.js.map +1 -1
  5. package/dist/atabey/src/cli/platforms/index.d.ts +1 -1
  6. package/dist/atabey/src/cli/platforms/index.js +1 -1
  7. package/dist/atabey/src/cli/platforms/index.js.map +1 -1
  8. package/dist/atabey/src/cli/utils/memory.d.ts +13 -7
  9. package/dist/atabey/src/cli/utils/memory.js +48 -16
  10. package/dist/atabey/src/cli/utils/memory.js.map +1 -1
  11. package/dist/atabey/src/modules/engines/agent-loop.d.ts +34 -0
  12. package/dist/atabey/src/modules/engines/agent-loop.js +102 -0
  13. package/dist/atabey/src/modules/engines/agent-loop.js.map +1 -0
  14. package/dist/atabey-mcp/src/mcp/constants.d.ts +3 -45
  15. package/dist/atabey-mcp/src/mcp/constants.js +3 -62
  16. package/dist/atabey-mcp/src/mcp/constants.js.map +1 -1
  17. package/dist/atabey-mcp/src/mcp/index.js +19 -35
  18. package/dist/atabey-mcp/src/mcp/index.js.map +1 -1
  19. package/dist/atabey-mcp/src/mcp/routes/api-agents.d.ts +3 -0
  20. package/dist/atabey-mcp/src/mcp/routes/api-agents.js +97 -0
  21. package/dist/atabey-mcp/src/mcp/routes/api-agents.js.map +1 -0
  22. package/dist/atabey-mcp/src/mcp/routes/api-common.d.ts +3 -0
  23. package/dist/atabey-mcp/src/mcp/routes/api-common.js +63 -0
  24. package/dist/atabey-mcp/src/mcp/routes/api-common.js.map +1 -0
  25. package/dist/atabey-mcp/src/mcp/routes/api-config.d.ts +3 -0
  26. package/dist/atabey-mcp/src/mcp/routes/api-config.js +639 -0
  27. package/dist/atabey-mcp/src/mcp/routes/api-config.js.map +1 -0
  28. package/dist/atabey-mcp/src/mcp/routes/api-governance.d.ts +3 -0
  29. package/dist/atabey-mcp/src/mcp/routes/api-governance.js +271 -0
  30. package/dist/atabey-mcp/src/mcp/routes/api-governance.js.map +1 -0
  31. package/dist/atabey-mcp/src/mcp/routes/api-orchestrator.d.ts +3 -0
  32. package/dist/atabey-mcp/src/mcp/routes/api-orchestrator.js +145 -0
  33. package/dist/atabey-mcp/src/mcp/routes/api-orchestrator.js.map +1 -0
  34. package/dist/atabey-mcp/src/mcp/routes/api-workspace.d.ts +3 -0
  35. package/dist/atabey-mcp/src/mcp/routes/api-workspace.js +274 -0
  36. package/dist/atabey-mcp/src/mcp/routes/api-workspace.js.map +1 -0
  37. package/dist/atabey-mcp/src/mcp/routes/index.d.ts +2 -0
  38. package/dist/atabey-mcp/src/mcp/routes/index.js +18 -1436
  39. package/dist/atabey-mcp/src/mcp/routes/index.js.map +1 -1
  40. package/dist/atabey-mcp/src/mcp/routes/types.d.ts +18 -0
  41. package/dist/atabey-mcp/src/mcp/routes/types.js +23 -0
  42. package/dist/atabey-mcp/src/mcp/routes/types.js.map +1 -0
  43. package/dist/atabey-mcp/src/mcp/tools/framework/orchestrate.d.ts +1 -1
  44. package/dist/atabey-mcp/src/mcp/tools/framework/orchestrate.js +11 -4
  45. package/dist/atabey-mcp/src/mcp/tools/framework/orchestrate.js.map +1 -1
  46. package/dist/atabey-mcp/src/mcp/utils/client-config.js +1 -1
  47. package/dist/atabey-mcp/src/mcp/utils/client-config.js.map +1 -1
  48. package/dist/atabey-mcp/src/mcp/utils/compliance-bootstrap.d.ts +8 -0
  49. package/dist/atabey-mcp/src/mcp/utils/compliance-bootstrap.js +46 -0
  50. package/dist/atabey-mcp/src/mcp/utils/compliance-bootstrap.js.map +1 -0
  51. package/dist/atabey-mcp/src/mcp/utils/consent.d.ts +25 -0
  52. package/dist/atabey-mcp/src/mcp/utils/consent.js +60 -0
  53. package/dist/atabey-mcp/src/mcp/utils/consent.js.map +1 -0
  54. package/dist/atabey-mcp/src/mcp/utils/finops.d.ts +7 -11
  55. package/dist/atabey-mcp/src/mcp/utils/finops.js +24 -26
  56. package/dist/atabey-mcp/src/mcp/utils/finops.js.map +1 -1
  57. package/dist/atabey-mcp/src/mcp/utils/framework-config.d.ts +27 -0
  58. package/dist/atabey-mcp/src/mcp/utils/framework-config.js +81 -0
  59. package/dist/atabey-mcp/src/mcp/utils/framework-config.js.map +1 -0
  60. package/dist/atabey-mcp/src/mcp/utils/orchestrator-bootstrap.d.ts +14 -0
  61. package/dist/atabey-mcp/src/mcp/utils/orchestrator-bootstrap.js +98 -0
  62. package/dist/atabey-mcp/src/mcp/utils/orchestrator-bootstrap.js.map +1 -0
  63. package/dist/atabey-mcp/src/mcp/utils/web-config.js +17 -35
  64. package/dist/atabey-mcp/src/mcp/utils/web-config.js.map +1 -1
  65. package/dist/dashboard/assets/{index-DHuA2rua.js → index-BUUxi_j8.js} +75 -75
  66. package/dist/dashboard/index.html +1 -1
  67. package/dist/shared/src/constants.d.ts +30 -1
  68. package/dist/shared/src/constants.js +25 -2
  69. package/dist/shared/src/constants.js.map +1 -1
  70. package/package.json +13 -2
@@ -1,4 +1,4 @@
1
- var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("Cannot "+d);var p=(r,c,d)=>(Lo(r,c,"read from private field"),d?d.call(r):c.get(r)),te=(r,c,d)=>c.has(r)?gm("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(r):c.set(r,d),X=(r,c,d,u)=>(Lo(r,c,"write to private field"),u?u.call(r,d):c.set(r,d),d),ve=(r,c,d)=>(Lo(r,c,"access private method"),d);var dr=(r,c,d,u)=>({set _(m){X(r,c,m,d)},get _(){return p(r,c,u)}});(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.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 gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("Cannot "+d);var v=(r,c,d)=>(Lo(r,c,"read from private field"),d?d.call(r):c.get(r)),te=(r,c,d)=>c.has(r)?gm("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(r):c.set(r,d),X=(r,c,d,u)=>(Lo(r,c,"write to private field"),u?u.call(r,d):c.set(r,d),d),pe=(r,c,d)=>(Lo(r,c,"access private method"),d);var dr=(r,c,d,u)=>({set _(m){X(r,c,m,d)},get _(){return v(r,c,u)}});(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.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={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("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 xm;function F1(){if(xm)return ks;xm=1;var r=Symbol.for("react.transitional.element"),c=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:r,type:u,key:T,ref:m!==void 0?m:null,props:x}}return ks.Fragment=c,ks.jsx=d,ks.jsxs=d,ks}var bm;function $1(){return bm||(bm=1,Bo.exports=F1()),Bo.exports}var n=$1(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cl,Wa,Tn,Gm,W1=(Gm=class extends Vs{constructor(){super();te(this,Cl);te(this,Wa);te(this,Tn);X(this,Tn,c=>{if(typeof window<"u"&&window.addEventListener){const d=()=>c();return window.addEventListener("visibilitychange",d,!1),()=>{window.removeEventListener("visibilitychange",d)}}})}onSubscribe(){p(this,Wa)||this.setEventListener(p(this,Tn))}onUnsubscribe(){var c;this.hasListeners()||((c=p(this,Wa))==null||c.call(this),X(this,Wa,void 0))}setEventListener(c){var d;X(this,Tn,c),(d=p(this,Wa))==null||d.call(this),X(this,Wa,c(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(c){p(this,Cl)!==c&&(X(this,Cl,c),this.onFocus())}onFocus(){const c=this.isFocused();this.listeners.forEach(d=>{d(c)})}isFocused(){var c;return typeof p(this,Cl)=="boolean"?p(this,Cl):((c=globalThis.document)==null?void 0:c.visibilityState)!=="hidden"}},Cl=new WeakMap,Wa=new WeakMap,Tn=new WeakMap,Gm),cu=new W1,I1={setTimeout:(r,c)=>setTimeout(r,c),clearTimeout:r=>clearTimeout(r),setInterval:(r,c)=>setInterval(r,c),clearInterval:r=>clearInterval(r)},Ia,ru,Ym,P1=(Ym=class{constructor(){te(this,Ia,I1);te(this,ru,!1)}setTimeoutProvider(r){X(this,Ia,r)}setTimeout(r,c){return p(this,Ia).setTimeout(r,c)}clearTimeout(r){p(this,Ia).clearTimeout(r)}setInterval(r,c){return p(this,Ia).setInterval(r,c)}clearInterval(r){p(this,Ia).clearInterval(r)}},Ia=new WeakMap,ru=new WeakMap,Ym),Al=new P1;function ev(r){setTimeout(r,0)}var tv=typeof window>"u"||"Deno"in globalThis;function St(){}function av(r,c){return typeof r=="function"?r(c):r}function Vo(r){return typeof r=="number"&&r>=0&&r!==1/0}function Im(r,c){return Math.max(r+(c||0)-Date.now(),0)}function sl(r,c){return typeof r=="function"?r(c):r}function Dt(r,c){return typeof r=="function"?r(c):r}function jm(r,c){const{type:d="all",exact:u,fetchStatus:m,predicate:x,queryKey:T,stale:j}=r;if(T){if(u){if(c.queryHash!==ou(T,c.options))return!1}else if(!Hs(c.queryKey,T))return!1}if(d!=="all"){const N=c.isActive();if(d==="active"&&!N||d==="inactive"&&N)return!1}return!(typeof j=="boolean"&&c.isStale()!==j||m&&m!==c.state.fetchStatus||x&&!x(c))}function Sm(r,c){const{exact:d,status:u,predicate:m,mutationKey:x}=r;if(x){if(!c.options.mutationKey)return!1;if(d){if(Bs(c.options.mutationKey)!==Bs(x))return!1}else if(!Hs(c.options.mutationKey,x))return!1}return!(u&&c.state.status!==u||m&&!m(c))}function ou(r,c){return((c==null?void 0:c.queryKeyHashFn)||Bs)(r)}function Bs(r){return JSON.stringify(r,(c,d)=>Jo(d)?Object.keys(d).sort().reduce((u,m)=>(u[m]=d[m],u),{}):d)}function Hs(r,c){return r===c?!0:typeof r!=typeof c?!1:r&&c&&typeof r=="object"&&typeof c=="object"?Object.keys(c).every(d=>Hs(r[d],c[d])):!1}var lv=Object.prototype.hasOwnProperty;function Pm(r,c,d=0){if(r===c)return r;if(d>500)return c;const u=Nm(r)&&Nm(c);if(!u&&!(Jo(r)&&Jo(c)))return c;const x=(u?r:Object.keys(r)).length,T=u?c:Object.keys(c),j=T.length,N=u?new Array(j):{};let h=0;for(let b=0;b<j;b++){const S=u?b:T[b],O=r[S],C=c[S];if(O===C){N[S]=O,(u?b<x:lv.call(r,S))&&h++;continue}if(O===null||C===null||typeof O!="object"||typeof C!="object"){N[S]=C;continue}const _=Pm(O,C,d+1);N[S]=_,_===O&&h++}return x===j&&h===x?r:N}function Zo(r,c){if(!c||Object.keys(r).length!==Object.keys(c).length)return!1;for(const d in r)if(r[d]!==c[d])return!1;return!0}function Nm(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Jo(r){if(!zm(r))return!1;const c=r.constructor;if(c===void 0)return!0;const d=c.prototype;return!(!zm(d)||!d.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function zm(r){return Object.prototype.toString.call(r)==="[object Object]"}function nv(r){return new Promise(c=>{Al.setTimeout(c,r)})}function Fo(r,c,d){return typeof d.structuralSharing=="function"?d.structuralSharing(r,c):d.structuralSharing!==!1?Pm(r,c):c}function sv(r,c,d=0){const u=[...r,c];return d&&u.length>d?u.slice(1):u}function iv(r,c,d=0){const u=[c,...r];return d&&u.length>d?u.slice(0,-1):u}var uu=Symbol();function ey(r,c){return!r.queryFn&&(c!=null&&c.initialPromise)?()=>c.initialPromise:!r.queryFn||r.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function ty(r,c){return typeof r=="function"?r(...c):!!r}function rv(r,c,d){let u=!1,m;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(m??(m=c()),u||(u=!0,m.aborted?d():m.addEventListener("abort",d,{once:!0})),m)}),r}var qs=(()=>{let r=()=>tv;return{isServer(){return r()},setIsServer(c){r=c}}})();function $o(){let r,c;const d=new Promise((m,x)=>{r=m,c=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}),r(m)},d.reject=m=>{u({status:"rejected",reason:m}),c(m)},d}var cv=ev;function ov(){let r=[],c=0,d=j=>{j()},u=j=>{j()},m=cv;const x=j=>{c?r.push(j):m(()=>{d(j)})},T=()=>{const j=r;r=[],j.length&&m(()=>{u(()=>{j.forEach(N=>{d(N)})})})};return{batch:j=>{let N;c++;try{N=j()}finally{c--,c||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=ov(),En,Pa,An,Km,uv=(Km=class extends Vs{constructor(){super();te(this,En,!0);te(this,Pa);te(this,An);X(this,An,c=>{if(typeof window<"u"&&window.addEventListener){const d=()=>c(!0),u=()=>c(!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 c;this.hasListeners()||((c=p(this,Pa))==null||c.call(this),X(this,Pa,void 0))}setEventListener(c){var d;X(this,An,c),(d=p(this,Pa))==null||d.call(this),X(this,Pa,c(this.setOnline.bind(this)))}setOnline(c){p(this,En)!==c&&(X(this,En,c),this.listeners.forEach(u=>{u(c)}))}isOnline(){return p(this,En)}},En=new WeakMap,Pa=new WeakMap,An=new WeakMap,Km),hr=new uv;function dv(r){return Math.min(1e3*2**r,3e4)}function ay(r){return(r??"online")==="online"?hr.isOnline():!0}var Wo=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function ly(r){let c=!1,d=0,u;const m=$o(),x=()=>m.status!=="pending",T=B=>{var Z;if(!x()){const V=new Wo(B);O(V),(Z=r.onCancel)==null||Z.call(r,V)}},j=()=>{c=!0},N=()=>{c=!1},h=()=>cu.isFocused()&&(r.networkMode==="always"||hr.isOnline())&&r.canRun(),b=()=>ay(r.networkMode)&&r.canRun(),S=B=>{x()||(u==null||u(),m.resolve(B))},O=B=>{x()||(u==null||u(),m.reject(B))},C=()=>new Promise(B=>{var Z;u=V=>{(x()||h())&&B(V)},(Z=r.onPause)==null||Z.call(r)}).then(()=>{var B;u=void 0,x()||(B=r.onContinue)==null||B.call(r)}),_=()=>{if(x())return;let B;const Z=d===0?r.initialPromise:void 0;try{B=Z??r.fn()}catch(V){B=Promise.reject(V)}Promise.resolve(B).then(S).catch(V=>{var ne;if(x())return;const q=r.retry??(qs.isServer()?0:3),Q=r.retryDelay??dv,G=typeof Q=="function"?Q(d,V):Q,P=q===!0||typeof q=="number"&&d<q||typeof q=="function"&&q(d,V);if(c||!P){O(V);return}d++,(ne=r.onFail)==null||ne.call(r,d,V),nv(G).then(()=>h()?void 0:C()).then(()=>{c?O(V):_()})})};return{promise:m,status:()=>m.status,cancel:T,continue:()=>(u==null||u(),m),cancelRetry:j,continueRetry:N,canStart:b,start:()=>(b()?_():C().then(_),m)}}var Ml,Xm,ny=(Xm=class{constructor(){te(this,Ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vo(this.gcTime)&&X(this,Ml,Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(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,Xm);function fv(r){return{onFetch:(c,d)=>{var b,S,O,C,_;const u=c.options,m=(O=(S=(b=c.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:O.direction,x=((C=c.state.data)==null?void 0:C.pages)||[],T=((_=c.state.data)==null?void 0:_.pageParams)||[];let j={pages:[],pageParams:[]},N=0;const h=async()=>{let B=!1;const Z=Q=>{rv(Q,()=>c.signal,()=>B=!0)},V=ey(c.options,c.fetchOptions),q=async(Q,G,P)=>{if(B)return Promise.reject(c.signal.reason);if(G==null&&Q.pages.length)return Promise.resolve(Q);const le=(()=>{const F={client:c.client,queryKey:c.queryKey,pageParam:G,direction:P?"backward":"forward",meta:c.options.meta};return Z(F),F})(),ie=await V(le),{maxPages:pe}=c.options,Ce=P?iv:sv;return{pages:Ce(Q.pages,ie,pe),pageParams:Ce(Q.pageParams,G,pe)}};if(m&&x.length){const Q=m==="backward",G=Q?hv:Tm,P={pages:x,pageParams:T},ne=G(u,P);j=await q(P,ne,Q)}else{const Q=r??x.length;do{const G=N===0?T[0]??u.initialPageParam:Tm(u,j);if(N>0&&G==null)break;j=await q(j,G),N++}while(N<Q)}return j};c.options.persister?c.fetchFn=()=>{var B,Z;return(Z=(B=c.options).persister)==null?void 0:Z.call(B,h,{client:c.client,queryKey:c.queryKey,meta:c.options.meta,signal:c.signal},d)}:c.fetchFn=h}}}function Tm(r,{pages:c,pageParams:d}){const u=c.length-1;return c.length>0?r.getNextPageParam(c[u],c,d[u],d):void 0}function hv(r,{pages:c,pageParams:d}){var u;return c.length>0?(u=r.getPreviousPageParam)==null?void 0:u.call(r,c[0],c,d[0],d):void 0}var Cn,Ol,Mn,Xt,_l,et,Qs,Rl,kt,sy,ja,Vm,mv=(Vm=class extends ny{constructor(c){super();te(this,kt);te(this,Cn);te(this,Ol);te(this,Mn);te(this,Xt);te(this,_l);te(this,et);te(this,Qs);te(this,Rl);X(this,Rl,!1),X(this,Qs,c.defaultOptions),this.setOptions(c.options),this.observers=[],X(this,_l,c.client),X(this,Xt,p(this,_l).getQueryCache()),this.queryKey=c.queryKey,this.queryHash=c.queryHash,X(this,Ol,Am(this.options)),this.state=c.state??p(this,Ol),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return p(this,Cn)}get promise(){var c;return(c=p(this,et))==null?void 0:c.promise}setOptions(c){if(this.options={...p(this,Qs),...c},c!=null&&c._type&&X(this,Cn,c._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const d=Am(this.options);d.data!==void 0&&(this.setState(Em(d.data,d.dataUpdatedAt)),X(this,Ol,d))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Xt).remove(this)}setData(c,d){const u=Fo(this.state.data,c,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(c){ve(this,kt,ja).call(this,{type:"setState",state:c})}cancel(c){var u,m;const d=(u=p(this,et))==null?void 0:u.promise;return(m=p(this,et))==null||m.cancel(c),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(c=>Dt(c.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(c=>sl(c.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(c=>c.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(c=0){return this.state.data===void 0?!0:c==="static"?!1:this.state.isInvalidated?!0:!Im(this.state.dataUpdatedAt,c)}onFocus(){var d;const c=this.observers.find(u=>u.shouldFetchOnWindowFocus());c==null||c.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}onOnline(){var d;const c=this.observers.find(u=>u.shouldFetchOnReconnect());c==null||c.refetch({cancelRefetch:!1}),(d=p(this,et))==null||d.continue()}addObserver(c){this.observers.includes(c)||(this.observers.push(c),this.clearGcTimeout(),p(this,Xt).notify({type:"observerAdded",query:this,observer:c}))}removeObserver(c){this.observers.includes(c)&&(this.observers=this.observers.filter(d=>d!==c),this.observers.length||(p(this,et)&&(p(this,Rl)||ve(this,kt,sy).call(this)?p(this,et).cancel({revert:!0}):p(this,et).cancelRetry()),this.scheduleGc()),p(this,Xt).notify({type:"observerRemoved",query:this,observer:c}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,kt,ja).call(this,{type:"invalidate"})}async fetch(c,d){var h,b,S,O,C,_,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(c&&this.setOptions(c),!this.options.queryFn){const G=this.observers.find(P=>P.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=ey(this.options,d),ne=(()=>{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,ne,this):G(ne)},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"?fv(this.options.pages):this.options.behavior;N==null||N.onFetch(j,this),X(this,Mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=j.fetchOptions)==null?void 0:b.meta))&&ve(this,kt,ja).call(this,{type:"fetch",meta:(S=j.fetchOptions)==null?void 0:S.meta}),X(this,et,ly({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,P)=>{ve(this,kt,ja).call(this,{type:"failed",failureCount:G,error:P})},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),(C=(O=p(this,Xt).config).onSuccess)==null||C.call(O,G,this),(B=(_=p(this,Xt).config).onSettled)==null||B.call(_,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,sy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ja=function(c){const d=u=>{switch(c.type){case"failed":return{...u,fetchFailureCount:c.failureCount,fetchFailureReason:c.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...iy(u.data,this.options),fetchMeta:c.meta??null};case"success":const m={...u,...Em(c.data,c.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!c.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Mn,c.manual?m:void 0),m;case"error":const x=c.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,...c.state}}};this.state=d(this.state),it.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),p(this,Xt).notify({query:this,type:"updated",action:c})})},Vm);function iy(r,c){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ay(c.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function Em(r,c){return{data:r,dataUpdatedAt:c??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Am(r){const c=typeof r.initialData=="function"?r.initialData():r.initialData,d=c!==void 0,u=d?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:c,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,ry,Zm,yv=(Zm=class extends Vs{constructor(c,d){super();te(this,Te);te(this,jt);te(this,be);te(this,Gs);te(this,ft);te(this,kl);te(this,On);te(this,Sa);te(this,el);te(this,Ys);te(this,_n);te(this,Rn);te(this,Dl);te(this,wl);te(this,tl);te(this,kn,new Set);this.options=d,X(this,jt,c),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),Cm(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(c){const d=this.options,u=p(this,be);if(this.options=p(this,jt).defaultQueryOptions(c),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&&Mm(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(c){const d=p(this,jt).getQueryCache().build(p(this,jt),c),u=this.createResult(d,c);return pv(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(c,d){return new Proxy(c,{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(c){p(this,kn).add(c)}getCurrentQuery(){return p(this,be)}refetch({...c}={}){return this.fetch({...c})}fetchOptimistic(c){const d=p(this,jt).defaultQueryOptions(c),u=p(this,jt).getQueryCache().build(p(this,jt),d);return u.fetch().then(()=>this.createResult(u,d))}fetch(c){return ve(this,Te,Us).call(this,{...c,cancelRefetch:c.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,ft)))}createResult(c,d){var pe;const u=p(this,be),m=this.options,x=p(this,ft),T=p(this,kl),j=p(this,On),h=c!==u?c.state:p(this,Gs),{state:b}=c;let S={...b},O=!1,C;if(d._optimisticResults){const Ce=this.hasListeners(),F=!Ce&&Cm(c,d),ge=Ce&&Mm(c,u,d,m);(F||ge)&&(S={...S,...iy(b.data,c.options)}),d._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:B,status:Z}=S;C=S.data;let V=!1;if(d.placeholderData!==void 0&&C===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",C=Fo(x==null?void 0:x.data,Ce,d),O=!0)}if(d.select&&C!==void 0&&!V)if(x&&C===(T==null?void 0:T.data)&&d.select===p(this,Ys))C=p(this,_n);else try{X(this,Ys,d.select),C=d.select(C),C=Fo(x==null?void 0:x.data,C,d),X(this,_n,C),X(this,el,null)}catch(Ce){X(this,el,Ce)}p(this,el)&&(_=p(this,el),C=p(this,_n),B=Date.now(),Z="error");const q=S.fetchStatus==="fetching",Q=Z==="pending",G=Z==="error",P=Q&&q,ne=C!==void 0,ie={status:Z,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:Z==="success",isError:G,isInitialLoading:P,isLoading:P,data:C,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:B,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:c.isFetched(),isFetchedAfterMount:S.dataUpdateCount>h.dataUpdateCount||S.errorUpdateCount>h.errorUpdateCount,isFetching:q,isRefetching:q&&!Q,isLoadingError:G&&!ne,isPaused:S.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:G&&ne,isStale:du(c,d),refetch:this.refetch,promise:p(this,Sa),isEnabled:Dt(d.enabled,c)!==!1};if(this.options.experimental_prefetchInRender){const Ce=ie.data!==void 0,F=ie.status==="error"&&!Ce,ge=ke=>{F?ke.reject(ie.error):Ce&&ke.resolve(ie.data)},Ue=()=>{const ke=X(this,Sa,ie.promise=$o());ge(ke)},qe=p(this,Sa);switch(qe.status){case"pending":c.queryHash===u.queryHash&&ge(qe);break;case"fulfilled":(F||ie.data!==qe.value)&&Ue();break;case"rejected":(!F||ie.error!==qe.reason)&&Ue();break}}return ie}updateResult(){const c=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,c))return;X(this,ft,d);const u=()=>{if(!c)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]!==c[N]&&T.has(N)})};ve(this,Te,ry).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(c){ve(this,Te,nu).call(this);let d=p(this,be).fetch(this.options,c);return c!=null&&c.throwOnError||(d=d.catch(St)),d},Io=function(){ve(this,Te,au).call(this);const c=sl(this.options.staleTime,p(this,be));if(qs.isServer()||p(this,ft).isStale||!Vo(c))return;const u=Im(p(this,ft).dataUpdatedAt,c)+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(c){ve(this,Te,lu).call(this),X(this,tl,c),!(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||cu.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 c=p(this,jt).getQueryCache().build(p(this,jt),this.options);if(c===p(this,be))return;const d=p(this,be);X(this,be,c),X(this,Gs,c.state),this.hasListeners()&&(d==null||d.removeObserver(this),c.addObserver(this))},ry=function(c){it.batch(()=>{c.listeners&&this.listeners.forEach(d=>{d(p(this,ft))}),p(this,jt).getQueryCache().notify({query:p(this,be),type:"observerResultsUpdated"})})},Zm);function vv(r,c){return Dt(c.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&Dt(c.retryOnMount,r)===!1)}function Cm(r,c){return vv(r,c)||r.state.data!==void 0&&su(r,c,c.refetchOnMount)}function su(r,c,d){if(Dt(c.enabled,r)!==!1&&sl(c.staleTime,r)!=="static"){const u=typeof d=="function"?d(r):d;return u==="always"||u!==!1&&du(r,c)}return!1}function Mm(r,c,d,u){return(r!==c||Dt(u.enabled,r)===!1)&&(!d.suspense||r.state.status!=="error")&&du(r,d)}function du(r,c){return Dt(c.enabled,r)!==!1&&r.isStaleByTime(sl(c.staleTime,r))}function pv(r,c){return!Zo(r.getCurrentResult(),c)}var Ks,ea,ct,Ul,ta,$a,Jm,gv=(Jm=class extends ny{constructor(c){super();te(this,ta);te(this,Ks);te(this,ea);te(this,ct);te(this,Ul);X(this,Ks,c.client),this.mutationId=c.mutationId,X(this,ct,c.mutationCache),X(this,ea,[]),this.state=c.state||xv(),this.setOptions(c.options),this.scheduleGc()}setOptions(c){this.options=c,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(c){p(this,ea).includes(c)||(p(this,ea).push(c),this.clearGcTimeout(),p(this,ct).notify({type:"observerAdded",mutation:this,observer:c}))}removeObserver(c){X(this,ea,p(this,ea).filter(d=>d!==c)),this.scheduleGc(),p(this,ct).notify({type:"observerRemoved",mutation:this,observer:c})}optionalRemove(){p(this,ea).length||(this.state.status==="pending"?this.scheduleGc():p(this,ct).remove(this))}continue(){var c;return((c=p(this,Ul))==null?void 0:c.continue())??this.execute(this.state.variables)}async execute(c){var T,j,N,h,b,S,O,C,_,B,Z,V,q,Q,G,P,ne,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,ly({fn:()=>this.options.mutationFn?this.options.mutationFn(c,u):Promise.reject(new Error("No mutationFn found")),onFail:(ie,pe)=>{ve(this,ta,$a).call(this,{type:"failed",failureCount:ie,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,ct).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:c,isPaused:x}),p(this,ct).config.onMutate&&await p(this,ct).config.onMutate(c,this,u);const pe=await((j=(T=this.options).onMutate)==null?void 0:j.call(T,c,u));pe!==this.state.context&&ve(this,ta,$a).call(this,{type:"pending",context:pe,variables:c,isPaused:x})}const ie=await p(this,Ul).start();return await((h=(N=p(this,ct).config).onSuccess)==null?void 0:h.call(N,ie,c,this.state.context,this,u)),await((S=(b=this.options).onSuccess)==null?void 0:S.call(b,ie,c,this.state.context,u)),await((C=(O=p(this,ct).config).onSettled)==null?void 0:C.call(O,ie,null,this.state.variables,this.state.context,this,u)),await((B=(_=this.options).onSettled)==null?void 0:B.call(_,ie,null,c,this.state.context,u)),ve(this,ta,$a).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((V=(Z=p(this,ct).config).onError)==null?void 0:V.call(Z,ie,c,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((Q=(q=this.options).onError)==null?void 0:Q.call(q,ie,c,this.state.context,u))}catch(pe){Promise.reject(pe)}try{await((P=(G=p(this,ct).config).onSettled)==null?void 0:P.call(G,void 0,ie,this.state.variables,this.state.context,this,u))}catch(pe){Promise.reject(pe)}try{await((le=(ne=this.options).onSettled)==null?void 0:le.call(ne,void 0,ie,c,this.state.context,u))}catch(pe){Promise.reject(pe)}throw ve(this,ta,$a).call(this,{type:"error",error:ie}),ie}finally{p(this,ct).runNext(this)}}},Ks=new WeakMap,ea=new WeakMap,ct=new WeakMap,Ul=new WeakMap,ta=new WeakSet,$a=function(c){const d=u=>{switch(c.type){case"failed":return{...u,failureCount:c.failureCount,failureReason:c.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:c.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:c.isPaused,status:"pending",variables:c.variables,submittedAt:Date.now()};case"success":return{...u,data:c.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:c.error,failureCount:u.failureCount+1,failureReason:c.error,isPaused:!1,status:"error"}}};this.state=d(this.state),it.batch(()=>{p(this,ea).forEach(u=>{u.onMutationUpdate(c)}),p(this,ct).notify({mutation:this,type:"updated",action:c})})},Jm);function xv(){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,Fm,bv=(Fm=class extends Vs{constructor(c={}){super();te(this,Na);te(this,Ft);te(this,Xs);this.config=c,X(this,Na,new Set),X(this,Ft,new Map),X(this,Xs,0)}build(c,d,u){const m=new gv({client:c,mutationCache:this,mutationId:++dr(this,Xs)._,options:c.defaultMutationOptions(d),state:u});return this.add(m),m}add(c){p(this,Na).add(c);const d=fr(c);if(typeof d=="string"){const u=p(this,Ft).get(d);u?u.push(c):p(this,Ft).set(d,[c])}this.notify({type:"added",mutation:c})}remove(c){if(p(this,Na).delete(c)){const d=fr(c);if(typeof d=="string"){const u=p(this,Ft).get(d);if(u)if(u.length>1){const m=u.indexOf(c);m!==-1&&u.splice(m,1)}else u[0]===c&&p(this,Ft).delete(d)}}this.notify({type:"removed",mutation:c})}canRun(c){const d=fr(c);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===c}else return!0}runNext(c){var u;const d=fr(c);if(typeof d=="string"){const m=(u=p(this,Ft).get(d))==null?void 0:u.find(x=>x!==c&&x.state.isPaused);return(m==null?void 0:m.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{p(this,Na).forEach(c=>{this.notify({type:"removed",mutation:c})}),p(this,Na).clear(),p(this,Ft).clear()})}getAll(){return Array.from(p(this,Na))}find(c){const d={exact:!0,...c};return this.getAll().find(u=>Sm(d,u))}findAll(c={}){return this.getAll().filter(d=>Sm(c,d))}notify(c){it.batch(()=>{this.listeners.forEach(d=>{d(c)})})}resumePausedMutations(){const c=this.getAll().filter(d=>d.state.isPaused);return it.batch(()=>Promise.all(c.map(d=>d.continue().catch(St))))}},Na=new WeakMap,Ft=new WeakMap,Xs=new WeakMap,Fm);function fr(r){var c;return(c=r.options.scope)==null?void 0:c.id}var aa,$m,jv=($m=class extends Vs{constructor(c={}){super();te(this,aa);this.config=c,X(this,aa,new Map)}build(c,d,u){const m=d.queryKey,x=d.queryHash??ou(m,d);let T=this.get(x);return T||(T=new mv({client:c,queryKey:m,queryHash:x,options:c.defaultQueryOptions(d),state:u,defaultOptions:c.getQueryDefaults(m)}),this.add(T)),T}add(c){p(this,aa).has(c.queryHash)||(p(this,aa).set(c.queryHash,c),this.notify({type:"added",query:c}))}remove(c){const d=p(this,aa).get(c.queryHash);d&&(c.destroy(),d===c&&p(this,aa).delete(c.queryHash),this.notify({type:"removed",query:c}))}clear(){it.batch(()=>{this.getAll().forEach(c=>{this.remove(c)})})}get(c){return p(this,aa).get(c)}getAll(){return[...p(this,aa).values()]}find(c){const d={exact:!0,...c};return this.getAll().find(u=>jm(d,u))}findAll(c={}){const d=this.getAll();return Object.keys(c).length>0?d.filter(u=>jm(c,u)):d}notify(c){it.batch(()=>{this.listeners.forEach(d=>{d(c)})})}onFocus(){it.batch(()=>{this.getAll().forEach(c=>{c.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(c=>{c.onOnline()})})}},aa=new WeakMap,$m),Ye,al,ll,Dn,wn,nl,Un,Ln,Wm,Sv=(Wm=class{constructor(r={}){te(this,Ye);te(this,al);te(this,ll);te(this,Dn);te(this,wn);te(this,nl);te(this,Un);te(this,Ln);X(this,Ye,r.queryCache||new jv),X(this,al,r.mutationCache||new bv),X(this,ll,r.defaultOptions||{}),X(this,Dn,new Map),X(this,wn,new Map),X(this,nl,0)}mount(){dr(this,nl)._++,p(this,nl)===1&&(X(this,Un,cu.subscribe(async r=>{r&&(await this.resumePausedMutations(),p(this,Ye).onFocus())})),X(this,Ln,hr.subscribe(async r=>{r&&(await this.resumePausedMutations(),p(this,Ye).onOnline())})))}unmount(){var r,c;dr(this,nl)._--,p(this,nl)===0&&((r=p(this,Un))==null||r.call(this),X(this,Un,void 0),(c=p(this,Ln))==null||c.call(this),X(this,Ln,void 0))}isFetching(r){return p(this,Ye).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return p(this,al).findAll({...r,status:"pending"}).length}getQueryData(r){var d;const c=this.defaultQueryOptions({queryKey:r});return(d=p(this,Ye).get(c.queryHash))==null?void 0:d.state.data}ensureQueryData(r){const c=this.defaultQueryOptions(r),d=p(this,Ye).build(this,c),u=d.state.data;return u===void 0?this.fetchQuery(r):(r.revalidateIfStale&&d.isStaleByTime(sl(c.staleTime,d))&&this.prefetchQuery(c),Promise.resolve(u))}getQueriesData(r){return p(this,Ye).findAll(r).map(({queryKey:c,state:d})=>{const u=d.data;return[c,u]})}setQueryData(r,c,d){const u=this.defaultQueryOptions({queryKey:r}),m=p(this,Ye).get(u.queryHash),x=m==null?void 0:m.state.data,T=av(c,x);if(T!==void 0)return p(this,Ye).build(this,u).setData(T,{...d,manual:!0})}setQueriesData(r,c,d){return it.batch(()=>p(this,Ye).findAll(r).map(({queryKey:u})=>[u,this.setQueryData(u,c,d)]))}getQueryState(r){var d;const c=this.defaultQueryOptions({queryKey:r});return(d=p(this,Ye).get(c.queryHash))==null?void 0:d.state}removeQueries(r){const c=p(this,Ye);it.batch(()=>{c.findAll(r).forEach(d=>{c.remove(d)})})}resetQueries(r,c){const d=p(this,Ye);return it.batch(()=>(d.findAll(r).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...r},c)))}cancelQueries(r,c={}){const d={revert:!0,...c},u=it.batch(()=>p(this,Ye).findAll(r).map(m=>m.cancel(d)));return Promise.all(u).then(St).catch(St)}invalidateQueries(r,c={}){return it.batch(()=>(p(this,Ye).findAll(r).forEach(d=>{d.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},c)))}refetchQueries(r,c={}){const d={...c,cancelRefetch:c.cancelRefetch??!0},u=it.batch(()=>p(this,Ye).findAll(r).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(r){const c=this.defaultQueryOptions(r);c.retry===void 0&&(c.retry=!1);const d=p(this,Ye).build(this,c);return d.isStaleByTime(sl(c.staleTime,d))?d.fetch(c):Promise.resolve(d.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(St).catch(St)}fetchInfiniteQuery(r){return r._type="infinite",this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(St).catch(St)}ensureInfiniteQueryData(r){return r._type="infinite",this.ensureQueryData(r)}resumePausedMutations(){return hr.isOnline()?p(this,al).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,Ye)}getMutationCache(){return p(this,al)}getDefaultOptions(){return p(this,ll)}setDefaultOptions(r){X(this,ll,r)}setQueryDefaults(r,c){p(this,Dn).set(Bs(r),{queryKey:r,defaultOptions:c})}getQueryDefaults(r){const c=[...p(this,Dn).values()],d={};return c.forEach(u=>{Hs(r,u.queryKey)&&Object.assign(d,u.defaultOptions)}),d}setMutationDefaults(r,c){p(this,wn).set(Bs(r),{mutationKey:r,defaultOptions:c})}getMutationDefaults(r){const c=[...p(this,wn).values()],d={};return c.forEach(u=>{Hs(r,u.mutationKey)&&Object.assign(d,u.defaultOptions)}),d}defaultQueryOptions(r){if(r._defaulted)return r;const c={...p(this,ll).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return c.queryHash||(c.queryHash=ou(c.queryKey,c)),c.refetchOnReconnect===void 0&&(c.refetchOnReconnect=c.networkMode!=="always"),c.throwOnError===void 0&&(c.throwOnError=!!c.suspense),!c.networkMode&&c.persister&&(c.networkMode="offlineFirst"),c.queryFn===uu&&(c.enabled=!1),c}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...p(this,ll).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_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,Wm),Ho={exports:{}},re={};/**
9
+ */var xm;function F0(){if(xm)return ks;xm=1;var r=Symbol.for("react.transitional.element"),c=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:r,type:u,key:T,ref:m!==void 0?m:null,props:x}}return ks.Fragment=c,ks.jsx=d,ks.jsxs=d,ks}var bm;function $0(){return bm||(bm=1,Bo.exports=F0()),Bo.exports}var n=$0(),Vs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cl,Wa,Tn,Gm,W0=(Gm=class extends Vs{constructor(){super();te(this,Cl);te(this,Wa);te(this,Tn);X(this,Tn,c=>{if(typeof window<"u"&&window.addEventListener){const d=()=>c();return window.addEventListener("visibilitychange",d,!1),()=>{window.removeEventListener("visibilitychange",d)}}})}onSubscribe(){v(this,Wa)||this.setEventListener(v(this,Tn))}onUnsubscribe(){var c;this.hasListeners()||((c=v(this,Wa))==null||c.call(this),X(this,Wa,void 0))}setEventListener(c){var d;X(this,Tn,c),(d=v(this,Wa))==null||d.call(this),X(this,Wa,c(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(c){v(this,Cl)!==c&&(X(this,Cl,c),this.onFocus())}onFocus(){const c=this.isFocused();this.listeners.forEach(d=>{d(c)})}isFocused(){var c;return typeof v(this,Cl)=="boolean"?v(this,Cl):((c=globalThis.document)==null?void 0:c.visibilityState)!=="hidden"}},Cl=new WeakMap,Wa=new WeakMap,Tn=new WeakMap,Gm),cu=new W0,I0={setTimeout:(r,c)=>setTimeout(r,c),clearTimeout:r=>clearTimeout(r),setInterval:(r,c)=>setInterval(r,c),clearInterval:r=>clearInterval(r)},Ia,ru,Ym,P0=(Ym=class{constructor(){te(this,Ia,I0);te(this,ru,!1)}setTimeoutProvider(r){X(this,Ia,r)}setTimeout(r,c){return v(this,Ia).setTimeout(r,c)}clearTimeout(r){v(this,Ia).clearTimeout(r)}setInterval(r,c){return v(this,Ia).setInterval(r,c)}clearInterval(r){v(this,Ia).clearInterval(r)}},Ia=new WeakMap,ru=new WeakMap,Ym),Al=new P0;function ep(r){setTimeout(r,0)}var tp=typeof window>"u"||"Deno"in globalThis;function St(){}function ap(r,c){return typeof r=="function"?r(c):r}function Vo(r){return typeof r=="number"&&r>=0&&r!==1/0}function Im(r,c){return Math.max(r+(c||0)-Date.now(),0)}function sl(r,c){return typeof r=="function"?r(c):r}function Dt(r,c){return typeof r=="function"?r(c):r}function jm(r,c){const{type:d="all",exact:u,fetchStatus:m,predicate:x,queryKey:T,stale:j}=r;if(T){if(u){if(c.queryHash!==ou(T,c.options))return!1}else if(!Hs(c.queryKey,T))return!1}if(d!=="all"){const N=c.isActive();if(d==="active"&&!N||d==="inactive"&&N)return!1}return!(typeof j=="boolean"&&c.isStale()!==j||m&&m!==c.state.fetchStatus||x&&!x(c))}function Sm(r,c){const{exact:d,status:u,predicate:m,mutationKey:x}=r;if(x){if(!c.options.mutationKey)return!1;if(d){if(Bs(c.options.mutationKey)!==Bs(x))return!1}else if(!Hs(c.options.mutationKey,x))return!1}return!(u&&c.state.status!==u||m&&!m(c))}function ou(r,c){return((c==null?void 0:c.queryKeyHashFn)||Bs)(r)}function Bs(r){return JSON.stringify(r,(c,d)=>Jo(d)?Object.keys(d).sort().reduce((u,m)=>(u[m]=d[m],u),{}):d)}function Hs(r,c){return r===c?!0:typeof r!=typeof c?!1:r&&c&&typeof r=="object"&&typeof c=="object"?Object.keys(c).every(d=>Hs(r[d],c[d])):!1}var lp=Object.prototype.hasOwnProperty;function Pm(r,c,d=0){if(r===c)return r;if(d>500)return c;const u=Nm(r)&&Nm(c);if(!u&&!(Jo(r)&&Jo(c)))return c;const x=(u?r:Object.keys(r)).length,T=u?c:Object.keys(c),j=T.length,N=u?new Array(j):{};let h=0;for(let b=0;b<j;b++){const S=u?b:T[b],O=r[S],C=c[S];if(O===C){N[S]=O,(u?b<x:lp.call(r,S))&&h++;continue}if(O===null||C===null||typeof O!="object"||typeof C!="object"){N[S]=C;continue}const _=Pm(O,C,d+1);N[S]=_,_===O&&h++}return x===j&&h===x?r:N}function Zo(r,c){if(!c||Object.keys(r).length!==Object.keys(c).length)return!1;for(const d in r)if(r[d]!==c[d])return!1;return!0}function Nm(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function Jo(r){if(!zm(r))return!1;const c=r.constructor;if(c===void 0)return!0;const d=c.prototype;return!(!zm(d)||!d.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function zm(r){return Object.prototype.toString.call(r)==="[object Object]"}function np(r){return new Promise(c=>{Al.setTimeout(c,r)})}function Fo(r,c,d){return typeof d.structuralSharing=="function"?d.structuralSharing(r,c):d.structuralSharing!==!1?Pm(r,c):c}function sp(r,c,d=0){const u=[...r,c];return d&&u.length>d?u.slice(1):u}function ip(r,c,d=0){const u=[c,...r];return d&&u.length>d?u.slice(0,-1):u}var uu=Symbol();function ey(r,c){return!r.queryFn&&(c!=null&&c.initialPromise)?()=>c.initialPromise:!r.queryFn||r.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function ty(r,c){return typeof r=="function"?r(...c):!!r}function rp(r,c,d){let u=!1,m;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(m??(m=c()),u||(u=!0,m.aborted?d():m.addEventListener("abort",d,{once:!0})),m)}),r}var qs=(()=>{let r=()=>tp;return{isServer(){return r()},setIsServer(c){r=c}}})();function $o(){let r,c;const d=new Promise((m,x)=>{r=m,c=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}),r(m)},d.reject=m=>{u({status:"rejected",reason:m}),c(m)},d}var cp=ep;function op(){let r=[],c=0,d=j=>{j()},u=j=>{j()},m=cp;const x=j=>{c?r.push(j):m(()=>{d(j)})},T=()=>{const j=r;r=[],j.length&&m(()=>{u(()=>{j.forEach(N=>{d(N)})})})};return{batch:j=>{let N;c++;try{N=j()}finally{c--,c||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=op(),En,Pa,An,Km,up=(Km=class extends Vs{constructor(){super();te(this,En,!0);te(this,Pa);te(this,An);X(this,An,c=>{if(typeof window<"u"&&window.addEventListener){const d=()=>c(!0),u=()=>c(!1);return window.addEventListener("online",d,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",d),window.removeEventListener("offline",u)}}})}onSubscribe(){v(this,Pa)||this.setEventListener(v(this,An))}onUnsubscribe(){var c;this.hasListeners()||((c=v(this,Pa))==null||c.call(this),X(this,Pa,void 0))}setEventListener(c){var d;X(this,An,c),(d=v(this,Pa))==null||d.call(this),X(this,Pa,c(this.setOnline.bind(this)))}setOnline(c){v(this,En)!==c&&(X(this,En,c),this.listeners.forEach(u=>{u(c)}))}isOnline(){return v(this,En)}},En=new WeakMap,Pa=new WeakMap,An=new WeakMap,Km),hr=new up;function dp(r){return Math.min(1e3*2**r,3e4)}function ay(r){return(r??"online")==="online"?hr.isOnline():!0}var Wo=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function ly(r){let c=!1,d=0,u;const m=$o(),x=()=>m.status!=="pending",T=B=>{var Z;if(!x()){const V=new Wo(B);O(V),(Z=r.onCancel)==null||Z.call(r,V)}},j=()=>{c=!0},N=()=>{c=!1},h=()=>cu.isFocused()&&(r.networkMode==="always"||hr.isOnline())&&r.canRun(),b=()=>ay(r.networkMode)&&r.canRun(),S=B=>{x()||(u==null||u(),m.resolve(B))},O=B=>{x()||(u==null||u(),m.reject(B))},C=()=>new Promise(B=>{var Z;u=V=>{(x()||h())&&B(V)},(Z=r.onPause)==null||Z.call(r)}).then(()=>{var B;u=void 0,x()||(B=r.onContinue)==null||B.call(r)}),_=()=>{if(x())return;let B;const Z=d===0?r.initialPromise:void 0;try{B=Z??r.fn()}catch(V){B=Promise.reject(V)}Promise.resolve(B).then(S).catch(V=>{var ne;if(x())return;const q=r.retry??(qs.isServer()?0:3),Q=r.retryDelay??dp,G=typeof Q=="function"?Q(d,V):Q,P=q===!0||typeof q=="number"&&d<q||typeof q=="function"&&q(d,V);if(c||!P){O(V);return}d++,(ne=r.onFail)==null||ne.call(r,d,V),np(G).then(()=>h()?void 0:C()).then(()=>{c?O(V):_()})})};return{promise:m,status:()=>m.status,cancel:T,continue:()=>(u==null||u(),m),cancelRetry:j,continueRetry:N,canStart:b,start:()=>(b()?_():C().then(_),m)}}var Ml,Xm,ny=(Xm=class{constructor(){te(this,Ml)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vo(this.gcTime)&&X(this,Ml,Al.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(qs.isServer()?1/0:300*1e3))}clearGcTimeout(){v(this,Ml)!==void 0&&(Al.clearTimeout(v(this,Ml)),X(this,Ml,void 0))}},Ml=new WeakMap,Xm);function fp(r){return{onFetch:(c,d)=>{var b,S,O,C,_;const u=c.options,m=(O=(S=(b=c.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:O.direction,x=((C=c.state.data)==null?void 0:C.pages)||[],T=((_=c.state.data)==null?void 0:_.pageParams)||[];let j={pages:[],pageParams:[]},N=0;const h=async()=>{let B=!1;const Z=Q=>{rp(Q,()=>c.signal,()=>B=!0)},V=ey(c.options,c.fetchOptions),q=async(Q,G,P)=>{if(B)return Promise.reject(c.signal.reason);if(G==null&&Q.pages.length)return Promise.resolve(Q);const le=(()=>{const F={client:c.client,queryKey:c.queryKey,pageParam:G,direction:P?"backward":"forward",meta:c.options.meta};return Z(F),F})(),ie=await V(le),{maxPages:ve}=c.options,Ce=P?ip:sp;return{pages:Ce(Q.pages,ie,ve),pageParams:Ce(Q.pageParams,G,ve)}};if(m&&x.length){const Q=m==="backward",G=Q?hp:Tm,P={pages:x,pageParams:T},ne=G(u,P);j=await q(P,ne,Q)}else{const Q=r??x.length;do{const G=N===0?T[0]??u.initialPageParam:Tm(u,j);if(N>0&&G==null)break;j=await q(j,G),N++}while(N<Q)}return j};c.options.persister?c.fetchFn=()=>{var B,Z;return(Z=(B=c.options).persister)==null?void 0:Z.call(B,h,{client:c.client,queryKey:c.queryKey,meta:c.options.meta,signal:c.signal},d)}:c.fetchFn=h}}}function Tm(r,{pages:c,pageParams:d}){const u=c.length-1;return c.length>0?r.getNextPageParam(c[u],c,d[u],d):void 0}function hp(r,{pages:c,pageParams:d}){var u;return c.length>0?(u=r.getPreviousPageParam)==null?void 0:u.call(r,c[0],c,d[0],d):void 0}var Cn,Ol,Mn,Xt,_l,et,Qs,Rl,kt,sy,ja,Vm,mp=(Vm=class extends ny{constructor(c){super();te(this,kt);te(this,Cn);te(this,Ol);te(this,Mn);te(this,Xt);te(this,_l);te(this,et);te(this,Qs);te(this,Rl);X(this,Rl,!1),X(this,Qs,c.defaultOptions),this.setOptions(c.options),this.observers=[],X(this,_l,c.client),X(this,Xt,v(this,_l).getQueryCache()),this.queryKey=c.queryKey,this.queryHash=c.queryHash,X(this,Ol,Am(this.options)),this.state=c.state??v(this,Ol),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return v(this,Cn)}get promise(){var c;return(c=v(this,et))==null?void 0:c.promise}setOptions(c){if(this.options={...v(this,Qs),...c},c!=null&&c._type&&X(this,Cn,c._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const d=Am(this.options);d.data!==void 0&&(this.setState(Em(d.data,d.dataUpdatedAt)),X(this,Ol,d))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,Xt).remove(this)}setData(c,d){const u=Fo(this.state.data,c,this.options);return pe(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(c){pe(this,kt,ja).call(this,{type:"setState",state:c})}cancel(c){var u,m;const d=(u=v(this,et))==null?void 0:u.promise;return(m=v(this,et))==null||m.cancel(c),d?d.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return v(this,Ol)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(c=>Dt(c.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(c=>sl(c.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(c=>c.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(c=0){return this.state.data===void 0?!0:c==="static"?!1:this.state.isInvalidated?!0:!Im(this.state.dataUpdatedAt,c)}onFocus(){var d;const c=this.observers.find(u=>u.shouldFetchOnWindowFocus());c==null||c.refetch({cancelRefetch:!1}),(d=v(this,et))==null||d.continue()}onOnline(){var d;const c=this.observers.find(u=>u.shouldFetchOnReconnect());c==null||c.refetch({cancelRefetch:!1}),(d=v(this,et))==null||d.continue()}addObserver(c){this.observers.includes(c)||(this.observers.push(c),this.clearGcTimeout(),v(this,Xt).notify({type:"observerAdded",query:this,observer:c}))}removeObserver(c){this.observers.includes(c)&&(this.observers=this.observers.filter(d=>d!==c),this.observers.length||(v(this,et)&&(v(this,Rl)||pe(this,kt,sy).call(this)?v(this,et).cancel({revert:!0}):v(this,et).cancelRetry()),this.scheduleGc()),v(this,Xt).notify({type:"observerRemoved",query:this,observer:c}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,kt,ja).call(this,{type:"invalidate"})}async fetch(c,d){var h,b,S,O,C,_,B,Z,V,q,Q;if(this.state.fetchStatus!=="idle"&&((h=v(this,et))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(d!=null&&d.cancelRefetch))this.cancel({silent:!0});else if(v(this,et))return v(this,et).continueRetry(),v(this,et).promise}if(c&&this.setOptions(c),!this.options.queryFn){const G=this.observers.find(P=>P.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=ey(this.options,d),ne=(()=>{const le={client:v(this,_l),queryKey:this.queryKey,meta:this.meta};return m(le),le})();return X(this,Rl,!1),this.options.persister?this.options.persister(G,ne,this):G(ne)},j=(()=>{const G={fetchOptions:d,options:this.options,queryKey:this.queryKey,client:v(this,_l),state:this.state,fetchFn:x};return m(G),G})(),N=v(this,Cn)==="infinite"?fp(this.options.pages):this.options.behavior;N==null||N.onFetch(j,this),X(this,Mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=j.fetchOptions)==null?void 0:b.meta))&&pe(this,kt,ja).call(this,{type:"fetch",meta:(S=j.fetchOptions)==null?void 0:S.meta}),X(this,et,ly({initialPromise:d==null?void 0:d.initialPromise,fn:j.fetchFn,onCancel:G=>{G instanceof Wo&&G.revert&&this.setState({...v(this,Mn),fetchStatus:"idle"}),u.abort()},onFail:(G,P)=>{pe(this,kt,ja).call(this,{type:"failed",failureCount:G,error:P})},onPause:()=>{pe(this,kt,ja).call(this,{type:"pause"})},onContinue:()=>{pe(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 v(this,et).start();if(G===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(G),(C=(O=v(this,Xt).config).onSuccess)==null||C.call(O,G,this),(B=(_=v(this,Xt).config).onSettled)==null||B.call(_,G,this.state.error,this),G}catch(G){if(G instanceof Wo){if(G.silent)return v(this,et).promise;if(G.revert){if(this.state.data===void 0)throw G;return this.state.data}}throw pe(this,kt,ja).call(this,{type:"error",error:G}),(V=(Z=v(this,Xt).config).onError)==null||V.call(Z,G,this),(Q=(q=v(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,sy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ja=function(c){const d=u=>{switch(c.type){case"failed":return{...u,fetchFailureCount:c.failureCount,fetchFailureReason:c.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...iy(u.data,this.options),fetchMeta:c.meta??null};case"success":const m={...u,...Em(c.data,c.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!c.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return X(this,Mn,c.manual?m:void 0),m;case"error":const x=c.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,...c.state}}};this.state=d(this.state),it.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),v(this,Xt).notify({query:this,type:"updated",action:c})})},Vm);function iy(r,c){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ay(c.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function Em(r,c){return{data:r,dataUpdatedAt:c??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Am(r){const c=typeof r.initialData=="function"?r.initialData():r.initialData,d=c!==void 0,u=d?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:c,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,ry,Zm,yp=(Zm=class extends Vs{constructor(c,d){super();te(this,Te);te(this,jt);te(this,be);te(this,Gs);te(this,ft);te(this,kl);te(this,On);te(this,Sa);te(this,el);te(this,Ys);te(this,_n);te(this,Rn);te(this,Dl);te(this,wl);te(this,tl);te(this,kn,new Set);this.options=d,X(this,jt,c),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&&(v(this,be).addObserver(this),Cm(v(this,be),this.options)?pe(this,Te,Us).call(this):this.updateResult(),pe(this,Te,tu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return su(v(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return su(v(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,Te,au).call(this),pe(this,Te,lu).call(this),v(this,be).removeObserver(this)}setOptions(c){const d=this.options,u=v(this,be);if(this.options=v(this,jt).defaultQueryOptions(c),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,v(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,Te,nu).call(this),v(this,be).setOptions(this.options),d._defaulted&&!Zo(this.options,d)&&v(this,jt).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,be),observer:this});const m=this.hasListeners();m&&Mm(v(this,be),u,this.options,d)&&pe(this,Te,Us).call(this),this.updateResult(),m&&(v(this,be)!==u||Dt(this.options.enabled,v(this,be))!==Dt(d.enabled,v(this,be))||sl(this.options.staleTime,v(this,be))!==sl(d.staleTime,v(this,be)))&&pe(this,Te,Io).call(this);const x=pe(this,Te,Po).call(this);m&&(v(this,be)!==u||Dt(this.options.enabled,v(this,be))!==Dt(d.enabled,v(this,be))||x!==v(this,tl))&&pe(this,Te,eu).call(this,x)}getOptimisticResult(c){const d=v(this,jt).getQueryCache().build(v(this,jt),c),u=this.createResult(d,c);return vp(this,u)&&(X(this,ft,u),X(this,On,this.options),X(this,kl,v(this,be).state)),u}getCurrentResult(){return v(this,ft)}trackResult(c,d){return new Proxy(c,{get:(u,m)=>(this.trackProp(m),d==null||d(m),m==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&v(this,Sa).status==="pending"&&v(this,Sa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,m))})}trackProp(c){v(this,kn).add(c)}getCurrentQuery(){return v(this,be)}refetch({...c}={}){return this.fetch({...c})}fetchOptimistic(c){const d=v(this,jt).defaultQueryOptions(c),u=v(this,jt).getQueryCache().build(v(this,jt),d);return u.fetch().then(()=>this.createResult(u,d))}fetch(c){return pe(this,Te,Us).call(this,{...c,cancelRefetch:c.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ft)))}createResult(c,d){var ve;const u=v(this,be),m=this.options,x=v(this,ft),T=v(this,kl),j=v(this,On),h=c!==u?c.state:v(this,Gs),{state:b}=c;let S={...b},O=!1,C;if(d._optimisticResults){const Ce=this.hasListeners(),F=!Ce&&Cm(c,d),ge=Ce&&Mm(c,u,d,m);(F||ge)&&(S={...S,...iy(b.data,c.options)}),d._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:B,status:Z}=S;C=S.data;let V=!1;if(d.placeholderData!==void 0&&C===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((ve=v(this,Rn))==null?void 0:ve.state.data,v(this,Rn)):d.placeholderData,Ce!==void 0&&(Z="success",C=Fo(x==null?void 0:x.data,Ce,d),O=!0)}if(d.select&&C!==void 0&&!V)if(x&&C===(T==null?void 0:T.data)&&d.select===v(this,Ys))C=v(this,_n);else try{X(this,Ys,d.select),C=d.select(C),C=Fo(x==null?void 0:x.data,C,d),X(this,_n,C),X(this,el,null)}catch(Ce){X(this,el,Ce)}v(this,el)&&(_=v(this,el),C=v(this,_n),B=Date.now(),Z="error");const q=S.fetchStatus==="fetching",Q=Z==="pending",G=Z==="error",P=Q&&q,ne=C!==void 0,ie={status:Z,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:Z==="success",isError:G,isInitialLoading:P,isLoading:P,data:C,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:B,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:c.isFetched(),isFetchedAfterMount:S.dataUpdateCount>h.dataUpdateCount||S.errorUpdateCount>h.errorUpdateCount,isFetching:q,isRefetching:q&&!Q,isLoadingError:G&&!ne,isPaused:S.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:G&&ne,isStale:du(c,d),refetch:this.refetch,promise:v(this,Sa),isEnabled:Dt(d.enabled,c)!==!1};if(this.options.experimental_prefetchInRender){const Ce=ie.data!==void 0,F=ie.status==="error"&&!Ce,ge=ke=>{F?ke.reject(ie.error):Ce&&ke.resolve(ie.data)},Ue=()=>{const ke=X(this,Sa,ie.promise=$o());ge(ke)},qe=v(this,Sa);switch(qe.status){case"pending":c.queryHash===u.queryHash&&ge(qe);break;case"fulfilled":(F||ie.data!==qe.value)&&Ue();break;case"rejected":(!F||ie.error!==qe.reason)&&Ue();break}}return ie}updateResult(){const c=v(this,ft),d=this.createResult(v(this,be),this.options);if(X(this,kl,v(this,be).state),X(this,On,this.options),v(this,kl).data!==void 0&&X(this,Rn,v(this,be)),Zo(d,c))return;X(this,ft,d);const u=()=>{if(!c)return!0;const{notifyOnChangeProps:m}=this.options,x=typeof m=="function"?m():m;if(x==="all"||!x&&!v(this,kn).size)return!0;const T=new Set(x??v(this,kn));return this.options.throwOnError&&T.add("error"),Object.keys(v(this,ft)).some(j=>{const N=j;return v(this,ft)[N]!==c[N]&&T.has(N)})};pe(this,Te,ry).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(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(c){pe(this,Te,nu).call(this);let d=v(this,be).fetch(this.options,c);return c!=null&&c.throwOnError||(d=d.catch(St)),d},Io=function(){pe(this,Te,au).call(this);const c=sl(this.options.staleTime,v(this,be));if(qs.isServer()||v(this,ft).isStale||!Vo(c))return;const u=Im(v(this,ft).dataUpdatedAt,c)+1;X(this,Dl,Al.setTimeout(()=>{v(this,ft).isStale||this.updateResult()},u))},Po=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,be)):this.options.refetchInterval)??!1},eu=function(c){pe(this,Te,lu).call(this),X(this,tl,c),!(qs.isServer()||Dt(this.options.enabled,v(this,be))===!1||!Vo(v(this,tl))||v(this,tl)===0)&&X(this,wl,Al.setInterval(()=>{(this.options.refetchIntervalInBackground||cu.isFocused())&&pe(this,Te,Us).call(this)},v(this,tl)))},tu=function(){pe(this,Te,Io).call(this),pe(this,Te,eu).call(this,pe(this,Te,Po).call(this))},au=function(){v(this,Dl)!==void 0&&(Al.clearTimeout(v(this,Dl)),X(this,Dl,void 0))},lu=function(){v(this,wl)!==void 0&&(Al.clearInterval(v(this,wl)),X(this,wl,void 0))},nu=function(){const c=v(this,jt).getQueryCache().build(v(this,jt),this.options);if(c===v(this,be))return;const d=v(this,be);X(this,be,c),X(this,Gs,c.state),this.hasListeners()&&(d==null||d.removeObserver(this),c.addObserver(this))},ry=function(c){it.batch(()=>{c.listeners&&this.listeners.forEach(d=>{d(v(this,ft))}),v(this,jt).getQueryCache().notify({query:v(this,be),type:"observerResultsUpdated"})})},Zm);function pp(r,c){return Dt(c.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&Dt(c.retryOnMount,r)===!1)}function Cm(r,c){return pp(r,c)||r.state.data!==void 0&&su(r,c,c.refetchOnMount)}function su(r,c,d){if(Dt(c.enabled,r)!==!1&&sl(c.staleTime,r)!=="static"){const u=typeof d=="function"?d(r):d;return u==="always"||u!==!1&&du(r,c)}return!1}function Mm(r,c,d,u){return(r!==c||Dt(u.enabled,r)===!1)&&(!d.suspense||r.state.status!=="error")&&du(r,d)}function du(r,c){return Dt(c.enabled,r)!==!1&&r.isStaleByTime(sl(c.staleTime,r))}function vp(r,c){return!Zo(r.getCurrentResult(),c)}var Ks,ea,ct,Ul,ta,$a,Jm,gp=(Jm=class extends ny{constructor(c){super();te(this,ta);te(this,Ks);te(this,ea);te(this,ct);te(this,Ul);X(this,Ks,c.client),this.mutationId=c.mutationId,X(this,ct,c.mutationCache),X(this,ea,[]),this.state=c.state||xp(),this.setOptions(c.options),this.scheduleGc()}setOptions(c){this.options=c,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(c){v(this,ea).includes(c)||(v(this,ea).push(c),this.clearGcTimeout(),v(this,ct).notify({type:"observerAdded",mutation:this,observer:c}))}removeObserver(c){X(this,ea,v(this,ea).filter(d=>d!==c)),this.scheduleGc(),v(this,ct).notify({type:"observerRemoved",mutation:this,observer:c})}optionalRemove(){v(this,ea).length||(this.state.status==="pending"?this.scheduleGc():v(this,ct).remove(this))}continue(){var c;return((c=v(this,Ul))==null?void 0:c.continue())??this.execute(this.state.variables)}async execute(c){var T,j,N,h,b,S,O,C,_,B,Z,V,q,Q,G,P,ne,le;const d=()=>{pe(this,ta,$a).call(this,{type:"continue"})},u={client:v(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};X(this,Ul,ly({fn:()=>this.options.mutationFn?this.options.mutationFn(c,u):Promise.reject(new Error("No mutationFn found")),onFail:(ie,ve)=>{pe(this,ta,$a).call(this,{type:"failed",failureCount:ie,error:ve})},onPause:()=>{pe(this,ta,$a).call(this,{type:"pause"})},onContinue:d,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>v(this,ct).canRun(this)}));const m=this.state.status==="pending",x=!v(this,Ul).canStart();try{if(m)d();else{pe(this,ta,$a).call(this,{type:"pending",variables:c,isPaused:x}),v(this,ct).config.onMutate&&await v(this,ct).config.onMutate(c,this,u);const ve=await((j=(T=this.options).onMutate)==null?void 0:j.call(T,c,u));ve!==this.state.context&&pe(this,ta,$a).call(this,{type:"pending",context:ve,variables:c,isPaused:x})}const ie=await v(this,Ul).start();return await((h=(N=v(this,ct).config).onSuccess)==null?void 0:h.call(N,ie,c,this.state.context,this,u)),await((S=(b=this.options).onSuccess)==null?void 0:S.call(b,ie,c,this.state.context,u)),await((C=(O=v(this,ct).config).onSettled)==null?void 0:C.call(O,ie,null,this.state.variables,this.state.context,this,u)),await((B=(_=this.options).onSettled)==null?void 0:B.call(_,ie,null,c,this.state.context,u)),pe(this,ta,$a).call(this,{type:"success",data:ie}),ie}catch(ie){try{await((V=(Z=v(this,ct).config).onError)==null?void 0:V.call(Z,ie,c,this.state.context,this,u))}catch(ve){Promise.reject(ve)}try{await((Q=(q=this.options).onError)==null?void 0:Q.call(q,ie,c,this.state.context,u))}catch(ve){Promise.reject(ve)}try{await((P=(G=v(this,ct).config).onSettled)==null?void 0:P.call(G,void 0,ie,this.state.variables,this.state.context,this,u))}catch(ve){Promise.reject(ve)}try{await((le=(ne=this.options).onSettled)==null?void 0:le.call(ne,void 0,ie,c,this.state.context,u))}catch(ve){Promise.reject(ve)}throw pe(this,ta,$a).call(this,{type:"error",error:ie}),ie}finally{v(this,ct).runNext(this)}}},Ks=new WeakMap,ea=new WeakMap,ct=new WeakMap,Ul=new WeakMap,ta=new WeakSet,$a=function(c){const d=u=>{switch(c.type){case"failed":return{...u,failureCount:c.failureCount,failureReason:c.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:c.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:c.isPaused,status:"pending",variables:c.variables,submittedAt:Date.now()};case"success":return{...u,data:c.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:c.error,failureCount:u.failureCount+1,failureReason:c.error,isPaused:!1,status:"error"}}};this.state=d(this.state),it.batch(()=>{v(this,ea).forEach(u=>{u.onMutationUpdate(c)}),v(this,ct).notify({mutation:this,type:"updated",action:c})})},Jm);function xp(){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,Fm,bp=(Fm=class extends Vs{constructor(c={}){super();te(this,Na);te(this,Ft);te(this,Xs);this.config=c,X(this,Na,new Set),X(this,Ft,new Map),X(this,Xs,0)}build(c,d,u){const m=new gp({client:c,mutationCache:this,mutationId:++dr(this,Xs)._,options:c.defaultMutationOptions(d),state:u});return this.add(m),m}add(c){v(this,Na).add(c);const d=fr(c);if(typeof d=="string"){const u=v(this,Ft).get(d);u?u.push(c):v(this,Ft).set(d,[c])}this.notify({type:"added",mutation:c})}remove(c){if(v(this,Na).delete(c)){const d=fr(c);if(typeof d=="string"){const u=v(this,Ft).get(d);if(u)if(u.length>1){const m=u.indexOf(c);m!==-1&&u.splice(m,1)}else u[0]===c&&v(this,Ft).delete(d)}}this.notify({type:"removed",mutation:c})}canRun(c){const d=fr(c);if(typeof d=="string"){const u=v(this,Ft).get(d),m=u==null?void 0:u.find(x=>x.state.status==="pending");return!m||m===c}else return!0}runNext(c){var u;const d=fr(c);if(typeof d=="string"){const m=(u=v(this,Ft).get(d))==null?void 0:u.find(x=>x!==c&&x.state.isPaused);return(m==null?void 0:m.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{v(this,Na).forEach(c=>{this.notify({type:"removed",mutation:c})}),v(this,Na).clear(),v(this,Ft).clear()})}getAll(){return Array.from(v(this,Na))}find(c){const d={exact:!0,...c};return this.getAll().find(u=>Sm(d,u))}findAll(c={}){return this.getAll().filter(d=>Sm(c,d))}notify(c){it.batch(()=>{this.listeners.forEach(d=>{d(c)})})}resumePausedMutations(){const c=this.getAll().filter(d=>d.state.isPaused);return it.batch(()=>Promise.all(c.map(d=>d.continue().catch(St))))}},Na=new WeakMap,Ft=new WeakMap,Xs=new WeakMap,Fm);function fr(r){var c;return(c=r.options.scope)==null?void 0:c.id}var aa,$m,jp=($m=class extends Vs{constructor(c={}){super();te(this,aa);this.config=c,X(this,aa,new Map)}build(c,d,u){const m=d.queryKey,x=d.queryHash??ou(m,d);let T=this.get(x);return T||(T=new mp({client:c,queryKey:m,queryHash:x,options:c.defaultQueryOptions(d),state:u,defaultOptions:c.getQueryDefaults(m)}),this.add(T)),T}add(c){v(this,aa).has(c.queryHash)||(v(this,aa).set(c.queryHash,c),this.notify({type:"added",query:c}))}remove(c){const d=v(this,aa).get(c.queryHash);d&&(c.destroy(),d===c&&v(this,aa).delete(c.queryHash),this.notify({type:"removed",query:c}))}clear(){it.batch(()=>{this.getAll().forEach(c=>{this.remove(c)})})}get(c){return v(this,aa).get(c)}getAll(){return[...v(this,aa).values()]}find(c){const d={exact:!0,...c};return this.getAll().find(u=>jm(d,u))}findAll(c={}){const d=this.getAll();return Object.keys(c).length>0?d.filter(u=>jm(c,u)):d}notify(c){it.batch(()=>{this.listeners.forEach(d=>{d(c)})})}onFocus(){it.batch(()=>{this.getAll().forEach(c=>{c.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(c=>{c.onOnline()})})}},aa=new WeakMap,$m),Ye,al,ll,Dn,wn,nl,Un,Ln,Wm,Sp=(Wm=class{constructor(r={}){te(this,Ye);te(this,al);te(this,ll);te(this,Dn);te(this,wn);te(this,nl);te(this,Un);te(this,Ln);X(this,Ye,r.queryCache||new jp),X(this,al,r.mutationCache||new bp),X(this,ll,r.defaultOptions||{}),X(this,Dn,new Map),X(this,wn,new Map),X(this,nl,0)}mount(){dr(this,nl)._++,v(this,nl)===1&&(X(this,Un,cu.subscribe(async r=>{r&&(await this.resumePausedMutations(),v(this,Ye).onFocus())})),X(this,Ln,hr.subscribe(async r=>{r&&(await this.resumePausedMutations(),v(this,Ye).onOnline())})))}unmount(){var r,c;dr(this,nl)._--,v(this,nl)===0&&((r=v(this,Un))==null||r.call(this),X(this,Un,void 0),(c=v(this,Ln))==null||c.call(this),X(this,Ln,void 0))}isFetching(r){return v(this,Ye).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return v(this,al).findAll({...r,status:"pending"}).length}getQueryData(r){var d;const c=this.defaultQueryOptions({queryKey:r});return(d=v(this,Ye).get(c.queryHash))==null?void 0:d.state.data}ensureQueryData(r){const c=this.defaultQueryOptions(r),d=v(this,Ye).build(this,c),u=d.state.data;return u===void 0?this.fetchQuery(r):(r.revalidateIfStale&&d.isStaleByTime(sl(c.staleTime,d))&&this.prefetchQuery(c),Promise.resolve(u))}getQueriesData(r){return v(this,Ye).findAll(r).map(({queryKey:c,state:d})=>{const u=d.data;return[c,u]})}setQueryData(r,c,d){const u=this.defaultQueryOptions({queryKey:r}),m=v(this,Ye).get(u.queryHash),x=m==null?void 0:m.state.data,T=ap(c,x);if(T!==void 0)return v(this,Ye).build(this,u).setData(T,{...d,manual:!0})}setQueriesData(r,c,d){return it.batch(()=>v(this,Ye).findAll(r).map(({queryKey:u})=>[u,this.setQueryData(u,c,d)]))}getQueryState(r){var d;const c=this.defaultQueryOptions({queryKey:r});return(d=v(this,Ye).get(c.queryHash))==null?void 0:d.state}removeQueries(r){const c=v(this,Ye);it.batch(()=>{c.findAll(r).forEach(d=>{c.remove(d)})})}resetQueries(r,c){const d=v(this,Ye);return it.batch(()=>(d.findAll(r).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...r},c)))}cancelQueries(r,c={}){const d={revert:!0,...c},u=it.batch(()=>v(this,Ye).findAll(r).map(m=>m.cancel(d)));return Promise.all(u).then(St).catch(St)}invalidateQueries(r,c={}){return it.batch(()=>(v(this,Ye).findAll(r).forEach(d=>{d.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},c)))}refetchQueries(r,c={}){const d={...c,cancelRefetch:c.cancelRefetch??!0},u=it.batch(()=>v(this,Ye).findAll(r).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(r){const c=this.defaultQueryOptions(r);c.retry===void 0&&(c.retry=!1);const d=v(this,Ye).build(this,c);return d.isStaleByTime(sl(c.staleTime,d))?d.fetch(c):Promise.resolve(d.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(St).catch(St)}fetchInfiniteQuery(r){return r._type="infinite",this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(St).catch(St)}ensureInfiniteQueryData(r){return r._type="infinite",this.ensureQueryData(r)}resumePausedMutations(){return hr.isOnline()?v(this,al).resumePausedMutations():Promise.resolve()}getQueryCache(){return v(this,Ye)}getMutationCache(){return v(this,al)}getDefaultOptions(){return v(this,ll)}setDefaultOptions(r){X(this,ll,r)}setQueryDefaults(r,c){v(this,Dn).set(Bs(r),{queryKey:r,defaultOptions:c})}getQueryDefaults(r){const c=[...v(this,Dn).values()],d={};return c.forEach(u=>{Hs(r,u.queryKey)&&Object.assign(d,u.defaultOptions)}),d}setMutationDefaults(r,c){v(this,wn).set(Bs(r),{mutationKey:r,defaultOptions:c})}getMutationDefaults(r){const c=[...v(this,wn).values()],d={};return c.forEach(u=>{Hs(r,u.mutationKey)&&Object.assign(d,u.defaultOptions)}),d}defaultQueryOptions(r){if(r._defaulted)return r;const c={...v(this,ll).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return c.queryHash||(c.queryHash=ou(c.queryKey,c)),c.refetchOnReconnect===void 0&&(c.refetchOnReconnect=c.networkMode!=="always"),c.throwOnError===void 0&&(c.throwOnError=!!c.suspense),!c.networkMode&&c.persister&&(c.networkMode="offlineFirst"),c.queryFn===uu&&(c.enabled=!1),c}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...v(this,ll).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){v(this,Ye).clear(),v(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,Wm),Ho={exports:{}},re={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("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 Om;function Nv(){if(Om)return re;Om=1;var r=Symbol.for("react.transitional.element"),c=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"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),O=Symbol.iterator;function C(g){return g===null||typeof g!="object"?null:(g=O&&g[O]||g["@@iterator"],typeof g=="function"?g:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function V(g,L,K){this.props=g,this.context=L,this.refs=Z,this.updater=K||_}V.prototype.isReactComponent={},V.prototype.setState=function(g,L){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,L,"setState")},V.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function q(){}q.prototype=V.prototype;function Q(g,L,K){this.props=g,this.context=L,this.refs=Z,this.updater=K||_}var G=Q.prototype=new q;G.constructor=Q,B(G,V.prototype),G.isPureReactComponent=!0;var P=Array.isArray;function ne(){}var le={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function pe(g,L,K){var $=K.ref;return{$$typeof:r,type:g,key:L,ref:$!==void 0?$:null,props:K}}function Ce(g,L){return pe(g.type,L,g.props)}function F(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}function ge(g){var L={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(K){return L[K]})}var Ue=/\/+/g;function qe(g,L){return typeof g=="object"&&g!==null&&g.key!=null?ge(""+g.key):L.toString(36)}function ke(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(ne,ne):(g.status="pending",g.then(function(L){g.status==="pending"&&(g.status="fulfilled",g.value=L)},function(L){g.status==="pending"&&(g.status="rejected",g.reason=L)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function k(g,L,K,$,ce){var de=typeof g;(de==="undefined"||de==="boolean")&&(g=null);var ze=!1;if(g===null)ze=!0;else switch(de){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(g.$$typeof){case r:case c:ze=!0;break;case b:return ze=g._init,k(ze(g._payload),L,K,$,ce)}}if(ze)return ce=ce(g),ze=$===""?"."+qe(g,0):$,P(ce)?(K="",ze!=null&&(K=ze.replace(Ue,"$&/")+"/"),k(ce,L,K,"",function(qn){return qn})):ce!=null&&(F(ce)&&(ce=Ce(ce,K+(ce.key==null||g&&g.key===ce.key?"":(""+ce.key).replace(Ue,"$&/")+"/")+ze)),L.push(ce)),1;ze=0;var ut=$===""?".":$+":";if(P(g))for(var Ke=0;Ke<g.length;Ke++)$=g[Ke],de=ut+qe($,Ke),ze+=k($,L,K,de,ce);else if(Ke=C(g),typeof Ke=="function")for(g=Ke.call(g),Ke=0;!($=g.next()).done;)$=$.value,de=ut+qe($,Ke++),ze+=k($,L,K,de,ce);else if(de==="object"){if(typeof g.then=="function")return k(ke(g),L,K,$,ce);throw L=String(g),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(g,L,K){if(g==null)return g;var $=[],ce=0;return k(g,$,"","",function(de){return L.call(K,de,ce++)}),$}function se(g){if(g._status===-1){var L=g._result;L=L(),L.then(function(K){(g._status===0||g._status===-1)&&(g._status=1,g._result=K)},function(K){(g._status===0||g._status===-1)&&(g._status=2,g._result=K)}),g._status===-1&&(g._status=0,g._result=L)}if(g._status===1)return g._result.default;throw g._result}var Me=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},De={map:Y,forEach:function(g,L,K){Y(g,function(){L.apply(this,arguments)},K)},count:function(g){var L=0;return Y(g,function(){L++}),L},toArray:function(g){return Y(g,function(L){return L})||[]},only:function(g){if(!F(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return re.Activity=S,re.Children=De,re.Component=V,re.Fragment=d,re.Profiler=m,re.PureComponent=Q,re.StrictMode=u,re.Suspense=N,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,re.__COMPILER_RUNTIME={__proto__:null,c:function(g){return le.H.useMemoCache(g)}},re.cache=function(g){return function(){return g.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(g,L,K){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var $=B({},g.props),ce=g.key;if(L!=null)for(de in L.key!==void 0&&(ce=""+L.key),L)!ie.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(g.type,ce,$)},re.createContext=function(g){return g={$$typeof:T,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:x,_context:g},g},re.createElement=function(g,L,K){var $,ce={},de=null;if(L!=null)for($ in L.key!==void 0&&(de=""+L.key),L)ie.call(L,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ce[$]=L[$]);var ze=arguments.length-2;if(ze===1)ce.children=K;else if(1<ze){for(var ut=Array(ze),Ke=0;Ke<ze;Ke++)ut[Ke]=arguments[Ke+2];ce.children=ut}if(g&&g.defaultProps)for($ in ze=g.defaultProps,ze)ce[$]===void 0&&(ce[$]=ze[$]);return pe(g,de,ce)},re.createRef=function(){return{current:null}},re.forwardRef=function(g){return{$$typeof:j,render:g}},re.isValidElement=F,re.lazy=function(g){return{$$typeof:b,_payload:{_status:-1,_result:g},_init:se}},re.memo=function(g,L){return{$$typeof:h,type:g,compare:L===void 0?null:L}},re.startTransition=function(g){var L=le.T,K={};le.T=K;try{var $=g(),ce=le.S;ce!==null&&ce(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ne,Me)}catch(de){Me(de)}finally{L!==null&&K.types!==null&&(L.types=K.types),le.T=L}},re.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},re.use=function(g){return le.H.use(g)},re.useActionState=function(g,L,K){return le.H.useActionState(g,L,K)},re.useCallback=function(g,L){return le.H.useCallback(g,L)},re.useContext=function(g){return le.H.useContext(g)},re.useDebugValue=function(){},re.useDeferredValue=function(g,L){return le.H.useDeferredValue(g,L)},re.useEffect=function(g,L){return le.H.useEffect(g,L)},re.useEffectEvent=function(g){return le.H.useEffectEvent(g)},re.useId=function(){return le.H.useId()},re.useImperativeHandle=function(g,L,K){return le.H.useImperativeHandle(g,L,K)},re.useInsertionEffect=function(g,L){return le.H.useInsertionEffect(g,L)},re.useLayoutEffect=function(g,L){return le.H.useLayoutEffect(g,L)},re.useMemo=function(g,L){return le.H.useMemo(g,L)},re.useOptimistic=function(g,L){return le.H.useOptimistic(g,L)},re.useReducer=function(g,L,K){return le.H.useReducer(g,L,K)},re.useRef=function(g){return le.H.useRef(g)},re.useState=function(g){return le.H.useState(g)},re.useSyncExternalStore=function(g,L,K){return le.H.useSyncExternalStore(g,L,K)},re.useTransition=function(){return le.H.useTransition()},re.version="19.2.7",re}var _m;function fu(){return _m||(_m=1,Ho.exports=Nv()),Ho.exports}var H=fu(),cy=H.createContext(void 0),zv=r=>{const c=H.useContext(cy);if(!c)throw new Error("No QueryClient set, use QueryClientProvider to set one");return c},Tv=({client:r,children:c})=>(H.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),n.jsx(cy.Provider,{value:r,children:c})),oy=H.createContext(!1),Ev=()=>H.useContext(oy);oy.Provider;function Av(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Cv=H.createContext(Av()),Mv=()=>H.useContext(Cv),Ov=(r,c,d)=>{const u=d!=null&&d.state.error&&typeof r.throwOnError=="function"?ty(r.throwOnError,[d.state.error,d]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||u)&&(c.isReset()||(r.retryOnMount=!1))},_v=r=>{H.useEffect(()=>{r.clearReset()},[r])},Rv=({result:r,errorResetBoundary:c,throwOnError:d,query:u,suspense:m})=>r.isError&&!c.isReset()&&!r.isFetching&&u&&(m&&r.data===void 0||ty(d,[r.error,u])),kv=r=>{if(r.suspense){const d=m=>m==="static"?m:Math.max(m??1e3,1e3),u=r.staleTime;r.staleTime=typeof u=="function"?(...m)=>d(u(...m)):d(u),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Dv=(r,c)=>r.isLoading&&r.isFetching&&!c,wv=(r,c)=>(r==null?void 0:r.suspense)&&c.isPending,Rm=(r,c,d)=>c.fetchOptimistic(r).catch(()=>{d.clearReset()});function Uv(r,c,d){var C,_,B,Z;const u=Ev(),m=Mv(),x=zv(),T=x.defaultQueryOptions(r);(_=(C=x.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||_.call(C,T);const j=x.getQueryCache().get(T.queryHash),N=r.subscribed!==!1;T._optimisticResults=u?"isRestoring":N?"optimistic":void 0,kv(T),Ov(T,m,j),_v(m);const h=!x.getQueryCache().get(T.queryHash),[b]=H.useState(()=>new c(x,T)),S=b.getOptimisticResult(T),O=!u&&N;if(H.useSyncExternalStore(H.useCallback(V=>{const q=O?b.subscribe(it.batchCalls(V)):St;return b.updateResult(),q},[b,O]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),H.useEffect(()=>{b.setOptions(T)},[T,b]),wv(T,S))throw Rm(T,b,m);if(Rv({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?Rm(T,b,m):j==null?void 0:j.promise;V==null||V.catch(St).finally(()=>{b.updateResult()})}return T.notifyOnChangeProps?S:b.trackResult(S)}function Lv(r,c){return Uv(r,yv)}var qo={exports:{}},Ds={},Qo={exports:{}},Go={};/**
17
+ */var Om;function Np(){if(Om)return re;Om=1;var r=Symbol.for("react.transitional.element"),c=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"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),O=Symbol.iterator;function C(g){return g===null||typeof g!="object"?null:(g=O&&g[O]||g["@@iterator"],typeof g=="function"?g:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Z={};function V(g,L,K){this.props=g,this.context=L,this.refs=Z,this.updater=K||_}V.prototype.isReactComponent={},V.prototype.setState=function(g,L){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,L,"setState")},V.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function q(){}q.prototype=V.prototype;function Q(g,L,K){this.props=g,this.context=L,this.refs=Z,this.updater=K||_}var G=Q.prototype=new q;G.constructor=Q,B(G,V.prototype),G.isPureReactComponent=!0;var P=Array.isArray;function ne(){}var le={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function ve(g,L,K){var $=K.ref;return{$$typeof:r,type:g,key:L,ref:$!==void 0?$:null,props:K}}function Ce(g,L){return ve(g.type,L,g.props)}function F(g){return typeof g=="object"&&g!==null&&g.$$typeof===r}function ge(g){var L={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(K){return L[K]})}var Ue=/\/+/g;function qe(g,L){return typeof g=="object"&&g!==null&&g.key!=null?ge(""+g.key):L.toString(36)}function ke(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(ne,ne):(g.status="pending",g.then(function(L){g.status==="pending"&&(g.status="fulfilled",g.value=L)},function(L){g.status==="pending"&&(g.status="rejected",g.reason=L)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function k(g,L,K,$,ce){var de=typeof g;(de==="undefined"||de==="boolean")&&(g=null);var ze=!1;if(g===null)ze=!0;else switch(de){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(g.$$typeof){case r:case c:ze=!0;break;case b:return ze=g._init,k(ze(g._payload),L,K,$,ce)}}if(ze)return ce=ce(g),ze=$===""?"."+qe(g,0):$,P(ce)?(K="",ze!=null&&(K=ze.replace(Ue,"$&/")+"/"),k(ce,L,K,"",function(qn){return qn})):ce!=null&&(F(ce)&&(ce=Ce(ce,K+(ce.key==null||g&&g.key===ce.key?"":(""+ce.key).replace(Ue,"$&/")+"/")+ze)),L.push(ce)),1;ze=0;var ut=$===""?".":$+":";if(P(g))for(var Ke=0;Ke<g.length;Ke++)$=g[Ke],de=ut+qe($,Ke),ze+=k($,L,K,de,ce);else if(Ke=C(g),typeof Ke=="function")for(g=Ke.call(g),Ke=0;!($=g.next()).done;)$=$.value,de=ut+qe($,Ke++),ze+=k($,L,K,de,ce);else if(de==="object"){if(typeof g.then=="function")return k(ke(g),L,K,$,ce);throw L=String(g),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ze}function Y(g,L,K){if(g==null)return g;var $=[],ce=0;return k(g,$,"","",function(de){return L.call(K,de,ce++)}),$}function se(g){if(g._status===-1){var L=g._result;L=L(),L.then(function(K){(g._status===0||g._status===-1)&&(g._status=1,g._result=K)},function(K){(g._status===0||g._status===-1)&&(g._status=2,g._result=K)}),g._status===-1&&(g._status=0,g._result=L)}if(g._status===1)return g._result.default;throw g._result}var Me=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},De={map:Y,forEach:function(g,L,K){Y(g,function(){L.apply(this,arguments)},K)},count:function(g){var L=0;return Y(g,function(){L++}),L},toArray:function(g){return Y(g,function(L){return L})||[]},only:function(g){if(!F(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return re.Activity=S,re.Children=De,re.Component=V,re.Fragment=d,re.Profiler=m,re.PureComponent=Q,re.StrictMode=u,re.Suspense=N,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,re.__COMPILER_RUNTIME={__proto__:null,c:function(g){return le.H.useMemoCache(g)}},re.cache=function(g){return function(){return g.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(g,L,K){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var $=B({},g.props),ce=g.key;if(L!=null)for(de in L.key!==void 0&&(ce=""+L.key),L)!ie.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 ve(g.type,ce,$)},re.createContext=function(g){return g={$$typeof:T,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:x,_context:g},g},re.createElement=function(g,L,K){var $,ce={},de=null;if(L!=null)for($ in L.key!==void 0&&(de=""+L.key),L)ie.call(L,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ce[$]=L[$]);var ze=arguments.length-2;if(ze===1)ce.children=K;else if(1<ze){for(var ut=Array(ze),Ke=0;Ke<ze;Ke++)ut[Ke]=arguments[Ke+2];ce.children=ut}if(g&&g.defaultProps)for($ in ze=g.defaultProps,ze)ce[$]===void 0&&(ce[$]=ze[$]);return ve(g,de,ce)},re.createRef=function(){return{current:null}},re.forwardRef=function(g){return{$$typeof:j,render:g}},re.isValidElement=F,re.lazy=function(g){return{$$typeof:b,_payload:{_status:-1,_result:g},_init:se}},re.memo=function(g,L){return{$$typeof:h,type:g,compare:L===void 0?null:L}},re.startTransition=function(g){var L=le.T,K={};le.T=K;try{var $=g(),ce=le.S;ce!==null&&ce(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ne,Me)}catch(de){Me(de)}finally{L!==null&&K.types!==null&&(L.types=K.types),le.T=L}},re.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},re.use=function(g){return le.H.use(g)},re.useActionState=function(g,L,K){return le.H.useActionState(g,L,K)},re.useCallback=function(g,L){return le.H.useCallback(g,L)},re.useContext=function(g){return le.H.useContext(g)},re.useDebugValue=function(){},re.useDeferredValue=function(g,L){return le.H.useDeferredValue(g,L)},re.useEffect=function(g,L){return le.H.useEffect(g,L)},re.useEffectEvent=function(g){return le.H.useEffectEvent(g)},re.useId=function(){return le.H.useId()},re.useImperativeHandle=function(g,L,K){return le.H.useImperativeHandle(g,L,K)},re.useInsertionEffect=function(g,L){return le.H.useInsertionEffect(g,L)},re.useLayoutEffect=function(g,L){return le.H.useLayoutEffect(g,L)},re.useMemo=function(g,L){return le.H.useMemo(g,L)},re.useOptimistic=function(g,L){return le.H.useOptimistic(g,L)},re.useReducer=function(g,L,K){return le.H.useReducer(g,L,K)},re.useRef=function(g){return le.H.useRef(g)},re.useState=function(g){return le.H.useState(g)},re.useSyncExternalStore=function(g,L,K){return le.H.useSyncExternalStore(g,L,K)},re.useTransition=function(){return le.H.useTransition()},re.version="19.2.7",re}var _m;function fu(){return _m||(_m=1,Ho.exports=Np()),Ho.exports}var H=fu(),cy=H.createContext(void 0),zp=r=>{const c=H.useContext(cy);if(!c)throw new Error("No QueryClient set, use QueryClientProvider to set one");return c},Tp=({client:r,children:c})=>(H.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),n.jsx(cy.Provider,{value:r,children:c})),oy=H.createContext(!1),Ep=()=>H.useContext(oy);oy.Provider;function Ap(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Cp=H.createContext(Ap()),Mp=()=>H.useContext(Cp),Op=(r,c,d)=>{const u=d!=null&&d.state.error&&typeof r.throwOnError=="function"?ty(r.throwOnError,[d.state.error,d]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||u)&&(c.isReset()||(r.retryOnMount=!1))},_p=r=>{H.useEffect(()=>{r.clearReset()},[r])},Rp=({result:r,errorResetBoundary:c,throwOnError:d,query:u,suspense:m})=>r.isError&&!c.isReset()&&!r.isFetching&&u&&(m&&r.data===void 0||ty(d,[r.error,u])),kp=r=>{if(r.suspense){const d=m=>m==="static"?m:Math.max(m??1e3,1e3),u=r.staleTime;r.staleTime=typeof u=="function"?(...m)=>d(u(...m)):d(u),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Dp=(r,c)=>r.isLoading&&r.isFetching&&!c,wp=(r,c)=>(r==null?void 0:r.suspense)&&c.isPending,Rm=(r,c,d)=>c.fetchOptimistic(r).catch(()=>{d.clearReset()});function Up(r,c,d){var C,_,B,Z;const u=Ep(),m=Mp(),x=zp(),T=x.defaultQueryOptions(r);(_=(C=x.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||_.call(C,T);const j=x.getQueryCache().get(T.queryHash),N=r.subscribed!==!1;T._optimisticResults=u?"isRestoring":N?"optimistic":void 0,kp(T),Op(T,m,j),_p(m);const h=!x.getQueryCache().get(T.queryHash),[b]=H.useState(()=>new c(x,T)),S=b.getOptimisticResult(T),O=!u&&N;if(H.useSyncExternalStore(H.useCallback(V=>{const q=O?b.subscribe(it.batchCalls(V)):St;return b.updateResult(),q},[b,O]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),H.useEffect(()=>{b.setOptions(T)},[T,b]),wp(T,S))throw Rm(T,b,m);if(Rp({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()&&Dp(S,u)){const V=h?Rm(T,b,m):j==null?void 0:j.promise;V==null||V.catch(St).finally(()=>{b.updateResult()})}return T.notifyOnChangeProps?S:b.trackResult(S)}function Lp(r,c){return Up(r,yp)}var qo={exports:{}},Ds={},Qo={exports:{}},Go={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("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 km;function Bv(){return km||(km=1,(function(r){function c(k,Y){var se=k.length;k.push(Y);e:for(;0<se;){var Me=se-1>>>1,De=k[Me];if(0<m(De,Y))k[Me]=Y,k[se]=De,se=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],se=k.pop();if(se!==Y){k[0]=se;e:for(var Me=0,De=k.length,g=De>>>1;Me<g;){var L=2*(Me+1)-1,K=k[L],$=L+1,ce=k[$];if(0>m(K,se))$<De&&0>m(ce,K)?(k[Me]=ce,k[$]=se,Me=$):(k[Me]=K,k[L]=se,Me=L);else if($<De&&0>m(ce,se))k[Me]=ce,k[$]=se,Me=$;else break e}}return Y}function m(k,Y){var se=k.sortIndex-Y.sortIndex;return se!==0?se:k.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;r.unstable_now=function(){return x.now()}}else{var T=Date,j=T.now();r.unstable_now=function(){return T.now()-j}}var N=[],h=[],b=1,S=null,O=3,C=!1,_=!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,c(N,Y);else break;Y=d(h)}}function P(k){if(B=!1,G(k),!_)if(d(N)!==null)_=!0,ne||(ne=!0,ge());else{var Y=d(h);Y!==null&&ke(P,Y.startTime-k)}}var ne=!1,le=-1,ie=5,pe=-1;function Ce(){return Z?!0:!(r.unstable_now()-pe<ie)}function F(){if(Z=!1,ne){var k=r.unstable_now();pe=k;var Y=!0;try{e:{_=!1,B&&(B=!1,q(le),le=-1),C=!0;var se=O;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,O=S.priorityLevel;var De=Me(S.expirationTime<=k);if(k=r.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 g=d(h);g!==null&&ke(P,g.startTime-k),Y=!1}}break e}finally{S=null,O=se,C=!1}Y=void 0}}finally{Y?ge():ne=!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(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(k){k.callback=null},r.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"):ie=0<k?Math.floor(1e3/k):5},r.unstable_getCurrentPriorityLevel=function(){return O},r.unstable_next=function(k){switch(O){case 1:case 2:case 3:var Y=3;break;default:Y=O}var se=O;O=Y;try{return k()}finally{O=se}},r.unstable_requestPaint=function(){Z=!0},r.unstable_runWithPriority=function(k,Y){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var se=O;O=k;try{return Y()}finally{O=se}},r.unstable_scheduleCallback=function(k,Y,se){var Me=r.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Me+se:Me):se=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=se+De,k={id:b++,callback:Y,priorityLevel:k,startTime:se,expirationTime:De,sortIndex:-1},se>Me?(k.sortIndex=se,c(h,k),d(N)===null&&k===d(h)&&(B?(q(le),le=-1):B=!0,ke(P,se-Me))):(k.sortIndex=De,c(N,k),_||C||(_=!0,ne||(ne=!0,ge()))),k},r.unstable_shouldYield=Ce,r.unstable_wrapCallback=function(k){var Y=O;return function(){var se=O;O=Y;try{return k.apply(this,arguments)}finally{O=se}}}})(Go)),Go}var Dm;function Hv(){return Dm||(Dm=1,Qo.exports=Bv()),Qo.exports}var Yo={exports:{}},rt={};/**
25
+ */var km;function Bp(){return km||(km=1,(function(r){function c(k,Y){var se=k.length;k.push(Y);e:for(;0<se;){var Me=se-1>>>1,De=k[Me];if(0<m(De,Y))k[Me]=Y,k[se]=De,se=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],se=k.pop();if(se!==Y){k[0]=se;e:for(var Me=0,De=k.length,g=De>>>1;Me<g;){var L=2*(Me+1)-1,K=k[L],$=L+1,ce=k[$];if(0>m(K,se))$<De&&0>m(ce,K)?(k[Me]=ce,k[$]=se,Me=$):(k[Me]=K,k[L]=se,Me=L);else if($<De&&0>m(ce,se))k[Me]=ce,k[$]=se,Me=$;else break e}}return Y}function m(k,Y){var se=k.sortIndex-Y.sortIndex;return se!==0?se:k.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;r.unstable_now=function(){return x.now()}}else{var T=Date,j=T.now();r.unstable_now=function(){return T.now()-j}}var N=[],h=[],b=1,S=null,O=3,C=!1,_=!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,c(N,Y);else break;Y=d(h)}}function P(k){if(B=!1,G(k),!_)if(d(N)!==null)_=!0,ne||(ne=!0,ge());else{var Y=d(h);Y!==null&&ke(P,Y.startTime-k)}}var ne=!1,le=-1,ie=5,ve=-1;function Ce(){return Z?!0:!(r.unstable_now()-ve<ie)}function F(){if(Z=!1,ne){var k=r.unstable_now();ve=k;var Y=!0;try{e:{_=!1,B&&(B=!1,q(le),le=-1),C=!0;var se=O;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,O=S.priorityLevel;var De=Me(S.expirationTime<=k);if(k=r.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 g=d(h);g!==null&&ke(P,g.startTime-k),Y=!1}}break e}finally{S=null,O=se,C=!1}Y=void 0}}finally{Y?ge():ne=!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(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(k){k.callback=null},r.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"):ie=0<k?Math.floor(1e3/k):5},r.unstable_getCurrentPriorityLevel=function(){return O},r.unstable_next=function(k){switch(O){case 1:case 2:case 3:var Y=3;break;default:Y=O}var se=O;O=Y;try{return k()}finally{O=se}},r.unstable_requestPaint=function(){Z=!0},r.unstable_runWithPriority=function(k,Y){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var se=O;O=k;try{return Y()}finally{O=se}},r.unstable_scheduleCallback=function(k,Y,se){var Me=r.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Me+se:Me):se=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=se+De,k={id:b++,callback:Y,priorityLevel:k,startTime:se,expirationTime:De,sortIndex:-1},se>Me?(k.sortIndex=se,c(h,k),d(N)===null&&k===d(h)&&(B?(q(le),le=-1):B=!0,ke(P,se-Me))):(k.sortIndex=De,c(N,k),_||C||(_=!0,ne||(ne=!0,ge()))),k},r.unstable_shouldYield=Ce,r.unstable_wrapCallback=function(k){var Y=O;return function(){var se=O;O=Y;try{return k.apply(this,arguments)}finally{O=se}}}})(Go)),Go}var Dm;function Hp(){return Dm||(Dm=1,Qo.exports=Bp()),Qo.exports}var Yo={exports:{}},rt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("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 wm;function qv(){if(wm)return rt;wm=1;var r=fu();function c(N){var h="https://react.dev/errors/"+N;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}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(c(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,b){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:b}}var T=r.__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 rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,rt.createPortal=function(N,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(c(299));return x(N,h,null,b)},rt.flushSync=function(N){var h=T.T,b=u.p;try{if(T.T=null,u.p=2,N)return N()}finally{T.T=h,u.p=b,u.d.f()}},rt.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))},rt.prefetchDNS=function(N){typeof N=="string"&&u.d.D(N)},rt.preinit=function(N,h){if(typeof N=="string"&&h&&typeof h.as=="string"){var b=h.as,S=j(b,h.crossOrigin),O=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?u.d.S(N,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:O,fetchPriority:C}):b==="script"&&u.d.X(N,{crossOrigin:S,integrity:O,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(N,h){if(typeof N=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=j(h.as,h.crossOrigin);u.d.M(N,{crossOrigin:b,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)},rt.preload=function(N,h){if(typeof N=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,S=j(b,h.crossOrigin);u.d.L(N,b,{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})}},rt.preloadModule=function(N,h){if(typeof N=="string")if(h){var b=j(h.as,h.crossOrigin);u.d.m(N,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(N)},rt.requestFormReset=function(N){u.d.r(N)},rt.unstable_batchedUpdates=function(N,h){return N(h)},rt.useFormState=function(N,h,b){return T.H.useFormState(N,h,b)},rt.useFormStatus=function(){return T.H.useHostTransitionStatus()},rt.version="19.2.7",rt}var Um;function Qv(){if(Um)return Yo.exports;Um=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),Yo.exports=qv(),Yo.exports}/**
33
+ */var wm;function qp(){if(wm)return rt;wm=1;var r=fu();function c(N){var h="https://react.dev/errors/"+N;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}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(c(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,b){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:b}}var T=r.__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 rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,rt.createPortal=function(N,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(c(299));return x(N,h,null,b)},rt.flushSync=function(N){var h=T.T,b=u.p;try{if(T.T=null,u.p=2,N)return N()}finally{T.T=h,u.p=b,u.d.f()}},rt.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))},rt.prefetchDNS=function(N){typeof N=="string"&&u.d.D(N)},rt.preinit=function(N,h){if(typeof N=="string"&&h&&typeof h.as=="string"){var b=h.as,S=j(b,h.crossOrigin),O=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?u.d.S(N,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:S,integrity:O,fetchPriority:C}):b==="script"&&u.d.X(N,{crossOrigin:S,integrity:O,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(N,h){if(typeof N=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=j(h.as,h.crossOrigin);u.d.M(N,{crossOrigin:b,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)},rt.preload=function(N,h){if(typeof N=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,S=j(b,h.crossOrigin);u.d.L(N,b,{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})}},rt.preloadModule=function(N,h){if(typeof N=="string")if(h){var b=j(h.as,h.crossOrigin);u.d.m(N,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else u.d.m(N)},rt.requestFormReset=function(N){u.d.r(N)},rt.unstable_batchedUpdates=function(N,h){return N(h)},rt.useFormState=function(N,h,b){return T.H.useFormState(N,h,b)},rt.useFormStatus=function(){return T.H.useHostTransitionStatus()},rt.version="19.2.7",rt}var Um;function Qp(){if(Um)return Yo.exports;Um=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),Yo.exports=qp(),Yo.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,250 +38,250 @@ var gm=r=>{throw TypeError(r)};var Lo=(r,c,d)=>c.has(r)||gm("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 Lm;function Gv(){if(Lm)return Ds;Lm=1;var r=Hv(),c=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 b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,O=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),_=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"),P=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ie=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 P:return"Suspense";case ne:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _: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 ie:t=e._payload,e=e._init;try{return qe(e(t))}catch{}}return null}var ke=Array.isArray,k=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Me=[],De=-1;function g(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 $=g(null),ce=g(null),de=g(null),ze=g(null);function ut(e,t){switch(K(de,t),K(ce,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=Gh(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(ce),L(de)}function qn(e){e.memoizedState!==null&&K(ze,e);var t=$.current,a=Gh(t,e.type);t!==a&&(K(ce,e),K($,a))}function Zs(e){ce.current===e&&(L($),L(ce)),ze.current===e&&(L(ze),Ms._currentValue=se)}var gr,vu;function cl(e){if(gr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gr=t&&t[1]||"",vu=-1<a.stack.indexOf(`
41
+ */var Lm;function Gp(){if(Lm)return Ds;Lm=1;var r=Hp(),c=fu(),d=Qp();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 b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,O=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),_=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"),P=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ve=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 P:return"Suspense";case ne:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _: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 ie:t=e._payload,e=e._init;try{return qe(e(t))}catch{}}return null}var ke=Array.isArray,k=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Me=[],De=-1;function g(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 $=g(null),ce=g(null),de=g(null),ze=g(null);function ut(e,t){switch(K(de,t),K(ce,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=Gh(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(ce),L(de)}function qn(e){e.memoizedState!==null&&K(ze,e);var t=$.current,a=Gh(t,e.type);t!==a&&(K(ce,e),K($,a))}function Zs(e){ce.current===e&&(L($),L(ce)),ze.current===e&&(L(ze),Ms._currentValue=se)}var gr,pu;function cl(e){if(gr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);gr=t&&t[1]||"",pu=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+gr+e+vu}var xr=!1;function br(e,t){if(!e||xr)return"";xr=!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(R){var M=R}Reflect.construct(e,[],U)}else{try{U.call()}catch(R){M=R}e.call(U.prototype)}}else{try{throw Error()}catch(R){M=R}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&M&&typeof R.stack=="string")return[R.stack,M.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(`
43
+ `+gr+e+pu}var xr=!1;function br(e,t){if(!e||xr)return"";xr=!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(R){var M=R}Reflect.construct(e,[],U)}else{try{U.call()}catch(R){M=R}e.call(U.prototype)}}else{try{throw Error()}catch(R){M=R}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&M&&typeof R.stack=="string")return[R.stack,M.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
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{xr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?cl(a):""}function Ey(e,t){switch(e.tag){case 26:case 27:case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return e.child!==t&&t!==null?cl("Suspense Fallback"):cl("Suspense");case 19:return cl("SuspenseList");case 0:case 15:return br(e.type,!1);case 11:return br(e.type.render,!1);case 1:return br(e.type,!0);case 31:return cl("Activity");default:return""}}function pu(e){try{var t="",a=null;do t+=Ey(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
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{xr=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?cl(a):""}function Ey(e,t){switch(e.tag){case 26:case 27:case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return e.child!==t&&t!==null?cl("Suspense Fallback"):cl("Suspense");case 19:return cl("SuspenseList");case 0:case 15:return br(e.type,!1);case 11:return br(e.type.render,!1);case 1:return br(e.type,!0);case 31:return cl("Activity");default:return""}}function vu(e){try{var t="",a=null;do t+=Ey(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 jr=Object.prototype.hasOwnProperty,Sr=r.unstable_scheduleCallback,Nr=r.unstable_cancelCallback,Ay=r.unstable_shouldYield,Cy=r.unstable_requestPaint,Nt=r.unstable_now,My=r.unstable_getCurrentPriorityLevel,gu=r.unstable_ImmediatePriority,xu=r.unstable_UserBlockingPriority,Js=r.unstable_NormalPriority,Oy=r.unstable_LowPriority,bu=r.unstable_IdlePriority,_y=r.log,Ry=r.unstable_setDisableYieldValue,Qn=null,zt=null;function Ta(e){if(typeof _y=="function"&&Ry(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Qn,e)}catch{}}var Tt=Math.clz32?Math.clz32:wy,ky=Math.log,Dy=Math.LN2;function wy(e){return e>>>=0,e===0?32:31-(ky(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 Uy(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 ju(){var e=Ws;return Ws<<=1,(Ws&62914560)===0&&(Ws=4194304),e}function zr(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 Ly(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 M=A[D];if(M!==null)for(A[D]=null,D=0;D<M.length;D++){var R=M[D];R!==null&&(R.lane&=-536870913)}a&=~U}l!==0&&Su(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Su(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 Nu(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 zu(e,t){var a=t&-t;return a=(a&42)!==0?1:Tr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Tr(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 Er(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tu(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:dm(e.type))}function Eu(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,Ar="__reactEvents$"+Ea,By="__reactListeners$"+Ea,Hy="__reactHandles$"+Ea,Au="__reactResources$"+Ea,Kn="__reactMarker$"+Ea;function Cr(e){delete e[tt],delete e[mt],delete e[Ar],delete e[By],delete e[Hy]}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=Fh(e);e!==null;){if(a=e[tt])return a;e=Fh(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[Au];return t||(t=e[Au]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Kn]=!0}var Cu=new Set,Mu={};function ul(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Mu[e]=t,e=0;e<t.length;e++)Cu.add(t[e])}var qy=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]*$"),Ou={},_u={};function Qy(e){return jr.call(_u,e)?!0:jr.call(Ou,e)?!1:qy.test(e)?_u[e]=!0:(Ou[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 Ru(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gy(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 Mr(e){if(!e._valueTracker){var t=Ru(e)?"checked":"value";e._valueTracker=Gy(e,t,""+e[t])}}function ku(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ru(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 Yy=/[\n"\\]/g;function Ut(e){return e.replace(Yy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Or(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?_r(e,o,wt(t)):a!=null?_r(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)){Mr(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),Mr(e)}function _r(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 wu(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 Uu(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),Mr(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 Ky=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 Lu(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||Ky.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Bu(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&&Lu(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&Lu(e,i,t[i])}function Rr(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 Xy=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"]]),Vy=/^[\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 Vy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var kr=null;function Dr(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 Hu(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(Or(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));Or(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&&ku(l)}break e;case"textarea":wu(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kl(e,!!a.multiple,t,!1)}}}var wr=!1;function qu(e,t,a){if(wr)return e(t,a);wr=!0;try{var l=e(t);return l}finally{if(wr=!1,(Vl!==null||Zl!==null)&&(Yi(),Vl&&(t=Vl,e=Zl,Zl=Vl=null,Hu(t),e)))for(t=0;t<e.length;t++)Hu(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"),Ur=!1;if(sa)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Ur=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Ur=!1}var Aa=null,Lr=null,li=null;function Qu(){if(li)return li;var e,t=Lr,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 Gu(){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:Gu,this.isPropagationStopped=Gu,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}),Zy=yt(Jn),Br,Hr,Fn,ri=S({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qr,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"?(Br=e.screenX-Fn.screenX,Hr=e.screenY-Fn.screenY):Hr=Br=0,Fn=e),Br)},movementY:function(e){return"movementY"in e?e.movementY:Hr}}),Yu=yt(ri),Jy=S({},ri,{dataTransfer:0}),Fy=yt(Jy),$y=S({},Jn,{relatedTarget:0}),qr=yt($y),Wy=S({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=yt(Wy),Py=S({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e0=yt(Py),t0=S({},dl,{data:0}),Ku=yt(t0),a0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l0={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"},n0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n0[e])?!!t[e]:!1}function Qr(){return s0}var i0=S({},Jn,{key:function(e){if(e.key){var t=a0[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"?l0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qr,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}}),r0=yt(i0),c0=S({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xu=yt(c0),o0=S({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qr}),u0=yt(o0),d0=S({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),f0=yt(d0),h0=S({},ri,{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}),m0=yt(h0),y0=S({},dl,{newState:0,oldState:0}),v0=yt(y0),p0=[9,13,27,32],Gr=sa&&"CompositionEvent"in window,$n=null;sa&&"documentMode"in document&&($n=document.documentMode);var g0=sa&&"TextEvent"in window&&!$n,Vu=sa&&(!Gr||$n&&8<$n&&11>=$n),Zu=" ",Ju=!1;function Fu(e,t){switch(e){case"keyup":return p0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $u(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function x0(e,t){switch(e){case"compositionend":return $u(t);case"keypress":return t.which!==32?null:(Ju=!0,Zu);case"textInput":return e=t.data,e===Zu&&Ju?null:e;default:return null}}function b0(e,t){if(Jl)return e==="compositionend"||!Gr&&Fu(e,t)?(e=Qu(),li=Lr=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 Vu&&t.locale!=="ko"?null:t.data;default:return null}}var j0={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j0[e.type]:t==="textarea"}function Iu(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 S0(e){wh(e,0)}function ci(e){var t=Xn(e);if(ku(t))return e}function Pu(e,t){if(e==="change")return t}var ed=!1;if(sa){var Yr;if(sa){var Kr="oninput"in document;if(!Kr){var td=document.createElement("div");td.setAttribute("oninput","return;"),Kr=typeof td.oninput=="function"}Yr=Kr}else Yr=!1;ed=Yr&&(!document.documentMode||9<document.documentMode)}function ad(){Wn&&(Wn.detachEvent("onpropertychange",ld),In=Wn=null)}function ld(e){if(e.propertyName==="value"&&ci(In)){var t=[];Iu(t,In,e,Dr(e)),qu(S0,t)}}function N0(e,t,a){e==="focusin"?(ad(),Wn=t,In=a,Wn.attachEvent("onpropertychange",ld)):e==="focusout"&&ad()}function z0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ci(In)}function T0(e,t){if(e==="click")return ci(t)}function E0(e,t){if(e==="input"||e==="change")return ci(t)}function A0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:A0;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(!jr.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var a=nd(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=nd(a)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rd(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 Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var C0=sa&&"documentMode"in document&&11>=document.documentMode,Fl=null,Vr=null,es=null,Zr=!1;function cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zr||Fl==null||Fl!==ti(l)||(l=Fl,"selectionStart"in l&&Xr(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(Vr,"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")},Jr={},od={};sa&&(od=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(Jr[e])return Jr[e];if(!$l[e])return e;var t=$l[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in od)return Jr[e]=t[a];return e}var ud=hl("animationend"),dd=hl("animationiteration"),fd=hl("animationstart"),M0=hl("transitionrun"),O0=hl("transitionstart"),_0=hl("transitioncancel"),hd=hl("transitionend"),md=new Map,Fr="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(" ");Fr.push("scrollEnd");function Vt(e,t){md.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,$r=0;function ui(){for(var e=Wl,t=$r=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&&yd(a,s,i)}}function di(e,t,a,l){Lt[Wl++]=e,Lt[Wl++]=t,Lt[Wl++]=a,Lt[Wl++]=l,$r|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Wr(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 yd(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 R0(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 R0(e,t,a,l)}function Ir(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 vd(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")Ir(e)&&(o=1);else if(typeof e=="string")o=L1(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 P:return e=At(13,a,t,s),e.elementType=P,e.lanes=i,e;case ne:return e=At(19,a,t,s),e.elementType=ne,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 ie: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 Pr(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function pd(e){var t=At(18,null,null,0);return t.stateNode=e,t}function ec(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 gd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=gd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:pu(t)},gd.set(e,t),t)}return{value:e,source:t,stack:pu(t)}}var Pl=[],en=0,mi=null,ts=0,Ht=[],qt=0,Ca=null,$t=1,Wt="";function ra(e,t){Pl[en++]=ts,Pl[en++]=mi,mi=e,ts=t}function xd(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 tc(e){e.return!==null&&(ra(e,1),xd(e,1,0))}function ac(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 bd(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,lc=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)),lc}function jd(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),Uu(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||Hh(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 Sd(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 Sd(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),Sd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Jh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Jh(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 nc(){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 sc=g(null),pl=null,ca=null;function _a(e,t,a){K(sc,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=sc.current,L(sc)}function ic(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 rc(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),ic(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),ic(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&&rc(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,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Nd(pl,e)}function vi(e,t){return pl===null&&gl(e),Nd(e,t)}function Nd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(u(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var k0=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=r.unstable_scheduleCallback,w0=r.unstable_NormalPriority,Ze={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new k0,data:new Map,refCount:0}}function ls(e){e.refCount--,e.refCount===0&&D0(w0,function(){e.controller.abort()})}var ns=null,oc=0,ln=0,nn=null;function U0(e,t){if(ns===null){var a=ns=[];oc=0,ln=ho(),nn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return oc++,t.then(zd,zd),t}function zd(){if(--oc===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 L0(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 Td=k.S;k.S=function(e,t){oh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U0(e,t),Td!==null&&Td(e,t)};var xl=g(null);function uc(){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 Ed(){var e=uc();return e===null?null:{parent:Ze._currentValue,pool:e}}var sn=Error(u(460)),dc=Error(u(474)),gi=Error(u(542)),xi={then:function(){}};function Ad(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cd(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,Od(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,Od(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 Md(){if(jl===null)throw Error(u(459));var e=jl;return jl=null,e}function Od(e){if(e===sn||e===gi)throw Error(u(483))}var rn=null,ss=0;function bi(e){var t=ss;return ss+=1,rn===null&&(rn=[]),Cd(rn,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===O?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _d(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=Pr(E,z.mode,w),v.return=z,v):(v=s(v,E),v.return=z,v)}function y(z,v,E,w){var ee=E.type;return ee===B?D(z,v,E.props.children,w,E.key):v!==null&&(v.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&bl(ee)===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=ec(E,z.mode,w),v.return=z,v):(v=s(v,E.children||[]),v.return=z,v)}function D(z,v,E,w,ee){return v===null||v.tag!==7?(v=yl(E,z.mode,w,ee),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=Pr(""+v,z.mode,E),v.return=z,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case C:return E=hi(v.type,v.key,v.props,null,z.mode,E),is(E,v),E.return=z,E;case _:return v=ec(v,z.mode,E),v.return=z,v;case ie: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 M(z,v,E,w){var ee=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ee!==null?null:f(z,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case C:return E.key===ee?y(z,v,E,w):null;case _:return E.key===ee?A(z,v,E,w):null;case ie:return E=bl(E),M(z,v,E,w)}if(ke(E)||ge(E))return ee!==null?null:D(z,v,E,w,null);if(typeof E.then=="function")return M(z,v,bi(E),w);if(E.$$typeof===Q)return M(z,v,vi(z,E),w);ji(z,E)}return null}function R(z,v,E,w,ee){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return z=z.get(E)||null,f(v,z,""+w,ee);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case C:return z=z.get(w.key===null?E:w.key)||null,y(v,z,w,ee);case _:return z=z.get(w.key===null?E:w.key)||null,A(v,z,w,ee);case ie:return w=bl(w),R(z,v,E,w,ee)}if(ke(w)||ge(w))return z=z.get(E)||null,D(v,z,w,ee,null);if(typeof w.then=="function")return R(z,v,E,bi(w),ee);if(w.$$typeof===Q)return R(z,v,E,vi(v,w),ee);ji(v,w)}return null}function J(z,v,E,w){for(var ee=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=M(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?ee=Se:je.sibling=Se,je=Se,W=ye}if(ue===E.length)return a(z,W),xe&&ra(z,ue),ee;if(W===null){for(;ue<E.length;ue++)W=U(z,E[ue],w),W!==null&&(v=i(W,v,ue),je===null?ee=W:je.sibling=W,je=W);return xe&&ra(z,ue),ee}for(W=l(W);ue<E.length;ue++)ye=R(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?ee=ye:je.sibling=ye,je=ye);return e&&W.forEach(function(Fa){return t(z,Fa)}),xe&&ra(z,ue),ee}function ae(z,v,E,w){if(E==null)throw Error(u(151));for(var ee=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=M(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?ee=Fa:je.sibling=Fa,je=Fa,W=ye}if(Se.done)return a(z,W),xe&&ra(z,ue),ee;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?ee=Se:je.sibling=Se,je=Se);return xe&&ra(z,ue),ee}for(W=l(W);!Se.done;ue++,Se=E.next())Se=R(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?ee=Se:je.sibling=Se,je=Se);return e&&W.forEach(function(J1){return t(z,J1)}),xe&&ra(z,ue),ee}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 C:e:{for(var ee=E.key;v!==null;){if(v.key===ee){if(ee=E.type,ee===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===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&bl(ee)===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 _:e:{for(ee=E.key;v!==null;){if(v.key===ee)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=ec(E,z.mode,w),w.return=z,z=w}return o(z);case ie:return E=bl(E),Re(z,v,E,w)}if(ke(E))return J(z,v,E,w);if(ge(E)){if(ee=ge(E),typeof ee!="function")throw Error(u(150));return E=ee.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=Pr(E,z.mode,w),w.return=z,z=w),o(z)):a(z,v)}return function(z,v,E,w){try{ss=0;var ee=Re(z,v,E,w);return rn=null,ee}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=_d(!0),Rd=_d(!1),Ra=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(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),yd(e,null,a),t}return di(e,l,t,a),fi(e)}function rs(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,Nu(e,a)}}function mc(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 yc=!1;function cs(){if(yc){var e=nn;if(e!==null)throw e}}function os(e,t,a,l){yc=!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 M=f.lane&-536870913,R=M!==f.lane;if(R?(me&M)===M:(l&M)===M){M!==0&&M===ln&&(yc=!0),D!==null&&(D=D.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,ae=f;M=t;var Re=a;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){U=J.call(Re,U,M);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,M=typeof J=="function"?J.call(Re,U,M):J,M==null)break e;U=S({},U,M);break e;case 2:Ra=!0}}M=f.callback,M!==null&&(e.flags|=64,R&&(e.flags|=8192),R=s.callbacks,R===null?s.callbacks=[M]:R.push(M))}else R={lane:M,tag:f.tag,payload:f.payload,callback:f.callback,next:null},D===null?(A=D=R,y=U):D=D.next=R,o|=M;if(f=f.next,f===null){if(f=s.shared.pending,f===null)break;R=f,f=R.next,R.next=null,s.lastBaseUpdate=R,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 kd(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++)kd(a[e],t)}var cn=g(null),Si=g(0);function wd(e,t){e=ga,K(Si,e),K(cn,t),ga=e|t.baseLanes}function vc(){K(Si,ga),K(cn,cn.current)}function pc(){ga=Si.current,L(cn),L(Si)}var Ct=g(null),Gt=null;function wa(e){var t=e.alternate;K(Xe,Xe.current&1),K(Ct,e),Gt===null&&(t===null||cn.current!==null||t.memoizedState!==null)&&(Gt=e)}function gc(e){K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)}function Ud(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=g(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,B0=0;function Qe(){throw Error(u(321))}function xc(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 bc(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?bf:wc,Nl=!1,i=a(l,s),Nl=!1,on&&(i=Bd(t,a,l,s)),Ld(e),i}function Ld(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 Bd(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=jf,i=t(a,l)}while(on);return i}function H0(){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 jc(){var e=Ti!==0;return Ti=0,e}function Sc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nc(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=Cd(un,e,t),t=oe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?bf:wc),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 zc(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 Tc(t,Oe,e)}function Tc(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 M=A.revertLane;if(M===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&M)===M){A=A.next,M===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|=M,Ha|=M;U=A.action,Nl&&a(i,U),i=A.hasEagerState?A.eagerState:a(i,U)}else M={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=M,o=i):y=y.next=M,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 Ec(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 Hd(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,Mc(Gd.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||qd(l,t,a)}return a}function qd(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,Yd(t)&&Kd(e)}function Gd(e,t,a){return a(function(){Yd(t)&&Kd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function Kd(e){var t=ml(e,2);t!==null&&bt(t,e,2)}function Ac(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 Xd(e,t,a,l){return e.baseState=a,Tc(e,Oe,typeof l=="function"?l:da)}function q0(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,Vd(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Vd(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),Zd(e,t,f)}catch(A){Cc(e,t,A)}finally{i!==null&&o.types!==null&&(i.types=o.types),k.T=i}}else try{i=a(s,l),Zd(e,t,i)}catch(A){Cc(e,t,A)}}function Zd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Jd(e,t,l)},function(l){return Cc(e,t,l)}):Jd(e,t,a)}function Jd(e,t,a){t.status="fulfilled",t.value=a,Fd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Vd(e,a)))}function Cc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Fd(t),t=t.next;while(t!==l)}e.action=null}function Fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $d(e,t){return t}function Wd(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:$d,lastRenderedState:t},a.queue=l,a=pf.bind(null,oe,l),l.dispatch=a,l=Ac(!1),i=Dc.bind(null,oe,!1,l.queue),l=dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=q0.bind(null,oe,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Id(e){var t=Ve();return Pd(t,Oe,e)}function Pd(e,t,a){if(t=Tc(e,t,$d)[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 ef(e){var t=Ve(),a=Oe;if(a!==null)return Pd(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 tf(){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&&xc(l,Oe.memoizedState.deps)?s.memoizedState=dn(t,i,a,l):(oe.flags|=e,s.memoizedState=dn(1|t,i,a,l))}function af(e,t){Mi(8390656,8,e,t)}function Mc(e,t){Oi(2048,8,e,t)}function G0(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 lf(e){var t=Ve().memoizedState;return G0({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function nf(e,t){return Oi(4,2,e,t)}function sf(e,t){return Oi(4,4,e,t)}function rf(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,rf.bind(null,t,e),a)}function Oc(){}function of(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&xc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function uf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&xc(t,l[1]))return l[0];if(l=e(),Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l}function _c(e,t,a){return a===void 0||(ua&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dh(),oe.lanes|=e,Ha|=e,a)}function df(e,t,a,l){return Et(a,t)?a:cn.current!==null?(e=_c(e,a,l),Et(e,t)||(Fe=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=dh(),oe.lanes|=e,Ha|=e,t)}function ff(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,Dc(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=L0(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 Y0(){}function Rc(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=hf(e).queue;ff(e,s,t,se,a===null?Y0:function(){return mf(e),a(l)})}function hf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:se},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 mf(e){var t=hf(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Rt())}function kc(){return lt(Ms)}function yf(){return Ve().memoizedState}function vf(){return Ve().memoizedState}function K0(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),rs(l,t,a)),t={cache:cc()},e.payload=t;return}t=t.return}}function X0(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?gf(t,a):(a=Wr(e,t,a,l),a!==null&&(bt(a,e,l),xf(a,t,l)))}function pf(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))gf(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=Wr(e,t,s,l),a!==null)return bt(a,e,l),xf(a,t,l),!0}return!1}function Dc(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=Wr(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 gf(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 xf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Nu(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 bf={readContext:lt,use:Ai,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:af,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,rf.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=X0.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,a=pf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=dt();return _c(a,e,t)},useTransition:function(){var e=Ac(!1);return e=ff.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||qd(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,af(Gd.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=B0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kc,useFormState:Wd,useActionState:Wd,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=Dc.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:zc,useCacheRefresh:function(){return dt().memoizedState=K0.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)}}},wc={readContext:lt,use:Ai,useCallback:of,useContext:lt,useEffect:Mc,useImperativeHandle:cf,useInsertionEffect:nf,useLayoutEffect:sf,useMemo:uf,useReducer:Ci,useRef:tf,useState:function(){return Ci(da)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Ve();return df(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ci(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Hd,useId:yf,useHostTransitionStatus:kc,useFormState:Id,useActionState:Id,useOptimistic:function(e,t){var a=Ve();return Xd(a,Oe,e,t)},useMemoCache:zc,useCacheRefresh:vf};wc.useEffectEvent=lf;var jf={readContext:lt,use:Ai,useCallback:of,useContext:lt,useEffect:Mc,useImperativeHandle:cf,useInsertionEffect:nf,useLayoutEffect:sf,useMemo:uf,useReducer:Ec,useRef:tf,useState:function(){return Ec(da)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Ve();return Oe===null?_c(a,e,t):df(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ec(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Hd,useId:yf,useHostTransitionStatus:kc,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var a=Ve();return Oe!==null?Xd(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zc,useCacheRefresh:vf};jf.useEffectEvent=lf;function Uc(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 Lc={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),rs(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),rs(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),rs(t,e,a))}};function Sf(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 Nf(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&&Lc.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 zf(e){oi(e)}function Tf(e){console.error(e)}function Ef(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 Af(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 Bc(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Cf(e){return e=ka(e),e.tag=3,e}function Mf(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(){Af(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Af(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 V0(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!==lc&&(e=Error(u(422),{cause:l}),as(Bt(e,a)))):(l!==lc&&(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=Bc(e.stateNode,l,s),mc(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=Bc(a.stateNode,l,e),mc(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=Cf(s),Mf(s,e,a,l),mc(a,s),!1}a=a.return}while(a!==null);return!1}var Hc=Error(u(461)),Fe=!1;function nt(e,t,a,l){t.child=e===null?Rd(t,null,a,l):Sl(t,e.child,a,l)}function Of(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=bc(e,t,a,o,i,s),f=jc(),e!==null&&!Fe?(Sc(e,t,s),fa(e,t,s)):(xe&&f&&tc(t),t.flags|=1,nt(e,t,l,s),t.child)}function _f(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!Ir(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Rf(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,!Zc(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 Rf(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,Zc(e,s))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,fa(e,t,s)}return qc(e,t,a,l,s)}function kf(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?wd(t,i):vc(),Ud(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),wd(t,i),Ua(),t.memoizedState=null):(e!==null&&pi(t,null),vc(),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=uc();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&pi(t,null),vc(),Ud(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 wf(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 Z0(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(gc(t),(e=Le)?(e=Zh(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=pd(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(gc(t),s)if(t.flags&256)t.flags&=-257,t=wf(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=zu(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,ml(e,o),bt(l,e,o),Hc;Ki(),t=wf(e,t,a)}else e=i.treeContext,Le=Yt(o.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&bd(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 qc(e,t,a,l,s){return gl(t),a=bc(e,t,a,l,void 0,s),l=jc(),e!==null&&!Fe?(Sc(e,t,s),fa(e,t,s)):(xe&&l&&tc(t),t.flags|=1,nt(e,t,a,s),t.child)}function Uf(e,t,a,l,s,i){return gl(t),t.updateQueue=null,a=Bd(t,l,a,s),Ld(e),l=jc(),e!==null&&!Fe?(Sc(e,t,i),fa(e,t,i)):(xe&&l&&tc(t),t.flags|=1,nt(e,t,a,i),t.child)}function Lf(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=Lc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},fc(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?lt(o):Il,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Uc(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&&Lc.enqueueReplaceState(i,i.state,null),os(t,l,i,s),cs(),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)&&Nf(t,i,l,o),Ra=!1;var M=t.memoizedState;i.state=M,os(t,l,i,s),cs(),A=t.memoizedState,f||M!==A||Ra?(typeof U=="function"&&(Uc(t,a,U,l),A=t.memoizedState),(y=Ra||Sf(t,a,y,l,M,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,hc(e,t),o=t.memoizedProps,D=zl(a,o),i.props=D,U=t.pendingProps,M=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||M!==y)&&Nf(t,i,l,y),Ra=!1,M=t.memoizedState,i.state=M,os(t,l,i,s),cs();var R=t.memoizedState;o!==U||M!==R||Ra||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof f=="function"&&(Uc(t,a,f,l),R=t.memoizedState),(D=Ra||Sf(t,a,D,l,M,R,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,R,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,R,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=R),i.props=l,i.state=R,i.context=y,l=D):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===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 Bf(e,t,a,l){return vl(),t.flags|=256,nt(e,t,a,l),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Ed()}}function Yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Hf(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=Zh(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=pd(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=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Qc,ms(null,l)):(wa(t),Kc(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=Xc(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=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Qc,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=Xc(e,t,a)}else if(Fe||an(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=we,o!==null&&(l=zu(o,a),l!==0&&l!==y.retryLane))throw y.retryLane=l,ml(e,l),bt(o,e,l),Hc;To(f)||Ki(),t=Xc(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&&bd(t,e),t=Kc(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=Gc(a):(s=f.cachePool,s!==null?(y=Ze._currentValue,s=s.parent!==y?{parent:y,pool:y}:s):s=Ed(),f={baseLanes:f.baseLanes|a,cachePool:s}),l.memoizedState=f,l.childLanes=Yc(e,o,a),t.memoizedState=Qc,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 Kc(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 Xc(e,t,a){return Sl(t,e.child,null,a),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ic(e.return,t,a)}function Vc(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&&qf(e,a,t);else if(e.tag===19)qf(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),Vc(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}Vc(t,!0,a,null,i,l);break;case"together":Vc(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 Zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function J0(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,gc(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?Hf(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,kf(e,t,a,t.pendingProps);case 24:_a(t,Ze,e.memoizedState.cache)}return fa(e,t,a)}function Gf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Zc(e,a)&&(t.flags&128)===0)return Fe=!1,J0(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,xe&&(t.flags&1048576)!==0&&xd(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")Ir(e)?(l=zl(e,l),t.tag=1,t=Lf(null,t,e,l,a)):(t.tag=0,t=qc(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===G){t.tag=11,t=Of(null,t,e,l,a);break e}else if(s===le){t.tag=14,t=_f(null,t,e,l,a);break e}}throw t=qe(e)||e,Error(u(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=zl(l,t.pendingProps),Lf(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,hc(e,t),os(t,l,null,a);var o=t.memoizedState;if(l=o.cache,_a(t,Ze,l),l!==i.cache&&rc(t,[Ze],a,!0),cs(),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=Bf(e,t,l,a);break e}else if(l!==s){s=Bt(Error(u(424)),t),as(s),t=Bf(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=Rd(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=Ph(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=Ph(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qn(t),e===null&&xe&&(l=t.stateNode=$h(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=z1(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=bc(e,t,H0,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=T1(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,at=t,Le=null,e=!0):e=!1),e||Oa(t)),null;case 13:return Hf(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 Of(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 _f(e,t,t.type,t.pendingProps,a);case 15:return Rf(e,t,t.type,t.pendingProps,a);case 19:return Qf(e,t,a);case 31:return Z0(e,t,a);case 22:return kf(e,t,a,t.pendingProps);case 24:return gl(t),l=lt(Ze),e===null?(s=uc(),s===null&&(s=we,i=cc(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},fc(t),_a(t,Ze,s)):((e.lanes&a)!==0&&(hc(e,t),os(t,null,null,a),cs()),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&&rc(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 Jc(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(yh())e.flags|=8192;else throw jl=xi,dc}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nm(t))if(yh())e.flags|=8192;else throw jl=xi,dc}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ju():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 F0(e,t,a){var l=t.pendingProps;switch(ac(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,nc())),Be(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ha(t),i!==null?(Be(t),Yf(t,i)):(Be(t),Jc(t,s,null,l,a))):i?i!==e.memoizedState?(ha(t),Be(t),Yf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Be(t),Jc(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)?jd(t):(e=$h(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))jd(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),Jc(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||Hh(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=nc(),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=nc(),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;)vd(a,e),a=a.sibling;return K(Xe,Xe.current&1|2),xe&&ra(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&&ra(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),pc(),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 $0(e,t){switch(ac(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),pc(),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 Kf(e,t){switch(ac(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),pc(),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 Xf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Dd(t,a)}catch(l){Ae(e,e.return,l)}}}function Vf(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 Zf(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 Fc(e,t,a){try{var l=e.stateNode;g1(l,e.type,a,t),l[mt]=t}catch(s){Ae(e,e.return,s)}}function Jf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jf(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 Wc(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(Wc(e,t,a),e=e.sibling;e!==null;)Wc(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 Ff(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,Ic=!1,$f=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function W0(e,t){if(e=e.containerInfo,bo=nr,e=rd(e),Xr(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,M=null;t:for(;;){for(var R;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),(R=U.firstChild)!==null;)M=U,U=R;for(;;){if(U===e)break t;if(M===a&&++A===s&&(f=o),M===i&&++D===l&&(y=o),(R=U.nextSibling)!==null)break;U=M,M=U.parentNode}U=R}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},nr=!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 Wf(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&&Xf(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&&Ff(a);case 26:case 5:va(e,a),t===null&&l&4&&Zf(a),l&512&&ps(a,a.return);break;case 12:va(e,a);break;case 31:va(e,a),l&4&&eh(e,a);break;case 13:va(e,a),l&4&&th(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=i1.bind(null,a),E1(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 If(e){var t=e.alternate;t!==null&&(e.alternate=null,If(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cr(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;)Pf(e,t,a),a=a.sibling}function Pf(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,Xh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nn(e)):Xh(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"&&Vf(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 eh(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 th(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 I0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $f),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $f),t;default:throw Error(u(435,e.tag))}}function Bi(e,t){var a=I0(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=r1.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));Pf(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;)ah(t,e),t=t.sibling}var Zt=null;function ah(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=am("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=am("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 lm(s,e.type,e.stateNode);else e.stateNode=tm(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?lm(s,e.type,e.stateNode):tm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fc(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&&Fc(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,Fc(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Ic=!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(er=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)}Ic&&(Ic=!1,lh(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,M=U!=null&&U.hasOwnProperty("display")?U.display:null;f.style.display=M==null||typeof M=="boolean"?"":(""+M).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 R=y.stateNode;s?Vh(R,!0):Vh(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(Jf(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,i=$c(e);Li(e,i,s);break;case 5:var o=a.stateNode;a.flags&32&&(Xl(o,""),a.flags&=-33);var f=$c(e);Li(e,f,o);break;case 3:case 4:var y=a.stateNode.containerInfo,A=$c(e);Wc(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 lh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lh(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;)Wf(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"&&Vf(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++)kd(y[s],f)}catch(A){Ae(l,l.return,A)}}a&&o&64&&Xf(i),ps(i,i.return);break;case 27:Ff(i);case 26:case 5:pa(s,i,a),a&&l===null&&o&4&&Zf(i),ps(i,i.return);break;case 12:pa(s,i,a);break;case 31:pa(s,i,a),a&&o&4&&eh(s,i);break;case 13:pa(s,i,a),a&&o&4&&th(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 Pc(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;)nh(e,t,a,l),t=t.sibling}function nh(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&&Pc(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&&Pc(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&&Pc(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;)sh(e,t,a),e=e.sibling}function sh(e,t,a){switch(e.tag){case 26:hn(e,t,a),e.flags&xs&&e.memoizedState!==null&&B1(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 ih(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)}ih(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rh(e),e=e.sibling}function rh(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)}ih(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(If(l),l===a){Pe=null;break e}if(s!==null){s.return=i,Pe=s;break e}Pe=i}}}var P0={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}},e1=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,oh=0,Qi=1/0,Gi=null,qa=null,We=0,Qa=null,vn=null,xa=0,no=0,so=null,uh=null,Ss=0,io=null;function Rt(){return(Ne&2)!==0&&me!==0?me&-me:k.T!==null?ho():Tu()}function dh(){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 fh(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?l1(e,t):co(e,t,!0),i=l;do{if(s===0){mn&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!t1(a)){s=co(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=co(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=Yh(hh.bind(null,l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,"Throttled",-0,0),s);break e}hh(l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,null,-0,0)}}break}while(!0);Pt(e)}function hh(e,t,a,l,s,i,o,f,y,A,D,U,M,R){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},sh(t,i,U);var J=(i&62914560)===i?qi-Nt():(i&4194048)===i?oh-Nt():0;if(J=H1(U,J),J!==null){xa=i,e.cancelPendingCommit=J(jh.bind(null,e,t,i,a,l,s,o,f,y,D,U,null,M,R)),Ga(e,i,o,!A);return}}jh(e,t,i,a,l,s,o,f,y)}function t1(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&&Su(e,a,t)}function Yi(){return(Ne&6)===0?(Ns(0),!1):!0}function ro(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,ca=pl=null,Nc(e),rn=null,ss=0,e=fe;for(;e!==null;)Kf(e.alternate,e),e=e.return;fe=null}}function pn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,j1(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,ro(),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 mh(e,t){oe=null,k.H=hs,t===sn||t===gi?(t=Md(),Ee=3):t===dc?(t=Md(),Ee=4):Ee=t===Hc?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 yh(){var e=Ct.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function vh(){var e=k.H;return k.H=hs,e===null?hs:e}function ph(){var e=k.A;return k.A=P0,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 co(e,t,a){var l=Ne;Ne|=2;var s=vh(),i=ph();(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:ro(),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)}}a1(),o=Ge;break}catch(D){mh(e,D)}while(!0);return t&&e.shellSuspendCounter++,ca=pl=null,Ne=l,k.H=s,k.A=i,fe===null&&(we=null,me=0,ui()),o}function a1(){for(;fe!==null;)gh(fe)}function l1(e,t){var a=Ne;Ne|=2;var l=vh(),s=ph();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(Ad(i)){Ee=0,Ot=null,xh(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:Ad(i)?(Ee=0,Ot=null,xh(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?nm(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:ro(),Ge=6;break e;default:throw Error(u(462))}}n1();break}catch(D){mh(e,D)}while(!0);return ca=pl=null,k.H=l,k.A=s,Ne=a,fe!==null?0:(we=null,me=0,ui(),Ge)}function n1(){for(;fe!==null&&!Ay();)gh(fe)}function gh(e){var t=Gf(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Uf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Uf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Nc(t);default:Kf(a,t),t=fe=vd(t,ga),t=Gf(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gn(e,t,a,l){ca=pl=null,Nc(t),rn=null,ss=0;var s=t.return;try{if(V0(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))),bh(t,e)):Xi(t)}function Xi(e){var t=e;do{if((t.flags&32768)!==0){bh(t,Ba);return}e=t.return;var a=F0(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 bh(e,t){do{var a=$0(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 jh(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|=$r,Ly(e,a,i,o,f,y),e===we&&(fe=we=null,me=0),vn=t,Qa=e,xa=a,no=i,so=s,uh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,c1(Js,function(){return Eh(),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{W0(e,t,a)}finally{Ne=o,Y.p=s,k.T=l}}We=1,Sh(),Nh(),zh()}}function Sh(){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{ah(t,e);var i=jo,o=rd(e.containerInfo),f=i.focusedElem,y=i.selectionRange;if(o!==f&&f&&f.ownerDocument&&id(f.ownerDocument.documentElement,f)){if(y!==null&&Xr(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,M=U&&U.defaultView||window;if(M.getSelection){var R=M.getSelection(),J=f.textContent.length,ae=Math.min(y.start,J),Re=y.end===void 0?ae:Math.min(y.end,J);!R.extend&&ae>Re&&(o=Re,Re=ae,ae=o);var z=sd(f,ae),v=sd(f,Re);if(z&&v&&(R.rangeCount!==1||R.anchorNode!==z.node||R.anchorOffset!==z.offset||R.focusNode!==v.node||R.focusOffset!==v.offset)){var E=U.createRange();E.setStart(z.node,z.offset),R.removeAllRanges(),ae>Re?(R.addRange(E),R.extend(v.node,v.offset)):(E.setEnd(v.node,v.offset),R.addRange(E))}}}}for(U=[],R=f;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.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}}nr=!!bo,jo=bo=null}finally{Ne=s,Y.p=l,k.T=a}}e.current=t,We=2}}function Nh(){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{Wf(e,t.alternate,t)}finally{Ne=s,Y.p=l,k.T=a}}We=3}}function zh(){if(We===4||We===3){We=0,Cy();var e=Qa,t=vn,a=xa,l=uh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,vn=Qa=null,Th(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(qa=null),Er(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 Th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ls(t)))}function Vi(){return Sh(),Nh(),zh(),Eh()}function Eh(){if(We!==5)return!1;var e=Qa,t=no;no=0;var a=Er(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,rh(i.current),nh(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,Th(e,t)}}function Ah(e,t,a){t=Bt(a,t),t=Bc(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)Ah(e,e,a);else for(;t!==null;){if(t.tag===3){Ah(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=Cf(2),l=Da(t,a,2),l!==null&&(Mf(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 e1;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=s1.bind(null,e,t,a),t.then(e,e))}function s1(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 Ch(e,t){t===0&&(t=ju()),e=ml(e,t),e!==null&&(Yn(e,t),Pt(e))}function i1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ch(e,a)}function r1(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),Ch(e,a)}function c1(e,t){return Sr(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,u1())}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,Rh(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,Rh(l,i));l=l.next}while(a);fo=!1}}function o1(){Mh()}function Mh(){Ji=uo=!1;var e=0;Ya!==0&&b1()&&(e=Ya);for(var t=Nt(),a=null,l=Zi;l!==null;){var s=l.next,i=Oh(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 Oh(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]=Uy(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&&Nr(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&&Nr(l),Er(a)){case 2:case 8:a=xu;break;case 32:a=Js;break;case 268435456:a=bu;break;default:a=Js}return l=_h.bind(null,e),a=Sr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Nr(l),e.callbackPriority=2,e.callbackNode=null,2}function _h(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:(fh(e,l,t),Oh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?_h.bind(null,e):null)}function Rh(e,t){if(Vi())return null;fh(e,t,!0)}function u1(){S1(function(){(Ne&6)!==0?Sr(gu,o1):Mh()})}function ho(){if(Ya===0){var e=ln;e===0&&(e=Fs,Fs<<=1,(Fs&261888)===0&&(Fs=256)),Ya=e}return Ya}function kh(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 d1(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=kh((s[mt]||null).action),o=l.submitter;o&&(t=(t=o[mt]||null)?kh(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);Rc(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),Rc(a,{pending:!0,data:y,method:s.method,action:i},i,y))},currentTarget:s}]})}}for(var mo=0;mo<Fr.length;mo++){var yo=Fr[mo],f1=yo.toLowerCase(),h1=yo[0].toUpperCase()+yo.slice(1);Vt(f1,"on"+h1)}Vt(ud,"onAnimationEnd"),Vt(dd,"onAnimationIteration"),Vt(fd,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(M0,"onTransitionRun"),Vt(O0,"onTransitionStart"),Vt(_0,"onTransitionCancel"),Vt(hd,"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(" "),m1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zs));function wh(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[Ar];a===void 0&&(a=t[Ar]=new Set);var l=e+"__bubble";a.has(l)||(Uh(t,e,2,!1),a.add(l))}function vo(e,t,a){var l=0;t&&(l|=4),Uh(a,e,l,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Fi]){e[Fi]=!0,Cu.forEach(function(a){a!=="selectionchange"&&(m1.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 Uh(e,t,a,l){switch(dm(t)){case 2:var s=G1;break;case 8:s=Y1;break;default:s=Ro}a=s.bind(null,t,a,e),s=void 0,!Ur||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}qu(function(){var A=i,D=Dr(a),U=[];e:{var M=md.get(e);if(M!==void 0){var R=ii,J=e;switch(e){case"keypress":if(ni(a)===0)break e;case"keydown":case"keyup":R=r0;break;case"focusin":J="focus",R=qr;break;case"focusout":J="blur",R=qr;break;case"beforeblur":case"afterblur":R=qr;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":R=Yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=u0;break;case ud:case dd:case fd:R=Iy;break;case hd:R=f0;break;case"scroll":case"scrollend":R=Zy;break;case"wheel":R=m0;break;case"copy":case"cut":case"paste":R=e0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Xu;break;case"toggle":case"beforetoggle":R=v0}var ae=(t&4)!==0,Re=!ae&&(e==="scroll"||e==="scrollend"),z=ae?M!==null?M+"Capture":null:M;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&&(M=new R(M,J,null,a,D),U.push({event:M,listeners:ae}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",M&&a!==kr&&(J=a.relatedTarget||a.fromElement)&&(ql(J)||J[Hl]))break e;if((R||M)&&(M=D.window===D?D:(M=D.ownerDocument)?M.defaultView||M.parentWindow:window,R?(J=a.relatedTarget||a.toElement,R=A,J=J?ql(J):null,J!==null&&(Re=x(J),ae=J.tag,J!==Re||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(R=null,J=A),R!==J)){if(ae=Yu,w="onMouseLeave",z="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Xu,w="onPointerLeave",z="onPointerEnter",v="pointer"),Re=R==null?M:Xn(R),E=J==null?M:Xn(J),M=new ae(w,v+"leave",R,a,D),M.target=Re,M.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,R&&J)t:{for(ae=y1,z=R,v=J,E=0,w=z;w;w=ae(w))E++;w=0;for(var ee=v;ee;ee=ae(ee))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;R!==null&&Lh(U,M,R,ae,!1),J!==null&&Re!==null&&Lh(U,Re,J,ae,!0)}}e:{if(M=A?Xn(A):window,R=M.nodeName&&M.nodeName.toLowerCase(),R==="select"||R==="input"&&M.type==="file")var je=Pu;else if(Wu(M))if(ed)je=E0;else{je=z0;var W=N0}else R=M.nodeName,!R||R.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?A&&Rr(A.elementType)&&(je=Pu):je=T0;if(je&&(je=je(e,A))){Iu(U,je,a,D);break e}W&&W(e,M,A),e==="focusout"&&A&&M.type==="number"&&A.memoizedProps.value!=null&&_r(M,"number",M.value)}switch(W=A?Xn(A):window,e){case"focusin":(Wu(W)||W.contentEditable==="true")&&(Fl=W,Vr=A,es=null);break;case"focusout":es=Vr=Fl=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":Zr=!1,cd(U,a,D);break;case"selectionchange":if(C0)break;case"keydown":case"keyup":cd(U,a,D)}var ue;if(Gr)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?Fu(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Vu&&a.locale!=="ko"&&(Jl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Jl&&(ue=Qu()):(Aa=D,Lr="value"in Aa?Aa.value:Aa.textContent,Jl=!0)),W=$i(A,ye),0<W.length&&(ye=new Ku(ye,e,null,a,D),U.push({event:ye,listeners:W}),ue?ye.data=ue:(ue=$u(a),ue!==null&&(ye.data=ue)))),(ue=g0?x0(e,a):b0(e,a))&&(ye=$i(A,"onBeforeInput"),0<ye.length&&(W=new Ku("onBeforeInput","beforeinput",null,a,D),U.push({event:W,listeners:ye}),W.data=ue)),d1(U,e,A,a,D)}wh(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 y1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lh(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 v1=/\r\n?/g,p1=/\u0000|\uFFFD/g;function Bh(e){return(typeof e=="string"?e:""+e).replace(v1,`
49
- `).replace(p1,"")}function Hh(e,t){return t=Bh(t),Bh(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":Bu(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=Xy.get(a)||a,Ps(e,a,l))}}function xo(e,t,a,l,s,i){switch(a){case"style":Bu(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(!Mu.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)}}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)}Uu(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(Rr(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 g1(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(R in a){var U=a[R];if(a.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=U;default:l.hasOwnProperty(R)||_e(e,t,R,null,l,U)}}for(var M in l){var R=l[M];if(U=a[M],l.hasOwnProperty(M)&&(R!=null||U!=null))switch(M){case"type":i=R;break;case"name":s=R;break;case"checked":A=R;break;case"defaultChecked":D=R;break;case"value":o=R;break;case"defaultValue":f=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:R!==U&&_e(e,t,M,R,l,U)}}Or(e,o,f,y,A,D,i,s);return;case"select":R=o=f=M=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":R=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":M=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=R,M!=null?Kl(e,!!a,M,!1):!!l!=!!a&&(t!=null?Kl(e,!!a,t,!0):Kl(e,!!a,a?[]:"",!1));return;case"textarea":R=M=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":M=s;break;case"defaultValue":R=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)}wu(e,M,R);return;case"option":for(var J in a)if(M=a[J],a.hasOwnProperty(J)&&M!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:_e(e,t,J,null,l,M)}for(y in l)if(M=l[y],R=a[y],l.hasOwnProperty(y)&&M!==R&&(M!=null||R!=null))switch(y){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:_e(e,t,y,M,l,R)}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)M=a[ae],a.hasOwnProperty(ae)&&M!=null&&!l.hasOwnProperty(ae)&&_e(e,t,ae,null,l,M);for(A in l)if(M=l[A],R=a[A],l.hasOwnProperty(A)&&M!==R&&(M!=null||R!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(u(137,t));break;default:_e(e,t,A,M,l,R)}return;default:if(Rr(t)){for(var Re in a)M=a[Re],a.hasOwnProperty(Re)&&M!==void 0&&!l.hasOwnProperty(Re)&&xo(e,t,Re,void 0,l,M);for(D in l)M=l[D],R=a[D],!l.hasOwnProperty(D)||M===R||M===void 0&&R===void 0||xo(e,t,D,M,l,R);return}}for(var z in a)M=a[z],a.hasOwnProperty(z)&&M!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,M);for(U in l)M=l[U],R=a[U],!l.hasOwnProperty(U)||M===R||M==null&&R==null||_e(e,t,U,M,l,R)}function qh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x1(){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&&qh(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&&qh(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 Gh(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 b1(){var e=window.event;return e&&e.type==="popstate"?e===No?!1:(No=e,!0):(No=null,!1)}var Yh=typeof setTimeout=="function"?setTimeout:void 0,j1=typeof clearTimeout=="function"?clearTimeout:void 0,Kh=typeof Promise=="function"?Promise:void 0,S1=typeof queueMicrotask=="function"?queueMicrotask:typeof Kh<"u"?function(e){return Kh.resolve(null).then(e).catch(N1)}:Yh;function N1(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function Xh(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 Vh(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),Cr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function z1(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 T1(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 Zh(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 E1(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 Jh(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 Fh(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 $h(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]);Cr(e)}var Kt=new Map,Wh=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:A1,r:C1,D:M1,C:O1,L:_1,m:R1,X:D1,S:k1,M:w1};function A1(){var e=ba.f(),t=Yi();return e||t}function C1(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?mf(t):ba.r(e)}var bn=typeof document>"u"?null:document;function Ih(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+'"]'),Wh.has(s)||(Wh.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 M1(e){ba.D(e),Ih("dns-prefetch",e,null)}function O1(e,t){ba.C(e,t),Ih("preconnect",e,t)}function _1(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 R1(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 k1(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 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 w1(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 Ph(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||U1(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 em(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function U1(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 tm(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=em(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 er=null;function am(e,t,a){if(er===null){var l=new Map,s=er=new Map;s.set(a,l)}else s=er,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 lm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function L1(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 nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function B1(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=tr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ie(i);return}i=t.ownerDocument||t,l=em(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=tr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oo=0;function H1(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&lr(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Oo===0&&(Oo=62500*x1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lr(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 tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(q1,e),ar=null,tr.call(e))}function q1(e,t){if(!(t.state.loading&4)){var a=ar.get(e);if(a)var l=a.get(null);else{a=new Map,ar.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=tr.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:se,_currentValue2:se,_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=zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zr(0),this.hiddenUpdates=zr(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 sm(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=cc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},fc(i),e}function im(e){return e?(e=Il,e):Il}function rm(e,t,a,l,s,i){s=im(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),rs(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 om(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&bt(t,e,67108864),_o(e,67108864)}}function um(e){if(e.tag===13||e.tag===31){var t=Rt();t=Tr(t);var a=ml(e,t);a!==null&&bt(a,e,t),_o(e,t)}}var nr=!0;function G1(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 Y1(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(nr){var s=ko(l);if(s===null)go(e,t,l,sr,a),fm(e,l);else if(X1(s,e,t,a,l))l.stopPropagation();else if(fm(e,l),t&4&&-1<K1.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,sr,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else go(e,t,l,null,a)}}function ko(e){return e=Dr(e),Do(e)}var sr=null;function Do(e){if(sr=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 sr=e,null}function dm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(My()){case gu:return 2;case xu:return 8;case Js:case Oy:return 32;case bu:return 268435456;default:return 32}default:return 32}}var wo=!1,Xa=null,Va=null,Za=null,Os=new Map,_s=new Map,Ja=[],K1="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 fm(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&&om(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function X1(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 hm(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,Eu(e.priority,function(){um(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,Eu(e.priority,function(){um(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 ir(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);kr=l,a.target.dispatchEvent(l),kr=null}else return t=Ql(a),t!==null&&om(t),e.blockedOn=a,!1;t.shift()}return!0}function mm(e,t,a){ir(e)&&a.delete(t)}function V1(){wo=!1,Xa!==null&&ir(Xa)&&(Xa=null),Va!==null&&ir(Va)&&(Va=null),Za!==null&&ir(Za)&&(Za=null),Os.forEach(mm),_s.forEach(mm)}function rr(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,V1)))}var cr=null;function ym(e){cr!==e&&(cr=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){cr===e&&(cr=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,Rc(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Nn(e){function t(y){return rr(y,e)}Xa!==null&&rr(Xa,e),Va!==null&&rr(Va,e),Za!==null&&rr(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);)hm(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||ym(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),ym(a)}}}function vm(){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}or.prototype.render=Uo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Rt();rm(a,l,e,t,null,null)},or.prototype.unmount=Uo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rm(e.current,2,null,e,null,null),Yi(),t[Hl]=null}};function or(e){this._internalRoot=e}or.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tu();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&&hm(e)}};var pm=c.version;if(pm!=="19.2.7")throw Error(u(527,pm,"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?b(e):null,e=e===null?null:e.stateNode,e};var Z1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ur.isDisabled&&ur.supportsFiber)try{Qn=ur.inject(Z1),zt=ur}catch{}}return Ds.createRoot=function(e,t){if(!m(e))throw Error(u(299));var a=!1,l="",s=zf,i=Tf,o=Ef;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=sm(e,1,!1,null,null,a,l,null,s,i,o,vm),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=zf,o=Tf,f=Ef,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=sm(e,1,!0,t,a??null,l,s,y,i,o,f,vm),t.context=im(null),a=t.current,l=Rt(),l=Tr(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 or(t)},Ds.version="19.2.7",Ds}var Bm;function Yv(){if(Bm)return qo.exports;Bm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),qo.exports=Gv(),qo.exports}var Kv=Yv();/**
48
+ `+l.stack}}var jr=Object.prototype.hasOwnProperty,Sr=r.unstable_scheduleCallback,Nr=r.unstable_cancelCallback,Ay=r.unstable_shouldYield,Cy=r.unstable_requestPaint,Nt=r.unstable_now,My=r.unstable_getCurrentPriorityLevel,gu=r.unstable_ImmediatePriority,xu=r.unstable_UserBlockingPriority,Js=r.unstable_NormalPriority,Oy=r.unstable_LowPriority,bu=r.unstable_IdlePriority,_y=r.log,Ry=r.unstable_setDisableYieldValue,Qn=null,zt=null;function Ta(e){if(typeof _y=="function"&&Ry(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Qn,e)}catch{}}var Tt=Math.clz32?Math.clz32:wy,ky=Math.log,Dy=Math.LN2;function wy(e){return e>>>=0,e===0?32:31-(ky(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 Uy(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 ju(){var e=Ws;return Ws<<=1,(Ws&62914560)===0&&(Ws=4194304),e}function zr(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 Ly(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 M=A[D];if(M!==null)for(A[D]=null,D=0;D<M.length;D++){var R=M[D];R!==null&&(R.lane&=-536870913)}a&=~U}l!==0&&Su(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Su(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 Nu(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 zu(e,t){var a=t&-t;return a=(a&42)!==0?1:Tr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Tr(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 Er(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tu(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:dm(e.type))}function Eu(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,Ar="__reactEvents$"+Ea,By="__reactListeners$"+Ea,Hy="__reactHandles$"+Ea,Au="__reactResources$"+Ea,Kn="__reactMarker$"+Ea;function Cr(e){delete e[tt],delete e[mt],delete e[Ar],delete e[By],delete e[Hy]}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=Fh(e);e!==null;){if(a=e[tt])return a;e=Fh(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[Au];return t||(t=e[Au]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Kn]=!0}var Cu=new Set,Mu={};function ul(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Mu[e]=t,e=0;e<t.length;e++)Cu.add(t[e])}var qy=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]*$"),Ou={},_u={};function Qy(e){return jr.call(_u,e)?!0:jr.call(Ou,e)?!1:qy.test(e)?_u[e]=!0:(Ou[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 Ru(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gy(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 Mr(e){if(!e._valueTracker){var t=Ru(e)?"checked":"value";e._valueTracker=Gy(e,t,""+e[t])}}function ku(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ru(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 Yy=/[\n"\\]/g;function Ut(e){return e.replace(Yy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Or(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?_r(e,o,wt(t)):a!=null?_r(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)){Mr(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),Mr(e)}function _r(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 wu(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 Uu(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),Mr(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 Ky=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 Lu(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||Ky.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Bu(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&&Lu(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&Lu(e,i,t[i])}function Rr(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 Xy=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"]]),Vy=/^[\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 Vy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var kr=null;function Dr(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 Hu(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(Or(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));Or(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&&ku(l)}break e;case"textarea":wu(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kl(e,!!a.multiple,t,!1)}}}var wr=!1;function qu(e,t,a){if(wr)return e(t,a);wr=!0;try{var l=e(t);return l}finally{if(wr=!1,(Vl!==null||Zl!==null)&&(Yi(),Vl&&(t=Vl,e=Zl,Zl=Vl=null,Hu(t),e)))for(t=0;t<e.length;t++)Hu(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"),Ur=!1;if(sa)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Ur=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Ur=!1}var Aa=null,Lr=null,li=null;function Qu(){if(li)return li;var e,t=Lr,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 Gu(){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:Gu,this.isPropagationStopped=Gu,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}),Zy=yt(Jn),Br,Hr,Fn,ri=S({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qr,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"?(Br=e.screenX-Fn.screenX,Hr=e.screenY-Fn.screenY):Hr=Br=0,Fn=e),Br)},movementY:function(e){return"movementY"in e?e.movementY:Hr}}),Yu=yt(ri),Jy=S({},ri,{dataTransfer:0}),Fy=yt(Jy),$y=S({},Jn,{relatedTarget:0}),qr=yt($y),Wy=S({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=yt(Wy),Py=S({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e1=yt(Py),t1=S({},dl,{data:0}),Ku=yt(t1),a1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l1={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"},n1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=n1[e])?!!t[e]:!1}function Qr(){return s1}var i1=S({},Jn,{key:function(e){if(e.key){var t=a1[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"?l1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qr,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}}),r1=yt(i1),c1=S({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xu=yt(c1),o1=S({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qr}),u1=yt(o1),d1=S({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),f1=yt(d1),h1=S({},ri,{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}),m1=yt(h1),y1=S({},dl,{newState:0,oldState:0}),p1=yt(y1),v1=[9,13,27,32],Gr=sa&&"CompositionEvent"in window,$n=null;sa&&"documentMode"in document&&($n=document.documentMode);var g1=sa&&"TextEvent"in window&&!$n,Vu=sa&&(!Gr||$n&&8<$n&&11>=$n),Zu=" ",Ju=!1;function Fu(e,t){switch(e){case"keyup":return v1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $u(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jl=!1;function x1(e,t){switch(e){case"compositionend":return $u(t);case"keypress":return t.which!==32?null:(Ju=!0,Zu);case"textInput":return e=t.data,e===Zu&&Ju?null:e;default:return null}}function b1(e,t){if(Jl)return e==="compositionend"||!Gr&&Fu(e,t)?(e=Qu(),li=Lr=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 Vu&&t.locale!=="ko"?null:t.data;default:return null}}var j1={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j1[e.type]:t==="textarea"}function Iu(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 S1(e){wh(e,0)}function ci(e){var t=Xn(e);if(ku(t))return e}function Pu(e,t){if(e==="change")return t}var ed=!1;if(sa){var Yr;if(sa){var Kr="oninput"in document;if(!Kr){var td=document.createElement("div");td.setAttribute("oninput","return;"),Kr=typeof td.oninput=="function"}Yr=Kr}else Yr=!1;ed=Yr&&(!document.documentMode||9<document.documentMode)}function ad(){Wn&&(Wn.detachEvent("onpropertychange",ld),In=Wn=null)}function ld(e){if(e.propertyName==="value"&&ci(In)){var t=[];Iu(t,In,e,Dr(e)),qu(S1,t)}}function N1(e,t,a){e==="focusin"?(ad(),Wn=t,In=a,Wn.attachEvent("onpropertychange",ld)):e==="focusout"&&ad()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ci(In)}function T1(e,t){if(e==="click")return ci(t)}function E1(e,t){if(e==="input"||e==="change")return ci(t)}function A1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:A1;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(!jr.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sd(e,t){var a=nd(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=nd(a)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rd(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 Xr(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 C1=sa&&"documentMode"in document&&11>=document.documentMode,Fl=null,Vr=null,es=null,Zr=!1;function cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zr||Fl==null||Fl!==ti(l)||(l=Fl,"selectionStart"in l&&Xr(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(Vr,"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")},Jr={},od={};sa&&(od=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(Jr[e])return Jr[e];if(!$l[e])return e;var t=$l[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in od)return Jr[e]=t[a];return e}var ud=hl("animationend"),dd=hl("animationiteration"),fd=hl("animationstart"),M1=hl("transitionrun"),O1=hl("transitionstart"),_1=hl("transitioncancel"),hd=hl("transitionend"),md=new Map,Fr="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(" ");Fr.push("scrollEnd");function Vt(e,t){md.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,$r=0;function ui(){for(var e=Wl,t=$r=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&&yd(a,s,i)}}function di(e,t,a,l){Lt[Wl++]=e,Lt[Wl++]=t,Lt[Wl++]=a,Lt[Wl++]=l,$r|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Wr(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 yd(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 R1(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 R1(e,t,a,l)}function Ir(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 pd(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")Ir(e)&&(o=1);else if(typeof e=="string")o=L0(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=At(31,a,t,s),e.elementType=ve,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 P:return e=At(13,a,t,s),e.elementType=P,e.lanes=i,e;case ne:return e=At(19,a,t,s),e.elementType=ne,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 ie: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 Pr(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 ec(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 gd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=gd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:vu(t)},gd.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 ra(e,t){Pl[en++]=ts,Pl[en++]=mi,mi=e,ts=t}function xd(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 tc(e){e.return!==null&&(ra(e,1),xd(e,1,0))}function ac(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 bd(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,lc=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)),lc}function jd(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),Uu(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||Hh(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 Sd(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 Sd(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),Sd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Jh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Le=Jh(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 pl(){Le=at=null,xe=!1}function nc(){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 sc=g(null),vl=null,ca=null;function _a(e,t,a){K(sc,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=sc.current,L(sc)}function ic(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 rc(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),ic(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),ic(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&&rc(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){vl=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Nd(vl,e)}function pi(e,t){return vl===null&&gl(e),Nd(e,t)}function Nd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(u(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var k1=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()})}},D1=r.unstable_scheduleCallback,w1=r.unstable_NormalPriority,Ze={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new k1,data:new Map,refCount:0}}function ls(e){e.refCount--,e.refCount===0&&D1(w1,function(){e.controller.abort()})}var ns=null,oc=0,ln=0,nn=null;function U1(e,t){if(ns===null){var a=ns=[];oc=0,ln=ho(),nn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return oc++,t.then(zd,zd),t}function zd(){if(--oc===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 L1(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 Td=k.S;k.S=function(e,t){oh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U1(e,t),Td!==null&&Td(e,t)};var xl=g(null);function uc(){var e=xl.current;return e!==null?e:we.pooledCache}function vi(e,t){t===null?K(xl,xl.current):K(xl,t.pool)}function Ed(){var e=uc();return e===null?null:{parent:Ze._currentValue,pool:e}}var sn=Error(u(460)),dc=Error(u(474)),gi=Error(u(542)),xi={then:function(){}};function Ad(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cd(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,Od(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,Od(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 Md(){if(jl===null)throw Error(u(459));var e=jl;return jl=null,e}function Od(e){if(e===sn||e===gi)throw Error(u(483))}var rn=null,ss=0;function bi(e){var t=ss;return ss+=1,rn===null&&(rn=[]),Cd(rn,e,t)}function is(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===O?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _d(e){function t(z,p){if(e){var E=z.deletions;E===null?(z.deletions=[p],z.flags|=16):E.push(p)}}function a(z,p){if(!e)return null;for(;p!==null;)t(z,p),p=p.sibling;return null}function l(z){for(var p=new Map;z!==null;)z.key!==null?p.set(z.key,z):p.set(z.index,z),z=z.sibling;return p}function s(z,p){return z=ia(z,p),z.index=0,z.sibling=null,z}function i(z,p,E){return z.index=E,e?(E=z.alternate,E!==null?(E=E.index,E<p?(z.flags|=67108866,p):E):(z.flags|=67108866,p)):(z.flags|=1048576,p)}function o(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function f(z,p,E,w){return p===null||p.tag!==6?(p=Pr(E,z.mode,w),p.return=z,p):(p=s(p,E),p.return=z,p)}function y(z,p,E,w){var ee=E.type;return ee===B?D(z,p,E.props.children,w,E.key):p!==null&&(p.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&bl(ee)===p.type)?(p=s(p,E.props),is(p,E),p.return=z,p):(p=hi(E.type,E.key,E.props,null,z.mode,w),is(p,E),p.return=z,p)}function A(z,p,E,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==E.containerInfo||p.stateNode.implementation!==E.implementation?(p=ec(E,z.mode,w),p.return=z,p):(p=s(p,E.children||[]),p.return=z,p)}function D(z,p,E,w,ee){return p===null||p.tag!==7?(p=yl(E,z.mode,w,ee),p.return=z,p):(p=s(p,E),p.return=z,p)}function U(z,p,E){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Pr(""+p,z.mode,E),p.return=z,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case C:return E=hi(p.type,p.key,p.props,null,z.mode,E),is(E,p),E.return=z,E;case _:return p=ec(p,z.mode,E),p.return=z,p;case ie:return p=bl(p),U(z,p,E)}if(ke(p)||ge(p))return p=yl(p,z.mode,E,null),p.return=z,p;if(typeof p.then=="function")return U(z,bi(p),E);if(p.$$typeof===Q)return U(z,pi(z,p),E);ji(z,p)}return null}function M(z,p,E,w){var ee=p!==null?p.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return ee!==null?null:f(z,p,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case C:return E.key===ee?y(z,p,E,w):null;case _:return E.key===ee?A(z,p,E,w):null;case ie:return E=bl(E),M(z,p,E,w)}if(ke(E)||ge(E))return ee!==null?null:D(z,p,E,w,null);if(typeof E.then=="function")return M(z,p,bi(E),w);if(E.$$typeof===Q)return M(z,p,pi(z,E),w);ji(z,E)}return null}function R(z,p,E,w,ee){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return z=z.get(E)||null,f(p,z,""+w,ee);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case C:return z=z.get(w.key===null?E:w.key)||null,y(p,z,w,ee);case _:return z=z.get(w.key===null?E:w.key)||null,A(p,z,w,ee);case ie:return w=bl(w),R(z,p,E,w,ee)}if(ke(w)||ge(w))return z=z.get(E)||null,D(p,z,w,ee,null);if(typeof w.then=="function")return R(z,p,E,bi(w),ee);if(w.$$typeof===Q)return R(z,p,E,pi(p,w),ee);ji(p,w)}return null}function J(z,p,E,w){for(var ee=null,je=null,W=p,ue=p=0,ye=null;W!==null&&ue<E.length;ue++){W.index>ue?(ye=W,W=null):ye=W.sibling;var Se=M(z,W,E[ue],w);if(Se===null){W===null&&(W=ye);break}e&&W&&Se.alternate===null&&t(z,W),p=i(Se,p,ue),je===null?ee=Se:je.sibling=Se,je=Se,W=ye}if(ue===E.length)return a(z,W),xe&&ra(z,ue),ee;if(W===null){for(;ue<E.length;ue++)W=U(z,E[ue],w),W!==null&&(p=i(W,p,ue),je===null?ee=W:je.sibling=W,je=W);return xe&&ra(z,ue),ee}for(W=l(W);ue<E.length;ue++)ye=R(W,z,ue,E[ue],w),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ue:ye.key),p=i(ye,p,ue),je===null?ee=ye:je.sibling=ye,je=ye);return e&&W.forEach(function(Fa){return t(z,Fa)}),xe&&ra(z,ue),ee}function ae(z,p,E,w){if(E==null)throw Error(u(151));for(var ee=null,je=null,W=p,ue=p=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=M(z,W,Se.value,w);if(Fa===null){W===null&&(W=ye);break}e&&W&&Fa.alternate===null&&t(z,W),p=i(Fa,p,ue),je===null?ee=Fa:je.sibling=Fa,je=Fa,W=ye}if(Se.done)return a(z,W),xe&&ra(z,ue),ee;if(W===null){for(;!Se.done;ue++,Se=E.next())Se=U(z,Se.value,w),Se!==null&&(p=i(Se,p,ue),je===null?ee=Se:je.sibling=Se,je=Se);return xe&&ra(z,ue),ee}for(W=l(W);!Se.done;ue++,Se=E.next())Se=R(W,z,ue,Se.value,w),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?ue:Se.key),p=i(Se,p,ue),je===null?ee=Se:je.sibling=Se,je=Se);return e&&W.forEach(function(J0){return t(z,J0)}),xe&&ra(z,ue),ee}function Re(z,p,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 C:e:{for(var ee=E.key;p!==null;){if(p.key===ee){if(ee=E.type,ee===B){if(p.tag===7){a(z,p.sibling),w=s(p,E.props.children),w.return=z,z=w;break e}}else if(p.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===ie&&bl(ee)===p.type){a(z,p.sibling),w=s(p,E.props),is(w,E),w.return=z,z=w;break e}a(z,p);break}else t(z,p);p=p.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 _:e:{for(ee=E.key;p!==null;){if(p.key===ee)if(p.tag===4&&p.stateNode.containerInfo===E.containerInfo&&p.stateNode.implementation===E.implementation){a(z,p.sibling),w=s(p,E.children||[]),w.return=z,z=w;break e}else{a(z,p);break}else t(z,p);p=p.sibling}w=ec(E,z.mode,w),w.return=z,z=w}return o(z);case ie:return E=bl(E),Re(z,p,E,w)}if(ke(E))return J(z,p,E,w);if(ge(E)){if(ee=ge(E),typeof ee!="function")throw Error(u(150));return E=ee.call(E),ae(z,p,E,w)}if(typeof E.then=="function")return Re(z,p,bi(E),w);if(E.$$typeof===Q)return Re(z,p,pi(z,E),w);ji(z,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,p!==null&&p.tag===6?(a(z,p.sibling),w=s(p,E),w.return=z,z=w):(a(z,p),w=Pr(E,z.mode,w),w.return=z,z=w),o(z)):a(z,p)}return function(z,p,E,w){try{ss=0;var ee=Re(z,p,E,w);return rn=null,ee}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=_d(!0),Rd=_d(!1),Ra=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(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),yd(e,null,a),t}return di(e,l,t,a),fi(e)}function rs(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,Nu(e,a)}}function mc(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 yc=!1;function cs(){if(yc){var e=nn;if(e!==null)throw e}}function os(e,t,a,l){yc=!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 M=f.lane&-536870913,R=M!==f.lane;if(R?(me&M)===M:(l&M)===M){M!==0&&M===ln&&(yc=!0),D!==null&&(D=D.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var J=e,ae=f;M=t;var Re=a;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){U=J.call(Re,U,M);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,M=typeof J=="function"?J.call(Re,U,M):J,M==null)break e;U=S({},U,M);break e;case 2:Ra=!0}}M=f.callback,M!==null&&(e.flags|=64,R&&(e.flags|=8192),R=s.callbacks,R===null?s.callbacks=[M]:R.push(M))}else R={lane:M,tag:f.tag,payload:f.payload,callback:f.callback,next:null},D===null?(A=D=R,y=U):D=D.next=R,o|=M;if(f=f.next,f===null){if(f=s.shared.pending,f===null)break;R=f,f=R.next,R.next=null,s.lastBaseUpdate=R,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 kd(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++)kd(a[e],t)}var cn=g(null),Si=g(0);function wd(e,t){e=ga,K(Si,e),K(cn,t),ga=e|t.baseLanes}function pc(){K(Si,ga),K(cn,cn.current)}function vc(){ga=Si.current,L(cn),L(Si)}var Ct=g(null),Gt=null;function wa(e){var t=e.alternate;K(Xe,Xe.current&1),K(Ct,e),Gt===null&&(t===null||cn.current!==null||t.memoizedState!==null)&&(Gt=e)}function gc(e){K(Xe,Xe.current),K(Ct,e),Gt===null&&(Gt=e)}function Ud(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=g(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,B1=0;function Qe(){throw Error(u(321))}function xc(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 bc(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?bf:wc,Nl=!1,i=a(l,s),Nl=!1,on&&(i=Bd(t,a,l,s)),Ld(e),i}function Ld(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 Bd(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=jf,i=t(a,l)}while(on);return i}function H1(){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 jc(){var e=Ti!==0;return Ti=0,e}function Sc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nc(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=Cd(un,e,t),t=oe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?bf:wc),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 zc(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 Tc(t,Oe,e)}function Tc(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 M=A.revertLane;if(M===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&M)===M){A=A.next,M===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|=M,Ha|=M;U=A.action,Nl&&a(i,U),i=A.hasEagerState?A.eagerState:a(i,U)}else M={lane:U,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(f=y=M,o=i):y=y.next=M,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 Ec(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 Hd(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,Mc(Gd.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||qd(l,t,a)}return a}function qd(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,Yd(t)&&Kd(e)}function Gd(e,t,a){return a(function(){Yd(t)&&Kd(e)})}function Yd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Et(e,a)}catch{return!0}}function Kd(e){var t=ml(e,2);t!==null&&bt(t,e,2)}function Ac(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 Xd(e,t,a,l){return e.baseState=a,Tc(e,Oe,typeof l=="function"?l:da)}function q1(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,Vd(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Vd(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),Zd(e,t,f)}catch(A){Cc(e,t,A)}finally{i!==null&&o.types!==null&&(i.types=o.types),k.T=i}}else try{i=a(s,l),Zd(e,t,i)}catch(A){Cc(e,t,A)}}function Zd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Jd(e,t,l)},function(l){return Cc(e,t,l)}):Jd(e,t,a)}function Jd(e,t,a){t.status="fulfilled",t.value=a,Fd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Vd(e,a)))}function Cc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Fd(t),t=t.next;while(t!==l)}e.action=null}function Fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $d(e,t){return t}function Wd(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:$d,lastRenderedState:t},a.queue=l,a=vf.bind(null,oe,l),l.dispatch=a,l=Ac(!1),i=Dc.bind(null,oe,!1,l.queue),l=dt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=q1.bind(null,oe,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function Id(e){var t=Ve();return Pd(t,Oe,e)}function Pd(e,t,a){if(t=Tc(e,t,$d)[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},Q1.bind(null,s,a),null)),[l,i,e]}function Q1(e,t){e.action=t}function ef(e){var t=Ve(),a=Oe;if(a!==null)return Pd(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 tf(){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&&xc(l,Oe.memoizedState.deps)?s.memoizedState=dn(t,i,a,l):(oe.flags|=e,s.memoizedState=dn(1|t,i,a,l))}function af(e,t){Mi(8390656,8,e,t)}function Mc(e,t){Oi(2048,8,e,t)}function G1(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 lf(e){var t=Ve().memoizedState;return G1({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function nf(e,t){return Oi(4,2,e,t)}function sf(e,t){return Oi(4,4,e,t)}function rf(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,rf.bind(null,t,e),a)}function Oc(){}function of(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&xc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function uf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&xc(t,l[1]))return l[0];if(l=e(),Nl){Ta(!0);try{e()}finally{Ta(!1)}}return a.memoizedState=[l,t],l}function _c(e,t,a){return a===void 0||(ua&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=dh(),oe.lanes|=e,Ha|=e,a)}function df(e,t,a,l){return Et(a,t)?a:cn.current!==null?(e=_c(e,a,l),Et(e,t)||(Fe=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=dh(),oe.lanes|=e,Ha|=e,t)}function ff(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,Dc(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=L1(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 Y1(){}function Rc(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=hf(e).queue;ff(e,s,t,se,a===null?Y1:function(){return mf(e),a(l)})}function hf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:se},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 mf(e){var t=hf(e);t.next===null&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Rt())}function kc(){return lt(Ms)}function yf(){return Ve().memoizedState}function pf(){return Ve().memoizedState}function K1(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),rs(l,t,a)),t={cache:cc()},e.payload=t;return}t=t.return}}function X1(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?gf(t,a):(a=Wr(e,t,a,l),a!==null&&(bt(a,e,l),xf(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))gf(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=Wr(e,t,s,l),a!==null)return bt(a,e,l),xf(a,t,l),!0}return!1}function Dc(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=Wr(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 gf(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 xf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Nu(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 bf={readContext:lt,use:Ai,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:af,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,rf.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=X1.bind(null,oe,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,a=vf.bind(null,oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,t){var a=dt();return _c(a,e,t)},useTransition:function(){var e=Ac(!1);return e=ff.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||qd(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,af(Gd.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=B1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kc,useFormState:Wd,useActionState:Wd,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=Dc.bind(null,oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:zc,useCacheRefresh:function(){return dt().memoizedState=K1.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)}}},wc={readContext:lt,use:Ai,useCallback:of,useContext:lt,useEffect:Mc,useImperativeHandle:cf,useInsertionEffect:nf,useLayoutEffect:sf,useMemo:uf,useReducer:Ci,useRef:tf,useState:function(){return Ci(da)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Ve();return df(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ci(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Hd,useId:yf,useHostTransitionStatus:kc,useFormState:Id,useActionState:Id,useOptimistic:function(e,t){var a=Ve();return Xd(a,Oe,e,t)},useMemoCache:zc,useCacheRefresh:pf};wc.useEffectEvent=lf;var jf={readContext:lt,use:Ai,useCallback:of,useContext:lt,useEffect:Mc,useImperativeHandle:cf,useInsertionEffect:nf,useLayoutEffect:sf,useMemo:uf,useReducer:Ec,useRef:tf,useState:function(){return Ec(da)},useDebugValue:Oc,useDeferredValue:function(e,t){var a=Ve();return Oe===null?_c(a,e,t):df(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ec(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ds(e),t]},useSyncExternalStore:Hd,useId:yf,useHostTransitionStatus:kc,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var a=Ve();return Oe!==null?Xd(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:zc,useCacheRefresh:pf};jf.useEffectEvent=lf;function Uc(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 Lc={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),rs(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),rs(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),rs(t,e,a))}};function Sf(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 Nf(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&&Lc.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 zf(e){oi(e)}function Tf(e){console.error(e)}function Ef(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 Af(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 Bc(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Cf(e){return e=ka(e),e.tag=3,e}function Mf(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(){Af(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Af(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 V1(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!==lc&&(e=Error(u(422),{cause:l}),as(Bt(e,a)))):(l!==lc&&(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=Bc(e.stateNode,l,s),mc(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=Bc(a.stateNode,l,e),mc(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=Cf(s),Mf(s,e,a,l),mc(a,s),!1}a=a.return}while(a!==null);return!1}var Hc=Error(u(461)),Fe=!1;function nt(e,t,a,l){t.child=e===null?Rd(t,null,a,l):Sl(t,e.child,a,l)}function Of(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=bc(e,t,a,o,i,s),f=jc(),e!==null&&!Fe?(Sc(e,t,s),fa(e,t,s)):(xe&&f&&tc(t),t.flags|=1,nt(e,t,l,s),t.child)}function _f(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!Ir(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Rf(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,!Zc(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 Rf(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,Zc(e,s))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,fa(e,t,s)}return qc(e,t,a,l,s)}function kf(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&&vi(t,i!==null?i.cachePool:null),i!==null?wd(t,i):pc(),Ud(t);else return l=t.lanes=536870912,Df(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(vi(t,i.cachePool),wd(t,i),Ua(),t.memoizedState=null):(e!==null&&vi(t,null),pc(),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=uc();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&vi(t,null),pc(),Ud(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 wf(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 Z1(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(gc(t),(e=Le)?(e=Zh(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(gc(t),s)if(t.flags&256)t.flags&=-257,t=wf(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=zu(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,ml(e,o),bt(l,e,o),Hc;Ki(),t=wf(e,t,a)}else e=i.treeContext,Le=Yt(o.nextSibling),at=t,xe=!0,Ma=null,Qt=!1,e!==null&&bd(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 qc(e,t,a,l,s){return gl(t),a=bc(e,t,a,l,void 0,s),l=jc(),e!==null&&!Fe?(Sc(e,t,s),fa(e,t,s)):(xe&&l&&tc(t),t.flags|=1,nt(e,t,a,s),t.child)}function Uf(e,t,a,l,s,i){return gl(t),t.updateQueue=null,a=Bd(t,l,a,s),Ld(e),l=jc(),e!==null&&!Fe?(Sc(e,t,i),fa(e,t,i)):(xe&&l&&tc(t),t.flags|=1,nt(e,t,a,i),t.child)}function Lf(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=Lc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},fc(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?lt(o):Il,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Uc(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&&Lc.enqueueReplaceState(i,i.state,null),os(t,l,i,s),cs(),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)&&Nf(t,i,l,o),Ra=!1;var M=t.memoizedState;i.state=M,os(t,l,i,s),cs(),A=t.memoizedState,f||M!==A||Ra?(typeof U=="function"&&(Uc(t,a,U,l),A=t.memoizedState),(y=Ra||Sf(t,a,y,l,M,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,hc(e,t),o=t.memoizedProps,D=zl(a,o),i.props=D,U=t.pendingProps,M=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||M!==y)&&Nf(t,i,l,y),Ra=!1,M=t.memoizedState,i.state=M,os(t,l,i,s),cs();var R=t.memoizedState;o!==U||M!==R||Ra||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof f=="function"&&(Uc(t,a,f,l),R=t.memoizedState),(D=Ra||Sf(t,a,D,l,M,R,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,R,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,R,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=R),i.props=l,i.state=R,i.context=y,l=D):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===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 Bf(e,t,a,l){return pl(),t.flags|=256,nt(e,t,a,l),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Ed()}}function Yc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=_t),e}function Hf(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=Zh(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=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Qc,ms(null,l)):(wa(t),Kc(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=Xc(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=Gc(a),l.childLanes=Yc(e,o,a),t.memoizedState=Qc,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=Xc(e,t,a)}else if(Fe||an(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=we,o!==null&&(l=zu(o,a),l!==0&&l!==y.retryLane))throw y.retryLane=l,ml(e,l),bt(o,e,l),Hc;To(f)||Ki(),t=Xc(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&&bd(t,e),t=Kc(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=Gc(a):(s=f.cachePool,s!==null?(y=Ze._currentValue,s=s.parent!==y?{parent:y,pool:y}:s):s=Ed(),f={baseLanes:f.baseLanes|a,cachePool:s}),l.memoizedState=f,l.childLanes=Yc(e,o,a),t.memoizedState=Qc,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 Kc(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 Xc(e,t,a){return Sl(t,e.child,null,a),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ic(e.return,t,a)}function Vc(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&&qf(e,a,t);else if(e.tag===19)qf(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),Vc(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}Vc(t,!0,a,null,i,l);break;case"together":Vc(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 Zc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function J1(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),_a(t,Ze,e.memoizedState.cache),pl();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,gc(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?Hf(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,kf(e,t,a,t.pendingProps);case 24:_a(t,Ze,e.memoizedState.cache)}return fa(e,t,a)}function Gf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!Zc(e,a)&&(t.flags&128)===0)return Fe=!1,J1(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,xe&&(t.flags&1048576)!==0&&xd(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")Ir(e)?(l=zl(e,l),t.tag=1,t=Lf(null,t,e,l,a)):(t.tag=0,t=qc(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===G){t.tag=11,t=Of(null,t,e,l,a);break e}else if(s===le){t.tag=14,t=_f(null,t,e,l,a);break e}}throw t=qe(e)||e,Error(u(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=zl(l,t.pendingProps),Lf(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,hc(e,t),os(t,l,null,a);var o=t.memoizedState;if(l=o.cache,_a(t,Ze,l),l!==i.cache&&rc(t,[Ze],a,!0),cs(),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=Bf(e,t,l,a);break e}else if(l!==s){s=Bt(Error(u(424)),t),as(s),t=Bf(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=Rd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pl(),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=Ph(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=Ph(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qn(t),e===null&&xe&&(l=t.stateNode=$h(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=z0(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=bc(e,t,H1,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=T0(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,at=t,Le=null,e=!0):e=!1),e||Oa(t)),null;case 13:return Hf(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 Of(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 _f(e,t,t.type,t.pendingProps,a);case 15:return Rf(e,t,t.type,t.pendingProps,a);case 19:return Qf(e,t,a);case 31:return Z1(e,t,a);case 22:return kf(e,t,a,t.pendingProps);case 24:return gl(t),l=lt(Ze),e===null?(s=uc(),s===null&&(s=we,i=cc(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},fc(t),_a(t,Ze,s)):((e.lanes&a)!==0&&(hc(e,t),os(t,null,null,a),cs()),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&&rc(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 Jc(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(yh())e.flags|=8192;else throw jl=xi,dc}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!nm(t))if(yh())e.flags|=8192;else throw jl=xi,dc}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ju():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 F1(e,t,a){var l=t.pendingProps;switch(ac(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,nc())),Be(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ha(t),i!==null?(Be(t),Yf(t,i)):(Be(t),Jc(t,s,null,l,a))):i?i!==e.memoizedState?(ha(t),Be(t),Yf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Be(t),Jc(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)?jd(t):(e=$h(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))jd(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),Jc(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||Hh(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 pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=nc(),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 pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=nc(),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&&vo(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;)pd(a,e),a=a.sibling;return K(Xe,Xe.current&1|2),xe&&ra(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&&ra(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),vc(),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 $1(e,t){switch(ac(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));pl()}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));pl()}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),vc(),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 Kf(e,t){switch(ac(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),vc(),e!==null&&L(xl);break;case 24:oa(Ze)}}function ps(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 Xf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Dd(t,a)}catch(l){Ae(e,e.return,l)}}}function Vf(e,t,a){a.props=zl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ae(e,t,l)}}function vs(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 Zf(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 Fc(e,t,a){try{var l=e.stateNode;g0(l,e.type,a,t),l[mt]=t}catch(s){Ae(e,e.return,s)}}function Jf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jf(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 Wc(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(Wc(e,t,a),e=e.sibling;e!==null;)Wc(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 Ff(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,Ic=!1,$f=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function W1(e,t){if(e=e.containerInfo,bo=nr,e=rd(e),Xr(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,M=null;t:for(;;){for(var R;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),(R=U.firstChild)!==null;)M=U,U=R;for(;;){if(U===e)break t;if(M===a&&++A===s&&(f=o),M===i&&++D===l&&(y=o),(R=U.nextSibling)!==null)break;U=M,M=U.parentNode}U=R}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},nr=!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 Wf(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&ps(5,a);break;case 1:if(pa(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&&Xf(a),l&512&&vs(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Dd(e,t)}catch(o){Ae(a,a.return,o)}}break;case 27:t===null&&l&4&&Ff(a);case 26:case 5:pa(e,a),t===null&&l&4&&Zf(a),l&512&&vs(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&eh(e,a);break;case 13:pa(e,a),l&4&&th(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=i0.bind(null,a),E0(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?va(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=s,$e=i}break;case 30:break;default:pa(e,a)}}function If(e){var t=e.alternate;t!==null&&(e.alternate=null,If(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cr(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,pt=!1;function ya(e,t,a){for(a=a.child;a!==null;)Pf(e,t,a),a=a.sibling}function Pf(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=pt;Ka(a.type)&&(He=a.stateNode,pt=!1),ya(e,t,a),Es(a.stateNode),He=l,pt=s;break;case 5:$e||It(a,t);case 6:if(l=He,s=pt,He=null,ya(e,t,a),He=l,pt=s,He!==null)if(pt)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&&(pt?(e=He,Xh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Nn(e)):Xh(He,a.stateNode));break;case 4:l=He,s=pt,He=a.stateNode.containerInfo,pt=!0,ya(e,t,a),He=l,pt=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"&&Vf(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 eh(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 th(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 I1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $f),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $f),t;default:throw Error(u(435,e.tag))}}function Bi(e,t){var a=I1(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=r0.bind(null,e,l);l.then(s,s)}})}function vt(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,pt=!1;break e}break;case 5:He=f.stateNode,pt=!1;break e;case 3:case 4:He=f.stateNode.containerInfo,pt=!0;break e}f=f.return}if(He===null)throw Error(u(160));Pf(i,o,s),He=null,pt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ah(t,e),t=t.sibling}var Zt=null;function ah(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),gt(e),l&4&&(La(3,e,e.return),ps(3,e),La(5,e,e.return));break;case 1:vt(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(vt(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=am("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=am("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 lm(s,e.type,e.stateNode);else e.stateNode=tm(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?lm(s,e.type,e.stateNode):tm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fc(e,e.memoizedProps,a.memoizedProps)}break;case 27:vt(t,e),gt(e),l&512&&($e||a===null||It(a,a.return)),a!==null&&l&4&&Fc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(vt(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,Fc(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Ic=!0);break;case 6:if(vt(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(er=null,s=Zt,Zt=Ii(t.containerInfo),vt(t,e),Zt=s,gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Nn(t.containerInfo)}catch(J){Ae(e,e.return,J)}Ic&&(Ic=!1,lh(e));break;case 4:l=Zt,Zt=Ii(e.stateNode.containerInfo),vt(t,e),gt(e),Zt=l;break;case 12:vt(t,e),gt(e);break;case 31:vt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bi(e,l)));break;case 13:vt(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,vt(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,M=U!=null&&U.hasOwnProperty("display")?U.display:null;f.style.display=M==null||typeof M=="boolean"?"":(""+M).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 R=y.stateNode;s?Vh(R,!0):Vh(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:vt(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:vt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Jf(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,i=$c(e);Li(e,i,s);break;case 5:var o=a.stateNode;a.flags&32&&(Xl(o,""),a.flags&=-33);var f=$c(e);Li(e,f,o);break;case 3:case 4:var y=a.stateNode.containerInfo,A=$c(e);Wc(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 lh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;lh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wf(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"&&Vf(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 va(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:va(s,i,a),ps(4,i);break;case 1:if(va(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++)kd(y[s],f)}catch(A){Ae(l,l.return,A)}}a&&o&64&&Xf(i),vs(i,i.return);break;case 27:Ff(i);case 26:case 5:va(s,i,a),a&&l===null&&o&4&&Zf(i),vs(i,i.return);break;case 12:va(s,i,a);break;case 31:va(s,i,a),a&&o&4&&eh(s,i);break;case 13:va(s,i,a),a&&o&4&&th(s,i);break;case 22:i.memoizedState===null&&va(s,i,a),vs(i,i.return);break;case 30:break;default:va(s,i,a)}t=t.sibling}}function Pc(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;)nh(e,t,a,l),t=t.sibling}function nh(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),s&2048&&ps(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&&Pc(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),ps(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&&Pc(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&&Pc(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;)sh(e,t,a),e=e.sibling}function sh(e,t,a){switch(e.tag){case 26:hn(e,t,a),e.flags&xs&&e.memoizedState!==null&&B0(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 ih(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)}ih(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rh(e),e=e.sibling}function rh(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)}ih(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(If(l),l===a){Pe=null;break e}if(s!==null){s.return=i,Pe=s;break e}Pe=i}}}var P1={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}},e0=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,oh=0,Qi=1/0,Gi=null,qa=null,We=0,Qa=null,pn=null,xa=0,no=0,so=null,uh=null,Ss=0,io=null;function Rt(){return(Ne&2)!==0&&me!==0?me&-me:k.T!==null?ho():Tu()}function dh(){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)&&(vn(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 fh(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?l0(e,t):co(e,t,!0),i=l;do{if(s===0){mn&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!t0(a)){s=co(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&&(vn(f,o).flags|=256),o=co(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){vn(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=Yh(hh.bind(null,l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,"Throttled",-0,0),s);break e}hh(l,a,xt,Gi,lo,t,_t,El,yn,Ba,i,null,-0,0)}}break}while(!0);Pt(e)}function hh(e,t,a,l,s,i,o,f,y,A,D,U,M,R){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},sh(t,i,U);var J=(i&62914560)===i?qi-Nt():(i&4194048)===i?oh-Nt():0;if(J=H0(U,J),J!==null){xa=i,e.cancelPendingCommit=J(jh.bind(null,e,t,i,a,l,s,o,f,y,D,U,null,M,R)),Ga(e,i,o,!A);return}}jh(e,t,i,a,l,s,o,f,y)}function t0(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&&Su(e,a,t)}function Yi(){return(Ne&6)===0?(Ns(0),!1):!0}function ro(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,ca=vl=null,Nc(e),rn=null,ss=0,e=fe;for(;e!==null;)Kf(e.alternate,e),e=e.return;fe=null}}function vn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,j0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,ro(),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 mh(e,t){oe=null,k.H=hs,t===sn||t===gi?(t=Md(),Ee=3):t===dc?(t=Md(),Ee=4):Ee=t===Hc?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 yh(){var e=Ct.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function ph(){var e=k.H;return k.H=hs,e===null?hs:e}function vh(){var e=k.A;return k.A=P1,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 co(e,t,a){var l=Ne;Ne|=2;var s=ph(),i=vh();(we!==e||me!==t)&&(Gi=null,vn(e,t)),t=!1;var o=Ge;e:do try{if(Ee!==0&&fe!==null){var f=fe,y=Ot;switch(Ee){case 8:ro(),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)}}a0(),o=Ge;break}catch(D){mh(e,D)}while(!0);return t&&e.shellSuspendCounter++,ca=vl=null,Ne=l,k.H=s,k.A=i,fe===null&&(we=null,me=0,ui()),o}function a0(){for(;fe!==null;)gh(fe)}function l0(e,t){var a=Ne;Ne|=2;var l=ph(),s=vh();we!==e||me!==t?(Gi=null,Qi=Nt()+500,vn(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(Ad(i)){Ee=0,Ot=null,xh(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:Ad(i)?(Ee=0,Ot=null,xh(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?nm(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:ro(),Ge=6;break e;default:throw Error(u(462))}}n0();break}catch(D){mh(e,D)}while(!0);return ca=vl=null,k.H=l,k.A=s,Ne=a,fe!==null?0:(we=null,me=0,ui(),Ge)}function n0(){for(;fe!==null&&!Ay();)gh(fe)}function gh(e){var t=Gf(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function xh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Uf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Uf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Nc(t);default:Kf(a,t),t=fe=pd(t,ga),t=Gf(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?Xi(e):fe=t}function gn(e,t,a,l){ca=vl=null,Nc(t),rn=null,ss=0;var s=t.return;try{if(V1(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))),bh(t,e)):Xi(t)}function Xi(e){var t=e;do{if((t.flags&32768)!==0){bh(t,Ba);return}e=t.return;var a=F1(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 bh(e,t){do{var a=$1(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 jh(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|=$r,Ly(e,a,i,o,f,y),e===we&&(fe=we=null,me=0),pn=t,Qa=e,xa=a,no=i,so=s,uh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,c0(Js,function(){return Eh(),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{W1(e,t,a)}finally{Ne=o,Y.p=s,k.T=l}}We=1,Sh(),Nh(),zh()}}function Sh(){if(We===1){We=0;var e=Qa,t=pn,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{ah(t,e);var i=jo,o=rd(e.containerInfo),f=i.focusedElem,y=i.selectionRange;if(o!==f&&f&&f.ownerDocument&&id(f.ownerDocument.documentElement,f)){if(y!==null&&Xr(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,M=U&&U.defaultView||window;if(M.getSelection){var R=M.getSelection(),J=f.textContent.length,ae=Math.min(y.start,J),Re=y.end===void 0?ae:Math.min(y.end,J);!R.extend&&ae>Re&&(o=Re,Re=ae,ae=o);var z=sd(f,ae),p=sd(f,Re);if(z&&p&&(R.rangeCount!==1||R.anchorNode!==z.node||R.anchorOffset!==z.offset||R.focusNode!==p.node||R.focusOffset!==p.offset)){var E=U.createRange();E.setStart(z.node,z.offset),R.removeAllRanges(),ae>Re?(R.addRange(E),R.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),R.addRange(E))}}}}for(U=[],R=f;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.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}}nr=!!bo,jo=bo=null}finally{Ne=s,Y.p=l,k.T=a}}e.current=t,We=2}}function Nh(){if(We===2){We=0;var e=Qa,t=pn,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{Wf(e,t.alternate,t)}finally{Ne=s,Y.p=l,k.T=a}}We=3}}function zh(){if(We===4||We===3){We=0,Cy();var e=Qa,t=pn,a=xa,l=uh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,pn=Qa=null,Th(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(qa=null),Er(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 Th(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ls(t)))}function Vi(){return Sh(),Nh(),zh(),Eh()}function Eh(){if(We!==5)return!1;var e=Qa,t=no;no=0;var a=Er(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,pn=Qa=null,xa=0,(Ne&6)!==0)throw Error(u(331));var f=Ne;if(Ne|=4,rh(i.current),nh(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,Th(e,t)}}function Ah(e,t,a){t=Bt(a,t),t=Bc(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)Ah(e,e,a);else for(;t!==null;){if(t.tag===3){Ah(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=Cf(2),l=Da(t,a,2),l!==null&&(Mf(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 e0;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=s0.bind(null,e,t,a),t.then(e,e))}function s0(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&&vn(e,0):ao|=a,yn===me&&(yn=0)),Pt(e)}function Ch(e,t){t===0&&(t=ju()),e=ml(e,t),e!==null&&(Yn(e,t),Pt(e))}function i0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ch(e,a)}function r0(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),Ch(e,a)}function c0(e,t){return Sr(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,u0())}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,Rh(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,Rh(l,i));l=l.next}while(a);fo=!1}}function o0(){Mh()}function Mh(){Ji=uo=!1;var e=0;Ya!==0&&b0()&&(e=Ya);for(var t=Nt(),a=null,l=Zi;l!==null;){var s=l.next,i=Oh(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 Oh(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]=Uy(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&&Nr(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&&Nr(l),Er(a)){case 2:case 8:a=xu;break;case 32:a=Js;break;case 268435456:a=bu;break;default:a=Js}return l=_h.bind(null,e),a=Sr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Nr(l),e.callbackPriority=2,e.callbackNode=null,2}function _h(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:(fh(e,l,t),Oh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?_h.bind(null,e):null)}function Rh(e,t){if(Vi())return null;fh(e,t,!0)}function u0(){S0(function(){(Ne&6)!==0?Sr(gu,o0):Mh()})}function ho(){if(Ya===0){var e=ln;e===0&&(e=Fs,Fs<<=1,(Fs&261888)===0&&(Fs=256)),Ya=e}return Ya}function kh(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 d0(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=kh((s[mt]||null).action),o=l.submitter;o&&(t=(t=o[mt]||null)?kh(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);Rc(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),Rc(a,{pending:!0,data:y,method:s.method,action:i},i,y))},currentTarget:s}]})}}for(var mo=0;mo<Fr.length;mo++){var yo=Fr[mo],f0=yo.toLowerCase(),h0=yo[0].toUpperCase()+yo.slice(1);Vt(f0,"on"+h0)}Vt(ud,"onAnimationEnd"),Vt(dd,"onAnimationIteration"),Vt(fd,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(M1,"onTransitionRun"),Vt(O1,"onTransitionStart"),Vt(_1,"onTransitionCancel"),Vt(hd,"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(" "),m0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zs));function wh(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[Ar];a===void 0&&(a=t[Ar]=new Set);var l=e+"__bubble";a.has(l)||(Uh(t,e,2,!1),a.add(l))}function po(e,t,a){var l=0;t&&(l|=4),Uh(a,e,l,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function vo(e){if(!e[Fi]){e[Fi]=!0,Cu.forEach(function(a){a!=="selectionchange"&&(m0.has(a)||po(a,!1,e),po(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,po("selectionchange",!1,t))}}function Uh(e,t,a,l){switch(dm(t)){case 2:var s=G0;break;case 8:s=Y0;break;default:s=Ro}a=s.bind(null,t,a,e),s=void 0,!Ur||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}qu(function(){var A=i,D=Dr(a),U=[];e:{var M=md.get(e);if(M!==void 0){var R=ii,J=e;switch(e){case"keypress":if(ni(a)===0)break e;case"keydown":case"keyup":R=r1;break;case"focusin":J="focus",R=qr;break;case"focusout":J="blur",R=qr;break;case"beforeblur":case"afterblur":R=qr;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":R=Yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Fy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=u1;break;case ud:case dd:case fd:R=Iy;break;case hd:R=f1;break;case"scroll":case"scrollend":R=Zy;break;case"wheel":R=m1;break;case"copy":case"cut":case"paste":R=e1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Xu;break;case"toggle":case"beforetoggle":R=p1}var ae=(t&4)!==0,Re=!ae&&(e==="scroll"||e==="scrollend"),z=ae?M!==null?M+"Capture":null:M;ae=[];for(var p=A,E;p!==null;){var w=p;if(E=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||E===null||z===null||(w=Vn(p,z),w!=null&&ae.push(Ts(p,w,E))),Re)break;p=p.return}0<ae.length&&(M=new R(M,J,null,a,D),U.push({event:M,listeners:ae}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",M&&a!==kr&&(J=a.relatedTarget||a.fromElement)&&(ql(J)||J[Hl]))break e;if((R||M)&&(M=D.window===D?D:(M=D.ownerDocument)?M.defaultView||M.parentWindow:window,R?(J=a.relatedTarget||a.toElement,R=A,J=J?ql(J):null,J!==null&&(Re=x(J),ae=J.tag,J!==Re||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(R=null,J=A),R!==J)){if(ae=Yu,w="onMouseLeave",z="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Xu,w="onPointerLeave",z="onPointerEnter",p="pointer"),Re=R==null?M:Xn(R),E=J==null?M:Xn(J),M=new ae(w,p+"leave",R,a,D),M.target=Re,M.relatedTarget=E,w=null,ql(D)===A&&(ae=new ae(z,p+"enter",J,a,D),ae.target=E,ae.relatedTarget=Re,w=ae),Re=w,R&&J)t:{for(ae=y0,z=R,p=J,E=0,w=z;w;w=ae(w))E++;w=0;for(var ee=p;ee;ee=ae(ee))w++;for(;0<E-w;)z=ae(z),E--;for(;0<w-E;)p=ae(p),w--;for(;E--;){if(z===p||p!==null&&z===p.alternate){ae=z;break t}z=ae(z),p=ae(p)}ae=null}else ae=null;R!==null&&Lh(U,M,R,ae,!1),J!==null&&Re!==null&&Lh(U,Re,J,ae,!0)}}e:{if(M=A?Xn(A):window,R=M.nodeName&&M.nodeName.toLowerCase(),R==="select"||R==="input"&&M.type==="file")var je=Pu;else if(Wu(M))if(ed)je=E1;else{je=z1;var W=N1}else R=M.nodeName,!R||R.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?A&&Rr(A.elementType)&&(je=Pu):je=T1;if(je&&(je=je(e,A))){Iu(U,je,a,D);break e}W&&W(e,M,A),e==="focusout"&&A&&M.type==="number"&&A.memoizedProps.value!=null&&_r(M,"number",M.value)}switch(W=A?Xn(A):window,e){case"focusin":(Wu(W)||W.contentEditable==="true")&&(Fl=W,Vr=A,es=null);break;case"focusout":es=Vr=Fl=null;break;case"mousedown":Zr=!0;break;case"contextmenu":case"mouseup":case"dragend":Zr=!1,cd(U,a,D);break;case"selectionchange":if(C1)break;case"keydown":case"keyup":cd(U,a,D)}var ue;if(Gr)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?Fu(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Vu&&a.locale!=="ko"&&(Jl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Jl&&(ue=Qu()):(Aa=D,Lr="value"in Aa?Aa.value:Aa.textContent,Jl=!0)),W=$i(A,ye),0<W.length&&(ye=new Ku(ye,e,null,a,D),U.push({event:ye,listeners:W}),ue?ye.data=ue:(ue=$u(a),ue!==null&&(ye.data=ue)))),(ue=g1?x1(e,a):b1(e,a))&&(ye=$i(A,"onBeforeInput"),0<ye.length&&(W=new Ku("onBeforeInput","beforeinput",null,a,D),U.push({event:W,listeners:ye}),W.data=ue)),d0(U,e,A,a,D)}wh(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 y0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lh(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 p0=/\r\n?/g,v0=/\u0000|\uFFFD/g;function Bh(e){return(typeof e=="string"?e:""+e).replace(p0,`
49
+ `).replace(v0,"")}function Hh(e,t){return t=Bh(t),Bh(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":Bu(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=Xy.get(a)||a,Ps(e,a,l))}}function xo(e,t,a,l,s,i){switch(a){case"style":Bu(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(!Mu.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)}}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)}Uu(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(Rr(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 g0(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(R in a){var U=a[R];if(a.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=U;default:l.hasOwnProperty(R)||_e(e,t,R,null,l,U)}}for(var M in l){var R=l[M];if(U=a[M],l.hasOwnProperty(M)&&(R!=null||U!=null))switch(M){case"type":i=R;break;case"name":s=R;break;case"checked":A=R;break;case"defaultChecked":D=R;break;case"value":o=R;break;case"defaultValue":f=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:R!==U&&_e(e,t,M,R,l,U)}}Or(e,o,f,y,A,D,i,s);return;case"select":R=o=f=M=null;for(i in a)if(y=a[i],a.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":R=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":M=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=R,M!=null?Kl(e,!!a,M,!1):!!l!=!!a&&(t!=null?Kl(e,!!a,t,!0):Kl(e,!!a,a?[]:"",!1));return;case"textarea":R=M=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":M=s;break;case"defaultValue":R=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)}wu(e,M,R);return;case"option":for(var J in a)if(M=a[J],a.hasOwnProperty(J)&&M!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:_e(e,t,J,null,l,M)}for(y in l)if(M=l[y],R=a[y],l.hasOwnProperty(y)&&M!==R&&(M!=null||R!=null))switch(y){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:_e(e,t,y,M,l,R)}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)M=a[ae],a.hasOwnProperty(ae)&&M!=null&&!l.hasOwnProperty(ae)&&_e(e,t,ae,null,l,M);for(A in l)if(M=l[A],R=a[A],l.hasOwnProperty(A)&&M!==R&&(M!=null||R!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(u(137,t));break;default:_e(e,t,A,M,l,R)}return;default:if(Rr(t)){for(var Re in a)M=a[Re],a.hasOwnProperty(Re)&&M!==void 0&&!l.hasOwnProperty(Re)&&xo(e,t,Re,void 0,l,M);for(D in l)M=l[D],R=a[D],!l.hasOwnProperty(D)||M===R||M===void 0&&R===void 0||xo(e,t,D,M,l,R);return}}for(var z in a)M=a[z],a.hasOwnProperty(z)&&M!=null&&!l.hasOwnProperty(z)&&_e(e,t,z,null,l,M);for(U in l)M=l[U],R=a[U],!l.hasOwnProperty(U)||M===R||M==null&&R==null||_e(e,t,U,M,l,R)}function qh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function x0(){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&&qh(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&&qh(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 Gh(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 b0(){var e=window.event;return e&&e.type==="popstate"?e===No?!1:(No=e,!0):(No=null,!1)}var Yh=typeof setTimeout=="function"?setTimeout:void 0,j0=typeof clearTimeout=="function"?clearTimeout:void 0,Kh=typeof Promise=="function"?Promise:void 0,S0=typeof queueMicrotask=="function"?queueMicrotask:typeof Kh<"u"?function(e){return Kh.resolve(null).then(e).catch(N0)}:Yh;function N0(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function Xh(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 Vh(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),Cr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function z0(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 T0(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 Zh(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 E0(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 Jh(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 Fh(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 $h(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]);Cr(e)}var Kt=new Map,Wh=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:A0,r:C0,D:M0,C:O0,L:_0,m:R0,X:D0,S:k0,M:w0};function A0(){var e=ba.f(),t=Yi();return e||t}function C0(e){var t=Ql(e);t!==null&&t.tag===5&&t.type==="form"?mf(t):ba.r(e)}var bn=typeof document>"u"?null:document;function Ih(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+'"]'),Wh.has(s)||(Wh.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 M0(e){ba.D(e),Ih("dns-prefetch",e,null)}function O0(e,t){ba.C(e,t),Ih("preconnect",e,t)}function _0(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 R0(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 k0(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 D0(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 w0(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 Ph(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||U0(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 em(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function U0(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 tm(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=em(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 er=null;function am(e,t,a){if(er===null){var l=new Map,s=er=new Map;s.set(a,l)}else s=er,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 lm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function L0(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 nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function B0(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=tr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ie(i);return}i=t.ownerDocument||t,l=em(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=tr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oo=0;function H0(e,t){return e.stylesheets&&e.count===0&&lr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&lr(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Oo===0&&(Oo=62500*x0());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lr(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 tr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ar=null;function lr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ar=new Map,t.forEach(q0,e),ar=null,tr.call(e))}function q0(e,t){if(!(t.state.loading&4)){var a=ar.get(e);if(a)var l=a.get(null);else{a=new Map,ar.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=tr.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:se,_currentValue2:se,_threadCount:0};function Q0(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=zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zr(0),this.hiddenUpdates=zr(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 sm(e,t,a,l,s,i,o,f,y,A,D,U){return e=new Q0(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=cc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},fc(i),e}function im(e){return e?(e=Il,e):Il}function rm(e,t,a,l,s,i){s=im(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),rs(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 om(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&bt(t,e,67108864),_o(e,67108864)}}function um(e){if(e.tag===13||e.tag===31){var t=Rt();t=Tr(t);var a=ml(e,t);a!==null&&bt(a,e,t),_o(e,t)}}var nr=!0;function G0(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 Y0(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(nr){var s=ko(l);if(s===null)go(e,t,l,sr,a),fm(e,l);else if(X0(s,e,t,a,l))l.stopPropagation();else if(fm(e,l),t&4&&-1<K0.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,sr,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else go(e,t,l,null,a)}}function ko(e){return e=Dr(e),Do(e)}var sr=null;function Do(e){if(sr=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 sr=e,null}function dm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(My()){case gu:return 2;case xu:return 8;case Js:case Oy:return 32;case bu:return 268435456;default:return 32}default:return 32}}var wo=!1,Xa=null,Va=null,Za=null,Os=new Map,_s=new Map,Ja=[],K0="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 fm(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&&om(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function X0(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 hm(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,Eu(e.priority,function(){um(a)});return}}else if(t===31){if(t=j(a),t!==null){e.blockedOn=t,Eu(e.priority,function(){um(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 ir(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);kr=l,a.target.dispatchEvent(l),kr=null}else return t=Ql(a),t!==null&&om(t),e.blockedOn=a,!1;t.shift()}return!0}function mm(e,t,a){ir(e)&&a.delete(t)}function V0(){wo=!1,Xa!==null&&ir(Xa)&&(Xa=null),Va!==null&&ir(Va)&&(Va=null),Za!==null&&ir(Za)&&(Za=null),Os.forEach(mm),_s.forEach(mm)}function rr(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,V0)))}var cr=null;function ym(e){cr!==e&&(cr=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){cr===e&&(cr=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,Rc(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Nn(e){function t(y){return rr(y,e)}Xa!==null&&rr(Xa,e),Va!==null&&rr(Va,e),Za!==null&&rr(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);)hm(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||ym(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),ym(a)}}}function pm(){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}or.prototype.render=Uo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=Rt();rm(a,l,e,t,null,null)},or.prototype.unmount=Uo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rm(e.current,2,null,e,null,null),Yi(),t[Hl]=null}};function or(e){this._internalRoot=e}or.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tu();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&&hm(e)}};var vm=c.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?b(e):null,e=e===null?null:e.stateNode,e};var Z0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ur.isDisabled&&ur.supportsFiber)try{Qn=ur.inject(Z0),zt=ur}catch{}}return Ds.createRoot=function(e,t){if(!m(e))throw Error(u(299));var a=!1,l="",s=zf,i=Tf,o=Ef;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=sm(e,1,!1,null,null,a,l,null,s,i,o,pm),e[Hl]=t.current,vo(e),new Uo(t)},Ds.hydrateRoot=function(e,t,a){if(!m(e))throw Error(u(299));var l=!1,s="",i=zf,o=Tf,f=Ef,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=sm(e,1,!0,t,a??null,l,s,y,i,o,f,pm),t.context=im(null),a=t.current,l=Rt(),l=Tr(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,vo(e),new or(t)},Ds.version="19.2.7",Ds}var Bm;function Yp(){if(Bm)return qo.exports;Bm=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),qo.exports=Gp(),qo.exports}var Kp=Yp();/**
50
50
  * @license lucide-react v0.471.2 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const Xv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uy=(...r)=>r.filter((c,d,u)=>!!c&&c.trim()!==""&&u.indexOf(c)===d).join(" ").trim();/**
54
+ */const Xp=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uy=(...r)=>r.filter((c,d,u)=>!!c&&c.trim()!==""&&u.indexOf(c)===d).join(" ").trim();/**
55
55
  * @license lucide-react v0.471.2 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */var Vv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
+ */var Vp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
60
  * @license lucide-react v0.471.2 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const Zv=H.forwardRef(({color:r="currentColor",size:c=24,strokeWidth:d=2,absoluteStrokeWidth:u,className:m="",children:x,iconNode:T,...j},N)=>H.createElement("svg",{ref:N,...Vv,width:c,height:c,stroke:r,strokeWidth:u?Number(d)*24/Number(c):d,className:uy("lucide",m),...j},[...T.map(([h,b])=>H.createElement(h,b)),...Array.isArray(x)?x:[x]]));/**
64
+ */const Zp=H.forwardRef(({color:r="currentColor",size:c=24,strokeWidth:d=2,absoluteStrokeWidth:u,className:m="",children:x,iconNode:T,...j},N)=>H.createElement("svg",{ref:N,...Vp,width:c,height:c,stroke:r,strokeWidth:u?Number(d)*24/Number(c):d,className:uy("lucide",m),...j},[...T.map(([h,b])=>H.createElement(h,b)),...Array.isArray(x)?x:[x]]));/**
65
65
  * @license lucide-react v0.471.2 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const I=(r,c)=>{const d=H.forwardRef(({className:u,...m},x)=>H.createElement(Zv,{ref:x,iconNode:c,className:uy(`lucide-${Xv(r)}`,u),...m}));return d.displayName=`${r}`,d};/**
69
+ */const I=(r,c)=>{const d=H.forwardRef(({className:u,...m},x)=>H.createElement(Zp,{ref:x,iconNode:c,className:uy(`lucide-${Xp(r)}`,u),...m}));return d.displayName=`${r}`,d};/**
70
70
  * @license lucide-react v0.471.2 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const Jv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],rl=I("Activity",Jv);/**
74
+ */const Jp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],rl=I("Activity",Jp);/**
75
75
  * @license lucide-react v0.471.2 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const Fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],Bn=I("Ban",Fv);/**
79
+ */const Fp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],Bn=I("Ban",Fp);/**
80
80
  * @license lucide-react v0.471.2 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */const $v=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],dy=I("BookOpen",$v);/**
84
+ */const $p=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],dy=I("BookOpen",$p);/**
85
85
  * @license lucide-react v0.471.2 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const Wv=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ls=I("Bot",Wv);/**
89
+ */const Wp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ls=I("Bot",Wp);/**
90
90
  * @license lucide-react v0.471.2 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const Iv=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],hu=I("Brain",Iv);/**
94
+ */const Ip=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],hu=I("Brain",Ip);/**
95
95
  * @license lucide-react v0.471.2 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */const Pv=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],ep=I("Bug",Pv);/**
99
+ */const Pp=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],ev=I("Bug",Pp);/**
100
100
  * @license lucide-react v0.471.2 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const tp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],pr=I("ChartColumn",tp);/**
104
+ */const tv=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],vr=I("ChartColumn",tv);/**
105
105
  * @license lucide-react v0.471.2 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
- */const ap=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fy=I("Check",ap);/**
109
+ */const av=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fy=I("Check",av);/**
110
110
  * @license lucide-react v0.471.2 - ISC
111
111
  *
112
112
  * This source code is licensed under the ISC license.
113
113
  * See the LICENSE file in the root directory of this source tree.
114
- */const lp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hy=I("ChevronDown",lp);/**
114
+ */const lv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hy=I("ChevronDown",lv);/**
115
115
  * @license lucide-react v0.471.2 - ISC
116
116
  *
117
117
  * This source code is licensed under the ISC license.
118
118
  * See the LICENSE file in the root directory of this source tree.
119
- */const np=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],my=I("ChevronUp",np);/**
119
+ */const nv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],my=I("ChevronUp",nv);/**
120
120
  * @license lucide-react v0.471.2 - ISC
121
121
  *
122
122
  * This source code is licensed under the ISC license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
- */const sp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ll=I("CircleCheckBig",sp);/**
124
+ */const sv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ll=I("CircleCheckBig",sv);/**
125
125
  * @license lucide-react v0.471.2 - ISC
126
126
  *
127
127
  * This source code is licensed under the ISC license.
128
128
  * See the LICENSE file in the root directory of this source tree.
129
- */const ip=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],yy=I("CircleX",ip);/**
129
+ */const iv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],yy=I("CircleX",iv);/**
130
130
  * @license lucide-react v0.471.2 - ISC
131
131
  *
132
132
  * This source code is licensed under the ISC license.
133
133
  * See the LICENSE file in the root directory of this source tree.
134
- */const rp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],cp=I("Clock",rp);/**
134
+ */const rv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],cv=I("Clock",rv);/**
135
135
  * @license lucide-react v0.471.2 - ISC
136
136
  *
137
137
  * This source code is licensed under the ISC license.
138
138
  * See the LICENSE file in the root directory of this source tree.
139
- */const op=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],up=I("Cloud",op);/**
139
+ */const ov=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],uv=I("Cloud",ov);/**
140
140
  * @license lucide-react v0.471.2 - ISC
141
141
  *
142
142
  * This source code is licensed under the ISC license.
143
143
  * See the LICENSE file in the root directory of this source tree.
144
- */const dp=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],Hn=I("Cpu",dp);/**
144
+ */const dv=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],Hn=I("Cpu",dv);/**
145
145
  * @license lucide-react v0.471.2 - ISC
146
146
  *
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
- */const fp=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],hp=I("Database",fp);/**
149
+ */const fv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],hv=I("Database",fv);/**
150
150
  * @license lucide-react v0.471.2 - ISC
151
151
  *
152
152
  * This source code is licensed under the ISC license.
153
153
  * See the LICENSE file in the root directory of this source tree.
154
- */const mp=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],mr=I("DollarSign",mp);/**
154
+ */const mv=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],mr=I("DollarSign",mv);/**
155
155
  * @license lucide-react v0.471.2 - ISC
156
156
  *
157
157
  * This source code is licensed under the ISC license.
158
158
  * See the LICENSE file in the root directory of this source tree.
159
- */const yp=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],vp=I("ExternalLink",yp);/**
159
+ */const yv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pv=I("ExternalLink",yv);/**
160
160
  * @license lucide-react v0.471.2 - ISC
161
161
  *
162
162
  * This source code is licensed under the ISC license.
163
163
  * See the LICENSE file in the root directory of this source tree.
164
- */const pp=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ko=I("EyeOff",pp);/**
164
+ */const vv=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ko=I("EyeOff",vv);/**
165
165
  * @license lucide-react v0.471.2 - ISC
166
166
  *
167
167
  * This source code is licensed under the ISC license.
168
168
  * See the LICENSE file in the root directory of this source tree.
169
- */const gp=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xp=I("Eye",gp);/**
169
+ */const gv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xv=I("Eye",gv);/**
170
170
  * @license lucide-react v0.471.2 - ISC
171
171
  *
172
172
  * This source code is licensed under the ISC license.
173
173
  * See the LICENSE file in the root directory of this source tree.
174
- */const bp=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],jp=I("FileCode",bp);/**
174
+ */const bv=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],jv=I("FileCode",bv);/**
175
175
  * @license lucide-react v0.471.2 - ISC
176
176
  *
177
177
  * This source code is licensed under the ISC license.
178
178
  * See the LICENSE file in the root directory of this source tree.
179
- */const Sp=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Np=I("FileText",Sp);/**
179
+ */const Sv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Nv=I("FileText",Sv);/**
180
180
  * @license lucide-react v0.471.2 - ISC
181
181
  *
182
182
  * This source code is licensed under the ISC license.
183
183
  * See the LICENSE file in the root directory of this source tree.
184
- */const zp=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Tp=I("FileWarning",zp);/**
184
+ */const zv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Tv=I("FileWarning",zv);/**
185
185
  * @license lucide-react v0.471.2 - ISC
186
186
  *
187
187
  * This source code is licensed under the ISC license.
188
188
  * See the LICENSE file in the root directory of this source tree.
189
- */const Ep=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Ap=I("Filter",Ep);/**
189
+ */const Ev=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],Av=I("Filter",Ev);/**
190
190
  * @license lucide-react v0.471.2 - ISC
191
191
  *
192
192
  * This source code is licensed under the ISC license.
193
193
  * See the LICENSE file in the root directory of this source tree.
194
- */const Cp=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Mp=I("Folder",Cp);/**
194
+ */const Cv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Mv=I("Folder",Cv);/**
195
195
  * @license lucide-react v0.471.2 - ISC
196
196
  *
197
197
  * This source code is licensed under the ISC license.
198
198
  * See the LICENSE file in the root directory of this source tree.
199
- */const Op=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],vy=I("GitBranch",Op);/**
199
+ */const Ov=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],py=I("GitBranch",Ov);/**
200
200
  * @license lucide-react v0.471.2 - ISC
201
201
  *
202
202
  * This source code is licensed under the ISC license.
203
203
  * See the LICENSE file in the root directory of this source tree.
204
- */const _p=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Rp=I("Github",_p);/**
204
+ */const _v=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Rv=I("Github",_v);/**
205
205
  * @license lucide-react v0.471.2 - ISC
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 kp=[["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",kp);/**
209
+ */const kv=[["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"}]],Dv=I("LayoutDashboard",kv);/**
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 wp=[["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"}]],py=I("LockOpen",wp);/**
214
+ */const wv=[["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"}]],vy=I("LockOpen",wv);/**
215
215
  * @license lucide-react v0.471.2 - ISC
216
216
  *
217
217
  * This source code is licensed under the ISC license.
218
218
  * See the LICENSE file in the root directory of this source tree.
219
- */const Up=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],mu=I("Lock",Up);/**
219
+ */const Uv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],mu=I("Lock",Uv);/**
220
220
  * @license lucide-react v0.471.2 - ISC
221
221
  *
222
222
  * This source code is licensed under the ISC license.
223
223
  * See the LICENSE file in the root directory of this source tree.
224
- */const Lp=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Bp=I("Menu",Lp);/**
224
+ */const Lv=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Bv=I("Menu",Lv);/**
225
225
  * @license lucide-react v0.471.2 - ISC
226
226
  *
227
227
  * This source code is licensed under the ISC license.
228
228
  * See the LICENSE file in the root directory of this source tree.
229
- */const Hp=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],gy=I("MessageSquare",Hp);/**
229
+ */const Hv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],gy=I("MessageSquare",Hv);/**
230
230
  * @license lucide-react v0.471.2 - ISC
231
231
  *
232
232
  * This source code is licensed under the ISC license.
233
233
  * See the LICENSE file in the root directory of this source tree.
234
- */const qp=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Hm=I("Monitor",qp);/**
234
+ */const qv=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Hm=I("Monitor",qv);/**
235
235
  * @license lucide-react v0.471.2 - ISC
236
236
  *
237
237
  * This source code is licensed under the ISC license.
238
238
  * See the LICENSE file in the root directory of this source tree.
239
- */const Qp=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Gp=I("Moon",Qp);/**
239
+ */const Qv=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Gv=I("Moon",Qv);/**
240
240
  * @license lucide-react v0.471.2 - ISC
241
241
  *
242
242
  * This source code is licensed under the ISC license.
243
243
  * See the LICENSE file in the root directory of this source tree.
244
- */const Yp=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Kp=I("Network",Yp);/**
244
+ */const Yv=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Kv=I("Network",Yv);/**
245
245
  * @license lucide-react v0.471.2 - ISC
246
246
  *
247
247
  * This source code is licensed under the ISC license.
248
248
  * See the LICENSE file in the root directory of this source tree.
249
- */const Xp=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],xy=I("Plug",Xp);/**
249
+ */const Xv=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],xy=I("Plug",Xv);/**
250
250
  * @license lucide-react v0.471.2 - ISC
251
251
  *
252
252
  * This source code is licensed under the ISC license.
253
253
  * See the LICENSE file in the root directory of this source tree.
254
- */const Vp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],za=I("RefreshCw",Vp);/**
254
+ */const Vv=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],za=I("RefreshCw",Vv);/**
255
255
  * @license lucide-react v0.471.2 - ISC
256
256
  *
257
257
  * This source code is licensed under the ISC license.
258
258
  * See the LICENSE file in the root directory of this source tree.
259
- */const Zp=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],by=I("ScrollText",Zp);/**
259
+ */const Zv=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],by=I("ScrollText",Zv);/**
260
260
  * @license lucide-react v0.471.2 - ISC
261
261
  *
262
262
  * This source code is licensed under the ISC license.
263
263
  * See the LICENSE file in the root directory of this source tree.
264
- */const Jp=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],jy=I("Search",Jp);/**
264
+ */const Jv=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],jy=I("Search",Jv);/**
265
265
  * @license lucide-react v0.471.2 - ISC
266
266
  *
267
267
  * This source code is licensed under the ISC license.
268
268
  * See the LICENSE file in the root directory of this source tree.
269
- */const Fp=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yr=I("Server",Fp);/**
269
+ */const Fv=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],yr=I("Server",Fv);/**
270
270
  * @license lucide-react v0.471.2 - ISC
271
271
  *
272
272
  * This source code is licensed under the ISC license.
273
273
  * See the LICENSE file in the root directory of this source tree.
274
- */const $p=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Wp=I("Share2",$p);/**
274
+ */const $v=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Wv=I("Share2",$v);/**
275
275
  * @license lucide-react v0.471.2 - ISC
276
276
  *
277
277
  * This source code is licensed under the ISC license.
278
278
  * See the LICENSE file in the root directory of this source tree.
279
- */const Ip=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],iu=I("ShieldAlert",Ip);/**
279
+ */const Iv=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],iu=I("ShieldAlert",Iv);/**
280
280
  * @license lucide-react v0.471.2 - ISC
281
281
  *
282
282
  * This source code is licensed under the ISC license.
283
283
  * See the LICENSE file in the root directory of this source tree.
284
- */const Pp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],eg=I("ShieldBan",Pp);/**
284
+ */const Pv=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],eg=I("ShieldBan",Pv);/**
285
285
  * @license lucide-react v0.471.2 - ISC
286
286
  *
287
287
  * This source code is licensed under the ISC license.
@@ -331,7 +331,7 @@ Error generating stack: `+l.message+`
331
331
  *
332
332
  * This source code is licensed under the ISC license.
333
333
  * See the LICENSE file in the root directory of this source tree.
334
- */const vg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],pg=I("Users",vg);/**
334
+ */const pg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],vg=I("Users",pg);/**
335
335
  * @license lucide-react v0.471.2 - ISC
336
336
  *
337
337
  * This source code is licensed under the ISC license.
@@ -341,7 +341,7 @@ Error generating stack: `+l.message+`
341
341
  *
342
342
  * This source code is licensed under the ISC license.
343
343
  * See the LICENSE file in the root directory of this source tree.
344
- */const bg=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],vr=I("Wifi",bg);/**
344
+ */const bg=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],pr=I("Wifi",bg);/**
345
345
  * @license lucide-react v0.471.2 - ISC
346
346
  *
347
347
  * This source code is licensed under the ISC license.
@@ -351,14 +351,14 @@ 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"}]],yu=I("X",Ng);function zg(){const[r,c]=H.useState([]),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/adapters/skills").then(j=>j.json()).then(j=>{j.success&&c(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,15e3);return()=>clearInterval(T)},[]);const m={file_system:Mp,editing:rg,orchestration:za,governance:mu,quality:fy,search:jy,memory:hu};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(xy,{size:20,style:{display:"inline-block",verticalAlign:"middle",marginRight:8}}),"Adapter Skills"]}),!d&&n.jsxs("span",{className:"badge",children:[r.length," adapters"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Loading adapter skills..."}),!d&&n.jsx("div",{className:"adapter-list",children:r.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(r,c=0){var x;const d=localStorage.getItem("atabey-auth-token")||"",u=Lv({queryKey:[r,d],queryFn:async()=>{const T={};d&&(T.Authorization=`Bearer ${d}`);const j=await fetch(`/api${r}`,{headers:T});if(!j.ok)throw new Error(`${j.status} ${j.statusText}`);const N=await j.json();let h=N;return N&&typeof N=="object"&&"success"in N&&"data"in N&&(h=N.data),["/agents","/approvals","/logs","/messages","/tasks","/memory/search","/compliance"].some(S=>r.startsWith(S))&&!Array.isArray(h)?[]:h},refetchInterval:c||!1}),m=H.useCallback(()=>{u.refetch()},[u.refetch]);return{data:u.data,loading:u.isLoading,error:((x=u.error)==null?void 0:x.message)??null,refetch:m}}function Bl({handlers:r={},port:c}={}){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=c||N||"5858",b=new WebSocket(`ws://${location.hostname}:${h}/ws`);d.current=b,b.onopen=()=>{m(!0),T=0},b.onclose=()=>{m(!1),T<10&&(T++,x=setTimeout(j,3e3*Math.min(T,5)))},b.onmessage=O=>{try{const C=JSON.parse(O.data);if(C.type==="pong")return;const _=r[C.type];_&&_(C.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 Sy(){const{data:r,loading:c,error:d}=ht("/agents",5e3),[u,m]=H.useState([]),[x,T]=H.useState(null);Bl({handlers:{agent_update:h=>{const b=h;b.name&&m(S=>{const O=b.name.replace("@","");return S.some(_=>_.name.replace("@","")===O)?S.map(_=>_.name.replace("@","")===O?{..._,...b}:_):[...S,b]})}}});const j=u.length?u:Array.isArray(r)?r:[];Array.isArray(r)&&u.length===0&&r.length>0&&m(r);const N=Tg.map(h=>{const b=j.find(S=>S.name.replace("@","")===h);return b?{...b,name:h}:{name:h,state:"READY",task:"Idle",last_updated:new Date().toISOString()}});return c&&!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 b=x===h.name,S=h.state.toLowerCase();return n.jsxs("div",{className:`agent-card ${b?"expanded":""}`,onClick:()=>T(b?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}),b?n.jsx(my,{size:14,className:"text-muted"}):n.jsx(hy,{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"})]}),b&&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 Ny(){const{data:r}=ht("/approvals",5e3),[c,d]=H.useState([]),[u,m]=H.useState(null);Bl({handlers:{approval:h=>{const b=h;b.id&&(d(S=>[b,...S]),T(`New approval: ${b.traceId}`,"success"))}}});const x=c.length?c:Array.isArray(r)?r:[];Array.isArray(r)&&c.length===0&&r.length>0&&d(r);function T(h,b){m({msg:h,type:b}),setTimeout(()=>m(null),4e3)}async function j(h,b,S){try{const O=S==="approve"?`/api/approve/${b}`:`/api/reject/${b}`;(await fetch(O,{method:"POST"})).ok?(d(S==="approve"?_=>_.map(B=>B.traceId===b?{...B,status:"APPROVED"}:B):_=>_.map(B=>B.traceId===b?{...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(fy,{size:14})," Approve"]}),n.jsxs("button",{className:"btn btn-danger",onClick:()=>j(h.id,h.traceId,"reject"),children:[n.jsx(yu,{size:14})," Reject"]})]})]},h.id))]})]})}function Eg(){const{data:r,loading:c,error:d}=ht("/compliance",15e3),[u,m]=H.useState("ALL"),[x,T]=H.useState(null),j=Array.isArray(r)?r:[],N=u==="ALL"?j:j.filter(b=>b.status===u),h={PASS:j.filter(b=>b.status==="PASS").length,FAIL:j.filter(b=>b.status==="FAIL").length,WARN:j.filter(b=>b.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"]})]}),c&&!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(([b,S])=>n.jsxs("div",{className:`stat-box ${b.toLowerCase()}`,children:[n.jsx("span",{className:"stat-count",children:S}),n.jsx("span",{className:"stat-label",children:b})]},b))}),n.jsx("div",{className:"filter-tabs",children:["ALL","PASS","FAIL","WARN"].map(b=>n.jsx("button",{className:`filter-tab ${u===b?"active":""}`,onClick:()=>m(b),children:b},b))}),n.jsxs("div",{className:"list-container",children:[N.length===0&&n.jsx("div",{className:"empty-state",children:"No results"}),N.map(b=>{const S=x===b.file;return n.jsxs("div",{className:"list-item",onClick:()=>T(S?null:b.file),children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[b.status==="PASS"?n.jsx(Ll,{size:14,style:{color:"#22c55e",flexShrink:0}}):b.status==="FAIL"?n.jsx(yy,{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:b.file}),n.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:b.status==="PASS"?"#22c55e":b.status==="FAIL"?"#ef4444":"#eab308"},children:b.status})]}),S&&b.violations.length>0&&n.jsx("div",{style:{marginTop:8,borderTop:"1px solid #334155",paddingTop:8},children:b.violations.map((O,C)=>n.jsxs("div",{style:{fontSize:"0.8rem",color:"#ef4444",marginTop:4},children:[n.jsx(ot,{size:12,style:{display:"inline",marginRight:4}}),O]},C))})]},b.file)})]})]})]})}function Ag(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("violations"),N=async()=>{u(!0);try{const C=await fetch("/api/discipline");if(!C.ok)throw new Error(`HTTP ${C.status}`);const _=await C.json();if(_.success)c(_.data);else throw new Error(_.error||"Failed to fetch discipline stats");x(null)}catch(C){x(C.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const C=setInterval(N,5e3);return()=>clearInterval(C)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Discipline Stats..."})});if(m&&!r)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(r||{}).sort((C,_)=>T==="violations"?_[1].violations-C[1].violations:_[1].totalCalls-C[1].totalCalls),b=h.reduce((C,[,_])=>C+_.violations,0),S=h.reduce((C,[,_])=>C+_.totalCalls,0),O=h.some(([,C])=>C.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(rl,{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:b>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:b>0?"var(--color-error)":"var(--color-success)"},children:b}),n.jsx("div",{className:"stat-card-desc",children:b>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:O?"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:O?"var(--color-warning)":"var(--color-success)"},children:O?"Active":"None"}),n.jsx("div",{className:"stat-card-desc",children:O?"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(([C,_])=>{const B=_.totalCalls>0?(_.violations/_.totalCalls*100).toFixed(1):"0.0";return n.jsxs("div",{className:"list-item",style:{borderLeft:_.inCooldown?"3px solid var(--color-warning)":_.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:["@",C]}),_.inCooldown&&n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["Cooldown ",Math.ceil(_.cooldownRemaining/1e3),"s"]}),_.violations>0&&n.jsxs("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:[_.violations," violations"]}),_.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:[_.totalCalls," total"]}),n.jsxs("span",{children:[_.recentCalls,"/min"]}),n.jsxs("span",{children:[B,"% violation rate"]})]})]}),_.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:"})," ",_.lastViolation]})]},C)})]})]})]})}const Cg={lint:ep,compliance:iu,test:dg,runtime:sg,security:ot};function Mg(){const[r,c]=H.useState([]),[d,u]=H.useState("ALL"),[m,x]=H.useState(!1);Bl({handlers:{error:h=>{const b=h;b.id&&c(S=>[b,...S].slice(0,100))}}});const T=r.filter(h=>!(d!=="ALL"&&h.type!==d||!m&&h.resolved)),j=r.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 b=N[h.type]||"#64748b",S=Cg[h.type]||ot;return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${b}`,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:`${b}20`,color:b,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[r,c]=H.useState(null),[d,u]=H.useState("default"),[m,x]=H.useState(null),[T,j]=H.useState(!0),[N,h]=H.useState(null),[b,S]=H.useState(!1),O=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)c(Q.data);else throw new Error(Q.error||"Failed to fetch budget state");h(null)}catch(q){h(q.message)}finally{j(!1)}},C=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)}},_=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 O()}finally{S(!1)}}};if(H.useEffect(()=>{O();const q=setInterval(O,1e4);return()=>clearInterval(q)},[]),H.useEffect(()=>{d&&C(d)},[d,r]),T&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading FinOps Budget..."})});if(N&&!r)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=r?Object.keys(r.agentSpend):[],V=r?r.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(mr,{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:(r==null?void 0:r.team)||"N/A"})]})]})]}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:"sidebar-btn",onClick:_,disabled:b,style:{width:"auto",padding:"6px 12px"},children:b?"Resetting...":"Reset Period"}),n.jsxs("button",{className:"sidebar-btn",onClick:O,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(mr,{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:r!=null&&r.blocked?"var(--color-error)":"var(--color-success)"},children:["$",(r==null?void 0:r.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(rl,{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:r!=null&&r.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:r!=null&&r.blocked?"var(--color-error)":"var(--color-success)"},children:r!=null&&r.blocked?"BLOCKED":"Active"}),n.jsx("div",{className:"stat-card-desc",children:r!=null&&r.blocked?"Budget exceeded":"Within budget"})]})]}),(r==null?void 0:r.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:"})," ",r.blockReason]}),(r==null?void 0:r.triggeredAlerts)&&r.triggeredAlerts.length>0&&n.jsx("div",{style:{marginTop:8,display:"flex",gap:6,flexWrap:"wrap"},children:r.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=(r==null?void 0:r.agentSpend[q])||0,G=(m==null?void 0:m.agentMaxBudget)||50,P=G>0?Q/G*100:0,ne=P>=100;return n.jsxs("div",{className:"list-item",style:{borderLeft:ne?"3px solid var(--color-error)":P>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]}),ne&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Over Limit"}),P>80&&!ne&&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:[P.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(P,100)}%`,height:"100%",background:ne?"var(--color-error)":P>80?"var(--color-warning)":"var(--color-success)",borderRadius:2,transition:"width 0.3s ease"}})})]},q)})]})]}),r&&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(r.periodStart).toLocaleDateString()]}),n.jsxs("span",{children:["📅 End: ",new Date(r.periodEnd).toLocaleDateString()]}),r.lastSync&&n.jsxs("span",{children:["🔄 Last Sync: ",new Date(r.lastSync).toLocaleTimeString()]})]})]})]})}const _g=["ALL","ACTION","DELEGATION","SUBTASK","REPLY","ALERT"];function Rg(){const{data:r}=ht("/messages",5e3),[c,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=c.length?c:Array.isArray(r)?r:[];Array.isArray(r)&&c.length===0&&r.length>0&&d(r);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(gy,{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 zy(){const[r,c]=H.useState(null);H.useEffect(()=>{const u=()=>{fetch("/api/hermes/stats").then(x=>x.json()).then(x=>{x.success&&c(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(pr,{size:20})," Hermes Queue"]}),r&&n.jsxs("span",{className:"badge",style:{background:r.pending>0?"rgba(59, 130, 246, 0.15)":"var(--color-border)",color:r.pending>0?"#3b82f6":"var(--color-text-secondary)"},children:[r.pending," pending / ",r.total," total"]})]}),!r&&n.jsx("div",{className:"empty-state",children:"Loading queue stats..."}),r&&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(r.byCategory).map(([u,m])=>{const x=d[u]||"#64748b",T=Math.max(...Object.values(r.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(r.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(rl,{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(r.pending/Math.max(r.total,1)*100,100)}%`,height:"100%",background:r.pending>10?"#f59e0b":r.pending>0?"#3b82f6":"#22c55e",borderRadius:10,transition:"width 0.5s ease"}})})]})]})]})}function kg(){var V,q;const[r,c]=H.useState(null),[d,u]=H.useState("src"),[m,x]=H.useState(""),[T,j]=H.useState([]),[N,h]=H.useState(null),[b,S]=H.useState(!1),[O,C]=H.useState(null),_=async()=>{try{const Q=await fetch("/api/license");if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&c(G.data.config)}catch{}},B=async()=>{if(!(!d||!m)){S(!0),C(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){C(Q.message),j([]),h(null)}finally{S(!1)}}};H.useEffect(()=>{_()},[]);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(dy,{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:_,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),r&&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=r.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=r.ALLOWLIST)==null?void 0:q.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:r.BLOCK_COPYLEFT?"rgba(239, 68, 68, 0.1)":"rgba(34, 197, 94, 0.1)",color:r.BLOCK_COPYLEFT?"var(--color-error)":"var(--color-success)"},children:["Block Copyleft: ",r.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:b||!d||!m,style:{width:"auto",padding:"8px 16px",alignSelf:"flex-start"},children:b?"Scanning...":"Scan for Licenses"}),O&&n.jsx("div",{style:{color:"var(--color-error)",fontSize:"0.8rem"},children:O})]})]}),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(jp,{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 Ty(){const{data:r,loading:c}=ht("/logs",5e3),[d,u]=H.useState([]),[m,x]=H.useState("ALL"),[T,j]=H.useState("ALL");Bl({handlers:{log:S=>{const O=S;O.logs&&u(C=>[...O.logs,...C].slice(0,200))}}});const N=d.length?d:Array.isArray(r)?r:[];Array.isArray(r)&&d.length===0&&r.length>0&&u(r);const h=[...new Set(N.map(S=>S.agent))].filter(Boolean),b=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(by,{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))})]}),c&&!N.length&&n.jsx("div",{className:"empty-state",children:"Loading logs..."}),n.jsxs("div",{className:"list-container",children:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No log entries"}),b.slice(0,100).map((S,O)=>{const C=Dg[S.status||S.action]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${C}`},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:`${C}20`,color:C},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||O)})]})]})}function wg(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),N=async()=>{u(!0);try{const _=await fetch("/api/loop-detector");if(!_.ok)throw new Error(`HTTP ${_.status}`);const B=await _.json();if(B.success)c(B.data);else throw new Error(B.error||"Failed to fetch loop stats");x(null)}catch(_){x(_.message)}finally{u(!1)}},h=async _=>{j(_);try{(await fetch(`/api/loop-detector/clear/${encodeURIComponent(_)}`,{method:"POST"})).ok&&await N()}finally{j(null)}};if(H.useEffect(()=>{N();const _=setInterval(N,5e3);return()=>clearInterval(_)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Loop Detector..."})});if(m&&!r)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 b=Object.entries(r||{}),S=b.reduce((_,[,B])=>_+B.cooldownCount,0),O=b.filter(([,_])=>_.inCooldown).length,C=b.filter(([,_])=>_.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(rl,{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:b.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:C>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:C>0?"var(--color-warning)":"var(--color-success)"},children:C}),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:O>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:O>0?"var(--color-error)":"var(--color-success)"},children:O}),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(yy,{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:O>0?`${O} agent(s) in cooldown`:"All agents normal"})]}),n.jsxs("div",{className:"list-container",children:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),b.map(([_,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:["@",_]}),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(_),disabled:T===_,style:{width:"auto",padding:"2px 8px",fontSize:"0.7rem"},children:T===_?"...":"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(([,P])=>P>0).map(([P,ne])=>n.jsxs("span",{style:{background:"rgba(59, 130, 246, 0.1)",padding:"2px 6px",borderRadius:3},children:["🔄 ",P,": ",ne,"x"]},P)),Object.entries(B.fileWrites).map(([P,ne])=>n.jsxs("span",{style:{background:"rgba(234, 179, 8, 0.1)",padding:"2px 6px",borderRadius:3},children:["📝 ",P.split("/").pop(),": ",ne,"x"]},P))]})]},_)})]})]})]})}function Ug(){const[r,c]=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}),b=async()=>{u(!0);try{const C=await fetch("/api/health");if(!C.ok)throw new Error(`HTTP ${C.status}`);const _=await C.json(),B=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",Z=window.location.port||"5858",V=window.location.hostname;c({mode:"unified",port:parseInt(Z),host:V,sessions:0,version:_.version||"0.0.14",dashboardUrl:`http://${V}:${Z}`,mcpSseUrl:`http://${V}:${Z}/mcp/sse`,isLocal:B});try{(await fetch("/api/mcp/sessions",{headers:{}})).status===401?h({enabled:!0,hasToken:!0,hasUsers:!1}):h({enabled:!1,hasToken:!1,hasUsers:!1})}catch{h({enabled:!0,hasToken:!0,hasUsers:!1})}try{const q=localStorage.getItem("atabey-auth-token")||"",Q={};q&&(Q.Authorization=`Bearer ${q}`);const G=await fetch("/api/mcp/sessions",{headers:Q});if(G.ok){const P=await G.json();P.success&&P.data&&c(ne=>ne&&{...ne,sessions:P.data.total||0})}}catch{}x(null)}catch(C){x(C.message)}finally{u(!1)}};H.useEffect(()=>{b();const C=setInterval(b,1e4);return()=>clearInterval(C)},[]);const S=(C,_)=>{navigator.clipboard.writeText(C).then(()=>{j(_),setTimeout(()=>j(null),2e3)})};if(d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading MCP Configuration..."})});if(m&&!r)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(yr,{size:20,style:{color:"#ef4444"}})," MCP Setup Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const O=r;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:O.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(yr,{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:O.isLocal?"Local mode - only you can connect":"Network mode - team can connect"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:b,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(Hm,{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:O.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(vr,{size:16,style:{color:O.isLocal?"#eab308":"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Access Type"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:O.isLocal?"#eab308":"#22c55e"},children:O.isLocal?"Local":"Network"}),n.jsx("div",{className:"stat-card-desc",children:O.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(mu,{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:O.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(py,{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(Hm,{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:[`{
354
+ */const Ng=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yu=I("X",Ng);function zg(){const[r,c]=H.useState([]),[d,u]=H.useState(!0);H.useEffect(()=>{const x=()=>{fetch("/api/adapters/skills").then(j=>j.json()).then(j=>{j.success&&c(j.data),u(!1)}).catch(()=>u(!1))};x();const T=setInterval(x,15e3);return()=>clearInterval(T)},[]);const m={file_system:Mv,editing:rg,orchestration:za,governance:mu,quality:fy,search:jy,memory:hu};return n.jsxs("div",{className:"card",children:[n.jsxs("div",{className:"card-header",children:[n.jsxs("h2",{children:[n.jsx(xy,{size:20,style:{display:"inline-block",verticalAlign:"middle",marginRight:8}}),"Adapter Skills"]}),!d&&n.jsxs("span",{className:"badge",children:[r.length," adapters"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Loading adapter skills..."}),!d&&n.jsx("div",{className:"adapter-list",children:r.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(r,c=0){var x;const d=localStorage.getItem("atabey-auth-token")||"",u=Lp({queryKey:[r,d],queryFn:async()=>{const T={};d&&(T.Authorization=`Bearer ${d}`);const j=await fetch(`/api${r}`,{headers:T});if(!j.ok)throw new Error(`${j.status} ${j.statusText}`);const N=await j.json();let h=N;return N&&typeof N=="object"&&"success"in N&&"data"in N&&(h=N.data),["/agents","/approvals","/logs","/messages","/tasks","/memory/search","/compliance"].some(S=>r.startsWith(S))&&!Array.isArray(h)?[]:h},refetchInterval:c||!1}),m=H.useCallback(()=>{u.refetch()},[u.refetch]);return{data:u.data,loading:u.isLoading,error:((x=u.error)==null?void 0:x.message)??null,refetch:m}}function Bl({handlers:r={},port:c}={}){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=c||N||"5858",b=new WebSocket(`ws://${location.hostname}:${h}/ws`);d.current=b,b.onopen=()=>{m(!0),T=0},b.onclose=()=>{m(!1),T<10&&(T++,x=setTimeout(j,3e3*Math.min(T,5)))},b.onmessage=O=>{try{const C=JSON.parse(O.data);if(C.type==="pong")return;const _=r[C.type];_&&_(C.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 Sy(){const{data:r,loading:c,error:d}=ht("/agents",5e3),[u,m]=H.useState([]),[x,T]=H.useState(null);Bl({handlers:{agent_update:h=>{const b=h;b.name&&m(S=>{const O=b.name.replace("@","");return S.some(_=>_.name.replace("@","")===O)?S.map(_=>_.name.replace("@","")===O?{..._,...b}:_):[...S,b]})}}});const j=u.length?u:Array.isArray(r)?r:[];Array.isArray(r)&&u.length===0&&r.length>0&&m(r);const N=Tg.map(h=>{const b=j.find(S=>S.name.replace("@","")===h);return b?{...b,name:h}:{name:h,state:"READY",task:"Idle",last_updated:new Date().toISOString()}});return c&&!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 b=x===h.name,S=h.state.toLowerCase();return n.jsxs("div",{className:`agent-card ${b?"expanded":""}`,onClick:()=>T(b?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}),b?n.jsx(my,{size:14,className:"text-muted"}):n.jsx(hy,{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"})]}),b&&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 Ny(){const{data:r}=ht("/approvals",5e3),[c,d]=H.useState([]),[u,m]=H.useState(null);Bl({handlers:{approval:h=>{const b=h;b.id&&(d(S=>[b,...S]),T(`New approval: ${b.traceId}`,"success"))}}});const x=c.length?c:Array.isArray(r)?r:[];Array.isArray(r)&&c.length===0&&r.length>0&&d(r);function T(h,b){m({msg:h,type:b}),setTimeout(()=>m(null),4e3)}async function j(h,b,S){try{const O=S==="approve"?`/api/approve/${b}`:`/api/reject/${b}`;(await fetch(O,{method:"POST"})).ok?(d(S==="approve"?_=>_.map(B=>B.traceId===b?{...B,status:"APPROVED"}:B):_=>_.map(B=>B.traceId===b?{...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(fy,{size:14})," Approve"]}),n.jsxs("button",{className:"btn btn-danger",onClick:()=>j(h.id,h.traceId,"reject"),children:[n.jsx(yu,{size:14})," Reject"]})]})]},h.id))]})]})}function Eg(){const{data:r,loading:c,error:d}=ht("/compliance",15e3),[u,m]=H.useState("ALL"),[x,T]=H.useState(null),j=Array.isArray(r)?r:[],N=u==="ALL"?j:j.filter(b=>b.status===u),h={PASS:j.filter(b=>b.status==="PASS").length,FAIL:j.filter(b=>b.status==="FAIL").length,WARN:j.filter(b=>b.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"]})]}),c&&!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(([b,S])=>n.jsxs("div",{className:`stat-box ${b.toLowerCase()}`,children:[n.jsx("span",{className:"stat-count",children:S}),n.jsx("span",{className:"stat-label",children:b})]},b))}),n.jsx("div",{className:"filter-tabs",children:["ALL","PASS","FAIL","WARN"].map(b=>n.jsx("button",{className:`filter-tab ${u===b?"active":""}`,onClick:()=>m(b),children:b},b))}),n.jsxs("div",{className:"list-container",children:[N.length===0&&n.jsx("div",{className:"empty-state",children:"No results"}),N.map(b=>{const S=x===b.file;return n.jsxs("div",{className:"list-item",onClick:()=>T(S?null:b.file),children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[b.status==="PASS"?n.jsx(Ll,{size:14,style:{color:"#22c55e",flexShrink:0}}):b.status==="FAIL"?n.jsx(yy,{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:b.file}),n.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:b.status==="PASS"?"#22c55e":b.status==="FAIL"?"#ef4444":"#eab308"},children:b.status})]}),S&&b.violations.length>0&&n.jsx("div",{style:{marginTop:8,borderTop:"1px solid #334155",paddingTop:8},children:b.violations.map((O,C)=>n.jsxs("div",{style:{fontSize:"0.8rem",color:"#ef4444",marginTop:4},children:[n.jsx(ot,{size:12,style:{display:"inline",marginRight:4}}),O]},C))})]},b.file)})]})]})]})}function Ag(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("violations"),N=async()=>{u(!0);try{const C=await fetch("/api/discipline");if(!C.ok)throw new Error(`HTTP ${C.status}`);const _=await C.json();if(_.success)c(_.data);else throw new Error(_.error||"Failed to fetch discipline stats");x(null)}catch(C){x(C.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const C=setInterval(N,5e3);return()=>clearInterval(C)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Discipline Stats..."})});if(m&&!r)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(r||{}).sort((C,_)=>T==="violations"?_[1].violations-C[1].violations:_[1].totalCalls-C[1].totalCalls),b=h.reduce((C,[,_])=>C+_.violations,0),S=h.reduce((C,[,_])=>C+_.totalCalls,0),O=h.some(([,C])=>C.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(rl,{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:b>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:b>0?"var(--color-error)":"var(--color-success)"},children:b}),n.jsx("div",{className:"stat-card-desc",children:b>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:O?"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:O?"var(--color-warning)":"var(--color-success)"},children:O?"Active":"None"}),n.jsx("div",{className:"stat-card-desc",children:O?"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(([C,_])=>{const B=_.totalCalls>0?(_.violations/_.totalCalls*100).toFixed(1):"0.0";return n.jsxs("div",{className:"list-item",style:{borderLeft:_.inCooldown?"3px solid var(--color-warning)":_.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:["@",C]}),_.inCooldown&&n.jsxs("span",{className:"badge",style:{background:"rgba(234, 179, 8, 0.1)",color:"var(--color-warning)"},children:["Cooldown ",Math.ceil(_.cooldownRemaining/1e3),"s"]}),_.violations>0&&n.jsxs("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:[_.violations," violations"]}),_.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:[_.totalCalls," total"]}),n.jsxs("span",{children:[_.recentCalls,"/min"]}),n.jsxs("span",{children:[B,"% violation rate"]})]})]}),_.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:"})," ",_.lastViolation]})]},C)})]})]})]})}const Cg={lint:ev,compliance:iu,test:dg,runtime:sg,security:ot};function Mg(){const[r,c]=H.useState([]),[d,u]=H.useState("ALL"),[m,x]=H.useState(!1);Bl({handlers:{error:h=>{const b=h;b.id&&c(S=>[b,...S].slice(0,100))}}});const T=r.filter(h=>!(d!=="ALL"&&h.type!==d||!m&&h.resolved)),j=r.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 b=N[h.type]||"#64748b",S=Cg[h.type]||ot;return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${b}`,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:`${b}20`,color:b,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[r,c]=H.useState(null),[d,u]=H.useState("default"),[m,x]=H.useState(null),[T,j]=H.useState(!0),[N,h]=H.useState(null),[b,S]=H.useState(!1),O=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)c(Q.data);else throw new Error(Q.error||"Failed to fetch budget state");h(null)}catch(q){h(q.message)}finally{j(!1)}},C=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)}},_=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 O()}finally{S(!1)}}};if(H.useEffect(()=>{O();const q=setInterval(O,1e4);return()=>clearInterval(q)},[]),H.useEffect(()=>{d&&C(d)},[d,r]),T&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading FinOps Budget..."})});if(N&&!r)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=r?Object.keys(r.agentSpend):[],V=r?r.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(mr,{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:(r==null?void 0:r.team)||"N/A"})]})]})]}),n.jsxs("div",{style:{display:"flex",gap:8},children:[n.jsx("button",{className:"sidebar-btn",onClick:_,disabled:b,style:{width:"auto",padding:"6px 12px"},children:b?"Resetting...":"Reset Period"}),n.jsxs("button",{className:"sidebar-btn",onClick:O,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(mr,{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:r!=null&&r.blocked?"var(--color-error)":"var(--color-success)"},children:["$",(r==null?void 0:r.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(rl,{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(vg,{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:r!=null&&r.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:r!=null&&r.blocked?"var(--color-error)":"var(--color-success)"},children:r!=null&&r.blocked?"BLOCKED":"Active"}),n.jsx("div",{className:"stat-card-desc",children:r!=null&&r.blocked?"Budget exceeded":"Within budget"})]})]}),(r==null?void 0:r.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:"})," ",r.blockReason]}),(r==null?void 0:r.triggeredAlerts)&&r.triggeredAlerts.length>0&&n.jsx("div",{style:{marginTop:8,display:"flex",gap:6,flexWrap:"wrap"},children:r.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=(r==null?void 0:r.agentSpend[q])||0,G=(m==null?void 0:m.agentMaxBudget)||50,P=G>0?Q/G*100:0,ne=P>=100;return n.jsxs("div",{className:"list-item",style:{borderLeft:ne?"3px solid var(--color-error)":P>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]}),ne&&n.jsx("span",{className:"badge",style:{background:"rgba(239, 68, 68, 0.1)",color:"var(--color-error)"},children:"Over Limit"}),P>80&&!ne&&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:[P.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(P,100)}%`,height:"100%",background:ne?"var(--color-error)":P>80?"var(--color-warning)":"var(--color-success)",borderRadius:2,transition:"width 0.3s ease"}})})]},q)})]})]}),r&&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(r.periodStart).toLocaleDateString()]}),n.jsxs("span",{children:["📅 End: ",new Date(r.periodEnd).toLocaleDateString()]}),r.lastSync&&n.jsxs("span",{children:["🔄 Last Sync: ",new Date(r.lastSync).toLocaleTimeString()]})]})]})]})}const _g=["ALL","ACTION","DELEGATION","SUBTASK","REPLY","ALERT"];function Rg(){const{data:r}=ht("/messages",5e3),[c,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=c.length?c:Array.isArray(r)?r:[];Array.isArray(r)&&c.length===0&&r.length>0&&d(r);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(gy,{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 zy(){const[r,c]=H.useState(null);H.useEffect(()=>{const u=()=>{fetch("/api/hermes/stats").then(x=>x.json()).then(x=>{x.success&&c(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(vr,{size:20})," Hermes Queue"]}),r&&n.jsxs("span",{className:"badge",style:{background:r.pending>0?"rgba(59, 130, 246, 0.15)":"var(--color-border)",color:r.pending>0?"#3b82f6":"var(--color-text-secondary)"},children:[r.pending," pending / ",r.total," total"]})]}),!r&&n.jsx("div",{className:"empty-state",children:"Loading queue stats..."}),r&&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(r.byCategory).map(([u,m])=>{const x=d[u]||"#64748b",T=Math.max(...Object.values(r.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(r.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(rl,{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(r.pending/Math.max(r.total,1)*100,100)}%`,height:"100%",background:r.pending>10?"#f59e0b":r.pending>0?"#3b82f6":"#22c55e",borderRadius:10,transition:"width 0.5s ease"}})})]})]})]})}function kg(){var V,q;const[r,c]=H.useState(null),[d,u]=H.useState("src"),[m,x]=H.useState(""),[T,j]=H.useState([]),[N,h]=H.useState(null),[b,S]=H.useState(!1),[O,C]=H.useState(null),_=async()=>{try{const Q=await fetch("/api/license");if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const G=await Q.json();G.success&&c(G.data.config)}catch{}},B=async()=>{if(!(!d||!m)){S(!0),C(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){C(Q.message),j([]),h(null)}finally{S(!1)}}};H.useEffect(()=>{_()},[]);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(dy,{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:_,style:{width:"auto",padding:"6px 12px"},children:[n.jsx(za,{size:14,style:{marginRight:6}})," Refresh"]})]}),r&&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=r.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=r.ALLOWLIST)==null?void 0:q.join(", "))||"N/A"]}),n.jsxs("span",{className:"badge",style:{background:r.BLOCK_COPYLEFT?"rgba(239, 68, 68, 0.1)":"rgba(34, 197, 94, 0.1)",color:r.BLOCK_COPYLEFT?"var(--color-error)":"var(--color-success)"},children:["Block Copyleft: ",r.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:b||!d||!m,style:{width:"auto",padding:"8px 16px",alignSelf:"flex-start"},children:b?"Scanning...":"Scan for Licenses"}),O&&n.jsx("div",{style:{color:"var(--color-error)",fontSize:"0.8rem"},children:O})]})]}),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(jv,{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 Ty(){const{data:r,loading:c}=ht("/logs",5e3),[d,u]=H.useState([]),[m,x]=H.useState("ALL"),[T,j]=H.useState("ALL");Bl({handlers:{log:S=>{const O=S;O.logs&&u(C=>[...O.logs,...C].slice(0,200))}}});const N=d.length?d:Array.isArray(r)?r:[];Array.isArray(r)&&d.length===0&&r.length>0&&u(r);const h=[...new Set(N.map(S=>S.agent))].filter(Boolean),b=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(by,{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))})]}),c&&!N.length&&n.jsx("div",{className:"empty-state",children:"Loading logs..."}),n.jsxs("div",{className:"list-container",children:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No log entries"}),b.slice(0,100).map((S,O)=>{const C=Dg[S.status||S.action]||"#64748b";return n.jsxs("div",{className:"list-item",style:{borderLeft:`3px solid ${C}`},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:`${C}20`,color:C},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||O)})]})]})}function wg(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(null),N=async()=>{u(!0);try{const _=await fetch("/api/loop-detector");if(!_.ok)throw new Error(`HTTP ${_.status}`);const B=await _.json();if(B.success)c(B.data);else throw new Error(B.error||"Failed to fetch loop stats");x(null)}catch(_){x(_.message)}finally{u(!1)}},h=async _=>{j(_);try{(await fetch(`/api/loop-detector/clear/${encodeURIComponent(_)}`,{method:"POST"})).ok&&await N()}finally{j(null)}};if(H.useEffect(()=>{N();const _=setInterval(N,5e3);return()=>clearInterval(_)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Loop Detector..."})});if(m&&!r)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 b=Object.entries(r||{}),S=b.reduce((_,[,B])=>_+B.cooldownCount,0),O=b.filter(([,_])=>_.inCooldown).length,C=b.filter(([,_])=>_.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(rl,{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:b.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:C>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:C>0?"var(--color-warning)":"var(--color-success)"},children:C}),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:O>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:O>0?"var(--color-error)":"var(--color-success)"},children:O}),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(yy,{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:O>0?`${O} agent(s) in cooldown`:"All agents normal"})]}),n.jsxs("div",{className:"list-container",children:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),b.map(([_,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:["@",_]}),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(_),disabled:T===_,style:{width:"auto",padding:"2px 8px",fontSize:"0.7rem"},children:T===_?"...":"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(([,P])=>P>0).map(([P,ne])=>n.jsxs("span",{style:{background:"rgba(59, 130, 246, 0.1)",padding:"2px 6px",borderRadius:3},children:["🔄 ",P,": ",ne,"x"]},P)),Object.entries(B.fileWrites).map(([P,ne])=>n.jsxs("span",{style:{background:"rgba(234, 179, 8, 0.1)",padding:"2px 6px",borderRadius:3},children:["📝 ",P.split("/").pop(),": ",ne,"x"]},P))]})]},_)})]})]})]})}function Ug(){const[r,c]=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}),b=async()=>{u(!0);try{const C=await fetch("/api/health");if(!C.ok)throw new Error(`HTTP ${C.status}`);const _=await C.json(),B=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",Z=window.location.port||"5858",V=window.location.hostname;c({mode:"unified",port:parseInt(Z),host:V,sessions:0,version:_.version||"0.0.14",dashboardUrl:`http://${V}:${Z}`,mcpSseUrl:`http://${V}:${Z}/mcp/sse`,isLocal:B});try{(await fetch("/api/mcp/sessions",{headers:{}})).status===401?h({enabled:!0,hasToken:!0,hasUsers:!1}):h({enabled:!1,hasToken:!1,hasUsers:!1})}catch{h({enabled:!0,hasToken:!0,hasUsers:!1})}try{const q=localStorage.getItem("atabey-auth-token")||"",Q={};q&&(Q.Authorization=`Bearer ${q}`);const G=await fetch("/api/mcp/sessions",{headers:Q});if(G.ok){const P=await G.json();P.success&&P.data&&c(ne=>ne&&{...ne,sessions:P.data.total||0})}}catch{}x(null)}catch(C){x(C.message)}finally{u(!1)}};H.useEffect(()=>{b();const C=setInterval(b,1e4);return()=>clearInterval(C)},[]);const S=(C,_)=>{navigator.clipboard.writeText(C).then(()=>{j(_),setTimeout(()=>j(null),2e3)})};if(d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading MCP Configuration..."})});if(m&&!r)return n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header",children:n.jsxs("h2",{children:[n.jsx(yr,{size:20,style:{color:"#ef4444"}})," MCP Setup Error"]})}),n.jsx("div",{className:"error",style:{padding:16},children:m})]});const O=r;return n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[n.jsxs("div",{className:"card",style:{background:O.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(yr,{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:O.isLocal?"Local mode - only you can connect":"Network mode - team can connect"})]})]}),n.jsxs("button",{className:"sidebar-btn",onClick:b,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(Hm,{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:O.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(pr,{size:16,style:{color:O.isLocal?"#eab308":"#22c55e"}}),n.jsx("span",{className:"stat-title",children:"Access Type"})]}),n.jsx("div",{className:"stat-card-value",style:{fontSize:"1.2rem",color:O.isLocal?"#eab308":"#22c55e"},children:O.isLocal?"Local":"Network"}),n.jsx("div",{className:"stat-card-desc",children:O.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(mu,{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(Wv,{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:O.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(vy,{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(Hm,{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:"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:O.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:[`{
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(Kv,{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:O.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": "${O.mcpSseUrl}",
@@ -370,7 +370,7 @@ Error generating stack: `+l.message+`
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"})," (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(O.dashboardUrl,"dash-url"),style:{fontFamily:"monospace",color:"#ef4444",cursor:"pointer"},children:[O.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(O.mcpSseUrl,"sse-url"),style:{fontFamily:"monospace",color:"#22c55e",cursor:"pointer"},children:[O.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://",O.host,":",O.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://",O.host,":",O.port,"/api/health"]})]})]})]})]})}function Lg(){const{data:r,loading:c,error:d}=ht("/memory/search",15e3),[u,m]=H.useState([]),[x,T]=H.useState(""),[j,N]=H.useState(null),[h,b]=H.useState(!1);Bl({handlers:{memory_update:_=>{const B=_;B.id&&m(Z=>[B,...Z].slice(0,100))}}});const S=u.length?u:Array.isArray(r)?r:[];Array.isArray(r)&&u.length===0&&r.length>0&&m(r);const O=async()=>{if(!x.trim()){N(null);return}b(!0);try{const B=await(await fetch(`/api/memory/search?q=${encodeURIComponent(x)}&limit=10`)).json();N(B.data||[])}catch{N([])}b(!1)},C=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:_=>T(_.target.value),onKeyDown:_=>_.key==="Enter"&&O(),className:"search-input"}),n.jsx("button",{className:"btn btn-ghost",onClick:O,disabled:h,children:h?"...":n.jsxs(n.Fragment,{children:[n.jsx(jy,{size:14})," Search"]})}),j!==null&&n.jsxs("button",{className:"btn btn-ghost",onClick:()=>{N(null),T("")},children:[n.jsx(yu,{size:14})," Clear"]})]}),c&&!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:[C.length===0&&n.jsx("div",{className:"empty-state",children:j!==null?"No results found":"No memory entries"}),C.slice(0,50).map((_,B)=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{className:"memory-meta",children:[n.jsx("span",{className:"memory-tag",children:_.type||"memory"}),_.relevance!==void 0&&n.jsxs("span",{className:_.relevance>.7?"status-ready":_.relevance>.4?"status-executing":"text-muted",children:[(_.relevance*100).toFixed(0),"% match"]}),n.jsx("span",{className:"trace-id",style:{marginLeft:"auto"},children:new Date(_.timestamp).toLocaleString()})]}),n.jsxs("div",{className:"memory-text",children:[_.content.substring(0,200),_.content.length>200?"...":""]})]},_.id||B))]})]})}function Bg(){const{data:r,loading:c}=ht("/tasks",5e3),[d,u]=H.useState("ALL"),[m,x]=H.useState(null),T=r||[],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(vy,{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))}),c&&!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 b=m===h.id,S=h.status.toLowerCase();return n.jsxs("div",{className:`list-item task-item ${S}`,onClick:()=>x(b?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}),b?n.jsx(my,{size:14,className:"text-muted"}):n.jsx(hy,{size:14,className:"text-muted"})]}),n.jsx("div",{className:"text-secondary text-sm",children:h.description}),b&&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,ie,pe,Ce;const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(""),[N,h]=H.useState(!1),[b,S]=H.useState(null),[O,C]=H.useState(null),[_,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)c(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&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading GDPR/KVKK Privacy Logs..."})});if(m&&!r)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=r==null?void 0:r.stats,Q=(r==null?void 0:r.entries)||[],G=((le=q==null?void 0:q.byAction)==null?void 0:le.MASK_PII)||((ie=q==null?void 0:q.byAction)==null?void 0:ie.PII_MASKED)||0,P=((pe=q==null?void 0:q.byAction)==null?void 0:pe.PII_DETECTED)||0,ne=_==="ALL"?Q:Q.filter(F=>F.dataCategory===_);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(xp,{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:P}),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(qm,{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(Tp,{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(qm,{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"})]}),b&&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:b})]})]}),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(Ap,{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:_,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:[ne.length," events"]})]})]}),n.jsxs("div",{className:"list-container",children:[ne.length===0&&n.jsx("div",{className:"empty-state",children:"No compliance events logged yet"}),ne.map((F,ge)=>{const Ue=O===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:()=>C(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[r,c]=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&&c(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(rl,{size:20})," Quality Gate Analysis"]}),r&&n.jsxs("span",{className:"badge",style:{background:r.totalIssues>0?"var(--color-accent-glow)":"var(--color-border)",color:r.totalIssues>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[r.totalIssues," issues"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Analyzing codebase..."}),r&&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:r.anyTypes>0?"var(--color-accent-primary)":"#22c55e"},children:r.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:r.longFunctions>0?"#f59e0b":"#22c55e"},children:r.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:r.deepNesting>0?"#f59e0b":"#22c55e"},children:r.deepNesting}),n.jsx("span",{className:"stat-label",children:"deep nesting"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:r.totalFiles}),n.jsxs("span",{className:"stat-label",children:[n.jsx(Np,{size:12,style:{display:"inline",marginRight:2}}),"files scanned"]})]})]}),n.jsxs("div",{className:"list-container",style:{maxHeight:200},children:[r.issues.length===0&&n.jsx("div",{className:"empty-state",children:"No quality issues found"}),r.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,b,S,O,C,_,B,Z;const[r,c]=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)c(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&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Telemetry Status..."})});if(m&&!r)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=(r==null?void 0:r.serverUrl)&&r.serverUrl.length>0,N=r?r.eventsThisMinute/(((h=r.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(up,{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:[r!=null&&r.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:r!=null&&r.enabled?"var(--color-success)":"var(--color-warning)"},children:r!=null&&r.enabled?"Active":"Disabled"}),n.jsx("div",{className:"stat-card-desc",children:r!=null&&r.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(vr,{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(r.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(hp,{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:(r==null?void 0:r.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(rl,{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:[(r==null?void 0:r.eventsThisMinute)||0,"/min"]}),n.jsx("div",{className:"stat-card-desc",children:"Events this minute"})]})]}),(r==null?void 0:r.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(vr,{size:14})," WebSocket connected — real-time streaming active"]}),!j&&(r==null?void 0:r.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:r!=null&&r.serverUrl?"var(--color-accent-primary)":"var(--color-text-soft)"},children:(r==null?void 0:r.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:[((b=r==null?void 0:r.config)==null?void 0:b.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=r==null?void 0:r.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:((O=r==null?void 0:r.config)==null?void 0:O.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:[((C=r==null?void 0:r.config)==null?void 0:C.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:(_=r==null?void 0:r.config)!=null&&_.USE_WEBSOCKET?"var(--color-success)":"var(--color-accent-primary)"},children:(B=r==null?void 0:r.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=r==null?void 0:r.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: ",r!=null&&r.serverUrl?"pending-events.jsonl":"local storage"]})]})]})]})]})}const Xo=.003;function ws(r){return r>=1e6?(r/1e6).toFixed(1)+"M":r>=1e3?(r/1e3).toFixed(1)+"K":r.toString()}function Qm(r){return r<1?"< $0.01":`$${r.toFixed(2)}`}function Yg(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("tokens"),N=async()=>{u(!0);try{const O=await fetch("/api/metrics");if(!O.ok)throw new Error(`HTTP ${O.status}`);const C=await O.json();if(C.success)c(C.data);else throw new Error(C.error||"Failed to fetch metrics");x(null)}catch(O){x(O.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const O=setInterval(N,1e4);return()=>clearInterval(O)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Token Economy Metrics..."})});if(m&&!r)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=r,b=Object.entries(h.byAgent).sort((O,C)=>T==="tokens"?C[1].tokens-O[1].tokens:C[1].calls-O[1].calls),S=Math.max(...b.map(([,O])=>O.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(rl,{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(pr,{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(mr,{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:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),b.map(([O,C])=>{const _=C.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:["@",O]}),n.jsxs("span",{style:{color:"#94a3b8"},children:[ws(C.tokens)," tokens · ",C.calls," calls · ",Qm(C.cost)]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${_}%`,background:C.cost>.1?"#f43f5e":C.cost>.05?"#eab308":"#22c55e",borderRadius:4,transition:"width 0.3s ease",minWidth:_>0?4:0}})})]},O)})]})]}),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((O,C)=>C[1].tokens-O[1].tokens).slice(0,15).map(([O,C])=>{const _=C.tokens>1e4,B=O.includes("read")||O.includes("list"),Z=O.includes("write")||O.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:_?"#ef4444":B?"#38bdf8":Z?"#22c55e":"#64748b",display:"inline-block"}}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.75rem"},children:O})]}),n.jsxs("span",{style:{color:"#94a3b8",fontSize:"0.7rem"},children:[ws(C.tokens)," tokens · ",C.calls,"x"]})]}),_&&n.jsx("div",{style:{fontSize:"0.65rem",color:"#ef4444",marginTop:2},children:"⚠ High token consumption - consider optimizing"})]},O)}),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((O,C)=>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(O.timestamp).toLocaleTimeString()}),n.jsxs("span",{style:{color:"#38bdf8",fontWeight:500},children:["@",O.agent]}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",color:"#cbd5e1"},children:O.action})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:O.estimatedTokens>1e3?"#eab308":"#64748b"},children:[ws(O.estimatedTokens)," tok"]}),n.jsxs("span",{style:{color:"#64748b"},children:["~$",(O.estimatedTokens/1e3*Xo).toFixed(5)]}),O.error&&n.jsx("span",{style:{color:"#ef4444"},title:O.error,children:"⚠"})]})]})},C))]})]}),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(O.dashboardUrl,"dash-url"),style:{fontFamily:"monospace",color:"#ef4444",cursor:"pointer"},children:[O.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(O.mcpSseUrl,"sse-url"),style:{fontFamily:"monospace",color:"#22c55e",cursor:"pointer"},children:[O.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://",O.host,":",O.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://",O.host,":",O.port,"/api/health"]})]})]})]})]})}function Lg(){const{data:r,loading:c,error:d}=ht("/memory/search",15e3),[u,m]=H.useState([]),[x,T]=H.useState(""),[j,N]=H.useState(null),[h,b]=H.useState(!1);Bl({handlers:{memory_update:_=>{const B=_;B.id&&m(Z=>[B,...Z].slice(0,100))}}});const S=u.length?u:Array.isArray(r)?r:[];Array.isArray(r)&&u.length===0&&r.length>0&&m(r);const O=async()=>{if(!x.trim()){N(null);return}b(!0);try{const B=await(await fetch(`/api/memory/search?q=${encodeURIComponent(x)}&limit=10`)).json();N(B.data||[])}catch{N([])}b(!1)},C=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:_=>T(_.target.value),onKeyDown:_=>_.key==="Enter"&&O(),className:"search-input"}),n.jsx("button",{className:"btn btn-ghost",onClick:O,disabled:h,children:h?"...":n.jsxs(n.Fragment,{children:[n.jsx(jy,{size:14})," Search"]})}),j!==null&&n.jsxs("button",{className:"btn btn-ghost",onClick:()=>{N(null),T("")},children:[n.jsx(yu,{size:14})," Clear"]})]}),c&&!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:[C.length===0&&n.jsx("div",{className:"empty-state",children:j!==null?"No results found":"No memory entries"}),C.slice(0,50).map((_,B)=>n.jsxs("div",{className:"list-item",children:[n.jsxs("div",{className:"memory-meta",children:[n.jsx("span",{className:"memory-tag",children:_.type||"memory"}),_.relevance!==void 0&&n.jsxs("span",{className:_.relevance>.7?"status-ready":_.relevance>.4?"status-executing":"text-muted",children:[(_.relevance*100).toFixed(0),"% match"]}),n.jsx("span",{className:"trace-id",style:{marginLeft:"auto"},children:new Date(_.timestamp).toLocaleString()})]}),n.jsxs("div",{className:"memory-text",children:[_.content.substring(0,200),_.content.length>200?"...":""]})]},_.id||B))]})]})}function Bg(){const{data:r,loading:c}=ht("/tasks",5e3),[d,u]=H.useState("ALL"),[m,x]=H.useState(null),T=r||[],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(py,{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))}),c&&!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 b=m===h.id,S=h.status.toLowerCase();return n.jsxs("div",{className:`list-item task-item ${S}`,onClick:()=>x(b?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}),b?n.jsx(my,{size:14,className:"text-muted"}):n.jsx(hy,{size:14,className:"text-muted"})]}),n.jsx("div",{className:"text-secondary text-sm",children:h.description}),b&&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,ie,ve,Ce;const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState(""),[N,h]=H.useState(!1),[b,S]=H.useState(null),[O,C]=H.useState(null),[_,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)c(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&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading GDPR/KVKK Privacy Logs..."})});if(m&&!r)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=r==null?void 0:r.stats,Q=(r==null?void 0:r.entries)||[],G=((le=q==null?void 0:q.byAction)==null?void 0:le.MASK_PII)||((ie=q==null?void 0:q.byAction)==null?void 0:ie.PII_MASKED)||0,P=((ve=q==null?void 0:q.byAction)==null?void 0:ve.PII_DETECTED)||0,ne=_==="ALL"?Q:Q.filter(F=>F.dataCategory===_);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(xv,{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:P}),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(cv,{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(qm,{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(Tv,{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(qm,{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"})]}),b&&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:b})]})]}),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(Av,{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:_,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:[ne.length," events"]})]})]}),n.jsxs("div",{className:"list-container",children:[ne.length===0&&n.jsx("div",{className:"empty-state",children:"No compliance events logged yet"}),ne.map((F,ge)=>{const Ue=O===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:()=>C(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[r,c]=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&&c(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(rl,{size:20})," Quality Gate Analysis"]}),r&&n.jsxs("span",{className:"badge",style:{background:r.totalIssues>0?"var(--color-accent-glow)":"var(--color-border)",color:r.totalIssues>0?"var(--color-accent-primary)":"var(--color-text-secondary)"},children:[r.totalIssues," issues"]})]}),d&&n.jsx("div",{className:"empty-state",children:"Analyzing codebase..."}),r&&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:r.anyTypes>0?"var(--color-accent-primary)":"#22c55e"},children:r.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:r.longFunctions>0?"#f59e0b":"#22c55e"},children:r.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:r.deepNesting>0?"#f59e0b":"#22c55e"},children:r.deepNesting}),n.jsx("span",{className:"stat-label",children:"deep nesting"})]}),n.jsxs("div",{className:"stat-box",children:[n.jsx("span",{className:"stat-count",children:r.totalFiles}),n.jsxs("span",{className:"stat-label",children:[n.jsx(Nv,{size:12,style:{display:"inline",marginRight:2}}),"files scanned"]})]})]}),n.jsxs("div",{className:"list-container",style:{maxHeight:200},children:[r.issues.length===0&&n.jsx("div",{className:"empty-state",children:"No quality issues found"}),r.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,b,S,O,C,_,B,Z;const[r,c]=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)c(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&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Telemetry Status..."})});if(m&&!r)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=(r==null?void 0:r.serverUrl)&&r.serverUrl.length>0,N=r?r.eventsThisMinute/(((h=r.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(uv,{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:[r!=null&&r.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:r!=null&&r.enabled?"var(--color-success)":"var(--color-warning)"},children:r!=null&&r.enabled?"Active":"Disabled"}),n.jsx("div",{className:"stat-card-desc",children:r!=null&&r.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(pr,{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(r.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(hv,{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:(r==null?void 0:r.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(rl,{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:[(r==null?void 0:r.eventsThisMinute)||0,"/min"]}),n.jsx("div",{className:"stat-card-desc",children:"Events this minute"})]})]}),(r==null?void 0:r.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(pr,{size:14})," WebSocket connected — real-time streaming active"]}),!j&&(r==null?void 0:r.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:r!=null&&r.serverUrl?"var(--color-accent-primary)":"var(--color-text-soft)"},children:(r==null?void 0:r.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:[((b=r==null?void 0:r.config)==null?void 0:b.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=r==null?void 0:r.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:((O=r==null?void 0:r.config)==null?void 0:O.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:[((C=r==null?void 0:r.config)==null?void 0:C.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:(_=r==null?void 0:r.config)!=null&&_.USE_WEBSOCKET?"var(--color-success)":"var(--color-accent-primary)"},children:(B=r==null?void 0:r.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=r==null?void 0:r.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: ",r!=null&&r.serverUrl?"pending-events.jsonl":"local storage"]})]})]})]})]})}const Xo=.003;function ws(r){return r>=1e6?(r/1e6).toFixed(1)+"M":r>=1e3?(r/1e3).toFixed(1)+"K":r.toString()}function Qm(r){return r<1?"< $0.01":`$${r.toFixed(2)}`}function Yg(){const[r,c]=H.useState(null),[d,u]=H.useState(!0),[m,x]=H.useState(null),[T,j]=H.useState("tokens"),N=async()=>{u(!0);try{const O=await fetch("/api/metrics");if(!O.ok)throw new Error(`HTTP ${O.status}`);const C=await O.json();if(C.success)c(C.data);else throw new Error(C.error||"Failed to fetch metrics");x(null)}catch(O){x(O.message)}finally{u(!1)}};if(H.useEffect(()=>{N();const O=setInterval(N,1e4);return()=>clearInterval(O)},[]),d&&!r)return n.jsx("div",{className:"card",children:n.jsx("div",{className:"empty-state",children:"Loading Token Economy Metrics..."})});if(m&&!r)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=r,b=Object.entries(h.byAgent).sort((O,C)=>T==="tokens"?C[1].tokens-O[1].tokens:C[1].calls-O[1].calls),S=Math.max(...b.map(([,O])=>O.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(rl,{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(vr,{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(mr,{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:[b.length===0&&n.jsx("div",{className:"empty-state",children:"No agent activity recorded yet"}),b.map(([O,C])=>{const _=C.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:["@",O]}),n.jsxs("span",{style:{color:"#94a3b8"},children:[ws(C.tokens)," tokens · ",C.calls," calls · ",Qm(C.cost)]})]}),n.jsx("div",{style:{height:8,background:"#1f2937",borderRadius:4,overflow:"hidden"},children:n.jsx("div",{style:{height:"100%",width:`${_}%`,background:C.cost>.1?"#f43f5e":C.cost>.05?"#eab308":"#22c55e",borderRadius:4,transition:"width 0.3s ease",minWidth:_>0?4:0}})})]},O)})]})]}),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((O,C)=>C[1].tokens-O[1].tokens).slice(0,15).map(([O,C])=>{const _=C.tokens>1e4,B=O.includes("read")||O.includes("list"),Z=O.includes("write")||O.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:_?"#ef4444":B?"#38bdf8":Z?"#22c55e":"#64748b",display:"inline-block"}}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontSize:"0.75rem"},children:O})]}),n.jsxs("span",{style:{color:"#94a3b8",fontSize:"0.7rem"},children:[ws(C.tokens)," tokens · ",C.calls,"x"]})]}),_&&n.jsx("div",{style:{fontSize:"0.65rem",color:"#ef4444",marginTop:2},children:"⚠ High token consumption - consider optimizing"})]},O)}),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((O,C)=>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(O.timestamp).toLocaleTimeString()}),n.jsxs("span",{style:{color:"#38bdf8",fontWeight:500},children:["@",O.agent]}),n.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",color:"#cbd5e1"},children:O.action})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[n.jsxs("span",{style:{color:O.estimatedTokens>1e3?"#eab308":"#64748b"},children:[ws(O.estimatedTokens)," tok"]}),n.jsxs("span",{style:{color:"#64748b"},children:["~$",(O.estimatedTokens/1e3*Xo).toFixed(5)]}),O.error&&n.jsx("span",{style:{color:"#ef4444"},title:O.error,children:"⚠"})]})]})},C))]})]}),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;
@@ -410,21 +410,21 @@ Error generating stack: `+l.message+`
410
410
  }
411
411
 
412
412
  .theme-dark {
413
- /* Dark Theme (Pure Black & Red Accent) */
414
- --color-bg: #000000;
415
- --color-surface: #060608;
416
- --color-border: #141416;
417
- --color-border-hover: rgba(255, 0, 60, 0.6);
413
+ /* Dark Theme (Glassmorphism & Neon Purple/Blue Accents) */
414
+ --color-bg: #0c0d14;
415
+ --color-surface: #141625;
416
+ --color-border: #202336;
417
+ --color-border-hover: rgba(167, 139, 250, 0.6);
418
418
  --color-text-primary: #f4f4f5;
419
419
  --color-text-secondary: #a1a1aa;
420
420
  --color-text-muted: #52525b;
421
- --color-accent-primary: #ff003c;
422
- --color-accent-hover: #ff3366;
423
- --color-accent-glow: rgba(255, 0, 60, 0.12);
424
- --color-sidebar-bg: #030303;
421
+ --color-accent-primary: #a78bfa;
422
+ --color-accent-hover: #8b5cf6;
423
+ --color-accent-glow: rgba(167, 139, 250, 0.12);
424
+ --color-sidebar-bg: #06070c;
425
425
  --color-sidebar-text: #71717a;
426
- --color-sidebar-hover: #0f0f12;
427
- --color-sidebar-active: #1c0006;
426
+ --color-sidebar-hover: #10111d;
427
+ --color-sidebar-active: #161324;
428
428
  --color-success: #10b981;
429
429
  --color-warning: #f59e0b;
430
430
  --color-error: #ef4444;
@@ -435,7 +435,7 @@ Error generating stack: `+l.message+`
435
435
  --color-code-bg: #09090b;
436
436
  --color-code-border: #18181b;
437
437
  --color-label: #a1a1aa;
438
- --color-highlight: #ff003c;
438
+ --color-highlight: #a78bfa;
439
439
  --color-accent-muted: #a78bfa;
440
440
  }
441
441
 
@@ -1257,4 +1257,4 @@ a:hover { color: var(--color-accent-hover); text-decoration: underline; }
1257
1257
  .animate-fade-in {
1258
1258
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
1259
1259
  }
1260
- `,zn=[{id:"dashboard",label:"Overview",Component:null,desc:"Governance Overview",icon:Dp},{id:"agents",label:"Specialists",Component:Sy,desc:"13 Governed Specialists",icon:Ls},{id:"hermes",label:"Hermes",Component:zy,desc:"Message Queue Stats",icon:pr},{id:"messages",label:"Audit Trail",Component:Rg,desc:"Hermes Message Queue",icon:gy},{id:"approvals",label:"HITL Gates",Component:Ny,desc:"Human-in-the-Loop Gates",icon:il},{id:"tasks",label:"Tasks",Component:Bg,desc:"Task Planning & DAG",icon:vy},{id:"logs",label:"Execution",Component:Ty,desc:"Specialist Execution Logs",icon:by},{id:"quality",label:"Quality",Component:Qg,desc:"Code Quality Analysis",icon:rl},{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:mr},{id:"loop",label:"Loop Detector",Component:wg,desc:"Loop Prevention & Cooldowns",icon:Bn},{id:"license",label:"License",Component:kg,desc:"SPDX & Copyleft Scanner",icon:dy},{id:"telemetry",label:"Telemetry",Component:Gg,desc:"Edge-to-Cloud Streaming",icon:vr},{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:yr},{id:"adapters",label:"Adapters",Component:zg,desc:"Adapter-Skill Mapping",icon:xy},{id:"tokens",label:"Token Econ",Component:Yg,desc:"Token Economy & Cost",icon:Hn}],Xg={};zn.forEach(r=>{Xg[r.id]=r.icon});const Vg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function Zg({onNavigate:r}){var le,ie,pe,Ce,F,ge,Ue,qe,ke;const{data:c}=ht("/agents",5e3),{data:d}=ht("/hermes/stats",5e3),{data:u}=ht("/approvals",5e3),{data:m}=ht("/compliance?path=src",1e4),x=Array.isArray(c)?c.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:b}=ht("/audit",1e4),S=((pe=(ie=b==null?void 0:b.stats)==null?void 0:ie.byAction)==null?void 0:pe.MASK_PII)||((F=(Ce=b==null?void 0:b.stats)==null?void 0:Ce.byAction)==null?void 0:F.PII_MASKED)||0,O=((Ue=(ge=b==null?void 0:b.stats)==null?void 0:ge.byAction)==null?void 0:Ue.PII_DETECTED)||0,C=((ke=(qe=b==null?void 0:b.stats)==null?void 0:qe.byCategory)==null?void 0:ke.RESTRICTED)||0,{data:_}=ht("/metrics",1e4),B=(_==null?void 0:_.totalToolCalls)??0,Z=(_==null?void 0:_.totalEstimatedTokens)??0,V=(_==null?void 0:_.totalEstimatedCost)??0,{data:q}=ht("/mcp/sessions",1e4),Q=(q==null?void 0:q.total)??0,{data:G}=ht("/discipline",1e4),P=Object.values(G||{}).reduce((k,Y)=>k+(Y.violations||0),0),ne=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.19"})})]}),n.jsxs("div",{style:{marginBottom:"1.5rem"},children:[n.jsx("h3",{style:{fontSize:"0.8rem",textTransform:"uppercase",color:"var(--color-text-secondary)",letterSpacing:"0.08em",marginBottom:"0.75rem",borderLeft:"3px solid var(--color-accent-primary)",paddingLeft:"8px",fontWeight:700},children:"Active Session & Specialist Status"}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("agents"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ls,{size:18,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:()=>r("hermes"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(pr,{size:18,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:()=>r("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:18,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:()=>r("mcp"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(yr,{size:18,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",{style:{marginBottom:"2rem"},children:[n.jsx("h3",{style:{fontSize:"0.8rem",textTransform:"uppercase",color:"var(--color-text-secondary)",letterSpacing:"0.08em",marginBottom:"0.75rem",borderLeft:"3px solid var(--color-accent-primary)",paddingLeft:"8px",fontWeight:700},children:"AI Policy & Governance Gates"}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("compliance"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:18,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:()=>r("privacy"),style:{borderColor:O>0?"var(--color-accent-primary)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:18,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:O>0?`${O} PII · ${C} restricted`:"PII masking active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("discipline"),style:{borderColor:ne?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:18,style:{color:P>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Discipline"})]}),n.jsx("div",{className:"stat-card-value",style:{color:P>0?"var(--color-error)":"var(--color-success)",fontSize:"1.1rem"},children:P>0?`${P} violations`:"All Clean"}),n.jsx("div",{className:"stat-card-desc",children:ne?"Agent(s) in cooldown":"All agents compliant"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("tokens"),style:{borderColor:V>.1?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:18,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:"overview-sections-layout",children:[n.jsxs("div",{className:"overview-left-column",children:[n.jsx(Sy,{}),n.jsx(Ny,{})]}),n.jsxs("div",{className:"overview-right-column",children:[n.jsx(zy,{}),n.jsx(Ty,{})]})]})]})}function Jg(){const[r,c]=H.useState("dashboard"),[d,u]=H.useState(!1),[m,x]=H.useState(()=>localStorage.getItem("atabey-theme")||"dark"),[T,j]=H.useState(()=>localStorage.getItem("atabey-auth-token")||""),N=C=>{localStorage.setItem("atabey-auth-token",C),j(C)},h=Bl();H.useEffect(()=>{document.documentElement.classList.remove("theme-dark","theme-light"),document.documentElement.classList.add(`theme-${m}`)},[m]);const b=()=>{const C=m==="dark"?"light":"dark";x(C),localStorage.setItem("atabey-theme",C)},S=zn.find(C=>C.id===r)||zn[0],O=S.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(C=>{const _=C.icon;return n.jsxs("button",{className:`sidebar-btn ${r===C.id?"active":""}`,onClick:()=>{c(C.id),u(!1)},title:C.desc,children:[n.jsx(_,{}),n.jsx("span",{className:"sidebar-label",children:C.label})]},C.id)})}),n.jsxs("div",{className:"sidebar-footer",children:[n.jsxs("div",{className:"ws-indicator",children:[n.jsx("span",{className:"ws-dot",style:{background:h?"var(--color-success)":"var(--color-error)",boxShadow:h?"0 0 6px var(--color-success)":"none"}}),h?"WS Live":"WS Offline"]}),n.jsx("div",{style:{marginTop:6,opacity:.6},children:"Atabey Governance Engine v0.0.19"})]})]}),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(yu,{}):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:S.label})]})]}),n.jsxs("div",{className:"main-header-right",children:[n.jsxs("div",{className:"auth-token-input-wrapper",style:{position:"relative"},children:[T?n.jsx(mu,{size:12,style:{position:"absolute",left:"6px",top:"50%",transform:"translateY(-50%)",color:"var(--color-success)"}}):n.jsx(py,{size:12,style:{position:"absolute",left:"6px",top:"50%",transform:"translateY(-50%)",color:"var(--color-text-muted)"}}),n.jsx("input",{type:"password",placeholder:"MCP Token...",className:"auth-token-input",value:T,onChange:C=>N(C.target.value),title:"Enter MCP_AUTH_TOKEN if configured"})]}),n.jsx("button",{className:"theme-toggle-btn",onClick:b,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(vp,{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(Rp,{size:14})," GitHub"]})]})]}),n.jsx("main",{className:"main-content",children:r==="dashboard"?n.jsx(Zg,{onNavigate:C=>c(C)}):n.jsx("div",{className:"focused-view animate-fade-in",children:O&&n.jsx(O,{})})}),n.jsxs("footer",{className:"main-footer",children:[zn.length-1," Modules Live · Port ",window.location.port||"5858"]})]})]})]})}const Fg=new Sv({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:2,staleTime:5e3}}});Kv.createRoot(document.getElementById("root")).render(n.jsx(H.StrictMode,{children:n.jsx(Tv,{client:Fg,children:n.jsx(Jg,{})})}));
1260
+ `,zn=[{id:"dashboard",label:"Overview",Component:null,desc:"Governance Overview",icon:Dv},{id:"agents",label:"Specialists",Component:Sy,desc:"13 Governed Specialists",icon:Ls},{id:"hermes",label:"Hermes",Component:zy,desc:"Message Queue Stats",icon:vr},{id:"messages",label:"Audit Trail",Component:Rg,desc:"Hermes Message Queue",icon:gy},{id:"approvals",label:"HITL Gates",Component:Ny,desc:"Human-in-the-Loop Gates",icon:il},{id:"tasks",label:"Tasks",Component:Bg,desc:"Task Planning & DAG",icon:py},{id:"logs",label:"Execution",Component:Ty,desc:"Specialist Execution Logs",icon:by},{id:"quality",label:"Quality",Component:Qg,desc:"Code Quality Analysis",icon:rl},{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:mr},{id:"loop",label:"Loop Detector",Component:wg,desc:"Loop Prevention & Cooldowns",icon:Bn},{id:"license",label:"License",Component:kg,desc:"SPDX & Copyleft Scanner",icon:dy},{id:"telemetry",label:"Telemetry",Component:Gg,desc:"Edge-to-Cloud Streaming",icon:pr},{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:yr},{id:"adapters",label:"Adapters",Component:zg,desc:"Adapter-Skill Mapping",icon:xy},{id:"tokens",label:"Token Econ",Component:Yg,desc:"Token Economy & Cost",icon:Hn}],Xg={};zn.forEach(r=>{Xg[r.id]=r.icon});const Vg=["manager","security","architect","backend","frontend","quality","database","analyst","mobile","native","devops","explorer","git"];function Zg({onNavigate:r}){var le,ie,ve,Ce,F,ge,Ue,qe,ke;const{data:c}=ht("/agents",5e3),{data:d}=ht("/hermes/stats",5e3),{data:u}=ht("/approvals",5e3),{data:m}=ht("/compliance?path=src",1e4),x=Array.isArray(c)?c.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:b}=ht("/audit",1e4),S=((ve=(ie=b==null?void 0:b.stats)==null?void 0:ie.byAction)==null?void 0:ve.MASK_PII)||((F=(Ce=b==null?void 0:b.stats)==null?void 0:Ce.byAction)==null?void 0:F.PII_MASKED)||0,O=((Ue=(ge=b==null?void 0:b.stats)==null?void 0:ge.byAction)==null?void 0:Ue.PII_DETECTED)||0,C=((ke=(qe=b==null?void 0:b.stats)==null?void 0:qe.byCategory)==null?void 0:ke.RESTRICTED)||0,{data:_}=ht("/metrics",1e4),B=(_==null?void 0:_.totalToolCalls)??0,Z=(_==null?void 0:_.totalEstimatedTokens)??0,V=(_==null?void 0:_.totalEstimatedCost)??0,{data:q}=ht("/mcp/sessions",1e4),Q=(q==null?void 0:q.total)??0,{data:G}=ht("/discipline",1e4),P=Object.values(G||{}).reduce((k,Y)=>k+(Y.violations||0),0),ne=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.21"})})]}),n.jsxs("div",{style:{marginBottom:"1.5rem"},children:[n.jsx("h3",{style:{fontSize:"0.8rem",textTransform:"uppercase",color:"var(--color-text-secondary)",letterSpacing:"0.08em",marginBottom:"0.75rem",borderLeft:"3px solid var(--color-accent-primary)",paddingLeft:"8px",fontWeight:700},children:"Active Session & Specialist Status"}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("agents"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ls,{size:18,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:()=>r("hermes"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(vr,{size:18,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:()=>r("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:18,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:()=>r("mcp"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(yr,{size:18,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",{style:{marginBottom:"2rem"},children:[n.jsx("h3",{style:{fontSize:"0.8rem",textTransform:"uppercase",color:"var(--color-text-secondary)",letterSpacing:"0.08em",marginBottom:"0.75rem",borderLeft:"3px solid var(--color-accent-primary)",paddingLeft:"8px",fontWeight:700},children:"AI Policy & Governance Gates"}),n.jsxs("div",{className:"quick-stats-grid",children:[n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("compliance"),children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Ll,{size:18,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:()=>r("privacy"),style:{borderColor:O>0?"var(--color-accent-primary)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(il,{size:18,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:O>0?`${O} PII · ${C} restricted`:"PII masking active"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("discipline"),style:{borderColor:ne?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Bn,{size:18,style:{color:P>0?"var(--color-error)":"var(--color-success)"}}),n.jsx("span",{className:"stat-title",children:"Discipline"})]}),n.jsx("div",{className:"stat-card-value",style:{color:P>0?"var(--color-error)":"var(--color-success)",fontSize:"1.1rem"},children:P>0?`${P} violations`:"All Clean"}),n.jsx("div",{className:"stat-card-desc",children:ne?"Agent(s) in cooldown":"All agents compliant"})]}),n.jsxs("div",{className:"stat-card clickable",onClick:()=>r("tokens"),style:{borderColor:V>.1?"var(--color-warning)":void 0},children:[n.jsxs("div",{className:"stat-card-header",children:[n.jsx(Hn,{size:18,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:"overview-sections-layout",children:[n.jsxs("div",{className:"overview-left-column",children:[n.jsx(Sy,{}),n.jsx(Ny,{})]}),n.jsxs("div",{className:"overview-right-column",children:[n.jsx(zy,{}),n.jsx(Ty,{})]})]})]})}function Jg(){const[r,c]=H.useState("dashboard"),[d,u]=H.useState(!1),[m,x]=H.useState(()=>localStorage.getItem("atabey-theme")||"dark"),[T,j]=H.useState(()=>localStorage.getItem("atabey-auth-token")||""),N=C=>{localStorage.setItem("atabey-auth-token",C),j(C)},h=Bl();H.useEffect(()=>{document.documentElement.classList.remove("theme-dark","theme-light"),document.documentElement.classList.add(`theme-${m}`)},[m]);const b=()=>{const C=m==="dark"?"light":"dark";x(C),localStorage.setItem("atabey-theme",C)},S=zn.find(C=>C.id===r)||zn[0],O=S.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(C=>{const _=C.icon;return n.jsxs("button",{className:`sidebar-btn ${r===C.id?"active":""}`,onClick:()=>{c(C.id),u(!1)},title:C.desc,children:[n.jsx(_,{}),n.jsx("span",{className:"sidebar-label",children:C.label})]},C.id)})}),n.jsxs("div",{className:"sidebar-footer",children:[n.jsxs("div",{className:"ws-indicator",children:[n.jsx("span",{className:"ws-dot",style:{background:h?"var(--color-success)":"var(--color-error)",boxShadow:h?"0 0 6px var(--color-success)":"none"}}),h?"WS Live":"WS Offline"]}),n.jsx("div",{style:{marginTop:6,opacity:.6},children:"Atabey Governance Engine v0.0.21"})]})]}),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(yu,{}):n.jsx(Bv,{})}),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:S.label})]})]}),n.jsxs("div",{className:"main-header-right",children:[n.jsxs("div",{className:"auth-token-input-wrapper",style:{position:"relative"},children:[T?n.jsx(mu,{size:12,style:{position:"absolute",left:"6px",top:"50%",transform:"translateY(-50%)",color:"var(--color-success)"}}):n.jsx(vy,{size:12,style:{position:"absolute",left:"6px",top:"50%",transform:"translateY(-50%)",color:"var(--color-text-muted)"}}),n.jsx("input",{type:"password",placeholder:"MCP Token...",className:"auth-token-input",value:T,onChange:C=>N(C.target.value),title:"Enter MCP_AUTH_TOKEN if configured"})]}),n.jsx("button",{className:"theme-toggle-btn",onClick:b,title:`Switch to ${m==="dark"?"light":"dark"} mode`,style:{marginRight:"0.5rem"},children:m==="dark"?n.jsx(og,{size:16}):n.jsx(Gv,{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(pv,{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(Rv,{size:14})," GitHub"]})]})]}),n.jsx("main",{className:"main-content",children:r==="dashboard"?n.jsx(Zg,{onNavigate:C=>c(C)}):n.jsx("div",{className:"focused-view animate-fade-in",children:O&&n.jsx(O,{})})}),n.jsxs("footer",{className:"main-footer",children:[zn.length-1," Modules Live · Port ",window.location.port||"5858"]})]})]})]})}const Fg=new Sp({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:2,staleTime:5e3}}});Kp.createRoot(document.getElementById("root")).render(n.jsx(H.StrictMode,{children:n.jsx(Tp,{client:Fg,children:n.jsx(Jg,{})})}));