chatroom-cli 1.98.1 → 1.98.2
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.
- package/dist/client/build/assets/index-6IhLktfo.js +115 -0
- package/dist/client/build/assets/index-TiUlJQMc.css +1 -0
- package/dist/client/build/index.html +2 -2
- package/dist/index.js +13012 -12784
- package/dist/index.js.map +79 -75
- package/package.json +1 -1
- package/dist/client/build/assets/index-Bf1pGWwt.js +0 -115
- package/dist/client/build/assets/index-DBieRJaU.css +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var n1=Object.defineProperty;var Ky=n=>{throw TypeError(n)};var i1=(n,i,r)=>i in n?n1(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r;var et=(n,i,r)=>i1(n,typeof i!="symbol"?i+"":i,r),vd=(n,i,r)=>i.has(n)||Ky("Cannot "+r);var z=(n,i,r)=>(vd(n,i,"read from private field"),r?r.call(n):i.get(n)),Te=(n,i,r)=>i.has(n)?Ky("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,r),he=(n,i,r,l)=>(vd(n,i,"write to private field"),l?l.call(n,r):i.set(n,r),r),Ye=(n,i,r)=>(vd(n,i,"access private method"),r);var yc=(n,i,r,l)=>({set _(c){he(n,i,c,r)},get _(){return z(n,i,l)}});function s1(n,i){for(var r=0;r<i.length;r++){const l=i[r];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(l,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function r1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bd={exports:{}},Tl={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Zy;function a1(){if(Zy)return Tl;Zy=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(l,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:n,type:l,key:d,ref:c!==void 0?c:null,props:f}}return Tl.Fragment=i,Tl.jsx=r,Tl.jsxs=r,Tl}var Py;function l1(){return Py||(Py=1,bd.exports=a1()),bd.exports}var _=l1(),Fl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nr,vs,ca,Sb,o1=(Sb=class extends Fl{constructor(){super();Te(this,nr);Te(this,vs);Te(this,ca);he(this,ca,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){z(this,vs)||this.setEventListener(z(this,ca))}onUnsubscribe(){var i;this.hasListeners()||((i=z(this,vs))==null||i.call(this),he(this,vs,void 0))}setEventListener(i){var r;he(this,ca,i),(r=z(this,vs))==null||r.call(this),he(this,vs,i(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(i){z(this,nr)!==i&&(he(this,nr,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof z(this,nr)=="boolean"?z(this,nr):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},nr=new WeakMap,vs=new WeakMap,ca=new WeakMap,Sb),Sh=new o1,c1={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},bs,bh,xb,u1=(xb=class{constructor(){Te(this,bs,c1);Te(this,bh,!1)}setTimeoutProvider(n){he(this,bs,n)}setTimeout(n,i){return z(this,bs).setTimeout(n,i)}clearTimeout(n){z(this,bs).clearTimeout(n)}setInterval(n,i){return z(this,bs).setInterval(n,i)}clearInterval(n){z(this,bs).clearInterval(n)}},bs=new WeakMap,bh=new WeakMap,xb),tr=new u1;function f1(n){setTimeout(n,0)}var d1=typeof window>"u"||"Deno"in globalThis;function bn(){}function h1(n,i){return typeof n=="function"?n(i):n}function Qd(n){return typeof n=="number"&&n>=0&&n!==1/0}function Nb(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Cs(n,i){return typeof n=="function"?n(i):n}function Dn(n,i){return typeof n=="function"?n(i):n}function Iy(n,i){const{type:r="all",exact:l,fetchStatus:c,predicate:f,queryKey:d,stale:m}=n;if(d){if(l){if(i.queryHash!==xh(d,i.options))return!1}else if(!Ea(i.queryKey,d))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||f&&!f(i))}function Jy(n,i){const{exact:r,status:l,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(r){if(zl(i.options.mutationKey)!==zl(f))return!1}else if(!Ea(i.options.mutationKey,f))return!1}return!(l&&i.state.status!==l||c&&!c(i))}function xh(n,i){return((i==null?void 0:i.queryKeyHashFn)||zl)(n)}function zl(n){return JSON.stringify(n,(i,r)=>Fd(r)?Object.keys(r).sort().reduce((l,c)=>(l[c]=r[c],l),{}):r)}function Ea(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(Array.isArray(n)&&Array.isArray(i)){for(let l=0;l<i.length;l++)if(!Ea(n[l],i[l]))return!1;return!0}const r=Object.keys(i);for(const l of r)if(!Ea(n[l],i[l]))return!1;return!0}return!1}var m1=Object.prototype.hasOwnProperty;function Db(n,i,r=0){if(n===i)return n;if(r>500)return i;const l=Wy(n)&&Wy(i);if(!l&&!(Fd(n)&&Fd(i)))return i;const f=(l?n:Object.keys(n)).length,d=l?i:Object.keys(i),m=d.length,g=l?new Array(m):{};let p=0;for(let y=0;y<m;y++){const b=l?y:d[y],S=n[b],x=i[b];if(S===x){g[b]=S,(l?y<f:m1.call(n,b))&&p++;continue}if(S===null||x===null||typeof S!="object"||typeof x!="object"){g[b]=x;continue}const E=Db(S,x,r+1);g[b]=E,E===S&&p++}return f===m&&p===f?n:g}function Xd(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function Wy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Fd(n){if(!$y(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!$y(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function $y(n){return Object.prototype.toString.call(n)==="[object Object]"}function p1(n){return new Promise(i=>{tr.setTimeout(i,n)})}function Kd(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?Db(n,i):i}function g1(n,i,r=0){const l=[...n,i];return r&&l.length>r?l.slice(1):l}function y1(n,i,r=0){const l=[i,...n];return r&&l.length>r?l.slice(0,-1):l}var Eh=Symbol();function zb(n,i){return!n.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!n.queryFn||n.queryFn===Eh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function kb(n,i){return typeof n=="function"?n(...i):!!n}function v1(n,i,r){let l=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??(c=i()),l||(l=!0,c.aborted?r():c.addEventListener("abort",r,{once:!0})),c)}),n}var kl=(()=>{let n=()=>d1;return{isServer(){return n()},setIsServer(i){n=i}}})();function Zd(){let n,i;const r=new Promise((c,f)=>{n=c,i=f});r.status="pending",r.catch(()=>{});function l(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{l({status:"fulfilled",value:c}),n(c)},r.reject=c=>{l({status:"rejected",reason:c}),i(c)},r}var b1=f1;function S1(){let n=[],i=0,r=m=>{m()},l=m=>{m()},c=b1;const f=m=>{i?n.push(m):c(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&c(()=>{l(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||d()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{c=m}}}var It=S1(),ua,Ss,fa,Eb,x1=(Eb=class extends Fl{constructor(){super();Te(this,ua,!0);Te(this,Ss);Te(this,fa);he(this,fa,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i(!0),l=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",l)}}})}onSubscribe(){z(this,Ss)||this.setEventListener(z(this,fa))}onUnsubscribe(){var i;this.hasListeners()||((i=z(this,Ss))==null||i.call(this),he(this,Ss,void 0))}setEventListener(i){var r;he(this,fa,i),(r=z(this,Ss))==null||r.call(this),he(this,Ss,i(this.setOnline.bind(this)))}setOnline(i){z(this,ua)!==i&&(he(this,ua,i),this.listeners.forEach(l=>{l(i)}))}isOnline(){return z(this,ua)}},ua=new WeakMap,Ss=new WeakMap,fa=new WeakMap,Eb),Hc=new x1;function E1(n){return Math.min(1e3*2**n,3e4)}function jb(n){return(n??"online")==="online"?Hc.isOnline():!0}var Pd=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Ub(n){let i=!1,r=0,l;const c=Zd(),f=()=>c.status!=="pending",d=w=>{var C;if(!f()){const N=new Pd(w);S(N),(C=n.onCancel)==null||C.call(n,N)}},m=()=>{i=!0},g=()=>{i=!1},p=()=>Sh.isFocused()&&(n.networkMode==="always"||Hc.isOnline())&&n.canRun(),y=()=>jb(n.networkMode)&&n.canRun(),b=w=>{f()||(l==null||l(),c.resolve(w))},S=w=>{f()||(l==null||l(),c.reject(w))},x=()=>new Promise(w=>{var C;l=N=>{(f()||p())&&w(N)},(C=n.onPause)==null||C.call(n)}).then(()=>{var w;l=void 0,f()||(w=n.onContinue)==null||w.call(n)}),E=()=>{if(f())return;let w;const C=r===0?n.initialPromise:void 0;try{w=C??n.fn()}catch(N){w=Promise.reject(N)}Promise.resolve(w).then(b).catch(N=>{var X;if(f())return;const M=n.retry??(kl.isServer()?0:3),U=n.retryDelay??E1,A=typeof U=="function"?U(r,N):U,Z=M===!0||typeof M=="number"&&r<M||typeof M=="function"&&M(r,N);if(i||!Z){S(N);return}r++,(X=n.onFail)==null||X.call(n,r,N),p1(A).then(()=>p()?void 0:x()).then(()=>{i?S(N):E()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(l==null||l(),c),cancelRetry:m,continueRetry:g,canStart:y,start:()=>(y()?E():x().then(E),c)}}var ir,Tb,Lb=(Tb=class{constructor(){Te(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qd(this.gcTime)&&he(this,ir,tr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(kl.isServer()?1/0:5*60*1e3))}clearGcTimeout(){z(this,ir)!==void 0&&(tr.clearTimeout(z(this,ir)),he(this,ir,void 0))}},ir=new WeakMap,Tb);function T1(n){return{onFetch:(i,r)=>{var y,b,S,x,E;const l=i.options,c=(S=(b=(y=i.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:S.direction,f=((x=i.state.data)==null?void 0:x.pages)||[],d=((E=i.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let w=!1;const C=U=>{v1(U,()=>i.signal,()=>w=!0)},N=zb(i.options,i.fetchOptions),M=async(U,A,Z)=>{if(w)return Promise.reject(i.signal.reason);if(A==null&&U.pages.length)return Promise.resolve(U);const q=(()=>{const fe={client:i.client,queryKey:i.queryKey,pageParam:A,direction:Z?"backward":"forward",meta:i.options.meta};return C(fe),fe})(),j=await N(q),{maxPages:F}=i.options,re=Z?y1:g1;return{pages:re(U.pages,j,F),pageParams:re(U.pageParams,A,F)}};if(c&&f.length){const U=c==="backward",A=U?w1:ev,Z={pages:f,pageParams:d},X=A(l,Z);m=await M(Z,X,U)}else{const U=n??f.length;do{const A=g===0?d[0]??l.initialPageParam:ev(l,m);if(g>0&&A==null)break;m=await M(m,A),g++}while(g<U)}return m};i.options.persister?i.fetchFn=()=>{var w,C;return(C=(w=i.options).persister)==null?void 0:C.call(w,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=p}}}function ev(n,{pages:i,pageParams:r}){const l=i.length-1;return i.length>0?n.getNextPageParam(i[l],i,r[l],r):void 0}function w1(n,{pages:i,pageParams:r}){var l;return i.length>0?(l=n.getPreviousPageParam)==null?void 0:l.call(n,i[0],i,r[0],r):void 0}var da,sr,ha,Xn,rr,Gt,Yl,ar,Nn,Bb,ji,wb,R1=(wb=class extends Lb{constructor(i){super();Te(this,Nn);Te(this,da);Te(this,sr);Te(this,ha);Te(this,Xn);Te(this,rr);Te(this,Gt);Te(this,Yl);Te(this,ar);he(this,ar,!1),he(this,Yl,i.defaultOptions),this.setOptions(i.options),this.observers=[],he(this,rr,i.client),he(this,Xn,z(this,rr).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,he(this,sr,nv(this.options)),this.state=i.state??z(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return z(this,da)}get promise(){var i;return(i=z(this,Gt))==null?void 0:i.promise}setOptions(i){if(this.options={...z(this,Yl),...i},i!=null&&i._type&&he(this,da,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=nv(this.options);r.data!==void 0&&(this.setState(tv(r.data,r.dataUpdatedAt)),he(this,sr,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,Xn).remove(this)}setData(i,r){const l=Kd(this.state.data,i,this.options);return Ye(this,Nn,ji).call(this,{data:l,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),l}setState(i){Ye(this,Nn,ji).call(this,{type:"setState",state:i})}cancel(i){var l,c;const r=(l=z(this,Gt))==null?void 0:l.promise;return(c=z(this,Gt))==null||c.cancel(i),r?r.then(bn).catch(bn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return z(this,sr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Dn(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Eh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Cs(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Nb(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(l=>l.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=z(this,Gt))==null||r.continue()}onOnline(){var r;const i=this.observers.find(l=>l.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=z(this,Gt))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),z(this,Xn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(z(this,Gt)&&(z(this,ar)||Ye(this,Nn,Bb).call(this)?z(this,Gt).cancel({revert:!0}):z(this,Gt).cancelRetry()),this.scheduleGc()),z(this,Xn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ye(this,Nn,ji).call(this,{type:"invalidate"})}async fetch(i,r){var p,y,b,S,x,E,w,C,N,M,U;if(this.state.fetchStatus!=="idle"&&((p=z(this,Gt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(z(this,Gt))return z(this,Gt).continueRetry(),z(this,Gt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const A=this.observers.find(Z=>Z.options.queryFn);A&&this.setOptions(A.options)}const l=new AbortController,c=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(he(this,ar,!0),l.signal)})},f=()=>{const A=zb(this.options,r),X=(()=>{const q={client:z(this,rr),queryKey:this.queryKey,meta:this.meta};return c(q),q})();return he(this,ar,!1),this.options.persister?this.options.persister(A,X,this):A(X)},m=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:z(this,rr),state:this.state,fetchFn:f};return c(A),A})(),g=z(this,da)==="infinite"?T1(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),he(this,ha,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=m.fetchOptions)==null?void 0:y.meta))&&Ye(this,Nn,ji).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),he(this,Gt,Ub({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:A=>{A instanceof Pd&&A.revert&&this.setState({...z(this,ha),fetchStatus:"idle"}),l.abort()},onFail:(A,Z)=>{Ye(this,Nn,ji).call(this,{type:"failed",failureCount:A,error:Z})},onPause:()=>{Ye(this,Nn,ji).call(this,{type:"pause"})},onContinue:()=>{Ye(this,Nn,ji).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const A=await z(this,Gt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(x=(S=z(this,Xn).config).onSuccess)==null||x.call(S,A,this),(w=(E=z(this,Xn).config).onSettled)==null||w.call(E,A,this.state.error,this),A}catch(A){if(A instanceof Pd){if(A.silent)return z(this,Gt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Ye(this,Nn,ji).call(this,{type:"error",error:A}),(N=(C=z(this,Xn).config).onError)==null||N.call(C,A,this),(U=(M=z(this,Xn).config).onSettled)==null||U.call(M,this.state.data,A,this),A}finally{this.scheduleGc()}}},da=new WeakMap,sr=new WeakMap,ha=new WeakMap,Xn=new WeakMap,rr=new WeakMap,Gt=new WeakMap,Yl=new WeakMap,ar=new WeakMap,Nn=new WeakSet,Bb=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ji=function(i){const r=l=>{switch(i.type){case"failed":return{...l,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Hb(l.data,this.options),fetchMeta:i.meta??null};case"success":const c={...l,...tv(i.data,i.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return he(this,ha,i.manual?c:void 0),c;case"error":const f=i.error;return{...l,error:f,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...i.state}}};this.state=r(this.state),It.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),z(this,Xn).notify({query:this,type:"updated",action:i})})},wb);function Hb(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jb(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function tv(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nv(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,l=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var vn,Qe,Vl,ln,lr,ma,Bi,xs,Gl,pa,ga,or,cr,Es,ya,tt,_l,Id,Jd,Wd,$d,eh,th,nh,qb,Rb,O1=(Rb=class extends Fl{constructor(i,r){super();Te(this,tt);Te(this,vn);Te(this,Qe);Te(this,Vl);Te(this,ln);Te(this,lr);Te(this,ma);Te(this,Bi);Te(this,xs);Te(this,Gl);Te(this,pa);Te(this,ga);Te(this,or);Te(this,cr);Te(this,Es);Te(this,ya,new Set);this.options=r,he(this,vn,i),he(this,xs,null),he(this,Bi,Zd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(z(this,Qe).addObserver(this),iv(z(this,Qe),this.options)?Ye(this,tt,_l).call(this):this.updateResult(),Ye(this,tt,$d).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ih(z(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ih(z(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ye(this,tt,eh).call(this),Ye(this,tt,th).call(this),z(this,Qe).removeObserver(this)}setOptions(i){const r=this.options,l=z(this,Qe);if(this.options=z(this,vn).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,z(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ye(this,tt,nh).call(this),z(this,Qe).setOptions(this.options),r._defaulted&&!Xd(this.options,r)&&z(this,vn).getQueryCache().notify({type:"observerOptionsUpdated",query:z(this,Qe),observer:this});const c=this.hasListeners();c&&sv(z(this,Qe),l,this.options,r)&&Ye(this,tt,_l).call(this),this.updateResult(),c&&(z(this,Qe)!==l||Dn(this.options.enabled,z(this,Qe))!==Dn(r.enabled,z(this,Qe))||Cs(this.options.staleTime,z(this,Qe))!==Cs(r.staleTime,z(this,Qe)))&&Ye(this,tt,Id).call(this);const f=Ye(this,tt,Jd).call(this);c&&(z(this,Qe)!==l||Dn(this.options.enabled,z(this,Qe))!==Dn(r.enabled,z(this,Qe))||f!==z(this,Es))&&Ye(this,tt,Wd).call(this,f)}getOptimisticResult(i){const r=z(this,vn).getQueryCache().build(z(this,vn),i),l=this.createResult(r,i);return A1(this,l)&&(he(this,ln,l),he(this,ma,this.options),he(this,lr,z(this,Qe).state)),l}getCurrentResult(){return z(this,ln)}trackResult(i,r){return new Proxy(i,{get:(l,c)=>(this.trackProp(c),r==null||r(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&z(this,Bi).status==="pending"&&z(this,Bi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(i){z(this,ya).add(i)}getCurrentQuery(){return z(this,Qe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=z(this,vn).defaultQueryOptions(i),l=z(this,vn).getQueryCache().build(z(this,vn),r);return l.fetch().then(()=>this.createResult(l,r))}fetch(i){return Ye(this,tt,_l).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),z(this,ln)))}createResult(i,r){var F;const l=z(this,Qe),c=this.options,f=z(this,ln),d=z(this,lr),m=z(this,ma),p=i!==l?i.state:z(this,Vl),{state:y}=i;let b={...y},S=!1,x;if(r._optimisticResults){const re=this.hasListeners(),fe=!re&&iv(i,r),se=re&&sv(i,l,r,c);(fe||se)&&(b={...b,...Hb(y.data,i.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:w,status:C}=b;x=b.data;let N=!1;if(r.placeholderData!==void 0&&x===void 0&&C==="pending"){let re;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(re=f.data,N=!0):re=typeof r.placeholderData=="function"?r.placeholderData((F=z(this,ga))==null?void 0:F.state.data,z(this,ga)):r.placeholderData,re!==void 0&&(C="success",x=Kd(f==null?void 0:f.data,re,r),S=!0)}if(r.select&&x!==void 0&&!N)if(f&&x===(d==null?void 0:d.data)&&r.select===z(this,Gl))x=z(this,pa);else try{he(this,Gl,r.select),x=r.select(x),x=Kd(f==null?void 0:f.data,x,r),he(this,pa,x),he(this,xs,null)}catch(re){he(this,xs,re)}z(this,xs)&&(E=z(this,xs),x=z(this,pa),w=Date.now(),C="error");const M=b.fetchStatus==="fetching",U=C==="pending",A=C==="error",Z=U&&M,X=x!==void 0,j={status:C,fetchStatus:b.fetchStatus,isPending:U,isSuccess:C==="success",isError:A,isInitialLoading:Z,isLoading:Z,data:x,dataUpdatedAt:b.dataUpdatedAt,error:E,errorUpdatedAt:w,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:M,isRefetching:M&&!U,isLoadingError:A&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:A&&X,isStale:Th(i,r),refetch:this.refetch,promise:z(this,Bi),isEnabled:Dn(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const re=j.data!==void 0,fe=j.status==="error"&&!re,se=ne=>{fe?ne.reject(j.error):re&&ne.resolve(j.data)},J=()=>{const ne=he(this,Bi,j.promise=Zd());se(ne)},oe=z(this,Bi);switch(oe.status){case"pending":i.queryHash===l.queryHash&&se(oe);break;case"fulfilled":(fe||j.data!==oe.value)&&J();break;case"rejected":(!fe||j.error!==oe.reason)&&J();break}}return j}updateResult(){const i=z(this,ln),r=this.createResult(z(this,Qe),this.options);if(he(this,lr,z(this,Qe).state),he(this,ma,this.options),z(this,lr).data!==void 0&&he(this,ga,z(this,Qe)),Xd(r,i))return;he(this,ln,r);const l=()=>{if(!i)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!z(this,ya).size)return!0;const d=new Set(f??z(this,ya));return this.options.throwOnError&&d.add("error"),Object.keys(z(this,ln)).some(m=>{const g=m;return z(this,ln)[g]!==i[g]&&d.has(g)})};Ye(this,tt,qb).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ye(this,tt,$d).call(this)}},vn=new WeakMap,Qe=new WeakMap,Vl=new WeakMap,ln=new WeakMap,lr=new WeakMap,ma=new WeakMap,Bi=new WeakMap,xs=new WeakMap,Gl=new WeakMap,pa=new WeakMap,ga=new WeakMap,or=new WeakMap,cr=new WeakMap,Es=new WeakMap,ya=new WeakMap,tt=new WeakSet,_l=function(i){Ye(this,tt,nh).call(this);let r=z(this,Qe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(bn)),r},Id=function(){Ye(this,tt,eh).call(this);const i=Cs(this.options.staleTime,z(this,Qe));if(kl.isServer()||z(this,ln).isStale||!Qd(i))return;const l=Nb(z(this,ln).dataUpdatedAt,i)+1;he(this,or,tr.setTimeout(()=>{z(this,ln).isStale||this.updateResult()},l))},Jd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(z(this,Qe)):this.options.refetchInterval)??!1},Wd=function(i){Ye(this,tt,th).call(this),he(this,Es,i),!(kl.isServer()||Dn(this.options.enabled,z(this,Qe))===!1||!Qd(z(this,Es))||z(this,Es)===0)&&he(this,cr,tr.setInterval(()=>{(this.options.refetchIntervalInBackground||Sh.isFocused())&&Ye(this,tt,_l).call(this)},z(this,Es)))},$d=function(){Ye(this,tt,Id).call(this),Ye(this,tt,Wd).call(this,Ye(this,tt,Jd).call(this))},eh=function(){z(this,or)!==void 0&&(tr.clearTimeout(z(this,or)),he(this,or,void 0))},th=function(){z(this,cr)!==void 0&&(tr.clearInterval(z(this,cr)),he(this,cr,void 0))},nh=function(){const i=z(this,vn).getQueryCache().build(z(this,vn),this.options);if(i===z(this,Qe))return;const r=z(this,Qe);he(this,Qe,i),he(this,Vl,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},qb=function(i){It.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(z(this,ln))}),z(this,vn).getQueryCache().notify({query:z(this,Qe),type:"observerResultsUpdated"})})},Rb);function C1(n,i){return Dn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Dn(i.retryOnMount,n)===!1)}function iv(n,i){return C1(n,i)||n.state.data!==void 0&&ih(n,i,i.refetchOnMount)}function ih(n,i,r){if(Dn(i.enabled,n)!==!1&&Cs(i.staleTime,n)!=="static"){const l=typeof r=="function"?r(n):r;return l==="always"||l!==!1&&Th(n,i)}return!1}function sv(n,i,r,l){return(n!==i||Dn(l.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Th(n,r)}function Th(n,i){return Dn(i.enabled,n)!==!1&&n.isStaleByTime(Cs(i.staleTime,n))}function A1(n,i){return!Xd(n.getCurrentResult(),i)}var Ql,ci,tn,ur,ui,ys,Ob,_1=(Ob=class extends Lb{constructor(i){super();Te(this,ui);Te(this,Ql);Te(this,ci);Te(this,tn);Te(this,ur);he(this,Ql,i.client),this.mutationId=i.mutationId,he(this,tn,i.mutationCache),he(this,ci,[]),this.state=i.state||M1(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){z(this,ci).includes(i)||(z(this,ci).push(i),this.clearGcTimeout(),z(this,tn).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){he(this,ci,z(this,ci).filter(r=>r!==i)),this.scheduleGc(),z(this,tn).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){z(this,ci).length||(this.state.status==="pending"?this.scheduleGc():z(this,tn).remove(this))}continue(){var i;return((i=z(this,ur))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var d,m,g,p,y,b,S,x,E,w,C,N,M,U,A,Z,X,q;const r=()=>{Ye(this,ui,ys).call(this,{type:"continue"})},l={client:z(this,Ql),meta:this.options.meta,mutationKey:this.options.mutationKey};he(this,ur,Ub({fn:()=>this.options.mutationFn?this.options.mutationFn(i,l):Promise.reject(new Error("No mutationFn found")),onFail:(j,F)=>{Ye(this,ui,ys).call(this,{type:"failed",failureCount:j,error:F})},onPause:()=>{Ye(this,ui,ys).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,tn).canRun(this)}));const c=this.state.status==="pending",f=!z(this,ur).canStart();try{if(c)r();else{Ye(this,ui,ys).call(this,{type:"pending",variables:i,isPaused:f}),z(this,tn).config.onMutate&&await z(this,tn).config.onMutate(i,this,l);const F=await((m=(d=this.options).onMutate)==null?void 0:m.call(d,i,l));F!==this.state.context&&Ye(this,ui,ys).call(this,{type:"pending",context:F,variables:i,isPaused:f})}const j=await z(this,ur).start();return await((p=(g=z(this,tn).config).onSuccess)==null?void 0:p.call(g,j,i,this.state.context,this,l)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,j,i,this.state.context,l)),await((x=(S=z(this,tn).config).onSettled)==null?void 0:x.call(S,j,null,this.state.variables,this.state.context,this,l)),await((w=(E=this.options).onSettled)==null?void 0:w.call(E,j,null,i,this.state.context,l)),Ye(this,ui,ys).call(this,{type:"success",data:j}),j}catch(j){try{await((N=(C=z(this,tn).config).onError)==null?void 0:N.call(C,j,i,this.state.context,this,l))}catch(F){Promise.reject(F)}try{await((U=(M=this.options).onError)==null?void 0:U.call(M,j,i,this.state.context,l))}catch(F){Promise.reject(F)}try{await((Z=(A=z(this,tn).config).onSettled)==null?void 0:Z.call(A,void 0,j,this.state.variables,this.state.context,this,l))}catch(F){Promise.reject(F)}try{await((q=(X=this.options).onSettled)==null?void 0:q.call(X,void 0,j,i,this.state.context,l))}catch(F){Promise.reject(F)}throw Ye(this,ui,ys).call(this,{type:"error",error:j}),j}finally{z(this,tn).runNext(this)}}},Ql=new WeakMap,ci=new WeakMap,tn=new WeakMap,ur=new WeakMap,ui=new WeakSet,ys=function(i){const r=l=>{switch(i.type){case"failed":return{...l,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...l,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:i.error,failureCount:l.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),It.batch(()=>{z(this,ci).forEach(l=>{l.onMutationUpdate(i)}),z(this,tn).notify({mutation:this,type:"updated",action:i})})},Ob);function M1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hi,Jn,Xl,Cb,N1=(Cb=class extends Fl{constructor(i={}){super();Te(this,Hi);Te(this,Jn);Te(this,Xl);this.config=i,he(this,Hi,new Set),he(this,Jn,new Map),he(this,Xl,0)}build(i,r,l){const c=new _1({client:i,mutationCache:this,mutationId:++yc(this,Xl)._,options:i.defaultMutationOptions(r),state:l});return this.add(c),c}add(i){z(this,Hi).add(i);const r=vc(i);if(typeof r=="string"){const l=z(this,Jn).get(r);l?l.push(i):z(this,Jn).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(z(this,Hi).delete(i)){const r=vc(i);if(typeof r=="string"){const l=z(this,Jn).get(r);if(l)if(l.length>1){const c=l.indexOf(i);c!==-1&&l.splice(c,1)}else l[0]===i&&z(this,Jn).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=vc(i);if(typeof r=="string"){const l=z(this,Jn).get(r),c=l==null?void 0:l.find(f=>f.state.status==="pending");return!c||c===i}else return!0}runNext(i){var l;const r=vc(i);if(typeof r=="string"){const c=(l=z(this,Jn).get(r))==null?void 0:l.find(f=>f!==i&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){It.batch(()=>{z(this,Hi).forEach(i=>{this.notify({type:"removed",mutation:i})}),z(this,Hi).clear(),z(this,Jn).clear()})}getAll(){return Array.from(z(this,Hi))}find(i){const r={exact:!0,...i};return this.getAll().find(l=>Jy(r,l))}findAll(i={}){return this.getAll().filter(r=>Jy(i,r))}notify(i){It.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return It.batch(()=>Promise.all(i.map(r=>r.continue().catch(bn))))}},Hi=new WeakMap,Jn=new WeakMap,Xl=new WeakMap,Cb);function vc(n){var i;return(i=n.options.scope)==null?void 0:i.id}var fi,Ab,D1=(Ab=class extends Fl{constructor(i={}){super();Te(this,fi);this.config=i,he(this,fi,new Map)}build(i,r,l){const c=r.queryKey,f=r.queryHash??xh(c,r);let d=this.get(f);return d||(d=new R1({client:i,queryKey:c,queryHash:f,options:i.defaultQueryOptions(r),state:l,defaultOptions:i.getQueryDefaults(c)}),this.add(d)),d}add(i){z(this,fi).has(i.queryHash)||(z(this,fi).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=z(this,fi).get(i.queryHash);r&&(i.destroy(),r===i&&z(this,fi).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){It.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return z(this,fi).get(i)}getAll(){return[...z(this,fi).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(l=>Iy(r,l))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(l=>Iy(i,l)):r}notify(i){It.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){It.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){It.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},fi=new WeakMap,Ab),Tt,Ts,ws,va,ba,Rs,Sa,xa,_b,z1=(_b=class{constructor(n={}){Te(this,Tt);Te(this,Ts);Te(this,ws);Te(this,va);Te(this,ba);Te(this,Rs);Te(this,Sa);Te(this,xa);he(this,Tt,n.queryCache||new D1),he(this,Ts,n.mutationCache||new N1),he(this,ws,n.defaultOptions||{}),he(this,va,new Map),he(this,ba,new Map),he(this,Rs,0)}mount(){yc(this,Rs)._++,z(this,Rs)===1&&(he(this,Sa,Sh.subscribe(async n=>{n&&(await this.resumePausedMutations(),z(this,Tt).onFocus())})),he(this,xa,Hc.subscribe(async n=>{n&&(await this.resumePausedMutations(),z(this,Tt).onOnline())})))}unmount(){var n,i;yc(this,Rs)._--,z(this,Rs)===0&&((n=z(this,Sa))==null||n.call(this),he(this,Sa,void 0),(i=z(this,xa))==null||i.call(this),he(this,xa,void 0))}isFetching(n){return z(this,Tt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return z(this,Ts).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=z(this,Tt).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=z(this,Tt).build(this,i),l=r.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Cs(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(l))}getQueriesData(n){return z(this,Tt).findAll(n).map(({queryKey:i,state:r})=>{const l=r.data;return[i,l]})}setQueryData(n,i,r){const l=this.defaultQueryOptions({queryKey:n}),c=z(this,Tt).get(l.queryHash),f=c==null?void 0:c.state.data,d=h1(i,f);if(d!==void 0)return z(this,Tt).build(this,l).setData(d,{...r,manual:!0})}setQueriesData(n,i,r){return It.batch(()=>z(this,Tt).findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,i,r)]))}getQueryState(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=z(this,Tt).get(i.queryHash))==null?void 0:r.state}removeQueries(n){const i=z(this,Tt);It.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=z(this,Tt);return It.batch(()=>(r.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},l=It.batch(()=>z(this,Tt).findAll(n).map(c=>c.cancel(r)));return Promise.all(l).then(bn).catch(bn)}invalidateQueries(n,i={}){return It.batch(()=>(z(this,Tt).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},l=It.batch(()=>z(this,Tt).findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(bn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(bn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=z(this,Tt).build(this,i);return r.isStaleByTime(Cs(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(bn).catch(bn)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(bn).catch(bn)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Hc.isOnline()?z(this,Ts).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,Tt)}getMutationCache(){return z(this,Ts)}getDefaultOptions(){return z(this,ws)}setDefaultOptions(n){he(this,ws,n)}setQueryDefaults(n,i){z(this,va).set(zl(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...z(this,va).values()],r={};return i.forEach(l=>{Ea(n,l.queryKey)&&Object.assign(r,l.defaultOptions)}),r}setMutationDefaults(n,i){z(this,ba).set(zl(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...z(this,ba).values()],r={};return i.forEach(l=>{Ea(n,l.mutationKey)&&Object.assign(r,l.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...z(this,ws).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=xh(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Eh&&(i.enabled=!1),i}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...z(this,ws).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){z(this,Tt).clear(),z(this,Ts).clear()}},Tt=new WeakMap,Ts=new WeakMap,ws=new WeakMap,va=new WeakMap,ba=new WeakMap,Rs=new WeakMap,Sa=new WeakMap,xa=new WeakMap,_b),Sd={exports:{}},Ce={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var rv;function k1(){if(rv)return Ce;rv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function N(T,B,te){this.props=T,this.context=B,this.refs=C,this.updater=te||E}N.prototype.isReactComponent={},N.prototype.setState=function(T,B){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,B,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function M(){}M.prototype=N.prototype;function U(T,B,te){this.props=T,this.context=B,this.refs=C,this.updater=te||E}var A=U.prototype=new M;A.constructor=U,w(A,N.prototype),A.isPureReactComponent=!0;var Z=Array.isArray;function X(){}var q={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function F(T,B,te){var ie=te.ref;return{$$typeof:n,type:T,key:B,ref:ie!==void 0?ie:null,props:te}}function re(T,B){return F(T.type,B,T.props)}function fe(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function se(T){var B={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(te){return B[te]})}var J=/\/+/g;function oe(T,B){return typeof T=="object"&&T!==null&&T.key!=null?se(""+T.key):B.toString(36)}function ne(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(X,X):(T.status="pending",T.then(function(B){T.status==="pending"&&(T.status="fulfilled",T.value=B)},function(B){T.status==="pending"&&(T.status="rejected",T.reason=B)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function k(T,B,te,ie,ae){var ee=typeof T;(ee==="undefined"||ee==="boolean")&&(T=null);var ge=!1;if(T===null)ge=!0;else switch(ee){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(T.$$typeof){case n:case i:ge=!0;break;case y:return ge=T._init,k(ge(T._payload),B,te,ie,ae)}}if(ge)return ae=ae(T),ge=ie===""?"."+oe(T,0):ie,Z(ae)?(te="",ge!=null&&(te=ge.replace(J,"$&/")+"/"),k(ae,B,te,"",function(Ze){return Ze})):ae!=null&&(fe(ae)&&(ae=re(ae,te+(ae.key==null||T&&T.key===ae.key?"":(""+ae.key).replace(J,"$&/")+"/")+ge)),B.push(ae)),1;ge=0;var ce=ie===""?".":ie+":";if(Z(T))for(var de=0;de<T.length;de++)ie=T[de],ee=ce+oe(ie,de),ge+=k(ie,B,te,ee,ae);else if(de=x(T),typeof de=="function")for(T=de.call(T),de=0;!(ie=T.next()).done;)ie=ie.value,ee=ce+oe(ie,de++),ge+=k(ie,B,te,ee,ae);else if(ee==="object"){if(typeof T.then=="function")return k(ne(T),B,te,ie,ae);throw B=String(T),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ge}function G(T,B,te){if(T==null)return T;var ie=[],ae=0;return k(T,ie,"","",function(ee){return B.call(te,ee,ae++)}),ie}function I(T){if(T._status===-1){var B=T._result;B=B(),B.then(function(te){(T._status===0||T._status===-1)&&(T._status=1,T._result=te)},function(te){(T._status===0||T._status===-1)&&(T._status=2,T._result=te)}),T._status===-1&&(T._status=0,T._result=B)}if(T._status===1)return T._result.default;throw T._result}var le=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},H={map:G,forEach:function(T,B,te){G(T,function(){B.apply(this,arguments)},te)},count:function(T){var B=0;return G(T,function(){B++}),B},toArray:function(T){return G(T,function(B){return B})||[]},only:function(T){if(!fe(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ce.Activity=b,Ce.Children=H,Ce.Component=N,Ce.Fragment=r,Ce.Profiler=c,Ce.PureComponent=U,Ce.StrictMode=l,Ce.Suspense=g,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return q.H.useMemoCache(T)}},Ce.cache=function(T){return function(){return T.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(T,B,te){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ie=w({},T.props),ae=T.key;if(B!=null)for(ee in B.key!==void 0&&(ae=""+B.key),B)!j.call(B,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&B.ref===void 0||(ie[ee]=B[ee]);var ee=arguments.length-2;if(ee===1)ie.children=te;else if(1<ee){for(var ge=Array(ee),ce=0;ce<ee;ce++)ge[ce]=arguments[ce+2];ie.children=ge}return F(T.type,ae,ie)},Ce.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Ce.createElement=function(T,B,te){var ie,ae={},ee=null;if(B!=null)for(ie in B.key!==void 0&&(ee=""+B.key),B)j.call(B,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ae[ie]=B[ie]);var ge=arguments.length-2;if(ge===1)ae.children=te;else if(1<ge){for(var ce=Array(ge),de=0;de<ge;de++)ce[de]=arguments[de+2];ae.children=ce}if(T&&T.defaultProps)for(ie in ge=T.defaultProps,ge)ae[ie]===void 0&&(ae[ie]=ge[ie]);return F(T,ee,ae)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(T){return{$$typeof:m,render:T}},Ce.isValidElement=fe,Ce.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:I}},Ce.memo=function(T,B){return{$$typeof:p,type:T,compare:B===void 0?null:B}},Ce.startTransition=function(T){var B=q.T,te={};q.T=te;try{var ie=T(),ae=q.S;ae!==null&&ae(te,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(X,le)}catch(ee){le(ee)}finally{B!==null&&te.types!==null&&(B.types=te.types),q.T=B}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(T){return q.H.use(T)},Ce.useActionState=function(T,B,te){return q.H.useActionState(T,B,te)},Ce.useCallback=function(T,B){return q.H.useCallback(T,B)},Ce.useContext=function(T){return q.H.useContext(T)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(T,B){return q.H.useDeferredValue(T,B)},Ce.useEffect=function(T,B){return q.H.useEffect(T,B)},Ce.useEffectEvent=function(T){return q.H.useEffectEvent(T)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(T,B,te){return q.H.useImperativeHandle(T,B,te)},Ce.useInsertionEffect=function(T,B){return q.H.useInsertionEffect(T,B)},Ce.useLayoutEffect=function(T,B){return q.H.useLayoutEffect(T,B)},Ce.useMemo=function(T,B){return q.H.useMemo(T,B)},Ce.useOptimistic=function(T,B){return q.H.useOptimistic(T,B)},Ce.useReducer=function(T,B,te){return q.H.useReducer(T,B,te)},Ce.useRef=function(T){return q.H.useRef(T)},Ce.useState=function(T){return q.H.useState(T)},Ce.useSyncExternalStore=function(T,B,te){return q.H.useSyncExternalStore(T,B,te)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.7",Ce}var av;function Kl(){return av||(av=1,Sd.exports=k1()),Sd.exports}var O=Kl();const j1=r1(O),U1=s1({__proto__:null,default:j1},[O]);var Yb=O.createContext(void 0),L1=n=>{const i=O.useContext(Yb);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},B1=({client:n,children:i})=>(O.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),_.jsx(Yb.Provider,{value:n,children:i})),Vb=O.createContext(!1),H1=()=>O.useContext(Vb);Vb.Provider;function q1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Y1=O.createContext(q1()),V1=()=>O.useContext(Y1),G1=(n,i,r)=>{const l=r!=null&&r.state.error&&typeof n.throwOnError=="function"?kb(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(i.isReset()||(n.retryOnMount=!1))},Q1=n=>{O.useEffect(()=>{n.clearReset()},[n])},X1=({result:n,errorResetBoundary:i,throwOnError:r,query:l,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&l&&(c&&n.data===void 0||kb(r,[n.error,l])),F1=n=>{if(n.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...c)=>r(l(...c)):r(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},K1=(n,i)=>n.isLoading&&n.isFetching&&!i,Z1=(n,i)=>(n==null?void 0:n.suspense)&&i.isPending,lv=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function P1(n,i,r){var x,E,w,C;const l=H1(),c=V1(),f=L1(),d=f.defaultQueryOptions(n);(E=(x=f.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||E.call(x,d);const m=f.getQueryCache().get(d.queryHash),g=n.subscribed!==!1;d._optimisticResults=l?"isRestoring":g?"optimistic":void 0,F1(d),G1(d,c,m),Q1(c);const p=!f.getQueryCache().get(d.queryHash),[y]=O.useState(()=>new i(f,d)),b=y.getOptimisticResult(d),S=!l&&g;if(O.useSyncExternalStore(O.useCallback(N=>{const M=S?y.subscribe(It.batchCalls(N)):bn;return y.updateResult(),M},[y,S]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),O.useEffect(()=>{y.setOptions(d)},[d,y]),Z1(d,b))throw lv(d,y,c);if(X1({result:b,errorResetBoundary:c,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw b.error;if((C=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||C.call(w,d,b),d.experimental_prefetchInRender&&!kl.isServer()&&K1(b,l)){const N=p?lv(d,y,c):m==null?void 0:m.promise;N==null||N.catch(bn).finally(()=>{y.updateResult()})}return d.notifyOnChangeProps?b:y.trackResult(b)}function Gb(n,i){return P1(n,O1)}var xd={exports:{}},wl={},Ed={exports:{}},Td={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ov;function I1(){return ov||(ov=1,function(n){function i(k,G){var I=k.length;k.push(G);e:for(;0<I;){var le=I-1>>>1,H=k[le];if(0<c(H,G))k[le]=G,k[I]=H,I=le;else break e}}function r(k){return k.length===0?null:k[0]}function l(k){if(k.length===0)return null;var G=k[0],I=k.pop();if(I!==G){k[0]=I;e:for(var le=0,H=k.length,T=H>>>1;le<T;){var B=2*(le+1)-1,te=k[B],ie=B+1,ae=k[ie];if(0>c(te,I))ie<H&&0>c(ae,te)?(k[le]=ae,k[ie]=I,le=ie):(k[le]=te,k[B]=I,le=B);else if(ie<H&&0>c(ae,I))k[le]=ae,k[ie]=I,le=ie;else break e}}return G}function c(k,G){var I=k.sortIndex-G.sortIndex;return I!==0?I:k.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],y=1,b=null,S=3,x=!1,E=!1,w=!1,C=!1,N=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function A(k){for(var G=r(p);G!==null;){if(G.callback===null)l(p);else if(G.startTime<=k)l(p),G.sortIndex=G.expirationTime,i(g,G);else break;G=r(p)}}function Z(k){if(w=!1,A(k),!E)if(r(g)!==null)E=!0,X||(X=!0,se());else{var G=r(p);G!==null&&ne(Z,G.startTime-k)}}var X=!1,q=-1,j=5,F=-1;function re(){return C?!0:!(n.unstable_now()-F<j)}function fe(){if(C=!1,X){var k=n.unstable_now();F=k;var G=!0;try{e:{E=!1,w&&(w=!1,M(q),q=-1),x=!0;var I=S;try{t:{for(A(k),b=r(g);b!==null&&!(b.expirationTime>k&&re());){var le=b.callback;if(typeof le=="function"){b.callback=null,S=b.priorityLevel;var H=le(b.expirationTime<=k);if(k=n.unstable_now(),typeof H=="function"){b.callback=H,A(k),G=!0;break t}b===r(g)&&l(g),A(k)}else l(g);b=r(g)}if(b!==null)G=!0;else{var T=r(p);T!==null&&ne(Z,T.startTime-k),G=!1}}break e}finally{b=null,S=I,x=!1}G=void 0}}finally{G?se():X=!1}}}var se;if(typeof U=="function")se=function(){U(fe)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,oe=J.port2;J.port1.onmessage=fe,se=function(){oe.postMessage(null)}}else se=function(){N(fe,0)};function ne(k,G){q=N(function(){k(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.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"):j=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(k){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var I=S;S=G;try{return k()}finally{S=I}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(k,G){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=S;S=k;try{return G()}finally{S=I}},n.unstable_scheduleCallback=function(k,G,I){var le=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?le+I:le):I=le,k){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=I+H,k={id:y++,callback:G,priorityLevel:k,startTime:I,expirationTime:H,sortIndex:-1},I>le?(k.sortIndex=I,i(p,k),r(g)===null&&k===r(p)&&(w?(M(q),q=-1):w=!0,ne(Z,I-le))):(k.sortIndex=H,i(g,k),E||x||(E=!0,X||(X=!0,se()))),k},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(k){var G=S;return function(){var I=S;S=G;try{return k.apply(this,arguments)}finally{S=I}}}}(Td)),Td}var cv;function J1(){return cv||(cv=1,Ed.exports=I1()),Ed.exports}var wd={exports:{}},en={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var uv;function W1(){if(uv)return en;uv=1;var n=Kl();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,p,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:g,containerInfo:p,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,en.createPortal=function(g,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,y)},en.flushSync=function(g){var p=d.T,y=l.p;try{if(d.T=null,l.p=2,g)return g()}finally{d.T=p,l.p=y,l.d.f()}},en.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(g,p))},en.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},en.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,x=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?l.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:x}):y==="script"&&l.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:x,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},en.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);l.d.M(g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(g)},en.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,b=m(y,p.crossOrigin);l.d.L(g,y,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},en.preloadModule=function(g,p){if(typeof g=="string")if(p){var y=m(p.as,p.crossOrigin);l.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(g)},en.requestFormReset=function(g){l.d.r(g)},en.unstable_batchedUpdates=function(g,p){return g(p)},en.useFormState=function(g,p,y){return d.H.useFormState(g,p,y)},en.useFormStatus=function(){return d.H.useHostTransitionStatus()},en.version="19.2.7",en}var fv;function Qb(){if(fv)return wd.exports;fv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),wd.exports=W1(),wd.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var dv;function $1(){if(dv)return wl;dv=1;var n=J1(),i=Kl(),r=Qb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function d(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 m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(l(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var s=e,a=t;;){var o=s.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){s=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===s)return g(o),e;if(u===a)return g(o),t;u=u.sibling}throw Error(l(188))}if(s.return!==a.return)s=o,a=u;else{for(var h=!1,v=o.child;v;){if(v===s){h=!0,s=o,a=u;break}if(v===a){h=!0,a=o,s=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===s){h=!0,s=u,a=o;break}if(v===a){h=!0,a=u,s=o;break}v=v.sibling}if(!h)throw Error(l(189))}}if(s.alternate!==a)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),U=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case N:return"Profiler";case C:return"StrictMode";case Z:return"Suspense";case X:return"SuspenseList";case F:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case U:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var ne=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},le=[],H=-1;function T(e){return{current:e}}function B(e){0>H||(e.current=le[H],le[H]=null,H--)}function te(e,t){H++,le[H]=e.current,e.current=t}var ie=T(null),ae=T(null),ee=T(null),ge=T(null);function ce(e,t){switch(te(ee,t),te(ae,e),te(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gy(t),e=yy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ie),te(ie,e)}function de(){B(ie),B(ae),B(ee)}function Ze(e){e.memoizedState!==null&&te(ge,e);var t=ie.current,s=yy(t,e.type);t!==s&&(te(ae,e),te(ie,s))}function nt(e){ae.current===e&&(B(ie),B(ae)),ge.current===e&&(B(ge),bl._currentValue=I)}var be,ze;function Oe(e){if(be===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||"",ze=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+be+e+ze}var ft=!1;function bt(e,t){if(!e||ft)return"";ft=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(K){var Q=K}Reflect.construct(e,[],$)}else{try{$.call()}catch(K){Q=K}e.call($.prototype)}}else{try{throw Error()}catch(K){Q=K}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(K){if(K&&Q&&typeof K.stack=="string")return[K.stack,Q.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var R=h.split(`
|
|
44
|
+
`),V=v.split(`
|
|
45
|
+
`);for(o=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;o<V.length&&!V[o].includes("DetermineComponentFrameRoot");)o++;if(a===R.length||o===V.length)for(a=R.length-1,o=V.length-1;1<=a&&0<=o&&R[a]!==V[o];)o--;for(;1<=a&&0<=o;a--,o--)if(R[a]!==V[o]){if(a!==1||o!==1)do if(a--,o--,0>o||R[a]!==V[o]){var P=`
|
|
46
|
+
`+R[a].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=a&&0<=o);break}}}finally{ft=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Oe(s):""}function Re(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return bt(e.type,!1);case 11:return bt(e.type.render,!1);case 1:return bt(e.type,!0);case 31:return Oe("Activity");default:return""}}function ke(e){try{var t="",s=null;do t+=Re(e,s),s=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Ee=Object.prototype.hasOwnProperty,mt=n.unstable_scheduleCallback,dt=n.unstable_cancelCallback,je=n.unstable_shouldYield,St=n.unstable_requestPaint,ue=n.unstable_now,xe=n.unstable_getCurrentPriorityLevel,ht=n.unstable_ImmediatePriority,Be=n.unstable_UserBlockingPriority,pt=n.unstable_NormalPriority,kt=n.unstable_LowPriority,nn=n.unstable_IdlePriority,sn=n.log,ti=n.unstable_setDisableYieldValue,cn=null,Bt=null;function En(e){if(typeof sn=="function"&&ti(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(cn,e)}catch{}}var Ht=Math.clz32?Math.clz32:vr,gr=Math.log,yr=Math.LN2;function vr(e){return e>>>=0,e===0?32:31-(gr(e)/yr|0)|0}var pi=256,Fe=262144,Rt=4194304;function qt(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 Xt(e,t,s){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~u,a!==0?o=qt(a):(h&=v,h!==0?o=qt(h):s||(s=v&~e,s!==0&&(o=qt(s))))):(v=a&~u,v!==0?o=qt(v):h!==0?o=qt(h):s||(s=a&~e,s!==0&&(o=qt(s)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,s=t&-t,u>=s||u===32&&(s&4194048)!==0)?t:o}function rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Tn(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 ni(){var e=Rt;return Rt<<=1,(Rt&62914560)===0&&(Rt=4194304),e}function ii(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function un(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function za(e,t,s,a,o,u){var h=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var v=e.entanglements,R=e.expirationTimes,V=e.hiddenUpdates;for(s=h&~s;0<s;){var P=31-Ht(s),$=1<<P;v[P]=0,R[P]=-1;var Q=V[P];if(Q!==null)for(V[P]=null,P=0;P<Q.length;P++){var K=Q[P];K!==null&&(K.lane&=-536870913)}s&=~$}a!==0&&br(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function br(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|s&261930}function Sr(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var a=31-Ht(s),o=1<<a;o&t|e[a]&t&&(e[a]|=t),s&=~o}}function $l(e,t){var s=t&-t;return s=(s&42)!==0?1:js(s),(s&(e.suspendedLanes|t))!==0?0:s}function js(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 xr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function eo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:qy(e.type))}function to(e,t){var s=G.p;try{return G.p=e,t()}finally{G.p=s}}var fn=Math.random().toString(36).slice(2),jt="__reactFiber$"+fn,$t="__reactProps$"+fn,Fi="__reactContainer$"+fn,Er="__reactEvents$"+fn,no="__reactListeners$"+fn,io="__reactHandles$"+fn,im="__reactResources$"+fn,ka="__reactMarker$"+fn;function cu(e){delete e[jt],delete e[$t],delete e[Er],delete e[no],delete e[io]}function Tr(e){var t=e[jt];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Fi]||s[jt]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=wy(e);e!==null;){if(s=e[jt])return s;e=wy(e)}return t}e=s,s=e.parentNode}return null}function wr(e){if(e=e[jt]||e[Fi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function Rr(e){var t=e[im];return t||(t=e[im]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[ka]=!0}var sm=new Set,rm={};function Us(e,t){Or(e,t),Or(e+"Capture",t)}function Or(e,t){for(rm[e]=t,e=0;e<t.length;e++)sm.add(t[e])}var KS=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]*$"),am={},lm={};function ZS(e){return Ee.call(lm,e)?!0:Ee.call(am,e)?!1:KS.test(e)?lm[e]=!0:(am[e]=!0,!1)}function so(e,t,s){if(ZS(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function ro(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function gi(e,t,s,a){if(a===null)e.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+a)}}function jn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function om(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e,t,s){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){s=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uu(e){if(!e._valueTracker){var t=om(e)?"checked":"value";e._valueTracker=PS(e,t,""+e[t])}}function cm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),a="";return e&&(a=om(e)?e.checked?"true":"false":e.value),e=a,e!==s?(t.setValue(e),!0):!1}function ao(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 IS=/[\n"\\]/g;function Un(e){return e.replace(IS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fu(e,t,s,a,o,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jn(t)):e.value!==""+jn(t)&&(e.value=""+jn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?du(e,h,jn(t)):s!=null?du(e,h,jn(s)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+jn(v):e.removeAttribute("name")}function um(e,t,s,a,o,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||s!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){uu(e);return}s=s!=null?""+jn(s):"",t=t!=null?""+jn(t):s,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),uu(e)}function du(e,t,s){t==="number"&&ao(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Cr(e,t,s,a){if(e=e.options,t){t={};for(var o=0;o<s.length;o++)t["$"+s[o]]=!0;for(s=0;s<e.length;s++)o=t.hasOwnProperty("$"+e[s].value),e[s].selected!==o&&(e[s].selected=o),o&&a&&(e[s].defaultSelected=!0)}else{for(s=""+jn(s),t=null,o=0;o<e.length;o++){if(e[o].value===s){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function fm(e,t,s){if(t!=null&&(t=""+jn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+jn(s):""}function dm(e,t,s,a){if(t==null){if(a!=null){if(s!=null)throw Error(l(92));if(ne(a)){if(1<a.length)throw Error(l(93));a=a[0]}s=a}s==null&&(s=""),t=s}s=jn(t),e.defaultValue=s,a=e.textContent,a===s&&a!==""&&a!==null&&(e.value=a),uu(e)}function Ar(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var JS=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 hm(e,t,s){var a=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,s):typeof s!="number"||s===0||JS.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function mm(e,t,s){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,s!=null){for(var a in s)!s.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&s[o]!==a&&hm(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&hm(e,u,t[u])}function hu(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 WS=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"]]),$S=/^[\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 lo(e){return $S.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yi(){}var mu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _r=null,Mr=null;function pm(e){var t=wr(e);if(t&&(e=t.stateNode)){var s=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(fu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Un(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var a=s[t];if(a!==e&&a.form===e.form){var o=a[$t]||null;if(!o)throw Error(l(90));fu(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<s.length;t++)a=s[t],a.form===e.form&&cm(a)}break e;case"textarea":fm(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&Cr(e,!!s.multiple,t,!1)}}}var gu=!1;function gm(e,t,s){if(gu)return e(t,s);gu=!0;try{var a=e(t);return a}finally{if(gu=!1,(_r!==null||Mr!==null)&&(Po(),_r&&(t=_r,e=Mr,Mr=_r=null,pm(t),e)))for(t=0;t<e.length;t++)pm(e[t])}}function Ua(e,t){var s=e.stateNode;if(s===null)return null;var a=s[$t]||null;if(a===null)return null;s=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(l(231,t,typeof s));return s}var vi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yu=!1;if(vi)try{var La={};Object.defineProperty(La,"passive",{get:function(){yu=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{yu=!1}var Ki=null,vu=null,oo=null;function ym(){if(oo)return oo;var e,t=vu,s=t.length,a,o="value"in Ki?Ki.value:Ki.textContent,u=o.length;for(e=0;e<s&&t[e]===o[e];e++);var h=s-e;for(a=1;a<=h&&t[s-a]===o[u-a];a++);return oo=o.slice(e,1<a?1-a:void 0)}function co(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 uo(){return!0}function vm(){return!1}function dn(e){function t(s,a,o,u,h){this._reactName=s,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(s=e[v],this[v]=s?s(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?uo:vm,this.isPropagationStopped=vm,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fo=dn(Ls),Ba=b({},Ls,{view:0,detail:0}),ex=dn(Ba),bu,Su,Ha,ho=b({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eu,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!==Ha&&(Ha&&e.type==="mousemove"?(bu=e.screenX-Ha.screenX,Su=e.screenY-Ha.screenY):Su=bu=0,Ha=e),bu)},movementY:function(e){return"movementY"in e?e.movementY:Su}}),bm=dn(ho),tx=b({},ho,{dataTransfer:0}),nx=dn(tx),ix=b({},Ba,{relatedTarget:0}),xu=dn(ix),sx=b({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),rx=dn(sx),ax=b({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=dn(ax),ox=b({},Ls,{data:0}),Sm=dn(ox),cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ux={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function Eu(){return dx}var hx=b({},Ba,{key:function(e){if(e.key){var t=cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=co(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ux[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eu,charCode:function(e){return e.type==="keypress"?co(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?co(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=dn(hx),px=b({},ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=dn(px),gx=b({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eu}),yx=dn(gx),vx=b({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),bx=dn(vx),Sx=b({},ho,{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}),xx=dn(Sx),Ex=b({},Ls,{newState:0,oldState:0}),Tx=dn(Ex),wx=[9,13,27,32],Tu=vi&&"CompositionEvent"in window,qa=null;vi&&"documentMode"in document&&(qa=document.documentMode);var Rx=vi&&"TextEvent"in window&&!qa,Em=vi&&(!Tu||qa&&8<qa&&11>=qa),Tm=" ",wm=!1;function Rm(e,t){switch(e){case"keyup":return wx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function Ox(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(wm=!0,Tm);case"textInput":return e=t.data,e===Tm&&wm?null:e;default:return null}}function Cx(e,t){if(Nr)return e==="compositionend"||!Tu&&Rm(e,t)?(e=ym(),oo=vu=Ki=null,Nr=!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 Em&&t.locale!=="ko"?null:t.data;default:return null}}var Ax={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 Cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ax[e.type]:t==="textarea"}function Am(e,t,s,a){_r?Mr?Mr.push(a):Mr=[a]:_r=a,t=nc(t,"onChange"),0<t.length&&(s=new fo("onChange","change",null,s,a),e.push({event:s,listeners:t}))}var Ya=null,Va=null;function _x(e){uy(e,0)}function mo(e){var t=ja(e);if(cm(t))return e}function _m(e,t){if(e==="change")return t}var Mm=!1;if(vi){var wu;if(vi){var Ru="oninput"in document;if(!Ru){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Ru=typeof Nm.oninput=="function"}wu=Ru}else wu=!1;Mm=wu&&(!document.documentMode||9<document.documentMode)}function Dm(){Ya&&(Ya.detachEvent("onpropertychange",zm),Va=Ya=null)}function zm(e){if(e.propertyName==="value"&&mo(Va)){var t=[];Am(t,Va,e,pu(e)),gm(_x,t)}}function Mx(e,t,s){e==="focusin"?(Dm(),Ya=t,Va=s,Ya.attachEvent("onpropertychange",zm)):e==="focusout"&&Dm()}function Nx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mo(Va)}function Dx(e,t){if(e==="click")return mo(t)}function zx(e,t){if(e==="input"||e==="change")return mo(t)}function kx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:kx;function Ga(e,t){if(wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(a=0;a<s.length;a++){var o=s[a];if(!Ee.call(t,o)||!wn(e[o],t[o]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jm(e,t){var s=km(e);e=0;for(var a;s;){if(s.nodeType===3){if(a=e+s.textContent.length,e<=t&&a>=t)return{node:s,offset:t-e};e=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=km(s)}}function Um(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Um(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ao(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=ao(e.document)}return t}function Ou(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 jx=vi&&"documentMode"in document&&11>=document.documentMode,Dr=null,Cu=null,Qa=null,Au=!1;function Bm(e,t,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Au||Dr==null||Dr!==ao(a)||(a=Dr,"selectionStart"in a&&Ou(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Qa&&Ga(Qa,a)||(Qa=a,a=nc(Cu,"onSelect"),0<a.length&&(t=new fo("onSelect","select",null,t,s),e.push({event:t,listeners:a}),t.target=Dr)))}function Bs(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var zr={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionrun:Bs("Transition","TransitionRun"),transitionstart:Bs("Transition","TransitionStart"),transitioncancel:Bs("Transition","TransitionCancel"),transitionend:Bs("Transition","TransitionEnd")},_u={},Hm={};vi&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),"TransitionEvent"in window||delete zr.transitionend.transition);function Hs(e){if(_u[e])return _u[e];if(!zr[e])return e;var t=zr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Hm)return _u[e]=t[s];return e}var qm=Hs("animationend"),Ym=Hs("animationiteration"),Vm=Hs("animationstart"),Ux=Hs("transitionrun"),Lx=Hs("transitionstart"),Bx=Hs("transitioncancel"),Gm=Hs("transitionend"),Qm=new Map,Mu="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(" ");Mu.push("scrollEnd");function Zn(e,t){Qm.set(e,t),Us(t,[e])}var po=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)},Ln=[],kr=0,Nu=0;function go(){for(var e=kr,t=Nu=kr=0;t<e;){var s=Ln[t];Ln[t++]=null;var a=Ln[t];Ln[t++]=null;var o=Ln[t];Ln[t++]=null;var u=Ln[t];if(Ln[t++]=null,a!==null&&o!==null){var h=a.pending;h===null?o.next=o:(o.next=h.next,h.next=o),a.pending=o}u!==0&&Xm(s,o,u)}}function yo(e,t,s,a){Ln[kr++]=e,Ln[kr++]=t,Ln[kr++]=s,Ln[kr++]=a,Nu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Du(e,t,s,a){return yo(e,t,s,a),vo(e)}function qs(e,t){return yo(e,null,null,t),vo(e)}function Xm(e,t,s){e.lanes|=s;var a=e.alternate;a!==null&&(a.lanes|=s);for(var o=!1,u=e.return;u!==null;)u.childLanes|=s,a=u.alternate,a!==null&&(a.childLanes|=s),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-Ht(s),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=s|536870912),u):null}function vo(e){if(50<dl)throw dl=0,Vf=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var jr={};function Hx(e,t,s,a){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,t,s,a){return new Hx(e,t,s,a)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bi(e,t){var s=e.alternate;return s===null?(s=Rn(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Fm(e,t){e.flags&=65011714;var s=e.alternate;return s===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=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bo(e,t,s,a,o,u){var h=0;if(a=e,typeof e=="function")zu(e)&&(h=1);else if(typeof e=="string")h=QE(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case F:return e=Rn(31,s,t,o),e.elementType=F,e.lanes=u,e;case w:return Ys(s.children,o,u,t);case C:h=8,o|=24;break;case N:return e=Rn(12,s,t,o|2),e.elementType=N,e.lanes=u,e;case Z:return e=Rn(13,s,t,o),e.elementType=Z,e.lanes=u,e;case X:return e=Rn(19,s,t,o),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:h=10;break e;case M:h=9;break e;case A:h=11;break e;case q:h=14;break e;case j:h=16,a=null;break e}h=29,s=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Rn(h,s,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function Ys(e,t,s,a){return e=Rn(7,e,a,t),e.lanes=s,e}function ku(e,t,s){return e=Rn(6,e,null,t),e.lanes=s,e}function Km(e){var t=Rn(18,null,null,0);return t.stateNode=e,t}function ju(e,t,s){return t=Rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zm=new WeakMap;function Bn(e,t){if(typeof e=="object"&&e!==null){var s=Zm.get(e);return s!==void 0?s:(t={value:e,source:t,stack:ke(t)},Zm.set(e,t),t)}return{value:e,source:t,stack:ke(t)}}var Ur=[],Lr=0,So=null,Xa=0,Hn=[],qn=0,Zi=null,si=1,ri="";function Si(e,t){Ur[Lr++]=Xa,Ur[Lr++]=So,So=e,Xa=t}function Pm(e,t,s){Hn[qn++]=si,Hn[qn++]=ri,Hn[qn++]=Zi,Zi=e;var a=si;e=ri;var o=32-Ht(a)-1;a&=~(1<<o),s+=1;var u=32-Ht(t)+o;if(30<u){var h=o-o%5;u=(a&(1<<h)-1).toString(32),a>>=h,o-=h,si=1<<32-Ht(t)+o|s<<o|a,ri=u+e}else si=1<<u|s<<o|a,ri=e}function Uu(e){e.return!==null&&(Si(e,1),Pm(e,1,0))}function Lu(e){for(;e===So;)So=Ur[--Lr],Ur[Lr]=null,Xa=Ur[--Lr],Ur[Lr]=null;for(;e===Zi;)Zi=Hn[--qn],Hn[qn]=null,ri=Hn[--qn],Hn[qn]=null,si=Hn[--qn],Hn[qn]=null}function Im(e,t){Hn[qn++]=si,Hn[qn++]=ri,Hn[qn++]=Zi,si=t.id,ri=t.overflow,Zi=e}var Ft=null,gt=null,Ge=!1,Pi=null,Yn=!1,Bu=Error(l(519));function Ii(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fa(Bn(t,e)),Bu}function Jm(e){var t=e.stateNode,s=e.type,a=e.memoizedProps;switch(t[jt]=e,t[$t]=a,s){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(s=0;s<ml.length;s++)Le(ml[s],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Le("invalid",t),um(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Le("invalid",t);break;case"textarea":Le("invalid",t),dm(t,a.value,a.defaultValue,a.children)}s=a.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||a.suppressHydrationWarning===!0||my(t.textContent,s)?(a.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),a.onScroll!=null&&Le("scroll",t),a.onScrollEnd!=null&&Le("scrollend",t),a.onClick!=null&&(t.onclick=yi),t=!0):t=!1,t||Ii(e,!0)}function Wm(e){for(Ft=e.return;Ft;)switch(Ft.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Ft=Ft.return}}function Br(e){if(e!==Ft)return!1;if(!Ge)return Wm(e),Ge=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||id(e.type,e.memoizedProps)),s=!s),s&>&&Ii(e),Wm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));gt=Ty(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));gt=Ty(e)}else t===27?(t=gt,us(e.type)?(e=od,od=null,gt=e):gt=t):gt=Ft?Gn(e.stateNode.nextSibling):null;return!0}function Vs(){gt=Ft=null,Ge=!1}function Hu(){var e=Pi;return e!==null&&(gn===null?gn=e:gn.push.apply(gn,e),Pi=null),e}function Fa(e){Pi===null?Pi=[e]:Pi.push(e)}var qu=T(null),Gs=null,xi=null;function Ji(e,t,s){te(qu,t._currentValue),t._currentValue=s}function Ei(e){e._currentValue=qu.current,B(qu)}function Yu(e,t,s){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===s)break;e=e.return}}function Vu(e,t,s,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var R=0;R<t.length;R++)if(v.context===t[R]){u.lanes|=s,v=u.alternate,v!==null&&(v.lanes|=s),Yu(u.return,s,e),a||(h=null);break e}u=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(l(341));h.lanes|=s,u=h.alternate,u!==null&&(u.lanes|=s),Yu(h,s,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Hr(e,t,s,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var v=o.type;wn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(bl):e=[bl])}o=o.return}e!==null&&Vu(t,e,s,a),t.flags|=262144}function xo(e){for(e=e.firstContext;e!==null;){if(!wn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qs(e){Gs=e,xi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return $m(Gs,e)}function Eo(e,t){return Gs===null&&Qs(e),$m(e,t)}function $m(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},xi===null){if(e===null)throw Error(l(308));xi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xi=xi.next=t;return s}var qx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},Yx=n.unstable_scheduleCallback,Vx=n.unstable_NormalPriority,At={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gu(){return{controller:new qx,data:new Map,refCount:0}}function Ka(e){e.refCount--,e.refCount===0&&Yx(Vx,function(){e.controller.abort()})}var Za=null,Qu=0,qr=0,Yr=null;function Gx(e,t){if(Za===null){var s=Za=[];Qu=0,qr=Zf(),Yr={status:"pending",value:void 0,then:function(a){s.push(a)}}}return Qu++,t.then(ep,ep),t}function ep(){if(--Qu===0&&Za!==null){Yr!==null&&(Yr.status="fulfilled");var e=Za;Za=null,qr=0,Yr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qx(e,t){var s=[],a={status:"pending",value:null,reason:null,then:function(o){s.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<s.length;o++)(0,s[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<s.length;o++)(0,s[o])(void 0)}),a}var tp=k.S;k.S=function(e,t){Bg=ue(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Gx(e,t),tp!==null&&tp(e,t)};var Xs=T(null);function Xu(){var e=Xs.current;return e!==null?e:ct.pooledCache}function To(e,t){t===null?te(Xs,Xs.current):te(Xs,t.pool)}function np(){var e=Xu();return e===null?null:{parent:At._currentValue,pool:e}}var Vr=Error(l(460)),Fu=Error(l(474)),wo=Error(l(542)),Ro={then:function(){}};function ip(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sp(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(yi,yi),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ap(e),e;default:if(typeof t.status=="string")t.then(yi,yi);else{if(e=ct,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ap(e),e}throw Ks=t,Vr}}function Fs(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ks=s,Vr):s}}var Ks=null;function rp(){if(Ks===null)throw Error(l(459));var e=Ks;return Ks=null,e}function ap(e){if(e===Vr||e===wo)throw Error(l(483))}var Gr=null,Pa=0;function Oo(e){var t=Pa;return Pa+=1,Gr===null&&(Gr=[]),sp(Gr,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Co(e,t){throw t.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lp(e){function t(L,D){if(e){var Y=L.deletions;Y===null?(L.deletions=[D],L.flags|=16):Y.push(D)}}function s(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function a(L){for(var D=new Map;L!==null;)L.key!==null?D.set(L.key,L):D.set(L.index,L),L=L.sibling;return D}function o(L,D){return L=bi(L,D),L.index=0,L.sibling=null,L}function u(L,D,Y){return L.index=Y,e?(Y=L.alternate,Y!==null?(Y=Y.index,Y<D?(L.flags|=67108866,D):Y):(L.flags|=67108866,D)):(L.flags|=1048576,D)}function h(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function v(L,D,Y,W){return D===null||D.tag!==6?(D=ku(Y,L.mode,W),D.return=L,D):(D=o(D,Y),D.return=L,D)}function R(L,D,Y,W){var Se=Y.type;return Se===w?P(L,D,Y.props.children,W,Y.key):D!==null&&(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===j&&Fs(Se)===D.type)?(D=o(D,Y.props),Ia(D,Y),D.return=L,D):(D=bo(Y.type,Y.key,Y.props,null,L.mode,W),Ia(D,Y),D.return=L,D)}function V(L,D,Y,W){return D===null||D.tag!==4||D.stateNode.containerInfo!==Y.containerInfo||D.stateNode.implementation!==Y.implementation?(D=ju(Y,L.mode,W),D.return=L,D):(D=o(D,Y.children||[]),D.return=L,D)}function P(L,D,Y,W,Se){return D===null||D.tag!==7?(D=Ys(Y,L.mode,W,Se),D.return=L,D):(D=o(D,Y),D.return=L,D)}function $(L,D,Y){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=ku(""+D,L.mode,Y),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return Y=bo(D.type,D.key,D.props,null,L.mode,Y),Ia(Y,D),Y.return=L,Y;case E:return D=ju(D,L.mode,Y),D.return=L,D;case j:return D=Fs(D),$(L,D,Y)}if(ne(D)||se(D))return D=Ys(D,L.mode,Y,null),D.return=L,D;if(typeof D.then=="function")return $(L,Oo(D),Y);if(D.$$typeof===U)return $(L,Eo(L,D),Y);Co(L,D)}return null}function Q(L,D,Y,W){var Se=D!==null?D.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Se!==null?null:v(L,D,""+Y,W);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:return Y.key===Se?R(L,D,Y,W):null;case E:return Y.key===Se?V(L,D,Y,W):null;case j:return Y=Fs(Y),Q(L,D,Y,W)}if(ne(Y)||se(Y))return Se!==null?null:P(L,D,Y,W,null);if(typeof Y.then=="function")return Q(L,D,Oo(Y),W);if(Y.$$typeof===U)return Q(L,D,Eo(L,Y),W);Co(L,Y)}return null}function K(L,D,Y,W,Se){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return L=L.get(Y)||null,v(D,L,""+W,Se);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case x:return L=L.get(W.key===null?Y:W.key)||null,R(D,L,W,Se);case E:return L=L.get(W.key===null?Y:W.key)||null,V(D,L,W,Se);case j:return W=Fs(W),K(L,D,Y,W,Se)}if(ne(W)||se(W))return L=L.get(Y)||null,P(D,L,W,Se,null);if(typeof W.then=="function")return K(L,D,Y,Oo(W),Se);if(W.$$typeof===U)return K(L,D,Y,Eo(D,W),Se);Co(D,W)}return null}function ye(L,D,Y,W){for(var Se=null,Pe=null,ve=D,_e=D=0,qe=null;ve!==null&&_e<Y.length;_e++){ve.index>_e?(qe=ve,ve=null):qe=ve.sibling;var Ie=Q(L,ve,Y[_e],W);if(Ie===null){ve===null&&(ve=qe);break}e&&ve&&Ie.alternate===null&&t(L,ve),D=u(Ie,D,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie,ve=qe}if(_e===Y.length)return s(L,ve),Ge&&Si(L,_e),Se;if(ve===null){for(;_e<Y.length;_e++)ve=$(L,Y[_e],W),ve!==null&&(D=u(ve,D,_e),Pe===null?Se=ve:Pe.sibling=ve,Pe=ve);return Ge&&Si(L,_e),Se}for(ve=a(ve);_e<Y.length;_e++)qe=K(ve,L,_e,Y[_e],W),qe!==null&&(e&&qe.alternate!==null&&ve.delete(qe.key===null?_e:qe.key),D=u(qe,D,_e),Pe===null?Se=qe:Pe.sibling=qe,Pe=qe);return e&&ve.forEach(function(ps){return t(L,ps)}),Ge&&Si(L,_e),Se}function we(L,D,Y,W){if(Y==null)throw Error(l(151));for(var Se=null,Pe=null,ve=D,_e=D=0,qe=null,Ie=Y.next();ve!==null&&!Ie.done;_e++,Ie=Y.next()){ve.index>_e?(qe=ve,ve=null):qe=ve.sibling;var ps=Q(L,ve,Ie.value,W);if(ps===null){ve===null&&(ve=qe);break}e&&ve&&ps.alternate===null&&t(L,ve),D=u(ps,D,_e),Pe===null?Se=ps:Pe.sibling=ps,Pe=ps,ve=qe}if(Ie.done)return s(L,ve),Ge&&Si(L,_e),Se;if(ve===null){for(;!Ie.done;_e++,Ie=Y.next())Ie=$(L,Ie.value,W),Ie!==null&&(D=u(Ie,D,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie);return Ge&&Si(L,_e),Se}for(ve=a(ve);!Ie.done;_e++,Ie=Y.next())Ie=K(ve,L,_e,Ie.value,W),Ie!==null&&(e&&Ie.alternate!==null&&ve.delete(Ie.key===null?_e:Ie.key),D=u(Ie,D,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie);return e&&ve.forEach(function(t1){return t(L,t1)}),Ge&&Si(L,_e),Se}function lt(L,D,Y,W){if(typeof Y=="object"&&Y!==null&&Y.type===w&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case x:e:{for(var Se=Y.key;D!==null;){if(D.key===Se){if(Se=Y.type,Se===w){if(D.tag===7){s(L,D.sibling),W=o(D,Y.props.children),W.return=L,L=W;break e}}else if(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===j&&Fs(Se)===D.type){s(L,D.sibling),W=o(D,Y.props),Ia(W,Y),W.return=L,L=W;break e}s(L,D);break}else t(L,D);D=D.sibling}Y.type===w?(W=Ys(Y.props.children,L.mode,W,Y.key),W.return=L,L=W):(W=bo(Y.type,Y.key,Y.props,null,L.mode,W),Ia(W,Y),W.return=L,L=W)}return h(L);case E:e:{for(Se=Y.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===Y.containerInfo&&D.stateNode.implementation===Y.implementation){s(L,D.sibling),W=o(D,Y.children||[]),W.return=L,L=W;break e}else{s(L,D);break}else t(L,D);D=D.sibling}W=ju(Y,L.mode,W),W.return=L,L=W}return h(L);case j:return Y=Fs(Y),lt(L,D,Y,W)}if(ne(Y))return ye(L,D,Y,W);if(se(Y)){if(Se=se(Y),typeof Se!="function")throw Error(l(150));return Y=Se.call(Y),we(L,D,Y,W)}if(typeof Y.then=="function")return lt(L,D,Oo(Y),W);if(Y.$$typeof===U)return lt(L,D,Eo(L,Y),W);Co(L,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,D!==null&&D.tag===6?(s(L,D.sibling),W=o(D,Y),W.return=L,L=W):(s(L,D),W=ku(Y,L.mode,W),W.return=L,L=W),h(L)):s(L,D)}return function(L,D,Y,W){try{Pa=0;var Se=lt(L,D,Y,W);return Gr=null,Se}catch(ve){if(ve===Vr||ve===wo)throw ve;var Pe=Rn(29,ve,null,L.mode);return Pe.lanes=W,Pe.return=L,Pe}finally{}}}var Zs=lp(!0),op=lp(!1),Wi=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zu(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 $i(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function es(e,t,s){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(We&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=vo(e),Xm(e,null,s),t}return yo(e,a,t,s),vo(e)}function Ja(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,s|=a,t.lanes=s,Sr(e,s)}}function Pu(e,t){var s=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var o=null,u=null;if(s=s.firstBaseUpdate,s!==null){do{var h={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,s=s.next}while(s!==null);u===null?o=u=t:u=u.next=t}else o=u=t;s={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Iu=!1;function Wa(){if(Iu){var e=Yr;if(e!==null)throw e}}function $a(e,t,s,a){Iu=!1;var o=e.updateQueue;Wi=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var R=v,V=R.next;R.next=null,h===null?u=V:h.next=V,h=R;var P=e.alternate;P!==null&&(P=P.updateQueue,v=P.lastBaseUpdate,v!==h&&(v===null?P.firstBaseUpdate=V:v.next=V,P.lastBaseUpdate=R))}if(u!==null){var $=o.baseState;h=0,P=V=R=null,v=u;do{var Q=v.lane&-536870913,K=Q!==v.lane;if(K?(He&Q)===Q:(a&Q)===Q){Q!==0&&Q===qr&&(Iu=!0),P!==null&&(P=P.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ye=e,we=v;Q=t;var lt=s;switch(we.tag){case 1:if(ye=we.payload,typeof ye=="function"){$=ye.call(lt,$,Q);break e}$=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=we.payload,Q=typeof ye=="function"?ye.call(lt,$,Q):ye,Q==null)break e;$=b({},$,Q);break e;case 2:Wi=!0}}Q=v.callback,Q!==null&&(e.flags|=64,K&&(e.flags|=8192),K=o.callbacks,K===null?o.callbacks=[Q]:K.push(Q))}else K={lane:Q,tag:v.tag,payload:v.payload,callback:v.callback,next:null},P===null?(V=P=K,R=$):P=P.next=K,h|=Q;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;K=v,v=K.next,K.next=null,o.lastBaseUpdate=K,o.shared.pending=null}}while(!0);P===null&&(R=$),o.baseState=R,o.firstBaseUpdate=V,o.lastBaseUpdate=P,u===null&&(o.shared.lanes=0),rs|=h,e.lanes=h,e.memoizedState=$}}function cp(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function up(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)cp(s[e],t)}var Qr=T(null),Ao=T(0);function fp(e,t){e=Ni,te(Ao,e),te(Qr,t),Ni=e|t.baseLanes}function Ju(){te(Ao,Ni),te(Qr,Qr.current)}function Wu(){Ni=Ao.current,B(Qr),B(Ao)}var On=T(null),Vn=null;function ts(e){var t=e.alternate;te(Ot,Ot.current&1),te(On,e),Vn===null&&(t===null||Qr.current!==null||t.memoizedState!==null)&&(Vn=e)}function $u(e){te(Ot,Ot.current),te(On,e),Vn===null&&(Vn=e)}function dp(e){e.tag===22?(te(Ot,Ot.current),te(On,e),Vn===null&&(Vn=e)):ns()}function ns(){te(Ot,Ot.current),te(On,On.current)}function Cn(e){B(On),Vn===e&&(Vn=null),B(Ot)}var Ot=T(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ad(s)||ld(s)))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 Ti=0,Ae=null,rt=null,_t=null,Mo=!1,Xr=!1,Ps=!1,No=0,el=0,Fr=null,Xx=0;function xt(){throw Error(l(321))}function ef(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!wn(e[s],t[s]))return!1;return!0}function tf(e,t,s,a,o,u){return Ti=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Pp:yf,Ps=!1,u=s(a,o),Ps=!1,Xr&&(u=mp(t,s,a,o)),hp(e),u}function hp(e){k.H=il;var t=rt!==null&&rt.next!==null;if(Ti=0,_t=rt=Ae=null,Mo=!1,el=0,Fr=null,t)throw Error(l(300));e===null||Mt||(e=e.dependencies,e!==null&&xo(e)&&(Mt=!0))}function mp(e,t,s,a){Ae=e;var o=0;do{if(Xr&&(Fr=null),el=0,Xr=!1,25<=o)throw Error(l(301));if(o+=1,_t=rt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}k.H=Ip,u=t(s,a)}while(Xr);return u}function Fx(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?tl(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(Ae.flags|=1024),t}function nf(){var e=No!==0;return No=0,e}function sf(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function rf(e){if(Mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mo=!1}Ti=0,_t=rt=Ae=null,Xr=!1,el=No=0,Fr=null}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ae.memoizedState=_t=e:_t=_t.next=e,_t}function Ct(){if(rt===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=_t===null?Ae.memoizedState:_t.next;if(t!==null)_t=t,rt=e;else{if(e===null)throw Ae.alternate===null?Error(l(467)):Error(l(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},_t===null?Ae.memoizedState=_t=e:_t=_t.next=e}return _t}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tl(e){var t=el;return el+=1,Fr===null&&(Fr=[]),e=sp(Fr,e,t),t=Ae,(_t===null?t.memoizedState:_t.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Pp:yf),e}function zo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tl(e);if(e.$$typeof===U)return Kt(e)}throw Error(l(438,String(e)))}function af(e){var t=null,s=Ae.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var a=Ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=Do(),Ae.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),a=0;a<e;a++)s[a]=re;return t.index++,s}function wi(e,t){return typeof t=="function"?t(e):t}function ko(e){var t=Ct();return lf(t,rt,e)}function lf(e,t,s){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=s;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=h=null,R=null,V=t,P=!1;do{var $=V.lane&-536870913;if($!==V.lane?(He&$)===$:(Ti&$)===$){var Q=V.revertLane;if(Q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),$===qr&&(P=!0);else if((Ti&Q)===Q){V=V.next,Q===qr&&(P=!0);continue}else $={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(v=R=$,h=u):R=R.next=$,Ae.lanes|=Q,rs|=Q;$=V.action,Ps&&s(u,$),u=V.hasEagerState?V.eagerState:s(u,$)}else Q={lane:$,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(v=R=Q,h=u):R=R.next=Q,Ae.lanes|=$,rs|=$;V=V.next}while(V!==null&&V!==t);if(R===null?h=u:R.next=v,!wn(u,e.memoizedState)&&(Mt=!0,P&&(s=Yr,s!==null)))throw s;e.memoizedState=u,e.baseState=h,e.baseQueue=R,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function of(e){var t=Ct(),s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=e;var a=s.dispatch,o=s.pending,u=t.memoizedState;if(o!==null){s.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);wn(u,t.memoizedState)||(Mt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),s.lastRenderedState=u}return[u,a]}function pp(e,t,s){var a=Ae,o=Ct(),u=Ge;if(u){if(s===void 0)throw Error(l(407));s=s()}else s=t();var h=!wn((rt||o).memoizedState,s);if(h&&(o.memoizedState=s,Mt=!0),o=o.queue,ff(vp.bind(null,a,o,e),[e]),o.getSnapshot!==t||h||_t!==null&&_t.memoizedState.tag&1){if(a.flags|=2048,Kr(9,{destroy:void 0},yp.bind(null,a,o,s,t),null),ct===null)throw Error(l(349));u||(Ti&127)!==0||gp(a,t,s)}return s}function gp(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Ae.updateQueue,t===null?(t=Do(),Ae.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function yp(e,t,s,a){t.value=s,t.getSnapshot=a,bp(t)&&Sp(e)}function vp(e,t,s){return s(function(){bp(t)&&Sp(e)})}function bp(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!wn(e,s)}catch{return!0}}function Sp(e){var t=qs(e,2);t!==null&&yn(t,e,2)}function cf(e){var t=an();if(typeof e=="function"){var s=e;if(e=s(),Ps){En(!0);try{s()}finally{En(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t}function xp(e,t,s,a){return e.baseState=s,lf(e,rt,typeof a=="function"?a:wi)}function Kx(e,t,s,a,o){if(Lo(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};k.T!==null?s(!0):u.isTransition=!1,a(u),s=t.pending,s===null?(u.next=t.pending=u,Ep(t,u)):(u.next=s.next,t.pending=s.next=u)}}function Ep(e,t){var s=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=k.T,h={};k.T=h;try{var v=s(o,a),R=k.S;R!==null&&R(h,v),Tp(e,t,v)}catch(V){uf(e,t,V)}finally{u!==null&&h.types!==null&&(u.types=h.types),k.T=u}}else try{u=s(o,a),Tp(e,t,u)}catch(V){uf(e,t,V)}}function Tp(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(a){wp(e,t,a)},function(a){return uf(e,t,a)}):wp(e,t,s)}function wp(e,t,s){t.status="fulfilled",t.value=s,Rp(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,Ep(e,s)))}function uf(e,t,s){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=s,Rp(t),t=t.next;while(t!==a)}e.action=null}function Rp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Op(e,t){return t}function Cp(e,t){if(Ge){var s=ct.formState;if(s!==null){e:{var a=Ae;if(Ge){if(gt){t:{for(var o=gt,u=Yn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Gn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){gt=Gn(o.nextSibling),a=o.data==="F!";break e}}Ii(a)}a=!1}a&&(t=s[0])}}return s=an(),s.memoizedState=s.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Op,lastRenderedState:t},s.queue=a,s=Fp.bind(null,Ae,a),a.dispatch=s,a=cf(!1),u=gf.bind(null,Ae,!1,a.queue),a=an(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,s=Kx.bind(null,Ae,o,u,s),o.dispatch=s,a.memoizedState=e,[t,s,!1]}function Ap(e){var t=Ct();return _p(t,rt,e)}function _p(e,t,s){if(t=lf(e,t,Op)[0],e=ko(wi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=tl(t)}catch(h){throw h===Vr?wo:h}else a=t;t=Ct();var o=t.queue,u=o.dispatch;return s!==t.memoizedState&&(Ae.flags|=2048,Kr(9,{destroy:void 0},Zx.bind(null,o,s),null)),[a,u,e]}function Zx(e,t){e.action=t}function Mp(e){var t=Ct(),s=rt;if(s!==null)return _p(t,s,e);Ct(),t=t.memoizedState,s=Ct();var a=s.queue.dispatch;return s.memoizedState=e,[t,a,!1]}function Kr(e,t,s,a){return e={tag:e,create:s,deps:a,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Do(),Ae.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(a=s.next,s.next=e,e.next=a,t.lastEffect=e),e}function Np(){return Ct().memoizedState}function jo(e,t,s,a){var o=an();Ae.flags|=e,o.memoizedState=Kr(1|t,{destroy:void 0},s,a===void 0?null:a)}function Uo(e,t,s,a){var o=Ct();a=a===void 0?null:a;var u=o.memoizedState.inst;rt!==null&&a!==null&&ef(a,rt.memoizedState.deps)?o.memoizedState=Kr(t,u,s,a):(Ae.flags|=e,o.memoizedState=Kr(1|t,u,s,a))}function Dp(e,t){jo(8390656,8,e,t)}function ff(e,t){Uo(2048,8,e,t)}function Px(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Do(),Ae.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function zp(e){var t=Ct().memoizedState;return Px({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function kp(e,t){return Uo(4,2,e,t)}function jp(e,t){return Uo(4,4,e,t)}function Up(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lp(e,t,s){s=s!=null?s.concat([e]):null,Uo(4,4,Up.bind(null,t,e),s)}function df(){}function Bp(e,t){var s=Ct();t=t===void 0?null:t;var a=s.memoizedState;return t!==null&&ef(t,a[1])?a[0]:(s.memoizedState=[e,t],e)}function Hp(e,t){var s=Ct();t=t===void 0?null:t;var a=s.memoizedState;if(t!==null&&ef(t,a[1]))return a[0];if(a=e(),Ps){En(!0);try{e()}finally{En(!1)}}return s.memoizedState=[a,t],a}function hf(e,t,s){return s===void 0||(Ti&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=qg(),Ae.lanes|=e,rs|=e,s)}function qp(e,t,s,a){return wn(s,t)?s:Qr.current!==null?(e=hf(e,s,a),wn(e,t)||(Mt=!0),e):(Ti&42)===0||(Ti&1073741824)!==0&&(He&261930)===0?(Mt=!0,e.memoizedState=s):(e=qg(),Ae.lanes|=e,rs|=e,t)}function Yp(e,t,s,a,o){var u=G.p;G.p=u!==0&&8>u?u:8;var h=k.T,v={};k.T=v,gf(e,!1,t,s);try{var R=o(),V=k.S;if(V!==null&&V(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var P=Qx(R,a);nl(e,t,P,Mn(e))}else nl(e,t,a,Mn(e))}catch($){nl(e,t,{then:function(){},status:"rejected",reason:$},Mn())}finally{G.p=u,h!==null&&v.types!==null&&(h.types=v.types),k.T=h}}function Ix(){}function mf(e,t,s,a){if(e.tag!==5)throw Error(l(476));var o=Vp(e).queue;Yp(e,o,t,I,s===null?Ix:function(){return Gp(e),s(a)})}function Vp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:I},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gp(e){var t=Vp(e);t.next===null&&(t=e.alternate.memoizedState),nl(e,t.next.queue,{},Mn())}function pf(){return Kt(bl)}function Qp(){return Ct().memoizedState}function Xp(){return Ct().memoizedState}function Jx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Mn();e=$i(s);var a=es(t,e,s);a!==null&&(yn(a,t,s),Ja(a,t,s)),t={cache:Gu()},e.payload=t;return}t=t.return}}function Wx(e,t,s){var a=Mn();s={lane:a,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Lo(e)?Kp(t,s):(s=Du(e,t,s,a),s!==null&&(yn(s,e,a),Zp(s,t,a)))}function Fp(e,t,s){var a=Mn();nl(e,t,s,a)}function nl(e,t,s,a){var o={lane:a,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Lo(e))Kp(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,s);if(o.hasEagerState=!0,o.eagerState=v,wn(v,h))return yo(e,t,o,0),ct===null&&go(),!1}catch{}finally{}if(s=Du(e,t,o,a),s!==null)return yn(s,e,a),Zp(s,t,a),!0}return!1}function gf(e,t,s,a){if(a={lane:2,revertLane:Zf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Lo(e)){if(t)throw Error(l(479))}else t=Du(e,s,a,2),t!==null&&yn(t,e,2)}function Lo(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Kp(e,t){Xr=Mo=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Zp(e,t,s){if((s&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,s|=a,t.lanes=s,Sr(e,s)}}var il={readContext:Kt,use:zo,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};il.useEffectEvent=xt;var Pp={readContext:Kt,use:zo,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Dp,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,jo(4194308,4,Up.bind(null,t,e),s)},useLayoutEffect:function(e,t){return jo(4194308,4,e,t)},useInsertionEffect:function(e,t){jo(4,2,e,t)},useMemo:function(e,t){var s=an();t=t===void 0?null:t;var a=e();if(Ps){En(!0);try{e()}finally{En(!1)}}return s.memoizedState=[a,t],a},useReducer:function(e,t,s){var a=an();if(s!==void 0){var o=s(t);if(Ps){En(!0);try{s(t)}finally{En(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Wx.bind(null,Ae,e),[a.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:function(e){e=cf(e);var t=e.queue,s=Fp.bind(null,Ae,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:df,useDeferredValue:function(e,t){var s=an();return hf(s,e,t)},useTransition:function(){var e=cf(!1);return e=Yp.bind(null,Ae,e.queue,!0,!1),an().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var a=Ae,o=an();if(Ge){if(s===void 0)throw Error(l(407));s=s()}else{if(s=t(),ct===null)throw Error(l(349));(He&127)!==0||gp(a,t,s)}o.memoizedState=s;var u={value:s,getSnapshot:t};return o.queue=u,Dp(vp.bind(null,a,u,e),[e]),a.flags|=2048,Kr(9,{destroy:void 0},yp.bind(null,a,u,s,t),null),s},useId:function(){var e=an(),t=ct.identifierPrefix;if(Ge){var s=ri,a=si;s=(a&~(1<<32-Ht(a)-1)).toString(32)+s,t="_"+t+"R_"+s,s=No++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=Xx++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:pf,useFormState:Cp,useActionState:Cp,useOptimistic:function(e){var t=an();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=gf.bind(null,Ae,!0,s),s.dispatch=t,[e,t]},useMemoCache:af,useCacheRefresh:function(){return an().memoizedState=Jx.bind(null,Ae)},useEffectEvent:function(e){var t=an(),s={impl:e};return t.memoizedState=s,function(){if((We&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}},yf={readContext:Kt,use:zo,useCallback:Bp,useContext:Kt,useEffect:ff,useImperativeHandle:Lp,useInsertionEffect:kp,useLayoutEffect:jp,useMemo:Hp,useReducer:ko,useRef:Np,useState:function(){return ko(wi)},useDebugValue:df,useDeferredValue:function(e,t){var s=Ct();return qp(s,rt.memoizedState,e,t)},useTransition:function(){var e=ko(wi)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:tl(e),t]},useSyncExternalStore:pp,useId:Qp,useHostTransitionStatus:pf,useFormState:Ap,useActionState:Ap,useOptimistic:function(e,t){var s=Ct();return xp(s,rt,e,t)},useMemoCache:af,useCacheRefresh:Xp};yf.useEffectEvent=zp;var Ip={readContext:Kt,use:zo,useCallback:Bp,useContext:Kt,useEffect:ff,useImperativeHandle:Lp,useInsertionEffect:kp,useLayoutEffect:jp,useMemo:Hp,useReducer:of,useRef:Np,useState:function(){return of(wi)},useDebugValue:df,useDeferredValue:function(e,t){var s=Ct();return rt===null?hf(s,e,t):qp(s,rt.memoizedState,e,t)},useTransition:function(){var e=of(wi)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:tl(e),t]},useSyncExternalStore:pp,useId:Qp,useHostTransitionStatus:pf,useFormState:Mp,useActionState:Mp,useOptimistic:function(e,t){var s=Ct();return rt!==null?xp(s,rt,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:af,useCacheRefresh:Xp};Ip.useEffectEvent=zp;function vf(e,t,s,a){t=e.memoizedState,s=s(a,t),s=s==null?t:b({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var bf={enqueueSetState:function(e,t,s){e=e._reactInternals;var a=Mn(),o=$i(a);o.payload=t,s!=null&&(o.callback=s),t=es(e,o,a),t!==null&&(yn(t,e,a),Ja(t,e,a))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var a=Mn(),o=$i(a);o.tag=1,o.payload=t,s!=null&&(o.callback=s),t=es(e,o,a),t!==null&&(yn(t,e,a),Ja(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Mn(),a=$i(s);a.tag=2,t!=null&&(a.callback=t),t=es(e,a,s),t!==null&&(yn(t,e,s),Ja(t,e,s))}};function Jp(e,t,s,a,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,h):t.prototype&&t.prototype.isPureReactComponent?!Ga(s,a)||!Ga(o,u):!0}function Wp(e,t,s,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,a),t.state!==e&&bf.enqueueReplaceState(t,t.state,null)}function Is(e,t){var s=t;if("ref"in t){s={};for(var a in t)a!=="ref"&&(s[a]=t[a])}if(e=e.defaultProps){s===t&&(s=b({},s));for(var o in e)s[o]===void 0&&(s[o]=e[o])}return s}function $p(e){po(e)}function eg(e){console.error(e)}function tg(e){po(e)}function Bo(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ng(e,t,s){try{var a=e.onCaughtError;a(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Sf(e,t,s){return s=$i(s),s.tag=3,s.payload={element:null},s.callback=function(){Bo(e,t)},s}function ig(e){return e=$i(e),e.tag=3,e}function sg(e,t,s,a){var o=s.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){ng(t,s,a)}}var h=s.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){ng(t,s,a),typeof o!="function"&&(as===null?as=new Set([this]):as.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function $x(e,t,s,a,o){if(s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=s.alternate,t!==null&&Hr(t,s,o,!0),s=On.current,s!==null){switch(s.tag){case 31:case 13:return Vn===null?Io():s.alternate===null&&Et===0&&(Et=3),s.flags&=-257,s.flags|=65536,s.lanes=o,a===Ro?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([a]):t.add(a),Xf(e,a,o)),!1;case 22:return s.flags|=65536,a===Ro?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([a]):s.add(a)),Xf(e,a,o)),!1}throw Error(l(435,s.tag))}return Xf(e,a,o),Io(),!1}if(Ge)return t=On.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Bu&&(e=Error(l(422),{cause:a}),Fa(Bn(e,s)))):(a!==Bu&&(t=Error(l(423),{cause:a}),Fa(Bn(t,s))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Bn(a,s),o=Sf(e.stateNode,a,o),Pu(e,o),Et!==4&&(Et=2)),!1;var u=Error(l(520),{cause:a});if(u=Bn(u,s),fl===null?fl=[u]:fl.push(u),Et!==4&&(Et=2),t===null)return!0;a=Bn(a,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=o&-o,s.lanes|=e,e=Sf(s.stateNode,a,e),Pu(s,e),!1;case 1:if(t=s.type,u=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(as===null||!as.has(u))))return s.flags|=65536,o&=-o,s.lanes|=o,o=ig(o),sg(o,e,s,a),Pu(s,o),!1}s=s.return}while(s!==null);return!1}var xf=Error(l(461)),Mt=!1;function Zt(e,t,s,a){t.child=e===null?op(t,null,s,a):Zs(t,e.child,s,a)}function rg(e,t,s,a,o){s=s.render;var u=t.ref;if("ref"in a){var h={};for(var v in a)v!=="ref"&&(h[v]=a[v])}else h=a;return Qs(t),a=tf(e,t,s,h,u,o),v=nf(),e!==null&&!Mt?(sf(e,t,o),Ri(e,t,o)):(Ge&&v&&Uu(t),t.flags|=1,Zt(e,t,a,o),t.child)}function ag(e,t,s,a,o){if(e===null){var u=s.type;return typeof u=="function"&&!zu(u)&&u.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=u,lg(e,t,u,a,o)):(e=bo(s.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_f(e,o)){var h=u.memoizedProps;if(s=s.compare,s=s!==null?s:Ga,s(h,a)&&e.ref===t.ref)return Ri(e,t,o)}return t.flags|=1,e=bi(u,a),e.ref=t.ref,e.return=t,t.child=e}function lg(e,t,s,a,o){if(e!==null){var u=e.memoizedProps;if(Ga(u,a)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=a=u,_f(e,o))(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,Ri(e,t,o)}return Ef(e,t,s,a,o)}function og(e,t,s,a){var o=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|s:s,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return cg(e,t,u,s,a)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&To(t,u!==null?u.cachePool:null),u!==null?fp(t,u):Ju(),dp(t);else return a=t.lanes=536870912,cg(e,t,u!==null?u.baseLanes|s:s,s,a)}else u!==null?(To(t,u.cachePool),fp(t,u),ns(),t.memoizedState=null):(e!==null&&To(t,null),Ju(),ns());return Zt(e,t,o,s),t.child}function sl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cg(e,t,s,a,o){var u=Xu();return u=u===null?null:{parent:At._currentValue,pool:u},t.memoizedState={baseLanes:s,cachePool:u},e!==null&&To(t,null),Ju(),dp(t),e!==null&&Hr(e,t,a,!0),t.childLanes=o,null}function Ho(e,t){return t=Yo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ug(e,t,s){return Zs(t,e.child,null,s),e=Ho(t,t.pendingProps),e.flags|=2,Cn(t),t.memoizedState=null,e}function eE(e,t,s){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ge){if(a.mode==="hidden")return e=Ho(t,a),t.lanes=536870912,sl(null,e);if($u(t),(e=gt)?(e=Ey(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:si,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},s=Km(e),s.return=t,t.child=s,Ft=t,gt=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return Ho(t,a)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if($u(t),o)if(t.flags&256)t.flags&=-257,t=ug(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(Mt||Hr(e,t,s,!1),o=(s&e.childLanes)!==0,Mt||o){if(a=ct,a!==null&&(h=$l(a,s),h!==0&&h!==u.retryLane))throw u.retryLane=h,qs(e,h),yn(a,e,h),xf;Io(),t=ug(e,t,s)}else e=u.treeContext,gt=Gn(h.nextSibling),Ft=t,Ge=!0,Pi=null,Yn=!1,e!==null&&Im(t,e),t=Ho(t,a),t.flags|=4096;return t}return e=bi(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qo(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(l(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Ef(e,t,s,a,o){return Qs(t),s=tf(e,t,s,a,void 0,o),a=nf(),e!==null&&!Mt?(sf(e,t,o),Ri(e,t,o)):(Ge&&a&&Uu(t),t.flags|=1,Zt(e,t,s,o),t.child)}function fg(e,t,s,a,o,u){return Qs(t),t.updateQueue=null,s=mp(t,a,s,o),hp(e),a=nf(),e!==null&&!Mt?(sf(e,t,u),Ri(e,t,u)):(Ge&&a&&Uu(t),t.flags|=1,Zt(e,t,s,u),t.child)}function dg(e,t,s,a,o){if(Qs(t),t.stateNode===null){var u=jr,h=s.contextType;typeof h=="object"&&h!==null&&(u=Kt(h)),u=new s(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=bf,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Ku(t),h=s.contextType,u.context=typeof h=="object"&&h!==null?Kt(h):jr,u.state=t.memoizedState,h=s.getDerivedStateFromProps,typeof h=="function"&&(vf(t,s,h,a),u.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&bf.enqueueReplaceState(u,u.state,null),$a(t,a,u,o),Wa(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,R=Is(s,v);u.props=R;var V=u.context,P=s.contextType;h=jr,typeof P=="object"&&P!==null&&(h=Kt(P));var $=s.getDerivedStateFromProps;P=typeof $=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,P||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||V!==h)&&Wp(t,u,a,h),Wi=!1;var Q=t.memoizedState;u.state=Q,$a(t,a,u,o),Wa(),V=t.memoizedState,v||Q!==V||Wi?(typeof $=="function"&&(vf(t,s,$,a),V=t.memoizedState),(R=Wi||Jp(t,s,R,a,Q,V,h))?(P||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=V),u.props=a,u.state=V,u.context=h,a=R):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Zu(e,t),h=t.memoizedProps,P=Is(s,h),u.props=P,$=t.pendingProps,Q=u.context,V=s.contextType,R=jr,typeof V=="object"&&V!==null&&(R=Kt(V)),v=s.getDerivedStateFromProps,(V=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==$||Q!==R)&&Wp(t,u,a,R),Wi=!1,Q=t.memoizedState,u.state=Q,$a(t,a,u,o),Wa();var K=t.memoizedState;h!==$||Q!==K||Wi||e!==null&&e.dependencies!==null&&xo(e.dependencies)?(typeof v=="function"&&(vf(t,s,v,a),K=t.memoizedState),(P=Wi||Jp(t,s,P,a,Q,K,R)||e!==null&&e.dependencies!==null&&xo(e.dependencies))?(V||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,K,R),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,K,R)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=K),u.props=a,u.state=K,u.context=R,a=P):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,qo(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,s=a&&typeof s.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Zs(t,e.child,null,o),t.child=Zs(t,null,s,o)):Zt(e,t,s,o),t.memoizedState=u.state,e=t.child):e=Ri(e,t,o),e}function hg(e,t,s,a){return Vs(),t.flags|=256,Zt(e,t,s,a),t.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wf(e){return{baseLanes:e,cachePool:np()}}function Rf(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=_n),e}function mg(e,t,s){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Ot.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(o?ts(t):ns(),(e=gt)?(e=Ey(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:si,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},s=Km(e),s.return=t,t.child=s,Ft=t,gt=null)):e=null,e===null)throw Ii(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,o?(ns(),o=t.mode,v=Yo({mode:"hidden",children:v},o),a=Ys(a,o,s,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=wf(s),a.childLanes=Rf(e,h,s),t.memoizedState=Tf,sl(null,a)):(ts(t),Of(t,v))}var R=e.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(u)t.flags&256?(ts(t),t.flags&=-257,t=Cf(e,t,s)):t.memoizedState!==null?(ns(),t.child=e.child,t.flags|=128,t=null):(ns(),v=a.fallback,o=t.mode,a=Yo({mode:"visible",children:a.children},o),v=Ys(v,o,s,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Zs(t,e.child,null,s),a=t.child,a.memoizedState=wf(s),a.childLanes=Rf(e,h,s),t.memoizedState=Tf,t=sl(null,a));else if(ts(t),ld(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var V=h.dgst;h=V,a=Error(l(419)),a.stack="",a.digest=h,Fa({value:a,source:null,stack:null}),t=Cf(e,t,s)}else if(Mt||Hr(e,t,s,!1),h=(s&e.childLanes)!==0,Mt||h){if(h=ct,h!==null&&(a=$l(h,s),a!==0&&a!==R.retryLane))throw R.retryLane=a,qs(e,a),yn(h,e,a),xf;ad(v)||Io(),t=Cf(e,t,s)}else ad(v)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,gt=Gn(v.nextSibling),Ft=t,Ge=!0,Pi=null,Yn=!1,e!==null&&Im(t,e),t=Of(t,a.children),t.flags|=4096);return t}return o?(ns(),v=a.fallback,o=t.mode,R=e.child,V=R.sibling,a=bi(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,V!==null?v=bi(V,v):(v=Ys(v,o,s,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,sl(null,a),a=t.child,v=e.child.memoizedState,v===null?v=wf(s):(o=v.cachePool,o!==null?(R=At._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=np(),v={baseLanes:v.baseLanes|s,cachePool:o}),a.memoizedState=v,a.childLanes=Rf(e,h,s),t.memoizedState=Tf,sl(e.child,a)):(ts(t),s=e.child,e=s.sibling,s=bi(s,{mode:"visible",children:a.children}),s.return=t,s.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=s,t.memoizedState=null,s)}function Of(e,t){return t=Yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yo(e,t){return e=Rn(22,e,null,t),e.lanes=0,e}function Cf(e,t,s){return Zs(t,e.child,null,s),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pg(e,t,s){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Yu(e.return,t,s)}function Af(e,t,s,a,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:s,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=s,h.tailMode=o,h.treeForkCount=u)}function gg(e,t,s){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var h=Ot.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,te(Ot,h),Zt(e,t,a,s),a=Ge?Xa:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pg(e,s,t);else if(e.tag===19)pg(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(s=t.child,o=null;s!==null;)e=s.alternate,e!==null&&_o(e)===null&&(o=s),s=s.sibling;s=o,s===null?(o=t.child,t.child=null):(o=s.sibling,s.sibling=null),Af(t,!1,o,s,u,a);break;case"backwards":case"unstable_legacy-backwards":for(s=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_o(e)===null){t.child=o;break}e=o.sibling,o.sibling=s,s=o,o=e}Af(t,!0,s,null,u,a);break;case"together":Af(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ri(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),rs|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(Hr(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,s=bi(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=bi(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function _f(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xo(e)))}function tE(e,t,s){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Ji(t,At,e.memoizedState.cache),Vs();break;case 27:case 5:Ze(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$u(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ts(t),t.flags|=128,null):(s&t.child.childLanes)!==0?mg(e,t,s):(ts(t),e=Ri(e,t,s),e!==null?e.sibling:null);ts(t);break;case 19:var o=(e.flags&128)!==0;if(a=(s&t.childLanes)!==0,a||(Hr(e,t,s,!1),a=(s&t.childLanes)!==0),o){if(a)return gg(e,t,s);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(Ot,Ot.current),a)break;return null;case 22:return t.lanes=0,og(e,t,s,t.pendingProps);case 24:Ji(t,At,e.memoizedState.cache)}return Ri(e,t,s)}function yg(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)Mt=!0;else{if(!_f(e,s)&&(t.flags&128)===0)return Mt=!1,tE(e,t,s);Mt=(e.flags&131072)!==0}else Mt=!1,Ge&&(t.flags&1048576)!==0&&Pm(t,Xa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Fs(t.elementType),t.type=e,typeof e=="function")zu(e)?(a=Is(e,a),t.tag=1,t=dg(null,t,e,a,s)):(t.tag=0,t=Ef(null,t,e,a,s));else{if(e!=null){var o=e.$$typeof;if(o===A){t.tag=11,t=rg(null,t,e,a,s);break e}else if(o===q){t.tag=14,t=ag(null,t,e,a,s);break e}}throw t=oe(e)||e,Error(l(306,t,""))}}return t;case 0:return Ef(e,t,t.type,t.pendingProps,s);case 1:return a=t.type,o=Is(a,t.pendingProps),dg(e,t,a,o,s);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,Zu(e,t),$a(t,a,null,s);var h=t.memoizedState;if(a=h.cache,Ji(t,At,a),a!==u.cache&&Vu(t,[At],s,!0),Wa(),a=h.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=hg(e,t,a,s);break e}else if(a!==o){o=Bn(Error(l(424)),t),Fa(o),t=hg(e,t,a,s);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(gt=Gn(e.firstChild),Ft=t,Ge=!0,Pi=null,Yn=!0,s=op(t,null,a,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Vs(),a===o){t=Ri(e,t,s);break e}Zt(e,t,a,s)}t=t.child}return t;case 26:return qo(e,t),e===null?(s=Ay(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ge||(s=t.type,e=t.pendingProps,a=ic(ee.current).createElement(s),a[jt]=t,a[$t]=e,Pt(a,s,e),Yt(a),t.stateNode=a):t.memoizedState=Ay(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ze(t),e===null&&Ge&&(a=t.stateNode=Ry(t.type,t.pendingProps,ee.current),Ft=t,Yn=!0,o=gt,us(t.type)?(od=o,gt=Gn(a.firstChild)):gt=o),Zt(e,t,t.pendingProps.children,s),qo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ge&&((o=a=gt)&&(a=NE(a,t.type,t.pendingProps,Yn),a!==null?(t.stateNode=a,Ft=t,gt=Gn(a.firstChild),Yn=!1,o=!0):o=!1),o||Ii(t)),Ze(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,a=u.children,id(o,u)?a=null:h!==null&&id(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=tf(e,t,Fx,null,null,s),bl._currentValue=o),qo(e,t),Zt(e,t,a,s),t.child;case 6:return e===null&&Ge&&((e=s=gt)&&(s=DE(s,t.pendingProps,Yn),s!==null?(t.stateNode=s,Ft=t,gt=null,e=!0):e=!1),e||Ii(t)),null;case 13:return mg(e,t,s);case 4:return ce(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Zs(t,null,a,s):Zt(e,t,a,s),t.child;case 11:return rg(e,t,t.type,t.pendingProps,s);case 7:return Zt(e,t,t.pendingProps,s),t.child;case 8:return Zt(e,t,t.pendingProps.children,s),t.child;case 12:return Zt(e,t,t.pendingProps.children,s),t.child;case 10:return a=t.pendingProps,Ji(t,t.type,a.value),Zt(e,t,a.children,s),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Qs(t),o=Kt(o),a=a(o),t.flags|=1,Zt(e,t,a,s),t.child;case 14:return ag(e,t,t.type,t.pendingProps,s);case 15:return lg(e,t,t.type,t.pendingProps,s);case 19:return gg(e,t,s);case 31:return eE(e,t,s);case 22:return og(e,t,s,t.pendingProps);case 24:return Qs(t),a=Kt(At),e===null?(o=Xu(),o===null&&(o=ct,u=Gu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=s),o=u),t.memoizedState={parent:a,cache:o},Ku(t),Ji(t,At,o)):((e.lanes&s)!==0&&(Zu(e,t),$a(t,null,null,s),Wa()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ji(t,At,a)):(a=u.cache,Ji(t,At,a),a!==o.cache&&Vu(t,[At],s,!0))),Zt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Oi(e){e.flags|=4}function Mf(e,t,s,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Qg())e.flags|=8192;else throw Ks=Ro,Fu}else e.flags&=-16777217}function vg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zy(t))if(Qg())e.flags|=8192;else throw Ks=Ro,Fu}function Vo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ni():536870912,e.lanes|=t,Jr|=t)}function rl(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,a=0;if(t)for(var o=e.child;o!==null;)s|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)s|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=s,t}function nE(e,t,s){var a=t.pendingProps;switch(Lu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return yt(t),null;case 3:return s=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ei(At),de(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Br(t)?Oi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hu())),yt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Oi(t),u!==null?(yt(t),vg(t,u)):(yt(t),Mf(t,o,null,a,s))):u?u!==e.memoizedState?(Oi(t),yt(t),vg(t,u)):(yt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Oi(t),yt(t),Mf(t,o,e,a,s)),null;case 27:if(nt(t),s=ee.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Oi(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return yt(t),null}e=ie.current,Br(t)?Jm(t):(e=Ry(o,a,s),t.stateNode=e,Oi(t))}return yt(t),null;case 5:if(nt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Oi(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return yt(t),null}if(u=ie.current,Br(t))Jm(t);else{var h=ic(ee.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?h.createElement(o,{is:a.is}):h.createElement(o)}}u[jt]=t,u[$t]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Pt(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Oi(t)}}return yt(t),Mf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Oi(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=ee.current,Br(t)){if(e=t.stateNode,s=t.memoizedProps,a=null,o=Ft,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[jt]=t,e=!!(e.nodeValue===s||a!==null&&a.suppressHydrationWarning===!0||my(e.nodeValue,s)),e||Ii(t,!0)}else e=ic(e).createTextNode(a),e[jt]=t,t.stateNode=e}return yt(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(a=Br(t),s!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[jt]=t}else Vs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),e=!1}else s=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(Cn(t),t):(Cn(t),null);if((t.flags&128)!==0)throw Error(l(558))}return yt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Br(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[jt]=t}else Vs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),o=!1}else o=Hu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Cn(t),t):(Cn(t),null)}return Cn(t),(t.flags&128)!==0?(t.lanes=s,t):(s=a!==null,e=e!==null&&e.memoizedState!==null,s&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),Vo(t,t.updateQueue),yt(t),null);case 4:return de(),e===null&&Wf(t.stateNode.containerInfo),yt(t),null;case 10:return Ei(t.type),yt(t),null;case 19:if(B(Ot),a=t.memoizedState,a===null)return yt(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)rl(a,!1);else{if(Et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=_o(e),u!==null){for(t.flags|=128,rl(a,!1),e=u.updateQueue,t.updateQueue=e,Vo(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Fm(s,e),s=s.sibling;return te(Ot,Ot.current&1|2),Ge&&Si(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ue()>Ko&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304)}else{if(!o)if(e=_o(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vo(t,e),rl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Ge)return yt(t),null}else 2*ue()-a.renderingStartTime>Ko&&s!==536870912&&(t.flags|=128,o=!0,rl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ue(),e.sibling=null,s=Ot.current,te(Ot,o?s&1|2:s&1),Ge&&Si(t,a.treeForkCount),e):(yt(t),null);case 22:case 23:return Cn(t),Wu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(s&536870912)!==0&&(t.flags&128)===0&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),s=t.updateQueue,s!==null&&Vo(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==s&&(t.flags|=2048),e!==null&&B(Xs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ei(At),yt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function iE(e,t){switch(Lu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ei(At),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nt(t),null;case 31:if(t.memoizedState!==null){if(Cn(t),t.alternate===null)throw Error(l(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ot),null;case 4:return de(),null;case 10:return Ei(t.type),null;case 22:case 23:return Cn(t),Wu(),e!==null&&B(Xs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ei(At),null;case 25:return null;default:return null}}function bg(e,t){switch(Lu(t),t.tag){case 3:Ei(At),de();break;case 26:case 27:case 5:nt(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Cn(t);break;case 13:Cn(t);break;case 19:B(Ot);break;case 10:Ei(t.type);break;case 22:case 23:Cn(t),Wu(),e!==null&&B(Xs);break;case 24:Ei(At)}}function al(e,t){try{var s=t.updateQueue,a=s!==null?s.lastEffect:null;if(a!==null){var o=a.next;s=o;do{if((s.tag&e)===e){a=void 0;var u=s.create,h=s.inst;a=u(),h.destroy=a}s=s.next}while(s!==o)}}catch(v){st(t,t.return,v)}}function is(e,t,s){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var h=a.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var R=s,V=v;try{V()}catch(P){st(o,R,P)}}}a=a.next}while(a!==u)}}catch(P){st(t,t.return,P)}}function Sg(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{up(t,s)}catch(a){st(e,e.return,a)}}}function xg(e,t,s){s.props=Is(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(a){st(e,t,a)}}function ll(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof s=="function"?e.refCleanup=s(a):s.current=a}}catch(o){st(e,t,o)}}function ai(e,t){var s=e.ref,a=e.refCleanup;if(s!==null)if(typeof a=="function")try{a()}catch(o){st(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(o){st(e,t,o)}else s.current=null}function Eg(e){var t=e.type,s=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&a.focus();break e;case"img":s.src?a.src=s.src:s.srcSet&&(a.srcset=s.srcSet)}}catch(o){st(e,e.return,o)}}function Nf(e,t,s){try{var a=e.stateNode;RE(a,e.type,s,t),a[$t]=t}catch(o){st(e,e.return,o)}}function Tg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&us(e.type)||e.tag===4}function Df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tg(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&&us(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 zf(e,t,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=yi));else if(a!==4&&(a===27&&us(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(zf(e,t,s),e=e.sibling;e!==null;)zf(e,t,s),e=e.sibling}function Go(e,t,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(a!==4&&(a===27&&us(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Go(e,t,s),e=e.sibling;e!==null;)Go(e,t,s),e=e.sibling}function wg(e){var t=e.stateNode,s=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Pt(t,a,s),t[jt]=e,t[$t]=s}catch(u){st(e,e.return,u)}}var Ci=!1,Nt=!1,kf=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function sE(e,t){if(e=e.containerInfo,td=uc,e=Lm(e),Ou(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var h=0,v=-1,R=-1,V=0,P=0,$=e,Q=null;t:for(;;){for(var K;$!==s||o!==0&&$.nodeType!==3||(v=h+o),$!==u||a!==0&&$.nodeType!==3||(R=h+a),$.nodeType===3&&(h+=$.nodeValue.length),(K=$.firstChild)!==null;)Q=$,$=K;for(;;){if($===e)break t;if(Q===s&&++V===o&&(v=h),Q===u&&++P===a&&(R=h),(K=$.nextSibling)!==null)break;$=Q,Q=$.parentNode}$=K}s=v===-1||R===-1?null:{start:v,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(nd={focusedElem:e,selectionRange:s},uc=!1,Vt=t;Vt!==null;)if(t=Vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Vt=e;else for(;Vt!==null;){switch(t=Vt,u=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(s=0;s<e.length;s++)o=e[s],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,s=t,o=u.memoizedProps,u=u.memoizedState,a=s.stateNode;try{var ye=Is(s.type,o);e=a.getSnapshotBeforeUpdate(ye,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(we){st(s,s.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)rd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rd(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,Vt=e;break}Vt=t.return}}function Og(e,t,s){var a=s.flags;switch(s.tag){case 0:case 11:case 15:_i(e,s),a&4&&al(5,s);break;case 1:if(_i(e,s),a&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(h){st(s,s.return,h)}else{var o=Is(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){st(s,s.return,h)}}a&64&&Sg(s),a&512&&ll(s,s.return);break;case 3:if(_i(e,s),a&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{up(e,t)}catch(h){st(s,s.return,h)}}break;case 27:t===null&&a&4&&wg(s);case 26:case 5:_i(e,s),t===null&&a&4&&Eg(s),a&512&&ll(s,s.return);break;case 12:_i(e,s);break;case 31:_i(e,s),a&4&&_g(e,s);break;case 13:_i(e,s),a&4&&Mg(e,s),a&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=hE.bind(null,s),zE(e,s))));break;case 22:if(a=s.memoizedState!==null||Ci,!a){t=t!==null&&t.memoizedState!==null||Nt,o=Ci;var u=Nt;Ci=a,(Nt=t)&&!u?Mi(e,s,(s.subtreeFlags&8772)!==0):_i(e,s),Ci=o,Nt=u}break;case 30:break;default:_i(e,s)}}function Cg(e){var t=e.alternate;t!==null&&(e.alternate=null,Cg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cu(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 vt=null,hn=!1;function Ai(e,t,s){for(s=s.child;s!==null;)Ag(e,t,s),s=s.sibling}function Ag(e,t,s){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(cn,s)}catch{}switch(s.tag){case 26:Nt||ai(s,t),Ai(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Nt||ai(s,t);var a=vt,o=hn;us(s.type)&&(vt=s.stateNode,hn=!1),Ai(e,t,s),gl(s.stateNode),vt=a,hn=o;break;case 5:Nt||ai(s,t);case 6:if(a=vt,o=hn,vt=null,Ai(e,t,s),vt=a,hn=o,vt!==null)if(hn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(s.stateNode)}catch(u){st(s,t,u)}else try{vt.removeChild(s.stateNode)}catch(u){st(s,t,u)}break;case 18:vt!==null&&(hn?(e=vt,Sy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),ra(e)):Sy(vt,s.stateNode));break;case 4:a=vt,o=hn,vt=s.stateNode.containerInfo,hn=!0,Ai(e,t,s),vt=a,hn=o;break;case 0:case 11:case 14:case 15:is(2,s,t),Nt||is(4,s,t),Ai(e,t,s);break;case 1:Nt||(ai(s,t),a=s.stateNode,typeof a.componentWillUnmount=="function"&&xg(s,t,a)),Ai(e,t,s);break;case 21:Ai(e,t,s);break;case 22:Nt=(a=Nt)||s.memoizedState!==null,Ai(e,t,s),Nt=a;break;default:Ai(e,t,s)}}function _g(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ra(e)}catch(s){st(t,t.return,s)}}}function Mg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ra(e)}catch(s){st(t,t.return,s)}}function rE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rg),t;default:throw Error(l(435,e.tag))}}function Qo(e,t){var s=rE(e);t.forEach(function(a){if(!s.has(a)){s.add(a);var o=mE.bind(null,e,a);a.then(o,o)}})}function mn(e,t){var s=t.deletions;if(s!==null)for(var a=0;a<s.length;a++){var o=s[a],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(us(v.type)){vt=v.stateNode,hn=!1;break e}break;case 5:vt=v.stateNode,hn=!1;break e;case 3:case 4:vt=v.stateNode.containerInfo,hn=!0;break e}v=v.return}if(vt===null)throw Error(l(160));Ag(u,h,o),vt=null,hn=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ng(t,e),t=t.sibling}var Pn=null;function Ng(e,t){var s=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mn(t,e),pn(e),a&4&&(is(3,e,e.return),al(3,e),is(5,e,e.return));break;case 1:mn(t,e),pn(e),a&512&&(Nt||s===null||ai(s,s.return)),a&64&&Ci&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?a:s.concat(a))));break;case 26:var o=Pn;if(mn(t,e),pn(e),a&512&&(Nt||s===null||ai(s,s.return)),a&4){var u=s!==null?s.memoizedState:null;if(a=e.memoizedState,s===null)if(a===null)if(e.stateNode===null){e:{a=e.type,s=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[ka]||u[jt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),Pt(u,a,s),u[jt]=e,Yt(u),a=u;break e;case"link":var h=Ny("link","href",o).get(a+(s.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&u.getAttribute("rel")===(s.rel==null?null:s.rel)&&u.getAttribute("title")===(s.title==null?null:s.title)&&u.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){h.splice(v,1);break t}}u=o.createElement(a),Pt(u,a,s),o.head.appendChild(u);break;case"meta":if(h=Ny("meta","content",o).get(a+(s.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(s.content==null?null:""+s.content)&&u.getAttribute("name")===(s.name==null?null:s.name)&&u.getAttribute("property")===(s.property==null?null:s.property)&&u.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&u.getAttribute("charset")===(s.charSet==null?null:s.charSet)){h.splice(v,1);break t}}u=o.createElement(a),Pt(u,a,s),o.head.appendChild(u);break;default:throw Error(l(468,a))}u[jt]=e,Yt(u),a=u}e.stateNode=a}else Dy(o,e.type,e.stateNode);else e.stateNode=My(o,a,e.memoizedProps);else u!==a?(u===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):u.count--,a===null?Dy(o,e.type,e.stateNode):My(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Nf(e,e.memoizedProps,s.memoizedProps)}break;case 27:mn(t,e),pn(e),a&512&&(Nt||s===null||ai(s,s.return)),s!==null&&a&4&&Nf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(mn(t,e),pn(e),a&512&&(Nt||s===null||ai(s,s.return)),e.flags&32){o=e.stateNode;try{Ar(o,"")}catch(ye){st(e,e.return,ye)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Nf(e,o,s!==null?s.memoizedProps:o)),a&1024&&(kf=!0);break;case 6:if(mn(t,e),pn(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,s=e.stateNode;try{s.nodeValue=a}catch(ye){st(e,e.return,ye)}}break;case 3:if(ac=null,o=Pn,Pn=sc(t.containerInfo),mn(t,e),Pn=o,pn(e),a&4&&s!==null&&s.memoizedState.isDehydrated)try{ra(t.containerInfo)}catch(ye){st(e,e.return,ye)}kf&&(kf=!1,Dg(e));break;case 4:a=Pn,Pn=sc(e.stateNode.containerInfo),mn(t,e),pn(e),Pn=a;break;case 12:mn(t,e),pn(e);break;case 31:mn(t,e),pn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qo(e,a)));break;case 13:mn(t,e),pn(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Fo=ue()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qo(e,a)));break;case 22:o=e.memoizedState!==null;var R=s!==null&&s.memoizedState!==null,V=Ci,P=Nt;if(Ci=V||o,Nt=P||R,mn(t,e),Nt=P,Ci=V,pn(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(s===null||R||Ci||Nt||Js(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){R=s=t;try{if(u=R.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=R.stateNode;var $=R.memoizedProps.style,Q=$!=null&&$.hasOwnProperty("display")?$.display:null;v.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ye){st(R,R.return,ye)}}}else if(t.tag===6){if(s===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(ye){st(R,R.return,ye)}}}else if(t.tag===18){if(s===null){R=t;try{var K=R.stateNode;o?xy(K,!0):xy(R.stateNode,!1)}catch(ye){st(R,R.return,ye)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(s=a.retryQueue,s!==null&&(a.retryQueue=null,Qo(e,s))));break;case 19:mn(t,e),pn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qo(e,a)));break;case 30:break;case 21:break;default:mn(t,e),pn(e)}}function pn(e){var t=e.flags;if(t&2){try{for(var s,a=e.return;a!==null;){if(Tg(a)){s=a;break}a=a.return}if(s==null)throw Error(l(160));switch(s.tag){case 27:var o=s.stateNode,u=Df(e);Go(e,u,o);break;case 5:var h=s.stateNode;s.flags&32&&(Ar(h,""),s.flags&=-33);var v=Df(e);Go(e,v,h);break;case 3:case 4:var R=s.stateNode.containerInfo,V=Df(e);zf(e,V,R);break;default:throw Error(l(161))}}catch(P){st(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _i(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Og(e,t.alternate,t),t=t.sibling}function Js(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:is(4,t,t.return),Js(t);break;case 1:ai(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&xg(t,t.return,s),Js(t);break;case 27:gl(t.stateNode);case 26:case 5:ai(t,t.return),Js(t);break;case 22:t.memoizedState===null&&Js(t);break;case 30:Js(t);break;default:Js(t)}e=e.sibling}}function Mi(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Mi(o,u,s),al(4,u);break;case 1:if(Mi(o,u,s),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(V){st(a,a.return,V)}if(a=u,o=a.updateQueue,o!==null){var v=a.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)cp(R[o],v)}catch(V){st(a,a.return,V)}}s&&h&64&&Sg(u),ll(u,u.return);break;case 27:wg(u);case 26:case 5:Mi(o,u,s),s&&a===null&&h&4&&Eg(u),ll(u,u.return);break;case 12:Mi(o,u,s);break;case 31:Mi(o,u,s),s&&h&4&&_g(o,u);break;case 13:Mi(o,u,s),s&&h&4&&Mg(o,u);break;case 22:u.memoizedState===null&&Mi(o,u,s),ll(u,u.return);break;case 30:break;default:Mi(o,u,s)}t=t.sibling}}function jf(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Ka(s))}function Uf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ka(e))}function In(e,t,s,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zg(e,t,s,a),t=t.sibling}function zg(e,t,s,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:In(e,t,s,a),o&2048&&al(9,t);break;case 1:In(e,t,s,a);break;case 3:In(e,t,s,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ka(e)));break;case 12:if(o&2048){In(e,t,s,a),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){st(t,t.return,R)}}else In(e,t,s,a);break;case 31:In(e,t,s,a);break;case 13:In(e,t,s,a);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?In(e,t,s,a):ol(e,t):u._visibility&2?In(e,t,s,a):(u._visibility|=2,Zr(e,t,s,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&jf(h,t);break;case 24:In(e,t,s,a),o&2048&&Uf(t.alternate,t);break;default:In(e,t,s,a)}}function Zr(e,t,s,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=s,R=a,V=h.flags;switch(h.tag){case 0:case 11:case 15:Zr(u,h,v,R,o),al(8,h);break;case 23:break;case 22:var P=h.stateNode;h.memoizedState!==null?P._visibility&2?Zr(u,h,v,R,o):ol(u,h):(P._visibility|=2,Zr(u,h,v,R,o)),o&&V&2048&&jf(h.alternate,h);break;case 24:Zr(u,h,v,R,o),o&&V&2048&&Uf(h.alternate,h);break;default:Zr(u,h,v,R,o)}t=t.sibling}}function ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,a=t,o=a.flags;switch(a.tag){case 22:ol(s,a),o&2048&&jf(a.alternate,a);break;case 24:ol(s,a),o&2048&&Uf(a.alternate,a);break;default:ol(s,a)}t=t.sibling}}var cl=8192;function Pr(e,t,s){if(e.subtreeFlags&cl)for(e=e.child;e!==null;)kg(e,t,s),e=e.sibling}function kg(e,t,s){switch(e.tag){case 26:Pr(e,t,s),e.flags&cl&&e.memoizedState!==null&&XE(s,Pn,e.memoizedState,e.memoizedProps);break;case 5:Pr(e,t,s);break;case 3:case 4:var a=Pn;Pn=sc(e.stateNode.containerInfo),Pr(e,t,s),Pn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=cl,cl=16777216,Pr(e,t,s),cl=a):Pr(e,t,s));break;default:Pr(e,t,s)}}function jg(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 ul(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var a=t[s];Vt=a,Lg(a,e)}jg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ug(e),e=e.sibling}function Ug(e){switch(e.tag){case 0:case 11:case 15:ul(e),e.flags&2048&&is(9,e,e.return);break;case 3:ul(e);break;case 12:ul(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xo(e)):ul(e);break;default:ul(e)}}function Xo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var a=t[s];Vt=a,Lg(a,e)}jg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:is(8,t,t.return),Xo(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Xo(t));break;default:Xo(t)}e=e.sibling}}function Lg(e,t){for(;Vt!==null;){var s=Vt;switch(s.tag){case 0:case 11:case 15:is(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var a=s.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ka(s.memoizedState.cache)}if(a=s.child,a!==null)a.return=s,Vt=a;else e:for(s=e;Vt!==null;){a=Vt;var o=a.sibling,u=a.return;if(Cg(a),a===s){Vt=null;break e}if(o!==null){o.return=u,Vt=o;break e}Vt=u}}}var aE={getCacheForType:function(e){var t=Kt(At),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return Kt(At).controller.signal}},lE=typeof WeakMap=="function"?WeakMap:Map,We=0,ct=null,Ue=null,He=0,it=0,An=null,ss=!1,Ir=!1,Lf=!1,Ni=0,Et=0,rs=0,Ws=0,Bf=0,_n=0,Jr=0,fl=null,gn=null,Hf=!1,Fo=0,Bg=0,Ko=1/0,Zo=null,as=null,Ut=0,ls=null,Wr=null,Di=0,qf=0,Yf=null,Hg=null,dl=0,Vf=null;function Mn(){return(We&2)!==0&&He!==0?He&-He:k.T!==null?Zf():eo()}function qg(){if(_n===0)if((He&536870912)===0||Ge){var e=Fe;Fe<<=1,(Fe&3932160)===0&&(Fe=262144),_n=e}else _n=536870912;return e=On.current,e!==null&&(e.flags|=32),_n}function yn(e,t,s){(e===ct&&(it===2||it===9)||e.cancelPendingCommit!==null)&&($r(e,0),os(e,He,_n,!1)),un(e,s),((We&2)===0||e!==ct)&&(e===ct&&((We&2)===0&&(Ws|=s),Et===4&&os(e,He,_n,!1)),li(e))}function Yg(e,t,s){if((We&6)!==0)throw Error(l(327));var a=!s&&(t&127)===0&&(t&e.expiredLanes)===0||rn(e,t),o=a?uE(e,t):Qf(e,t,!0),u=a;do{if(o===0){Ir&&!a&&os(e,t,0,!1);break}else{if(s=e.current.alternate,u&&!oE(s)){o=Qf(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=fl;var R=v.current.memoizedState.isDehydrated;if(R&&($r(v,h).flags|=256),h=Qf(v,h,!1),h!==2){if(Lf&&!R){v.errorRecoveryDisabledLanes|=u,Ws|=u,o=4;break e}u=gn,gn=o,u!==null&&(gn===null?gn=u:gn.push.apply(gn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){$r(e,0),os(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:os(a,t,_n,!ss);break e;case 2:gn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Fo+300-ue(),10<o)){if(os(a,t,_n,!ss),Xt(a,0,!0)!==0)break e;Di=t,a.timeoutHandle=vy(Vg.bind(null,a,s,gn,Zo,Hf,t,_n,Ws,Jr,ss,u,"Throttled",-0,0),o);break e}Vg(a,s,gn,Zo,Hf,t,_n,Ws,Jr,ss,u,null,-0,0)}}break}while(!0);li(e)}function Vg(e,t,s,a,o,u,h,v,R,V,P,$,Q,K){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yi},kg(t,u,$);var ye=(u&62914560)===u?Fo-ue():(u&4194048)===u?Bg-ue():0;if(ye=FE($,ye),ye!==null){Di=u,e.cancelPendingCommit=ye(Ig.bind(null,e,t,u,s,a,o,h,v,R,P,$,null,Q,K)),os(e,u,h,!V);return}}Ig(e,t,u,s,a,o,h,v,R)}function oE(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var a=0;a<s.length;a++){var o=s[a],u=o.getSnapshot;o=o.value;try{if(!wn(u(),o))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 os(e,t,s,a){t&=~Bf,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-Ht(o),h=1<<u;a[u]=-1,o&=~h}s!==0&&br(e,s,t)}function Po(){return(We&6)===0?(hl(0),!1):!0}function Gf(){if(Ue!==null){if(it===0)var e=Ue.return;else e=Ue,xi=Gs=null,rf(e),Gr=null,Pa=0,e=Ue;for(;e!==null;)bg(e.alternate,e),e=e.return;Ue=null}}function $r(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,AE(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Di=0,Gf(),ct=e,Ue=s=bi(e.current,null),He=t,it=0,An=null,ss=!1,Ir=rn(e,t),Lf=!1,Jr=_n=Bf=Ws=rs=Et=0,gn=fl=null,Hf=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-Ht(a),u=1<<o;t|=e[o],a&=~u}return Ni=t,go(),s}function Gg(e,t){Ae=null,k.H=il,t===Vr||t===wo?(t=rp(),it=3):t===Fu?(t=rp(),it=4):it=t===xf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,An=t,Ue===null&&(Et=1,Bo(e,Bn(t,e.current)))}function Qg(){var e=On.current;return e===null?!0:(He&4194048)===He?Vn===null:(He&62914560)===He||(He&536870912)!==0?e===Vn:!1}function Xg(){var e=k.H;return k.H=il,e===null?il:e}function Fg(){var e=k.A;return k.A=aE,e}function Io(){Et=4,ss||(He&4194048)!==He&&On.current!==null||(Ir=!0),(rs&134217727)===0&&(Ws&134217727)===0||ct===null||os(ct,He,_n,!1)}function Qf(e,t,s){var a=We;We|=2;var o=Xg(),u=Fg();(ct!==e||He!==t)&&(Zo=null,$r(e,t)),t=!1;var h=Et;e:do try{if(it!==0&&Ue!==null){var v=Ue,R=An;switch(it){case 8:Gf(),h=6;break e;case 3:case 2:case 9:case 6:On.current===null&&(t=!0);var V=it;if(it=0,An=null,ea(e,v,R,V),s&&Ir){h=0;break e}break;default:V=it,it=0,An=null,ea(e,v,R,V)}}cE(),h=Et;break}catch(P){Gg(e,P)}while(!0);return t&&e.shellSuspendCounter++,xi=Gs=null,We=a,k.H=o,k.A=u,Ue===null&&(ct=null,He=0,go()),h}function cE(){for(;Ue!==null;)Kg(Ue)}function uE(e,t){var s=We;We|=2;var a=Xg(),o=Fg();ct!==e||He!==t?(Zo=null,Ko=ue()+500,$r(e,t)):Ir=rn(e,t);e:do try{if(it!==0&&Ue!==null){t=Ue;var u=An;t:switch(it){case 1:it=0,An=null,ea(e,t,u,1);break;case 2:case 9:if(ip(u)){it=0,An=null,Zg(t);break}t=function(){it!==2&&it!==9||ct!==e||(it=7),li(e)},u.then(t,t);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:ip(u)?(it=0,An=null,Zg(t)):(it=0,An=null,ea(e,t,u,7));break;case 5:var h=null;switch(Ue.tag){case 26:h=Ue.memoizedState;case 5:case 27:var v=Ue;if(h?zy(h):v.stateNode.complete){it=0,An=null;var R=v.sibling;if(R!==null)Ue=R;else{var V=v.return;V!==null?(Ue=V,Jo(V)):Ue=null}break t}}it=0,An=null,ea(e,t,u,5);break;case 6:it=0,An=null,ea(e,t,u,6);break;case 8:Gf(),Et=6;break e;default:throw Error(l(462))}}fE();break}catch(P){Gg(e,P)}while(!0);return xi=Gs=null,k.H=a,k.A=o,We=s,Ue!==null?0:(ct=null,He=0,go(),Et)}function fE(){for(;Ue!==null&&!je();)Kg(Ue)}function Kg(e){var t=yg(e.alternate,e,Ni);e.memoizedProps=e.pendingProps,t===null?Jo(e):Ue=t}function Zg(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=fg(s,t,t.pendingProps,t.type,void 0,He);break;case 11:t=fg(s,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:rf(t);default:bg(s,t),t=Ue=Fm(t,Ni),t=yg(s,t,Ni)}e.memoizedProps=e.pendingProps,t===null?Jo(e):Ue=t}function ea(e,t,s,a){xi=Gs=null,rf(t),Gr=null,Pa=0;var o=t.return;try{if($x(e,o,t,s,He)){Et=1,Bo(e,Bn(s,e.current)),Ue=null;return}}catch(u){if(o!==null)throw Ue=o,u;Et=1,Bo(e,Bn(s,e.current)),Ue=null;return}t.flags&32768?(Ge||a===1?e=!0:Ir||(He&536870912)!==0?e=!1:(ss=e=!0,(a===2||a===9||a===3||a===6)&&(a=On.current,a!==null&&a.tag===13&&(a.flags|=16384))),Pg(t,e)):Jo(t)}function Jo(e){var t=e;do{if((t.flags&32768)!==0){Pg(t,ss);return}e=t.return;var s=nE(t.alternate,t,Ni);if(s!==null){Ue=s;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);Et===0&&(Et=5)}function Pg(e,t){do{var s=iE(e.alternate,e);if(s!==null){s.flags&=32767,Ue=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=s}while(e!==null);Et=6,Ue=null}function Ig(e,t,s,a,o,u,h,v,R){e.cancelPendingCommit=null;do Wo();while(Ut!==0);if((We&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=Nu,za(e,s,u,h,v,R),e===ct&&(Ue=ct=null,He=0),Wr=t,ls=e,Di=s,qf=u,Yf=o,Hg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pE(pt,function(){return ty(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,o=G.p,G.p=2,h=We,We|=4;try{sE(e,t,s)}finally{We=h,G.p=o,k.T=a}}Ut=1,Jg(),Wg(),$g()}}function Jg(){if(Ut===1){Ut=0;var e=ls,t=Wr,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=k.T,k.T=null;var a=G.p;G.p=2;var o=We;We|=4;try{Ng(t,e);var u=nd,h=Lm(e.containerInfo),v=u.focusedElem,R=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&Um(v.ownerDocument.documentElement,v)){if(R!==null&&Ou(v)){var V=R.start,P=R.end;if(P===void 0&&(P=V),"selectionStart"in v)v.selectionStart=V,v.selectionEnd=Math.min(P,v.value.length);else{var $=v.ownerDocument||document,Q=$&&$.defaultView||window;if(Q.getSelection){var K=Q.getSelection(),ye=v.textContent.length,we=Math.min(R.start,ye),lt=R.end===void 0?we:Math.min(R.end,ye);!K.extend&&we>lt&&(h=lt,lt=we,we=h);var L=jm(v,we),D=jm(v,lt);if(L&&D&&(K.rangeCount!==1||K.anchorNode!==L.node||K.anchorOffset!==L.offset||K.focusNode!==D.node||K.focusOffset!==D.offset)){var Y=$.createRange();Y.setStart(L.node,L.offset),K.removeAllRanges(),we>lt?(K.addRange(Y),K.extend(D.node,D.offset)):(Y.setEnd(D.node,D.offset),K.addRange(Y))}}}}for($=[],K=v;K=K.parentNode;)K.nodeType===1&&$.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<$.length;v++){var W=$[v];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}uc=!!td,nd=td=null}finally{We=o,G.p=a,k.T=s}}e.current=t,Ut=2}}function Wg(){if(Ut===2){Ut=0;var e=ls,t=Wr,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=k.T,k.T=null;var a=G.p;G.p=2;var o=We;We|=4;try{Og(e,t.alternate,t)}finally{We=o,G.p=a,k.T=s}}Ut=3}}function $g(){if(Ut===4||Ut===3){Ut=0,St();var e=ls,t=Wr,s=Di,a=Hg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ut=5:(Ut=0,Wr=ls=null,ey(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(as=null),xr(s),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(cn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,o=G.p,G.p=2,k.T=null;try{for(var u=e.onRecoverableError,h=0;h<a.length;h++){var v=a[h];u(v.value,{componentStack:v.stack})}}finally{k.T=t,G.p=o}}(Di&3)!==0&&Wo(),li(e),o=e.pendingLanes,(s&261930)!==0&&(o&42)!==0?e===Vf?dl++:(dl=0,Vf=e):dl=0,hl(0)}}function ey(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ka(t)))}function Wo(){return Jg(),Wg(),$g(),ty()}function ty(){if(Ut!==5)return!1;var e=ls,t=qf;qf=0;var s=xr(Di),a=k.T,o=G.p;try{G.p=32>s?32:s,k.T=null,s=Yf,Yf=null;var u=ls,h=Di;if(Ut=0,Wr=ls=null,Di=0,(We&6)!==0)throw Error(l(331));var v=We;if(We|=4,Ug(u.current),zg(u,u.current,h,s),We=v,hl(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(cn,u)}catch{}return!0}finally{G.p=o,k.T=a,ey(e,t)}}function ny(e,t,s){t=Bn(s,t),t=Sf(e.stateNode,t,2),e=es(e,t,2),e!==null&&(un(e,2),li(e))}function st(e,t,s){if(e.tag===3)ny(e,e,s);else for(;t!==null;){if(t.tag===3){ny(t,e,s);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(as===null||!as.has(a))){e=Bn(s,e),s=ig(2),a=es(t,s,2),a!==null&&(sg(s,a,t,e),un(a,2),li(a));break}}t=t.return}}function Xf(e,t,s){var a=e.pingCache;if(a===null){a=e.pingCache=new lE;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(s)||(Lf=!0,o.add(s),e=dE.bind(null,e,t,s),t.then(e,e))}function dE(e,t,s){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,ct===e&&(He&s)===s&&(Et===4||Et===3&&(He&62914560)===He&&300>ue()-Fo?(We&2)===0&&$r(e,0):Bf|=s,Jr===He&&(Jr=0)),li(e)}function iy(e,t){t===0&&(t=ni()),e=qs(e,t),e!==null&&(un(e,t),li(e))}function hE(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),iy(e,s)}function mE(e,t){var s=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),iy(e,s)}function pE(e,t){return mt(e,t)}var $o=null,ta=null,Ff=!1,ec=!1,Kf=!1,cs=0;function li(e){e!==ta&&e.next===null&&(ta===null?$o=ta=e:ta=ta.next=e),ec=!0,Ff||(Ff=!0,yE())}function hl(e,t){if(!Kf&&ec){Kf=!0;do for(var s=!1,a=$o;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var h=a.suspendedLanes,v=a.pingedLanes;u=(1<<31-Ht(42|e)+1)-1,u&=o&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(s=!0,ly(a,u))}else u=He,u=Xt(a,a===ct?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||rn(a,u)||(s=!0,ly(a,u));a=a.next}while(s);Kf=!1}}function gE(){sy()}function sy(){ec=Ff=!1;var e=0;cs!==0&&CE()&&(e=cs);for(var t=ue(),s=null,a=$o;a!==null;){var o=a.next,u=ry(a,t);u===0?(a.next=null,s===null?$o=o:s.next=o,o===null&&(ta=s)):(s=a,(e!==0||(u&3)!==0)&&(ec=!0)),a=o}Ut!==0&&Ut!==5||hl(e),cs!==0&&(cs=0)}function ry(e,t){for(var s=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Ht(u),v=1<<h,R=o[h];R===-1?((v&s)===0||(v&a)!==0)&&(o[h]=Tn(v,t)):R<=t&&(e.expiredLanes|=v),u&=~v}if(t=ct,s=He,s=Xt(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,s===0||e===t&&(it===2||it===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&dt(a),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||rn(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(a!==null&&dt(a),xr(s)){case 2:case 8:s=Be;break;case 32:s=pt;break;case 268435456:s=nn;break;default:s=pt}return a=ay.bind(null,e),s=mt(s,a),e.callbackPriority=t,e.callbackNode=s,t}return a!==null&&a!==null&&dt(a),e.callbackPriority=2,e.callbackNode=null,2}function ay(e,t){if(Ut!==0&&Ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(Wo()&&e.callbackNode!==s)return null;var a=He;return a=Xt(e,e===ct?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Yg(e,a,t),ry(e,ue()),e.callbackNode!=null&&e.callbackNode===s?ay.bind(null,e):null)}function ly(e,t){if(Wo())return null;Yg(e,t,!0)}function yE(){_E(function(){(We&6)!==0?mt(ht,gE):sy()})}function Zf(){if(cs===0){var e=qr;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),cs=e}return cs}function oy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lo(""+e)}function cy(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function vE(e,t,s,a,o){if(t==="submit"&&s&&s.stateNode===o){var u=oy((o[$t]||null).action),h=a.submitter;h&&(t=(t=h[$t]||null)?oy(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new fo("action","action",null,a,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(cs!==0){var R=h?cy(o,h):new FormData(o);mf(s,{pending:!0,data:R,method:o.method,action:u},null,R)}}else typeof u=="function"&&(v.preventDefault(),R=h?cy(o,h):new FormData(o),mf(s,{pending:!0,data:R,method:o.method,action:u},u,R))},currentTarget:o}]})}}for(var Pf=0;Pf<Mu.length;Pf++){var If=Mu[Pf],bE=If.toLowerCase(),SE=If[0].toUpperCase()+If.slice(1);Zn(bE,"on"+SE)}Zn(qm,"onAnimationEnd"),Zn(Ym,"onAnimationIteration"),Zn(Vm,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(Ux,"onTransitionRun"),Zn(Lx,"onTransitionStart"),Zn(Bx,"onTransitionCancel"),Zn(Gm,"onTransitionEnd"),Or("onMouseEnter",["mouseout","mouseover"]),Or("onMouseLeave",["mouseout","mouseover"]),Or("onPointerEnter",["pointerout","pointerover"]),Or("onPointerLeave",["pointerout","pointerover"]),Us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Us("onBeforeInput",["compositionend","keypress","textInput","paste"]),Us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),xE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function uy(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var a=e[s],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var h=a.length-1;0<=h;h--){var v=a[h],R=v.instance,V=v.currentTarget;if(v=v.listener,R!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=V;try{u(o)}catch(P){po(P)}o.currentTarget=null,u=R}else for(h=0;h<a.length;h++){if(v=a[h],R=v.instance,V=v.currentTarget,v=v.listener,R!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=V;try{u(o)}catch(P){po(P)}o.currentTarget=null,u=R}}}}function Le(e,t){var s=t[Er];s===void 0&&(s=t[Er]=new Set);var a=e+"__bubble";s.has(a)||(fy(t,e,2,!1),s.add(a))}function Jf(e,t,s){var a=0;t&&(a|=4),fy(s,e,a,t)}var tc="_reactListening"+Math.random().toString(36).slice(2);function Wf(e){if(!e[tc]){e[tc]=!0,sm.forEach(function(s){s!=="selectionchange"&&(xE.has(s)||Jf(s,!1,e),Jf(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tc]||(t[tc]=!0,Jf("selectionchange",!1,t))}}function fy(e,t,s,a){switch(qy(t)){case 2:var o=PE;break;case 8:o=IE;break;default:o=hd}s=o.bind(null,t,s,e),o=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,s,{capture:!0,passive:o}):e.addEventListener(t,s,!0):o!==void 0?e.addEventListener(t,s,{passive:o}):e.addEventListener(t,s,!1)}function $f(e,t,s,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var v=a.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=a.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=Tr(v),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){a=u=h;continue e}v=v.parentNode}}a=a.return}gm(function(){var V=u,P=pu(s),$=[];e:{var Q=Qm.get(e);if(Q!==void 0){var K=fo,ye=e;switch(e){case"keypress":if(co(s)===0)break e;case"keydown":case"keyup":K=mx;break;case"focusin":ye="focus",K=xu;break;case"focusout":ye="blur",K=xu;break;case"beforeblur":case"afterblur":K=xu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=yx;break;case qm:case Ym:case Vm:K=rx;break;case Gm:K=bx;break;case"scroll":case"scrollend":K=ex;break;case"wheel":K=xx;break;case"copy":case"cut":case"paste":K=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=xm;break;case"toggle":case"beforetoggle":K=Tx}var we=(t&4)!==0,lt=!we&&(e==="scroll"||e==="scrollend"),L=we?Q!==null?Q+"Capture":null:Q;we=[];for(var D=V,Y;D!==null;){var W=D;if(Y=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||Y===null||L===null||(W=Ua(D,L),W!=null&&we.push(pl(D,W,Y))),lt)break;D=D.return}0<we.length&&(Q=new K(Q,ye,null,s,P),$.push({event:Q,listeners:we}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Q&&s!==mu&&(ye=s.relatedTarget||s.fromElement)&&(Tr(ye)||ye[Fi]))break e;if((K||Q)&&(Q=P.window===P?P:(Q=P.ownerDocument)?Q.defaultView||Q.parentWindow:window,K?(ye=s.relatedTarget||s.toElement,K=V,ye=ye?Tr(ye):null,ye!==null&&(lt=f(ye),we=ye.tag,ye!==lt||we!==5&&we!==27&&we!==6)&&(ye=null)):(K=null,ye=V),K!==ye)){if(we=bm,W="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=xm,W="onPointerLeave",L="onPointerEnter",D="pointer"),lt=K==null?Q:ja(K),Y=ye==null?Q:ja(ye),Q=new we(W,D+"leave",K,s,P),Q.target=lt,Q.relatedTarget=Y,W=null,Tr(P)===V&&(we=new we(L,D+"enter",ye,s,P),we.target=Y,we.relatedTarget=lt,W=we),lt=W,K&&ye)t:{for(we=EE,L=K,D=ye,Y=0,W=L;W;W=we(W))Y++;W=0;for(var Se=D;Se;Se=we(Se))W++;for(;0<Y-W;)L=we(L),Y--;for(;0<W-Y;)D=we(D),W--;for(;Y--;){if(L===D||D!==null&&L===D.alternate){we=L;break t}L=we(L),D=we(D)}we=null}else we=null;K!==null&&dy($,Q,K,we,!1),ye!==null&<!==null&&dy($,lt,ye,we,!0)}}e:{if(Q=V?ja(V):window,K=Q.nodeName&&Q.nodeName.toLowerCase(),K==="select"||K==="input"&&Q.type==="file")var Pe=_m;else if(Cm(Q))if(Mm)Pe=zx;else{Pe=Nx;var ve=Mx}else K=Q.nodeName,!K||K.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?V&&hu(V.elementType)&&(Pe=_m):Pe=Dx;if(Pe&&(Pe=Pe(e,V))){Am($,Pe,s,P);break e}ve&&ve(e,Q,V),e==="focusout"&&V&&Q.type==="number"&&V.memoizedProps.value!=null&&du(Q,"number",Q.value)}switch(ve=V?ja(V):window,e){case"focusin":(Cm(ve)||ve.contentEditable==="true")&&(Dr=ve,Cu=V,Qa=null);break;case"focusout":Qa=Cu=Dr=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,Bm($,s,P);break;case"selectionchange":if(jx)break;case"keydown":case"keyup":Bm($,s,P)}var _e;if(Tu)e:{switch(e){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Nr?Rm(e,s)&&(qe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(qe="onCompositionStart");qe&&(Em&&s.locale!=="ko"&&(Nr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Nr&&(_e=ym()):(Ki=P,vu="value"in Ki?Ki.value:Ki.textContent,Nr=!0)),ve=nc(V,qe),0<ve.length&&(qe=new Sm(qe,e,null,s,P),$.push({event:qe,listeners:ve}),_e?qe.data=_e:(_e=Om(s),_e!==null&&(qe.data=_e)))),(_e=Rx?Ox(e,s):Cx(e,s))&&(qe=nc(V,"onBeforeInput"),0<qe.length&&(ve=new Sm("onBeforeInput","beforeinput",null,s,P),$.push({event:ve,listeners:qe}),ve.data=_e)),vE($,e,V,s,P)}uy($,t)})}function pl(e,t,s){return{instance:e,listener:t,currentTarget:s}}function nc(e,t){for(var s=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ua(e,s),o!=null&&a.unshift(pl(e,o,u)),o=Ua(e,t),o!=null&&a.push(pl(e,o,u))),e.tag===3)return a;e=e.return}return[]}function EE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dy(e,t,s,a,o){for(var u=t._reactName,h=[];s!==null&&s!==a;){var v=s,R=v.alternate,V=v.stateNode;if(v=v.tag,R!==null&&R===a)break;v!==5&&v!==26&&v!==27||V===null||(R=V,o?(V=Ua(s,u),V!=null&&h.unshift(pl(s,V,R))):o||(V=Ua(s,u),V!=null&&h.push(pl(s,V,R)))),s=s.return}h.length!==0&&e.push({event:t,listeners:h})}var TE=/\r\n?/g,wE=/\u0000|\uFFFD/g;function hy(e){return(typeof e=="string"?e:""+e).replace(TE,`
|
|
49
|
+
`).replace(wE,"")}function my(e,t){return t=hy(t),hy(e)===t}function at(e,t,s,a,o,u){switch(s){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ar(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ar(e,""+a);break;case"className":ro(e,"class",a);break;case"tabIndex":ro(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(e,s,a);break;case"style":mm(e,a,u);break;case"data":if(t!=="object"){ro(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(s);break}a=lo(""+a),e.setAttribute(s,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(s,"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 u=="function"&&(s==="formAction"?(t!=="input"&&at(e,t,"name",o.name,o,null),at(e,t,"formEncType",o.formEncType,o,null),at(e,t,"formMethod",o.formMethod,o,null),at(e,t,"formTarget",o.formTarget,o,null)):(at(e,t,"encType",o.encType,o,null),at(e,t,"method",o.method,o,null),at(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(s);break}a=lo(""+a),e.setAttribute(s,a);break;case"onClick":a!=null&&(e.onclick=yi);break;case"onScroll":a!=null&&Le("scroll",e);break;case"onScrollEnd":a!=null&&Le("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(s=a.__html,s!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}s=lo(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(s,""+a):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":a===!0?e.setAttribute(s,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(s,a):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(s,a):e.removeAttribute(s);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(s):e.setAttribute(s,a);break;case"popover":Le("beforetoggle",e),Le("toggle",e),so(e,"popover",a);break;case"xlinkActuate":gi(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":gi(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":gi(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":gi(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":gi(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":gi(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":gi(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":gi(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":gi(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":so(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=WS.get(s)||s,so(e,s,a))}}function ed(e,t,s,a,o,u){switch(s){case"style":mm(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(s=a.__html,s!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"children":typeof a=="string"?Ar(e,a):(typeof a=="number"||typeof a=="bigint")&&Ar(e,""+a);break;case"onScroll":a!=null&&Le("scroll",e);break;case"onScrollEnd":a!=null&&Le("scrollend",e);break;case"onClick":a!=null&&(e.onclick=yi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(o=s.endsWith("Capture"),t=s.slice(2,o?s.length-7:void 0),u=e[$t]||null,u=u!=null?u[s]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,a,o);break e}s in e?e[s]=a:a===!0?e.setAttribute(s,""):so(e,s,a)}}}function Pt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var a=!1,o=!1,u;for(u in s)if(s.hasOwnProperty(u)){var h=s[u];if(h!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:at(e,t,u,h,s,null)}}o&&at(e,t,"srcSet",s.srcSet,s,null),a&&at(e,t,"src",s.src,s,null);return;case"input":Le("invalid",e);var v=u=h=o=null,R=null,V=null;for(a in s)if(s.hasOwnProperty(a)){var P=s[a];if(P!=null)switch(a){case"name":o=P;break;case"type":h=P;break;case"checked":R=P;break;case"defaultChecked":V=P;break;case"value":u=P;break;case"defaultValue":v=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(l(137,t));break;default:at(e,t,a,P,s,null)}}um(e,u,v,R,V,h,o,!1);return;case"select":Le("invalid",e),a=h=u=null;for(o in s)if(s.hasOwnProperty(o)&&(v=s[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":a=v;default:at(e,t,o,v,s,null)}t=u,s=h,e.multiple=!!a,t!=null?Cr(e,!!a,t,!1):s!=null&&Cr(e,!!a,s,!0);return;case"textarea":Le("invalid",e),u=o=a=null;for(h in s)if(s.hasOwnProperty(h)&&(v=s[h],v!=null))switch(h){case"value":a=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(l(91));break;default:at(e,t,h,v,s,null)}dm(e,a,o,u);return;case"option":for(R in s)if(s.hasOwnProperty(R)&&(a=s[R],a!=null))switch(R){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:at(e,t,R,a,s,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(a=0;a<ml.length;a++)Le(ml[a],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("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(V in s)if(s.hasOwnProperty(V)&&(a=s[V],a!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:at(e,t,V,a,s,null)}return;default:if(hu(t)){for(P in s)s.hasOwnProperty(P)&&(a=s[P],a!==void 0&&ed(e,t,P,a,s,void 0));return}}for(v in s)s.hasOwnProperty(v)&&(a=s[v],a!=null&&at(e,t,v,a,s,null))}function RE(e,t,s,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,v=null,R=null,V=null,P=null;for(K in s){var $=s[K];if(s.hasOwnProperty(K)&&$!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":R=$;default:a.hasOwnProperty(K)||at(e,t,K,null,a,$)}}for(var Q in a){var K=a[Q];if($=s[Q],a.hasOwnProperty(Q)&&(K!=null||$!=null))switch(Q){case"type":u=K;break;case"name":o=K;break;case"checked":V=K;break;case"defaultChecked":P=K;break;case"value":h=K;break;case"defaultValue":v=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,t));break;default:K!==$&&at(e,t,Q,K,a,$)}}fu(e,h,v,R,V,P,u,o);return;case"select":K=h=v=Q=null;for(u in s)if(R=s[u],s.hasOwnProperty(u)&&R!=null)switch(u){case"value":break;case"multiple":K=R;default:a.hasOwnProperty(u)||at(e,t,u,null,a,R)}for(o in a)if(u=a[o],R=s[o],a.hasOwnProperty(o)&&(u!=null||R!=null))switch(o){case"value":Q=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==R&&at(e,t,o,u,a,R)}t=v,s=h,a=K,Q!=null?Cr(e,!!s,Q,!1):!!a!=!!s&&(t!=null?Cr(e,!!s,t,!0):Cr(e,!!s,s?[]:"",!1));return;case"textarea":K=Q=null;for(v in s)if(o=s[v],s.hasOwnProperty(v)&&o!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:at(e,t,v,null,a,o)}for(h in a)if(o=a[h],u=s[h],a.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":Q=o;break;case"defaultValue":K=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==u&&at(e,t,h,o,a,u)}fm(e,Q,K);return;case"option":for(var ye in s)if(Q=s[ye],s.hasOwnProperty(ye)&&Q!=null&&!a.hasOwnProperty(ye))switch(ye){case"selected":e.selected=!1;break;default:at(e,t,ye,null,a,Q)}for(R in a)if(Q=a[R],K=s[R],a.hasOwnProperty(R)&&Q!==K&&(Q!=null||K!=null))switch(R){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:at(e,t,R,Q,a,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in s)Q=s[we],s.hasOwnProperty(we)&&Q!=null&&!a.hasOwnProperty(we)&&at(e,t,we,null,a,Q);for(V in a)if(Q=a[V],K=s[V],a.hasOwnProperty(V)&&Q!==K&&(Q!=null||K!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(l(137,t));break;default:at(e,t,V,Q,a,K)}return;default:if(hu(t)){for(var lt in s)Q=s[lt],s.hasOwnProperty(lt)&&Q!==void 0&&!a.hasOwnProperty(lt)&&ed(e,t,lt,void 0,a,Q);for(P in a)Q=a[P],K=s[P],!a.hasOwnProperty(P)||Q===K||Q===void 0&&K===void 0||ed(e,t,P,Q,a,K);return}}for(var L in s)Q=s[L],s.hasOwnProperty(L)&&Q!=null&&!a.hasOwnProperty(L)&&at(e,t,L,null,a,Q);for($ in a)Q=a[$],K=s[$],!a.hasOwnProperty($)||Q===K||Q==null&&K==null||at(e,t,$,Q,a,K)}function py(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),a=0;a<s.length;a++){var o=s[a],u=o.transferSize,h=o.initiatorType,v=o.duration;if(u&&v&&py(h)){for(h=0,v=o.responseEnd,a+=1;a<s.length;a++){var R=s[a],V=R.startTime;if(V>v)break;var P=R.transferSize,$=R.initiatorType;P&&py($)&&(R=R.responseEnd,h+=P*(R<v?1:(v-V)/(R-V)))}if(--a,t+=8*(u+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var td=null,nd=null;function ic(e){return e.nodeType===9?e:e.ownerDocument}function gy(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 yy(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 id(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 sd=null;function CE(){var e=window.event;return e&&e.type==="popstate"?e===sd?!1:(sd=e,!0):(sd=null,!1)}var vy=typeof setTimeout=="function"?setTimeout:void 0,AE=typeof clearTimeout=="function"?clearTimeout:void 0,by=typeof Promise=="function"?Promise:void 0,_E=typeof queueMicrotask=="function"?queueMicrotask:typeof by<"u"?function(e){return by.resolve(null).then(e).catch(ME)}:vy;function ME(e){setTimeout(function(){throw e})}function us(e){return e==="head"}function Sy(e,t){var s=t,a=0;do{var o=s.nextSibling;if(e.removeChild(s),o&&o.nodeType===8)if(s=o.data,s==="/$"||s==="/&"){if(a===0){e.removeChild(o),ra(t);return}a--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")a++;else if(s==="html")gl(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,gl(s);for(var u=s.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[ka]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||s.removeChild(u),u=h}}else s==="body"&&gl(e.ownerDocument.body);s=o}while(s);ra(t)}function xy(e,t){var s=e;e=0;do{var a=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),a&&a.nodeType===8)if(s=a.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=a}while(s)}function rd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":rd(s),cu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function NE(e,t,s,a){for(;e.nodeType===1;){var o=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function DE(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=Gn(e.nextSibling),e===null))return null;return e}function Ey(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gn(e.nextSibling),e===null))return null;return e}function ad(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function zE(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var a=function(){t(),s.removeEventListener("DOMContentLoaded",a)};s.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Gn(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 od=null;function Ty(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return Gn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function wy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function Ry(e,t,s){switch(t=ic(s),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function gl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cu(e)}var Qn=new Map,Oy=new Set;function sc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zi=G.d;G.d={f:kE,r:jE,D:UE,C:LE,L:BE,m:HE,X:YE,S:qE,M:VE};function kE(){var e=zi.f(),t=Po();return e||t}function jE(e){var t=wr(e);t!==null&&t.tag===5&&t.type==="form"?Gp(t):zi.r(e)}var na=typeof document>"u"?null:document;function Cy(e,t,s){var a=na;if(a&&typeof t=="string"&&t){var o=Un(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof s=="string"&&(o+='[crossorigin="'+s+'"]'),Oy.has(o)||(Oy.add(o),e={rel:e,crossOrigin:s,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),Pt(t,"link",e),Yt(t),a.head.appendChild(t)))}}function UE(e){zi.D(e),Cy("dns-prefetch",e,null)}function LE(e,t){zi.C(e,t),Cy("preconnect",e,t)}function BE(e,t,s){zi.L(e,t,s);var a=na;if(a&&e&&t){var o='link[rel="preload"][as="'+Un(t)+'"]';t==="image"&&s&&s.imageSrcSet?(o+='[imagesrcset="'+Un(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(o+='[imagesizes="'+Un(s.imageSizes)+'"]')):o+='[href="'+Un(e)+'"]';var u=o;switch(t){case"style":u=ia(e);break;case"script":u=sa(e)}Qn.has(u)||(e=b({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Qn.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(yl(u))||t==="script"&&a.querySelector(vl(u))||(t=a.createElement("link"),Pt(t,"link",e),Yt(t),a.head.appendChild(t)))}}function HE(e,t){zi.m(e,t);var s=na;if(s&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Un(a)+'"][href="'+Un(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=sa(e)}if(!Qn.has(u)&&(e=b({rel:"modulepreload",href:e},t),Qn.set(u,e),s.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(vl(u)))return}a=s.createElement("link"),Pt(a,"link",e),Yt(a),s.head.appendChild(a)}}}function qE(e,t,s){zi.S(e,t,s);var a=na;if(a&&e){var o=Rr(a).hoistableStyles,u=ia(e);t=t||"default";var h=o.get(u);if(!h){var v={loading:0,preload:null};if(h=a.querySelector(yl(u)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Qn.get(u))&&cd(e,s);var R=h=a.createElement("link");Yt(R),Pt(R,"link",e),R._p=new Promise(function(V,P){R.onload=V,R.onerror=P}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,rc(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(u,h)}}}function YE(e,t){zi.X(e,t);var s=na;if(s&&e){var a=Rr(s).hoistableScripts,o=sa(e),u=a.get(o);u||(u=s.querySelector(vl(o)),u||(e=b({src:e,async:!0},t),(t=Qn.get(o))&&ud(e,t),u=s.createElement("script"),Yt(u),Pt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function VE(e,t){zi.M(e,t);var s=na;if(s&&e){var a=Rr(s).hoistableScripts,o=sa(e),u=a.get(o);u||(u=s.querySelector(vl(o)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Qn.get(o))&&ud(e,t),u=s.createElement("script"),Yt(u),Pt(u,"link",e),s.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Ay(e,t,s,a){var o=(o=ee.current)?sc(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=ia(s.href),s=Rr(o).hoistableStyles,a=s.get(t),a||(a={type:"style",instance:null,count:0,state:null},s.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=ia(s.href);var u=Rr(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(yl(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Qn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Qn.set(e,s),u||GE(o,e,s,h.state))),t&&a===null)throw Error(l(528,""));return h}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sa(s),s=Rr(o).hoistableScripts,a=s.get(t),a||(a={type:"script",instance:null,count:0,state:null},s.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function ia(e){return'href="'+Un(e)+'"'}function yl(e){return'link[rel="stylesheet"]['+e+"]"}function _y(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function GE(e,t,s,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pt(t,"link",s),Yt(t),e.head.appendChild(t))}function sa(e){return'[src="'+Un(e)+'"]'}function vl(e){return"script[async]"+e}function My(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Un(s.href)+'"]');if(a)return t.instance=a,Yt(a),a;var o=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Yt(a),Pt(a,"style",o),rc(a,s.precedence,e),t.instance=a;case"stylesheet":o=ia(s.href);var u=e.querySelector(yl(o));if(u)return t.state.loading|=4,t.instance=u,Yt(u),u;a=_y(s),(o=Qn.get(o))&&cd(a,o),u=(e.ownerDocument||e).createElement("link"),Yt(u);var h=u;return h._p=new Promise(function(v,R){h.onload=v,h.onerror=R}),Pt(u,"link",a),t.state.loading|=4,rc(u,s.precedence,e),t.instance=u;case"script":return u=sa(s.src),(o=e.querySelector(vl(u)))?(t.instance=o,Yt(o),o):(a=s,(o=Qn.get(u))&&(a=b({},s),ud(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),Yt(o),Pt(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,rc(a,s.precedence,e));return t.instance}function rc(e,t,s){for(var a=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,h=0;h<a.length;h++){var v=a[h];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function cd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ac=null;function Ny(e,t,s){if(ac===null){var a=new Map,o=ac=new Map;o.set(s,a)}else o=ac,a=o.get(s),a||(a=new Map,o.set(s,a));if(a.has(e))return a;for(a.set(e,null),s=s.getElementsByTagName(e),o=0;o<s.length;o++){var u=s[o];if(!(u[ka]||u[jt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=a.get(h);v?v.push(u):a.set(h,[u])}}return a}function Dy(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function QE(e,t,s){if(s===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 zy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function XE(e,t,s,a){if(s.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var o=ia(a.href),u=t.querySelector(yl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=lc.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=u,Yt(u);return}u=t.ownerDocument||t,a=_y(a),(o=Qn.get(o))&&cd(a,o),u=u.createElement("link"),Yt(u);var h=u;h._p=new Promise(function(v,R){h.onload=v,h.onerror=R}),Pt(u,"link",a),s.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=lc.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var fd=0;function FE(e,t){return e.stylesheets&&e.count===0&&cc(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var a=setTimeout(function(){if(e.stylesheets&&cc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&fd===0&&(fd=62500*OE());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cc(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>fd?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function lc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oc=null;function cc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oc=new Map,t.forEach(KE,e),oc=null,lc.call(e))}function KE(e,t){if(!(t.state.loading&4)){var s=oc.get(e);if(s)var a=s.get(null);else{s=new Map,oc.set(e,s);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(s.set(h.dataset.precedence,h),a=h)}a&&s.set(null,a)}o=t.instance,h=o.getAttribute("data-precedence"),u=s.get(h)||a,u===a&&s.set(null,o),s.set(h,o),this.count++,a=lc.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var bl={$$typeof:U,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function ZE(e,t,s,a,o,u,h,v,R){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=ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.hiddenUpdates=ii(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function ky(e,t,s,a,o,u,h,v,R,V,P,$){return e=new ZE(e,t,s,h,R,V,P,$,v),t=1,u===!0&&(t|=24),u=Rn(3,null,null,t),e.current=u,u.stateNode=e,t=Gu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:s,cache:t},Ku(u),e}function jy(e){return e?(e=jr,e):jr}function Uy(e,t,s,a,o,u){o=jy(o),a.context===null?a.context=o:a.pendingContext=o,a=$i(t),a.payload={element:s},u=u===void 0?null:u,u!==null&&(a.callback=u),s=es(e,a,t),s!==null&&(yn(s,e,t),Ja(s,e,t))}function Ly(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function dd(e,t){Ly(e,t),(e=e.alternate)&&Ly(e,t)}function By(e){if(e.tag===13||e.tag===31){var t=qs(e,67108864);t!==null&&yn(t,e,67108864),dd(e,67108864)}}function Hy(e){if(e.tag===13||e.tag===31){var t=Mn();t=js(t);var s=qs(e,t);s!==null&&yn(s,e,t),dd(e,t)}}var uc=!0;function PE(e,t,s,a){var o=k.T;k.T=null;var u=G.p;try{G.p=2,hd(e,t,s,a)}finally{G.p=u,k.T=o}}function IE(e,t,s,a){var o=k.T;k.T=null;var u=G.p;try{G.p=8,hd(e,t,s,a)}finally{G.p=u,k.T=o}}function hd(e,t,s,a){if(uc){var o=md(a);if(o===null)$f(e,t,a,fc,s),Yy(e,a);else if(WE(o,e,t,s,a))a.stopPropagation();else if(Yy(e,a),t&4&&-1<JE.indexOf(e)){for(;o!==null;){var u=wr(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=qt(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var R=1<<31-Ht(h);v.entanglements[1]|=R,h&=~R}li(u),(We&6)===0&&(Ko=ue()+500,hl(0))}}break;case 31:case 13:v=qs(u,2),v!==null&&yn(v,u,2),Po(),dd(u,2)}if(u=md(a),u===null&&$f(e,t,a,fc,s),u===o)break;o=u}o!==null&&a.stopPropagation()}else $f(e,t,a,null,s)}}function md(e){return e=pu(e),pd(e)}var fc=null;function pd(e){if(fc=null,e=Tr(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=d(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fc=e,null}function qy(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(xe()){case ht:return 2;case Be:return 8;case pt:case kt:return 32;case nn:return 268435456;default:return 32}default:return 32}}var gd=!1,fs=null,ds=null,hs=null,Sl=new Map,xl=new Map,ms=[],JE="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 Yy(e,t){switch(e){case"focusin":case"focusout":fs=null;break;case"dragenter":case"dragleave":ds=null;break;case"mouseover":case"mouseout":hs=null;break;case"pointerover":case"pointerout":Sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(t.pointerId)}}function El(e,t,s,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:s,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=wr(t),t!==null&&By(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function WE(e,t,s,a,o){switch(t){case"focusin":return fs=El(fs,e,t,s,a,o),!0;case"dragenter":return ds=El(ds,e,t,s,a,o),!0;case"mouseover":return hs=El(hs,e,t,s,a,o),!0;case"pointerover":var u=o.pointerId;return Sl.set(u,El(Sl.get(u)||null,e,t,s,a,o)),!0;case"gotpointercapture":return u=o.pointerId,xl.set(u,El(xl.get(u)||null,e,t,s,a,o)),!0}return!1}function Vy(e){var t=Tr(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=d(s),t!==null){e.blockedOn=t,to(e.priority,function(){Hy(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,to(e.priority,function(){Hy(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=md(e.nativeEvent);if(s===null){s=e.nativeEvent;var a=new s.constructor(s.type,s);mu=a,s.target.dispatchEvent(a),mu=null}else return t=wr(s),t!==null&&By(t),e.blockedOn=s,!1;t.shift()}return!0}function Gy(e,t,s){dc(e)&&s.delete(t)}function $E(){gd=!1,fs!==null&&dc(fs)&&(fs=null),ds!==null&&dc(ds)&&(ds=null),hs!==null&&dc(hs)&&(hs=null),Sl.forEach(Gy),xl.forEach(Gy)}function hc(e,t){e.blockedOn===t&&(e.blockedOn=null,gd||(gd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$E)))}var mc=null;function Qy(e){mc!==e&&(mc=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){mc===e&&(mc=null);for(var t=0;t<e.length;t+=3){var s=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(pd(a||s)===null)continue;break}var u=wr(s);u!==null&&(e.splice(t,3),t-=3,mf(u,{pending:!0,data:o,method:s.method,action:a},a,o))}}))}function ra(e){function t(R){return hc(R,e)}fs!==null&&hc(fs,e),ds!==null&&hc(ds,e),hs!==null&&hc(hs,e),Sl.forEach(t),xl.forEach(t);for(var s=0;s<ms.length;s++){var a=ms[s];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ms.length&&(s=ms[0],s.blockedOn===null);)Vy(s),s.blockedOn===null&&ms.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(a=0;a<s.length;a+=3){var o=s[a],u=s[a+1],h=o[$t]||null;if(typeof u=="function")h||Qy(s);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[$t]||null)v=h.formAction;else if(pd(o)!==null)continue}else v=h.action;typeof v=="function"?s[a+1]=v:(s.splice(a,3),a-=3),Qy(s)}}}function Xy(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(s,20)}function s(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function yd(e){this._internalRoot=e}pc.prototype.render=yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var s=t.current,a=Mn();Uy(s,a,e,t,null,null)},pc.prototype.unmount=yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Uy(e.current,2,null,e,null,null),Po(),t[Fi]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var t=eo();e={blockedOn:null,target:e,priority:t};for(var s=0;s<ms.length&&t!==0&&t<ms[s].priority;s++);ms.splice(s,0,e),s===0&&Vy(e)}};var Fy=i.version;if(Fy!=="19.2.7")throw Error(l(527,Fy,"19.2.7"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var e1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gc.isDisabled&&gc.supportsFiber)try{cn=gc.inject(e1),Bt=gc}catch{}}return wl.createRoot=function(e,t){if(!c(e))throw Error(l(299));var s=!1,a="",o=$p,u=eg,h=tg;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=ky(e,1,!1,null,null,s,a,null,o,u,h,Xy),e[Fi]=t.current,Wf(e),new yd(t)},wl.hydrateRoot=function(e,t,s){if(!c(e))throw Error(l(299));var a=!1,o="",u=$p,h=eg,v=tg,R=null;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(o=s.identifierPrefix),s.onUncaughtError!==void 0&&(u=s.onUncaughtError),s.onCaughtError!==void 0&&(h=s.onCaughtError),s.onRecoverableError!==void 0&&(v=s.onRecoverableError),s.formState!==void 0&&(R=s.formState)),t=ky(e,1,!0,t,s??null,a,o,R,u,h,v,Xy),t.context=jy(null),s=t.current,a=Mn(),a=js(a),o=$i(a),o.callback=null,es(s,o,a),s=a,t.current.lanes=s,un(t,s),li(t),e[Fi]=t.current,Wf(e),new pc(t)},wl.version="19.2.7",wl}var hv;function eT(){if(hv)return xd.exports;hv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),xd.exports=$1(),xd.exports}var tT=eT();function sh(n,i){if(n&&!i)return n;if(!n&&i)return i;if(n||i)return{...n,...i}}const wh={};function Zl(n,i,r,l,c){if(!r&&!l&&!n)return qc(i);let f=qc(n);return i&&(f=Nc(f,i)),r&&(f=Nc(f,r)),l&&(f=Nc(f,l)),f}function nT(n){if(n.length===0)return wh;if(n.length===1)return qc(n[0]);let i=qc(n[0]);for(let r=1;r<n.length;r+=1)i=Nc(i,n[r]);return i}function qc(n){return Rh(n)?{...Fb(n,wh)}:iT(n)}function Nc(n,i){return Rh(i)?Fb(i,n):sT(n,i)}function iT(n){const i={...n};for(const r in i){const l=i[r];Xb(r,l)&&(i[r]=Kb(l))}return i}function sT(n,i){if(!i)return n;for(const r in i){const l=i[r];switch(r){case"style":{n[r]=sh(n.style,l);break}case"className":{n[r]=Zb(n.className,l);break}default:Xb(r,l)?n[r]=rT(n[r],l):n[r]=l}}return n}function Xb(n,i){const r=n.charCodeAt(0),l=n.charCodeAt(1),c=n.charCodeAt(2);return r===111&&l===110&&c>=65&&c<=90&&(typeof i=="function"||typeof i>"u")}function Rh(n){return typeof n=="function"}function Fb(n,i){return Rh(n)?n(i):n??wh}function rT(n,i){return i?n?(...r)=>{const l=r[0];if(Pb(l)){const f=l;Yc(f);const d=i(...r);return f.baseUIHandlerPrevented||n==null||n(...r),d}const c=i(...r);return n==null||n(...r),c}:Kb(i):n}function Kb(n){return n&&((...i)=>{const r=i[0];return Pb(r)&&Yc(r),n(...i)})}function Yc(n){return n.preventBaseUIHandler=()=>{n.baseUIHandlerPrevented=!0},n}function Zb(n,i){return i?n?i+" "+n:i:n}function Pb(n){return n!=null&&typeof n=="object"&&"nativeEvent"in n}function aT(n,i){return function(l,...c){const f=new URL(n);return f.searchParams.set("code",l.toString()),c.forEach(d=>f.searchParams.append("args[]",d)),`${i} error #${l}; visit ${f} for the full message.`}}const dr=aT("https://base-ui.com/production-error","Base UI"),mv={};function Qi(n,i){const r=O.useRef(mv);return r.current===mv&&(r.current=n(i)),r}function Vc(n,i,r,l){const c=Qi(Ib).current;return oT(c,n,i,r,l)&&Jb(c,[n,i,r,l]),c.callback}function lT(n){const i=Qi(Ib).current;return cT(i,n)&&Jb(i,n),i.callback}function Ib(){return{callback:null,cleanup:null,refs:[]}}function oT(n,i,r,l,c){return n.refs[0]!==i||n.refs[1]!==r||n.refs[2]!==l||n.refs[3]!==c}function cT(n,i){return n.refs.length!==i.length||n.refs.some((r,l)=>r!==i[l])}function Jb(n,i){if(n.refs=i,i.every(r=>r==null)){n.callback=null;return}n.callback=r=>{if(n.cleanup&&(n.cleanup(),n.cleanup=null),r!=null){const l=Array(i.length).fill(null);for(let c=0;c<i.length;c+=1){const f=i[c];if(f!=null)switch(typeof f){case"function":{const d=f(r);typeof d=="function"&&(l[c]=d);break}case"object":{f.current=r;break}}}n.cleanup=()=>{for(let c=0;c<i.length;c+=1){const f=i[c];if(f!=null)switch(typeof f){case"function":{const d=l[c];typeof d=="function"?d():f(null);break}case"object":{f.current=null;break}}}}}}}const uT=parseInt(O.version,10);function Oh(n){return uT>=n}function pv(n){if(!O.isValidElement(n))return null;const i=n,r=i.props;return(Oh(19)?r==null?void 0:r.ref:i.ref)??null}function Ch(){}const Jt=Object.freeze({});function fT(n,i){const r={};for(const l in n){const c=n[l];if(i!=null&&i.hasOwnProperty(l)){const f=i[l](c);f!=null&&Object.assign(r,f);continue}c===!0?r[`data-${l.toLowerCase()}`]="":c&&(r[`data-${l.toLowerCase()}`]=c.toString())}return r}function dT(n,i){return typeof n=="function"?n(i):n}function hT(n,i){return typeof n=="function"?n(i):n}function Ca(n,i,r={}){const l=i.render,c=mT(i,r);if(r.enabled===!1)return null;const f=r.state??Jt;return yT(n,l,c,f)}function mT(n,i={}){const{className:r,style:l,render:c}=n,{state:f=Jt,ref:d,props:m,stateAttributesMapping:g,enabled:p=!0}=i,y=p?dT(r,f):void 0,b=p?hT(l,f):void 0,S=p?fT(f,g):Jt,x=p&&m?pT(m):void 0,E=p?sh(S,x)??{}:Jt;return typeof document<"u"&&(p?Array.isArray(d)?E.ref=lT([E.ref,pv(c),...d]):E.ref=Vc(E.ref,pv(c),d):Vc(null,null)),p?(y!==void 0&&(E.className=Zb(E.className,y)),b!==void 0&&(E.style=sh(E.style,b)),E):Jt}function pT(n){return Array.isArray(n)?nT(n):Zl(void 0,n)}const gT=Symbol.for("react.lazy");function yT(n,i,r,l){if(i){if(typeof i=="function")return i(r,l);const c=Zl(r,i.props);c.ref=r.ref;let f=i;return(f==null?void 0:f.$$typeof)===gT&&(f=O.Children.toArray(i)[0]),O.cloneElement(f,c)}if(n&&typeof n=="string")return vT(n,r);throw new Error(dr(8))}function vT(n,i){return n==="button"?O.createElement("button",{type:"button",...i,key:i.key}):n==="img"?O.createElement("img",{alt:"",...i,key:i.key}):O.createElement(n,i)}function bT(n){return Ca(n.defaultTagName??"div",n,n)}function Wb(n){var i,r,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(r=Wb(n[i]))&&(l&&(l+=" "),l+=r)}else for(r in n)n[r]&&(l&&(l+=" "),l+=r);return l}function $b(){for(var n,i,r=0,l="",c=arguments.length;r<c;r++)(n=arguments[r])&&(i=Wb(n))&&(l&&(l+=" "),l+=i);return l}const gv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,yv=$b,e0=(n,i)=>r=>{var l;if((i==null?void 0:i.variants)==null)return yv(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(p=>{const y=r==null?void 0:r[p],b=f==null?void 0:f[p];if(y===null)return null;const S=gv(y)||gv(b);return c[p][S]}),m=r&&Object.entries(r).reduce((p,y)=>{let[b,S]=y;return S===void 0||(p[b]=S),p},{}),g=i==null||(l=i.compoundVariants)===null||l===void 0?void 0:l.reduce((p,y)=>{let{class:b,className:S,...x}=y;return Object.entries(x).every(E=>{let[w,C]=E;return Array.isArray(C)?C.includes({...f,...m}[w]):{...f,...m}[w]===C})?[...p,b,S]:p},[]);return yv(n,d,g,r==null?void 0:r.class,r==null?void 0:r.className)},ST=(n,i)=>{const r=new Array(n.length+i.length);for(let l=0;l<n.length;l++)r[l]=n[l];for(let l=0;l<i.length;l++)r[n.length+l]=i[l];return r},xT=(n,i)=>({classGroupId:n,validator:i}),t0=(n=new Map,i=null,r)=>({nextPart:n,validators:i,classGroupId:r}),Gc="-",vv=[],ET="arbitrary..",TT=n=>{const i=RT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return wT(d);const m=d.split(Gc),g=m[0]===""&&m.length>1?1:0;return n0(m,g,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const g=l[d],p=r[d];return g?p?ST(p,g):g:p||vv}return r[d]||vv}}},n0=(n,i,r)=>{if(n.length-i===0)return r.classGroupId;const c=n[i],f=r.nextPart.get(c);if(f){const p=n0(n,i+1,f);if(p)return p}const d=r.validators;if(d===null)return;const m=i===0?n.join(Gc):n.slice(i).join(Gc),g=d.length;for(let p=0;p<g;p++){const y=d[p];if(y.validator(m))return y.classGroupId}},wT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),r=i.indexOf(":"),l=i.slice(0,r);return l?ET+l:void 0})(),RT=n=>{const{theme:i,classGroups:r}=n;return OT(r,i)},OT=(n,i)=>{const r=t0();for(const l in n){const c=n[l];Ah(c,r,l,i)}return r},Ah=(n,i,r,l)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];CT(d,i,r,l)}},CT=(n,i,r,l)=>{if(typeof n=="string"){AT(n,i,r);return}if(typeof n=="function"){_T(n,i,r,l);return}MT(n,i,r,l)},AT=(n,i,r)=>{const l=n===""?i:i0(i,n);l.classGroupId=r},_T=(n,i,r,l)=>{if(NT(n)){Ah(n(l),i,r,l);return}i.validators===null&&(i.validators=[]),i.validators.push(xT(r,n))},MT=(n,i,r,l)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[m,g]=c[d];Ah(g,i0(i,m),r,l)}},i0=(n,i)=>{let r=n;const l=i.split(Gc),c=l.length;for(let f=0;f<c;f++){const d=l[f];let m=r.nextPart.get(d);m||(m=t0(),r.nextPart.set(d,m)),r=m}return r},NT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,DT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),l=Object.create(null);const c=(f,d)=>{r[f]=d,i++,i>n&&(i=0,l=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=l[f])!==void 0)return c(f,d),d},set(f,d){f in r?r[f]=d:c(f,d)}}},rh="!",bv=":",zT=[],Sv=(n,i,r,l,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:l,isExternal:c}),kT=n=>{const{prefix:i,experimentalParseClassName:r}=n;let l=c=>{const f=[];let d=0,m=0,g=0,p;const y=c.length;for(let w=0;w<y;w++){const C=c[w];if(d===0&&m===0){if(C===bv){f.push(c.slice(g,w)),g=w+1;continue}if(C==="/"){p=w;continue}}C==="["?d++:C==="]"?d--:C==="("?m++:C===")"&&m--}const b=f.length===0?c:c.slice(g);let S=b,x=!1;b.endsWith(rh)?(S=b.slice(0,-1),x=!0):b.startsWith(rh)&&(S=b.slice(1),x=!0);const E=p&&p>g?p-g:void 0;return Sv(f,x,S,E)};if(i){const c=i+bv,f=l;l=d=>d.startsWith(c)?f(d.slice(c.length)):Sv(zT,!1,d,void 0,!0)}if(r){const c=l;l=f=>r({className:f,parseClassName:c})}return l},jT=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((r,l)=>{i.set(r,1e6+l)}),r=>{const l=[];let c=[];for(let f=0;f<r.length;f++){const d=r[f],m=d[0]==="[",g=i.has(d);m||g?(c.length>0&&(c.sort(),l.push(...c),c=[]),l.push(d)):c.push(d)}return c.length>0&&(c.sort(),l.push(...c)),l}},UT=n=>({cache:DT(n.cacheSize),parseClassName:kT(n),sortModifiers:jT(n),postfixLookupClassGroupIds:LT(n),...TT(n)}),LT=n=>{const i=Object.create(null),r=n.postfixLookupClassGroups;if(r)for(let l=0;l<r.length;l++)i[r[l]]=!0;return i},BT=/\s+/,HT=(n,i)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:c,sortModifiers:f,postfixLookupClassGroupIds:d}=i,m=[],g=n.trim().split(BT);let p="";for(let y=g.length-1;y>=0;y-=1){const b=g[y],{isExternal:S,modifiers:x,hasImportantModifier:E,baseClassName:w,maybePostfixModifierPosition:C}=r(b);if(S){p=b+(p.length>0?" "+p:p);continue}let N=!!C,M;if(N){const q=w.substring(0,C);M=l(q);const j=M&&d[M]?l(w):void 0;j&&j!==M&&(M=j,N=!1)}else M=l(w);if(!M){if(!N){p=b+(p.length>0?" "+p:p);continue}if(M=l(w),!M){p=b+(p.length>0?" "+p:p);continue}N=!1}const U=x.length===0?"":x.length===1?x[0]:f(x).join(":"),A=E?U+rh:U,Z=A+M;if(m.indexOf(Z)>-1)continue;m.push(Z);const X=c(M,N);for(let q=0;q<X.length;++q){const j=X[q];m.push(A+j)}p=b+(p.length>0?" "+p:p)}return p},qT=(...n)=>{let i=0,r,l,c="";for(;i<n.length;)(r=n[i++])&&(l=s0(r))&&(c&&(c+=" "),c+=l);return c},s0=n=>{if(typeof n=="string")return n;let i,r="";for(let l=0;l<n.length;l++)n[l]&&(i=s0(n[l]))&&(r&&(r+=" "),r+=i);return r},YT=(n,...i)=>{let r,l,c,f;const d=g=>{const p=i.reduce((y,b)=>b(y),n());return r=UT(p),l=r.cache.get,c=r.cache.set,f=m,m(g)},m=g=>{const p=l(g);if(p)return p;const y=HT(g,r);return c(g,y),y};return f=d,(...g)=>f(qT(...g))},VT=[],Lt=n=>{const i=r=>r[n]||VT;return i.isThemeGetter=!0,i},r0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,a0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,QT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,FT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,KT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gs=n=>GT.test(n),De=n=>!!n&&!Number.isNaN(Number(n)),oi=n=>!!n&&Number.isInteger(Number(n)),Rd=n=>n.endsWith("%")&&De(n.slice(0,-1)),ki=n=>QT.test(n),l0=()=>!0,PT=n=>XT.test(n)&&!FT.test(n),_h=()=>!1,IT=n=>KT.test(n),JT=n=>ZT.test(n),WT=n=>!me(n)&&!pe(n),$T=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),ew=n=>zs(n,u0,_h),me=n=>r0.test(n),$s=n=>zs(n,f0,PT),xv=n=>zs(n,ow,De),tw=n=>zs(n,h0,l0),nw=n=>zs(n,d0,_h),Ev=n=>zs(n,o0,_h),iw=n=>zs(n,c0,JT),bc=n=>zs(n,m0,IT),pe=n=>a0.test(n),Rl=n=>hr(n,f0),sw=n=>hr(n,d0),Tv=n=>hr(n,o0),rw=n=>hr(n,u0),aw=n=>hr(n,c0),Sc=n=>hr(n,m0,!0),lw=n=>hr(n,h0,!0),zs=(n,i,r)=>{const l=r0.exec(n);return l?l[1]?i(l[1]):r(l[2]):!1},hr=(n,i,r=!1)=>{const l=a0.exec(n);return l?l[1]?i(l[1]):r:!1},o0=n=>n==="position"||n==="percentage",c0=n=>n==="image"||n==="url",u0=n=>n==="length"||n==="size"||n==="bg-size",f0=n=>n==="length",ow=n=>n==="number",d0=n=>n==="family-name",h0=n=>n==="number"||n==="weight",m0=n=>n==="shadow",cw=()=>{const n=Lt("color"),i=Lt("font"),r=Lt("text"),l=Lt("font-weight"),c=Lt("tracking"),f=Lt("leading"),d=Lt("breakpoint"),m=Lt("container"),g=Lt("spacing"),p=Lt("radius"),y=Lt("shadow"),b=Lt("inset-shadow"),S=Lt("text-shadow"),x=Lt("drop-shadow"),E=Lt("blur"),w=Lt("perspective"),C=Lt("aspect"),N=Lt("ease"),M=Lt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...A(),pe,me],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],j=()=>[pe,me,g],F=()=>[gs,"full","auto",...j()],re=()=>[oi,"none","subgrid",pe,me],fe=()=>["auto",{span:["full",oi,pe,me]},oi,pe,me],se=()=>[oi,"auto",pe,me],J=()=>["auto","min","max","fr",pe,me],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...j()],G=()=>[gs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],I=()=>[gs,"screen","full","dvw","lvw","svw","min","max","fit",...j()],le=()=>[gs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],H=()=>[n,pe,me],T=()=>[...A(),Tv,Ev,{position:[pe,me]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",rw,ew,{size:[pe,me]}],ie=()=>[Rd,Rl,$s],ae=()=>["","none","full",p,pe,me],ee=()=>["",De,Rl,$s],ge=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[De,Rd,Tv,Ev],Ze=()=>["","none",E,pe,me],nt=()=>["none",De,pe,me],be=()=>["none",De,pe,me],ze=()=>[De,pe,me],Oe=()=>[gs,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ki],breakpoint:[ki],color:[l0],container:[ki],"drop-shadow":[ki],ease:["in","out","in-out"],font:[WT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ki],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ki],shadow:[ki],spacing:["px",De],text:[ki],"text-shadow":[ki],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gs,me,pe,C]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,me]}],"container-named":[$T],columns:[{columns:[De,me,pe,m]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Z()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[oi,"auto",pe,me]}],basis:[{basis:[gs,"full","auto",m,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,gs,"auto","initial","none",me]}],grow:[{grow:["",De,pe,me]}],shrink:[{shrink:["",De,pe,me]}],order:[{order:[oi,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[m,"screen",...G()]}],"min-w":[{"min-w":[m,"screen","none",...G()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,Rl,$s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,lw,tw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rd,me]}],"font-family":[{font:[sw,nw,i]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,pe,me]}],"line-clamp":[{"line-clamp":[De,"none",pe,xv]}],leading:[{leading:[f,...j()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",pe,$s]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[De,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"tab-size":[{tab:[oi,pe,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oi,pe,me],radial:["",pe,me],conic:[oi,pe,me]},aw,iw]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-bs":[{"border-bs":H()}],"border-color-be":[{"border-be":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,pe,me]}],"outline-w":[{outline:["",De,Rl,$s]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",y,Sc,bc]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",b,Sc,bc]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[De,$s]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",S,Sc,bc]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[De,pe,me]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Ze()}],brightness:[{brightness:[De,pe,me]}],contrast:[{contrast:[De,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",x,Sc,bc]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",De,pe,me]}],"hue-rotate":[{"hue-rotate":[De,pe,me]}],invert:[{invert:["",De,pe,me]}],saturate:[{saturate:[De,pe,me]}],sepia:[{sepia:["",De,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[De,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[De,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",De,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[De,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[De,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",De,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",pe,me]}],ease:[{ease:["linear","initial",N,pe,me]}],delay:[{delay:[De,pe,me]}],animate:[{animate:["none",M,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,pe,me]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Oe()}],"translate-x":[{"translate-x":Oe()}],"translate-y":[{"translate-y":Oe()}],"translate-z":[{"translate-z":Oe()}],"translate-none":["translate-none"],zoom:[{zoom:[oi,pe,me]}],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":H()}],"scrollbar-track-color":[{"scrollbar-track":H()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[De,Rl,$s,xv]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},uw=YT(cw);function on(...n){return uw($b(n))}const fw=e0("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive/10 text-destructive",outline:"border-border text-foreground",ghost:"hover:bg-muted hover:text-muted-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function aa({className:n,variant:i="default",render:r,...l}){return bT({defaultTagName:"span",props:Zl({className:on(fw({variant:i}),n)},l),render:r,state:{slot:"badge",variant:i}})}function Ml({className:n,...i}){return _.jsx("div",{"data-slot":"skeleton",className:on("animate-pulse rounded-md bg-muted",n),...i})}function dw({isLoading:n,isError:i,port:r,service:l}){return n?_.jsxs("div",{className:"flex min-w-[10rem] items-center gap-2","aria-live":"polite",children:[_.jsx(Ml,{className:"h-5 w-20"}),_.jsx("span",{className:"text-xs text-chatroom-text-muted",children:"Connecting…"})]}):i?_.jsx(aa,{variant:"destructive","aria-live":"polite",children:"Disconnected"}):_.jsxs("div",{className:"flex items-center gap-2 text-xs text-chatroom-text-muted","aria-live":"polite",children:[_.jsx(aa,{variant:"outline",className:"border-chatroom-status-success text-chatroom-status-success",children:"Connected"}),r!=null&&l!=null&&_.jsxs("span",{children:["Port ",r," · ",l]})]})}function hw({header:n,nav:i,children:r}){return _.jsxs("div",{className:"chatroom-root flex h-full min-h-screen flex-col bg-chatroom-bg-primary text-chatroom-text-primary",children:[n,i,_.jsx("main",{className:"flex min-h-0 flex-1 flex-col",children:r})]})}/**
|
|
50
|
+
* @license lucide-react v0.511.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const mw=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pw=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,l)=>l?l.toUpperCase():r.toLowerCase()),wv=n=>{const i=pw(n);return i.charAt(0).toUpperCase()+i.slice(1)},p0=(...n)=>n.filter((i,r,l)=>!!i&&i.trim()!==""&&l.indexOf(i)===r).join(" ").trim(),gw=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.511.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var yw={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
|
+
* @license lucide-react v0.511.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const vw=O.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:d,...m},g)=>O.createElement("svg",{ref:g,...yw,width:i,height:i,stroke:n,strokeWidth:l?Number(r)*24/Number(i):r,className:p0("lucide",c),...!f&&!gw(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,y])=>O.createElement(p,y)),...Array.isArray(f)?f:[f]]));/**
|
|
65
|
+
* @license lucide-react v0.511.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Aa=(n,i)=>{const r=O.forwardRef(({className:l,...c},f)=>O.createElement(vw,{ref:f,iconNode:i,className:p0(`lucide-${mw(wv(n))}`,`lucide-${n}`,l),...c}));return r.displayName=wv(n),r};/**
|
|
70
|
+
* @license lucide-react v0.511.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const bw=[["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"}]],g0=Aa("activity",bw);/**
|
|
75
|
+
* @license lucide-react v0.511.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Sw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xw=Aa("check",Sw);/**
|
|
80
|
+
* @license lucide-react v0.511.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Ew=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],y0=Aa("chevron-down",Ew);/**
|
|
85
|
+
* @license lucide-react v0.511.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Tw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ww=Aa("circle-alert",Tw);/**
|
|
90
|
+
* @license lucide-react v0.511.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Rw=[["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"}]],Ow=Aa("scroll-text",Rw);/**
|
|
95
|
+
* @license lucide-react v0.511.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Cw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],v0=Aa("x",Cw);function Aw({status:n}){return _.jsxs("header",{className:"flex items-center justify-between border-b border-chatroom-border px-6 py-4",children:[_.jsxs("div",{className:"flex items-center gap-3",children:[_.jsx(g0,{className:"size-5 text-chatroom-text-muted","aria-hidden":!0}),_.jsx("h1",{className:"text-sm font-semibold uppercase tracking-widest",children:"Chatroom Daemon"})]}),n]})}function _w({children:n}){return _.jsx("nav",{className:"flex gap-1 border-b border-chatroom-border px-6 py-2",children:n})}function Rv({active:n=!1,children:i,onClick:r}){return _.jsx("span",{className:n?"bg-chatroom-bg-secondary px-3 py-1.5 text-xs font-medium uppercase tracking-wide":"px-3 py-1.5 text-xs font-medium uppercase tracking-wide text-chatroom-text-muted",onClick:r,role:r?"button":void 0,children:i})}const mi=Object.create(null);mi.open="0";mi.close="1";mi.ping="2";mi.pong="3";mi.message="4";mi.upgrade="5";mi.noop="6";const Dc=Object.create(null);Object.keys(mi).forEach(n=>{Dc[mi[n]]=n});const ah={type:"error",data:"parser error"},b0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",S0=typeof ArrayBuffer=="function",x0=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Mh=({type:n,data:i},r,l)=>b0&&i instanceof Blob?r?l(i):Ov(i,l):S0&&(i instanceof ArrayBuffer||x0(i))?r?l(i):Ov(new Blob([i]),l):l(mi[n]+(i||"")),Ov=(n,i)=>{const r=new FileReader;return r.onload=function(){const l=r.result.split(",")[1];i("b"+(l||""))},r.readAsDataURL(n)};function Cv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Od;function Mw(n,i){if(b0&&n.data instanceof Blob)return n.data.arrayBuffer().then(Cv).then(i);if(S0&&(n.data instanceof ArrayBuffer||x0(n.data)))return i(Cv(n.data));Mh(n,!1,r=>{Od||(Od=new TextEncoder),i(Od.encode(r))})}const Av="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Av.length;n++)Nl[Av.charCodeAt(n)]=n;const Nw=n=>{let i=n.length*.75,r=n.length,l,c=0,f,d,m,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const p=new ArrayBuffer(i),y=new Uint8Array(p);for(l=0;l<r;l+=4)f=Nl[n.charCodeAt(l)],d=Nl[n.charCodeAt(l+1)],m=Nl[n.charCodeAt(l+2)],g=Nl[n.charCodeAt(l+3)],y[c++]=f<<2|d>>4,y[c++]=(d&15)<<4|m>>2,y[c++]=(m&3)<<6|g&63;return p},Dw=typeof ArrayBuffer=="function",Nh=(n,i)=>{if(typeof n!="string")return{type:"message",data:E0(n,i)};const r=n.charAt(0);return r==="b"?{type:"message",data:zw(n.substring(1),i)}:Dc[r]?n.length>1?{type:Dc[r],data:n.substring(1)}:{type:Dc[r]}:ah},zw=(n,i)=>{if(Dw){const r=Nw(n);return E0(r,i)}else return{base64:!0,data:n}},E0=(n,i)=>{switch(i){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},T0="",kw=(n,i)=>{const r=n.length,l=new Array(r);let c=0;n.forEach((f,d)=>{Mh(f,!1,m=>{l[d]=m,++c===r&&i(l.join(T0))})})},jw=(n,i)=>{const r=n.split(T0),l=[];for(let c=0;c<r.length;c++){const f=Nh(r[c],i);if(l.push(f),f.type==="error")break}return l};function Uw(){return new TransformStream({transform(n,i){Mw(n,r=>{const l=r.length;let c;if(l<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,l);else if(l<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,l)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(r)})}})}let Cd;function xc(n){return n.reduce((i,r)=>i+r.length,0)}function Ec(n,i){if(n[0].length===i)return n.shift();const r=new Uint8Array(i);let l=0;for(let c=0;c<i;c++)r[c]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),r}function Lw(n,i){Cd||(Cd=new TextDecoder);const r=[];let l=0,c=-1,f=!1;return new TransformStream({transform(d,m){for(r.push(d);;){if(l===0){if(xc(r)<1)break;const g=Ec(r,1);f=(g[0]&128)===128,c=g[0]&127,c<126?l=3:c===126?l=1:l=2}else if(l===1){if(xc(r)<2)break;const g=Ec(r,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),l=3}else if(l===2){if(xc(r)<8)break;const g=Ec(r,8),p=new DataView(g.buffer,g.byteOffset,g.length),y=p.getUint32(0);if(y>Math.pow(2,21)-1){m.enqueue(ah);break}c=y*Math.pow(2,32)+p.getUint32(4),l=3}else{if(xc(r)<c)break;const g=Ec(r,c);m.enqueue(Nh(f?g:Cd.decode(g),i)),l=0}if(c===0||c>n){m.enqueue(ah);break}}}})}const w0=4;function Dt(n){if(n)return Bw(n)}function Bw(n){for(var i in Dt.prototype)n[i]=Dt.prototype[i];return n}Dt.prototype.on=Dt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Dt.prototype.once=function(n,i){function r(){this.off(n,r),i.apply(this,arguments)}return r.fn=i,this.on(n,r),this};Dt.prototype.off=Dt.prototype.removeListener=Dt.prototype.removeAllListeners=Dt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,c=0;c<r.length;c++)if(l=r[c],l===i||l.fn===i){r.splice(c,1);break}return r.length===0&&delete this._callbacks["$"+n],this};Dt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+n],l=1;l<arguments.length;l++)i[l-1]=arguments[l];if(r){r=r.slice(0);for(var l=0,c=r.length;l<c;++l)r[l].apply(this,i)}return this};Dt.prototype.emitReserved=Dt.prototype.emit;Dt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Dt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const eu=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),Fn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Hw="arraybuffer";function R0(n,...i){return i.reduce((r,l)=>(n.hasOwnProperty(l)&&(r[l]=n[l]),r),{})}const qw=Fn.setTimeout,Yw=Fn.clearTimeout;function tu(n,i){i.useNativeTimers?(n.setTimeoutFn=qw.bind(Fn),n.clearTimeoutFn=Yw.bind(Fn)):(n.setTimeoutFn=Fn.setTimeout.bind(Fn),n.clearTimeoutFn=Fn.clearTimeout.bind(Fn))}const Vw=1.33;function Gw(n){return typeof n=="string"?Qw(n):Math.ceil((n.byteLength||n.size)*Vw)}function Qw(n){let i=0,r=0;for(let l=0,c=n.length;l<c;l++)i=n.charCodeAt(l),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(l++,r+=4);return r}function O0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Xw(n){let i="";for(let r in n)n.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return i}function Fw(n){let i={},r=n.split("&");for(let l=0,c=r.length;l<c;l++){let f=r[l].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class Kw extends Error{constructor(i,r,l){super(i),this.description=r,this.context=l,this.type="TransportError"}}class Dh extends Dt{constructor(i){super(),this.writable=!1,tu(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,l){return super.emitReserved("error",new Kw(i,r,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const r=Nh(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const r=Xw(i);return r.length?"?"+r:""}}class Zw extends Dh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||r()})),this.writable||(l++,this.once("drain",function(){--l||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};jw(i,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,kw(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=O0()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let C0=!1;try{C0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Pw=C0;function Iw(){}class Jw extends Zw{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let l=location.port;l||(l=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||l!==i.port}}doWrite(i,r){const l=this.request({method:"POST",data:i});l.on("success",r),l.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(r,l)=>{this.onError("xhr poll error",r,l)}),this.pollXhr=i}}class hi extends Dt{constructor(i,r,l){super(),this.createRequest=i,tu(this,l),this._opts=l,this._method=l.method||"GET",this._uri=r,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var i;const r=R0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(r);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&l.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var c;l.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=hi.requestsCount++,hi.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Iw,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete hi.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}hi.requestsCount=0;hi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_v);else if(typeof addEventListener=="function"){const n="onpagehide"in Fn?"pagehide":"unload";addEventListener(n,_v,!1)}}function _v(){for(let n in hi.requests)hi.requests.hasOwnProperty(n)&&hi.requests[n].abort()}const Ww=function(){const n=A0({xdomain:!1});return n&&n.responseType!==null}();class $w extends Jw{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=Ww&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new hi(A0,this.uri(),i)}}function A0(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Pw))return new XMLHttpRequest}catch{}if(!i)try{return new Fn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class eR extends Dh{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,l=_0?{}:R0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,l)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const l=i[r],c=r===i.length-1;Mh(l,this.supportsBinary,f=>{try{this.doWrite(l,f)}catch{}c&&eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=O0()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const Ad=Fn.WebSocket||Fn.MozWebSocket;class tR extends eR{createSocket(i,r,l){return _0?new Ad(i,r,l):r?new Ad(i,r):new Ad(i)}doWrite(i,r){this.ws.send(r)}}class nR extends Dh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const r=Lw(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=i.readable.pipeThrough(r).getReader(),c=Uw();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{l.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const l=i[r],c=r===i.length-1;this._writer.write(l).then(()=>{c&&eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const iR={websocket:tR,webtransport:nR,polling:$w},sR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lh(n){if(n.length>8e3)throw"URI too long";const i=n,r=n.indexOf("["),l=n.indexOf("]");r!=-1&&l!=-1&&(n=n.substring(0,r)+n.substring(r,l).replace(/:/g,";")+n.substring(l,n.length));let c=sR.exec(n||""),f={},d=14;for(;d--;)f[rR[d]]=c[d]||"";return r!=-1&&l!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=aR(f,f.path),f.queryKey=lR(f,f.query),f}function aR(n,i){const r=/\/{2,9}/g,l=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&l.splice(0,1),i.slice(-1)=="/"&&l.splice(l.length-1,1),l}function lR(n,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,c,f){c&&(r[c]=f)}),r}const oh=typeof addEventListener=="function"&&typeof removeEventListener=="function",zc=[];oh&&addEventListener("offline",()=>{zc.forEach(n=>n())},!1);class As extends Dt{constructor(i,r){if(super(),this.binaryType=Hw,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const l=lh(i);r.hostname=l.host,r.secure=l.protocol==="https"||l.protocol==="wss",r.port=l.port,l.query&&(r.query=l.query)}else r.host&&(r.hostname=lh(r.host).host);tu(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(l=>{const c=l.prototype.name;this.transports.push(c),this._transportsByName[c]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Fw(this.opts.query)),oh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=w0,r.transport=i,this.id&&(r.sid=this.id);const l=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&As.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",As.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=i.data,this._onError(r);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let l=0;l<this.writeBuffer.length;l++){const c=this.writeBuffer[l].data;if(c&&(r+=Gw(c)),l>0&&r>this._maxPayload)return this.writeBuffer.slice(0,l);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,eu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,l){return this._sendPacket("message",i,r,l),this}send(i,r,l){return this._sendPacket("message",i,r,l),this}_sendPacket(i,r,l,c){if(typeof r=="function"&&(c=r,r=void 0),typeof l=="function"&&(c=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const f={type:i,data:r,options:l};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},l=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():i()}):this.upgrading?l():i()),this}_onError(i){if(As.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),oh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=zc.indexOf(this._offlineEventListener);l!==-1&&zc.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}As.protocol=w0;class oR extends As{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let r=this.createTransport(i),l=!1;As.priorWebsocketSuccess=!1;const c=()=>{l||(r.send([{type:"ping",data:"probe"}]),r.once("packet",b=>{if(!l)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;As.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(y(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=r.name,this.emitReserved("upgradeError",S)}}))};function f(){l||(l=!0,y(),r.close(),r=null)}const d=b=>{const S=new Error("probe error: "+b);S.transport=r.name,f(),this.emitReserved("upgradeError",S)};function m(){d("transport closed")}function g(){d("socket closed")}function p(b){r&&b.name!==r.name&&f()}const y=()=>{r.removeListener("open",c),r.removeListener("error",d),r.removeListener("close",m),this.off("close",g),this.off("upgrading",p)};r.once("open",c),r.once("error",d),r.once("close",m),this.once("close",g),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{l||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let l=0;l<i.length;l++)~this.transports.indexOf(i[l])&&r.push(i[l]);return r}}let cR=class extends oR{constructor(i,r={}){const l=typeof i=="object",c=l?{...i}:{...r};(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(f=>iR[f]).filter(f=>!!f)),super(l?c:i,c)}};function uR(n,i="",r){let l=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),l=lh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const f=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+f+":"+l.port+i,l.href=l.protocol+"://"+f+(r&&r.port===l.port?"":":"+l.port),l}const fR=typeof ArrayBuffer=="function",dR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,M0=Object.prototype.toString,hR=typeof Blob=="function"||typeof Blob<"u"&&M0.call(Blob)==="[object BlobConstructor]",mR=typeof File=="function"||typeof File<"u"&&M0.call(File)==="[object FileConstructor]";function zh(n){return fR&&(n instanceof ArrayBuffer||dR(n))||hR&&n instanceof Blob||mR&&n instanceof File}function kc(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,l=n.length;r<l;r++)if(kc(n[r]))return!0;return!1}if(zh(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return kc(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&kc(n[r]))return!0;return!1}function pR(n){const i=[],r=n.data,l=n;return l.data=jc(r,i),l.attachments=i.length,{packet:l,buffers:i}}function jc(n,i,r){if(!n)return n;if(zh(n)){const l={_placeholder:!0,num:i.length};return i.push(n),l}else if(Array.isArray(n)){const l=new Array(n.length);for(let c=0;c<n.length;c++)l[c]=jc(n[c],i);return l}else if(typeof n=="object"&&!(n instanceof Date)){if(n.toJSON&&typeof n.toJSON=="function"&&!r)return jc(n.toJSON(),i,!0);const l={};for(const c in n)Object.prototype.hasOwnProperty.call(n,c)&&(l[c]=jc(n[c],i));return l}return n}function gR(n,i){return n.data=ch(n.data,i),delete n.attachments,n}function ch(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=ch(n[r],i);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=ch(n[r],i));return n}const N0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yR=5;var Ne;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Ne||(Ne={}));class vR{constructor(i){this.replacer=i}encode(i){return(i.type===Ne.EVENT||i.type===Ne.ACK)&&kc(i)?this.encodeAsBinary({type:i.type===Ne.EVENT?Ne.BINARY_EVENT:Ne.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ne.BINARY_EVENT||i.type===Ne.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=pR(i),l=this.encodeAsString(r.packet),c=r.buffers;return c.unshift(l),c}}class kh extends Dt{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const l=r.type===Ne.BINARY_EVENT;l||r.type===Ne.BINARY_ACK?(r.type=l?Ne.EVENT:Ne.ACK,this.reconstructor=new bR(r)):super.emitReserved("decoded",r)}else if(zh(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const l={type:Number(i.charAt(0))};if(Ne[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===Ne.BINARY_EVENT||l.type===Ne.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const d=i.substring(f,r);if(d!=Number(d)||i.charAt(r)!=="-")throw new Error("Illegal attachments");const m=Number(d);if(!D0(m)||m<1)throw new Error("Illegal attachments");if(m>this.opts.maxAttachments)throw new Error("too many attachments");l.attachments=m}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););l.nsp=i.substring(f,r)}else l.nsp="/";const c=i.charAt(r+1);if(c!==""&&Number(c)==c){const f=r+1;for(;++r;){const d=i.charAt(r);if(d==null||Number(d)!=d){--r;break}if(r===i.length)break}l.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(kh.isPayloadValid(l.type,f))l.data=f;else throw new Error("invalid payload")}return l}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ne.CONNECT:return Qc(r);case Ne.DISCONNECT:return r===void 0;case Ne.CONNECT_ERROR:return typeof r=="string"||Qc(r);case Ne.EVENT:case Ne.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&N0.indexOf(r[0])===-1);case Ne.ACK:case Ne.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bR{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=gR(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function SR(n){return typeof n=="string"}const D0=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n};function xR(n){return n===void 0||D0(n)}function Qc(n){return Object.prototype.toString.call(n)==="[object Object]"}function ER(n,i){switch(n){case Ne.CONNECT:return i===void 0||Qc(i);case Ne.DISCONNECT:return i===void 0;case Ne.EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&N0.indexOf(i[0])===-1);case Ne.ACK:return Array.isArray(i);case Ne.CONNECT_ERROR:return typeof i=="string"||Qc(i);default:return!1}}function TR(n){return SR(n.nsp)&&xR(n.id)&&ER(n.type,n.data)}const wR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:kh,Encoder:vR,get PacketType(){return Ne},isPacketValid:TR,protocol:yR},Symbol.toStringTag,{value:"Module"}));function Wn(n,i,r){return n.on(i,r),function(){n.off(i,r)}}const RR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class z0 extends Dt{constructor(i,r,l){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=r,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Wn(i,"open",this.onopen.bind(this)),Wn(i,"packet",this.onpacket.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...r){var l,c,f;if(RR.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const d={type:Ne.EVENT,data:r};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const y=this.ids++,b=r.pop();this._registerAckCallback(y,b),d.id=y}const m=(c=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,r){var l;const c=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(c===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},c),d=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...r){return new Promise((l,c)=>{const f=(d,m)=>d?c(d):l(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(c)):(this._queue.shift(),r&&r(null,...f)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Ne.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(l=>String(l.id)===i)){const l=this.acks[i];delete this.acks[i],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ne.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ne.EVENT:case Ne.BINARY_EVENT:this.onevent(i);break;case Ne.ACK:case Ne.BINARY_ACK:this.onack(i);break;case Ne.DISCONNECT:this.ondisconnect();break;case Ne.CONNECT_ERROR:this.destroy();const l=new Error(i.data.message);l.data=i.data.data,this.emitReserved("connect_error",l);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const l of r)l.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const r=this;let l=!1;return function(...c){l||(l=!0,r.packet({type:Ne.ACK,id:i,data:c}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ne.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const r=this._anyListeners;for(let l=0;l<r.length;l++)if(i===r[l])return r.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const r=this._anyOutgoingListeners;for(let l=0;l<r.length;l++)if(i===r[l])return r.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const l of r)l.apply(this,i.data)}}}function _a(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}_a.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-r:n+r}return Math.min(n,this.max)|0};_a.prototype.reset=function(){this.attempts=0};_a.prototype.setMin=function(n){this.ms=n};_a.prototype.setMax=function(n){this.max=n};_a.prototype.setJitter=function(n){this.jitter=n};class uh extends Dt{constructor(i,r){var l;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,tu(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((l=r.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new _a({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const c=r.parser||wR;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new cR(this.uri,this.opts);const r=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const c=Wn(r,"open",function(){l.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},d=Wn(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Wn(i,"ping",this.onping.bind(this)),Wn(i,"data",this.ondata.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){eu(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let l=this.nsps[i];return l?this._autoConnect&&!l.active&&l.connect():(l=new z0(this,i,r),this.nsps[i]=l),l}_destroy(i){const r=Object.keys(this.nsps);for(const l of r)if(this.nsps[l].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let l=0;l<r.length;l++)this.engine.write(r[l],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,r){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},r);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ol={};function Uc(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const r=uR(n,i.path||"/socket.io"),l=r.source,c=r.id,f=r.path,d=Ol[c]&&f in Ol[c].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return m?g=new uh(l,i):(Ol[c]||(Ol[c]=new uh(l,i)),g=Ol[c]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(Uc,{Manager:uh,Socket:z0,io:Uc,connect:Uc});let _d=null;function mr(){return _d||(_d=Uc({transports:["websocket"],autoConnect:!0})),_d}async function OR(){const n=mr();return await Pl(n),n.emitWithAck("health.get")}async function Pl(n){n.connected||await new Promise((i,r)=>{const l=()=>{f(),i()},c=d=>{f(),r(d)},f=()=>{n.off("connect",l),n.off("connect_error",c)};n.on("connect",l),n.on("connect_error",c),n.connect()})}async function CR(n){const i=mr();return await Pl(i),i.emitWithAck("logs.history",n)}async function AR(n,i){const r=mr();return await Pl(r),r.emitWithAck("logs.dimensions",{chatroomId:n,limit:i})}async function _R(){const n=mr();return await Pl(n),n.emitWithAck("chatrooms.list")}async function MR(n){const i=mr();return await Pl(i),i.emitWithAck("eventStream.history",n??{})}function NR(n){const i=mr();return i.connect(),i.emit("eventStream.stream.subscribe"),i.on("eventStream.stream",n),()=>i.off("eventStream.stream",n)}function DR(n){const i=mr();return i.connect(),i.emit("logs.stream.subscribe"),i.on("logs.stream",n),()=>i.off("logs.stream",n)}function zR(){return Gb({queryKey:["daemon","health"],queryFn:async()=>{const n=await OR();if(!n.ok)throw new Error(n.error.message);return n.data},retry:2})}function Mv(n){return new URLSearchParams(n.startsWith("?")?n.slice(1):n).get("tab")==="event-stream"?"event-stream":"logs"}function kR(n){const i=new URLSearchParams(window.location.search);n.tab!==void 0&&(n.tab==="event-stream"?i.set("tab","event-stream"):i.delete("tab")),n.chatroomId!==void 0&&(n.chatroomId?i.set("chatroomId",n.chatroomId):i.delete("chatroomId"));const r=i.toString();window.history.replaceState(null,"",`${window.location.pathname}${r?`?${r}`:""}`)}function jR(){const[n,i]=O.useState(()=>Mv(window.location.search)),r=O.useCallback(l=>{i(l),kR({tab:l})},[]);return O.useEffect(()=>{const l=()=>i(Mv(window.location.search));return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)},[]),{activeTab:n,setActiveTab:r}}function jh(n){var r;const i=(r=n.metadata)==null?void 0:r.harness;return typeof i=="string"?i:n.source.startsWith("harness:")?n.source.slice(8):void 0}function Uh(n){var r;const i=(r=n.metadata)==null?void 0:r.chatroomId;return typeof i=="string"?i:void 0}function k0(n){var r;const i=(r=n.metadata)==null?void 0:r.role;return typeof i=="string"?i:void 0}function j0({line:n,chatroomName:i}){const r=Uh(n),l=k0(n),c=jh(n);return!r&&!l&&!c?null:_.jsxs("div",{className:"flex shrink-0 flex-wrap gap-1",children:[r&&_.jsx(aa,{variant:"outline",className:"text-chatroom-text-secondary",children:i??r}),l&&_.jsx(aa,{variant:"outline",className:"text-chatroom-status-info",children:l}),c&&_.jsx(aa,{variant:"outline",className:"text-chatroom-text-secondary",children:c})]})}const UR={debug:"text-chatroom-text-muted border-chatroom-border",info:"text-chatroom-status-info border-chatroom-status-info/40",warn:"text-chatroom-status-warning border-chatroom-status-warning/40",error:"text-chatroom-status-error border-chatroom-status-error/40"};function U0({level:n}){return _.jsx(aa,{variant:"outline",className:on("font-mono uppercase",UR[n]),children:n})}function nu(){return typeof window<"u"}function Wt(n){return Lh(n)?(n.nodeName||"").toLowerCase():"#document"}function zt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Xi(n){var i;return(i=(Lh(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function Lh(n){return nu()?n instanceof Node||n instanceof zt(n).Node:!1}function Je(n){return nu()?n instanceof Element||n instanceof zt(n).Element:!1}function wt(n){return nu()?n instanceof HTMLElement||n instanceof zt(n).HTMLElement:!1}function Ta(n){return!nu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof zt(n).ShadowRoot}function pr(n){const{overflow:i,overflowX:r,overflowY:l,display:c}=kn(n);return/auto|scroll|overlay|hidden|clip/.test(i+l+r)&&c!=="inline"&&c!=="contents"}function LR(n){return/^(table|td|th)$/.test(Wt(n))}function iu(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const BR=/transform|translate|scale|rotate|perspective|filter/,HR=/paint|layout|strict|content/,er=n=>!!n&&n!=="none";let Md;function Bh(n){const i=Je(n)?kn(n):n;return er(i.transform)||er(i.translate)||er(i.scale)||er(i.rotate)||er(i.perspective)||!Hh()&&(er(i.backdropFilter)||er(i.filter))||BR.test(i.willChange||"")||HR.test(i.contain||"")}function qR(n){let i=Ms(n);for(;wt(i)&&!_s(i);){if(Bh(i))return i;if(iu(i))return null;i=Ms(i)}return null}function Hh(){return Md==null&&(Md=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Md}function _s(n){return/^(html|body|#document)$/.test(Wt(n))}function kn(n){return zt(n).getComputedStyle(n)}function su(n){return Je(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ms(n){if(Wt(n)==="html")return n;const i=n.assignedSlot||n.parentNode||Ta(n)&&n.host||Xi(n);return Ta(i)?i.host:i}function L0(n){const i=Ms(n);return _s(i)?(n.ownerDocument||n).body:wt(i)&&pr(i)?i:L0(i)}function jl(n,i,r){var l;i===void 0&&(i=[]),r===void 0&&(r=!0);const c=L0(n),f=c===((l=n.ownerDocument)==null?void 0:l.body),d=zt(c);if(f){const m=fh(d);return i.concat(d,d.visualViewport||[],pr(c)?c:[],m&&r?jl(m):[])}else return i.concat(c,jl(c,[],r))}function fh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const qh={...U1},Nd=qh.useInsertionEffect,YR=Nd&&Nd!==qh.useLayoutEffect?Nd:n=>n();function $e(n){const i=Qi(VR).current;return i.next=n,YR(i.effect),i.trampoline}function VR(){const n={next:void 0,callback:GR,trampoline:(...i)=>{var r;return(r=n.callback)==null?void 0:r.call(n,...i)},effect:()=>{n.callback=n.next}};return n}function GR(){}const QR=()=>{},Xe=typeof document<"u"?O.useLayoutEffect:QR,XR=O.createContext(void 0);function FR(n=!1){const i=O.useContext(XR);if(i===void 0&&!n)throw new Error(dr(16));return i}function KR(n){const{focusableWhenDisabled:i,disabled:r,composite:l=!1,tabIndex:c=0,isNativeButton:f}=n,d=l&&i!==!1,m=l&&i===!1;return{props:O.useMemo(()=>{const p={onKeyDown(y){r&&i&&y.key!=="Tab"&&y.preventDefault()}};return l||(p.tabIndex=c,!f&&r&&(p.tabIndex=i?c:-1)),(f&&(i||d)||!f&&r)&&(p["aria-disabled"]=r),f&&(!i||m)&&(p.disabled=r),p},[l,r,i,d,m,f,c])}}function B0(n={}){const{disabled:i=!1,focusableWhenDisabled:r,tabIndex:l=0,native:c=!0,composite:f}=n,d=O.useRef(null),m=FR(!0),g=f??m!==void 0,{props:p}=KR({focusableWhenDisabled:r,disabled:i,composite:g,tabIndex:l,isNativeButton:c}),y=O.useCallback(()=>{const x=d.current;Dd(x)&&g&&i&&p.disabled===void 0&&x.disabled&&(x.disabled=!1)},[i,p.disabled,g]);Xe(y,[y]);const b=O.useCallback((x={})=>{const{onClick:E,onMouseDown:w,onKeyUp:C,onKeyDown:N,onPointerDown:M,...U}=x;return Zl({onClick(A){if(i){A.preventDefault();return}E==null||E(A)},onMouseDown(A){i||w==null||w(A)},onKeyDown(A){if(i||(Yc(A),N==null||N(A),A.baseUIHandlerPrevented))return;const Z=A.target===A.currentTarget,X=A.currentTarget,q=Dd(X),j=!c&&ZR(X),F=Z&&(c?q:!j),re=A.key==="Enter",fe=A.key===" ",se=X.getAttribute("role"),J=(se==null?void 0:se.startsWith("menuitem"))||se==="option"||se==="gridcell";if(Z&&g&&fe){if(A.defaultPrevented&&J)return;A.preventDefault(),j||c&&q?(X.click(),A.preventBaseUIHandler()):F&&(E==null||E(A),A.preventBaseUIHandler());return}F&&(!c&&(fe||re)&&A.preventDefault(),!c&&re&&(E==null||E(A)))},onKeyUp(A){if(!i){if(Yc(A),C==null||C(A),A.target===A.currentTarget&&c&&g&&Dd(A.currentTarget)&&A.key===" "){A.preventDefault();return}A.baseUIHandlerPrevented||A.target===A.currentTarget&&!c&&!g&&A.key===" "&&(E==null||E(A))}},onPointerDown(A){if(i){A.preventDefault();return}M==null||M(A)}},c?{type:"button"}:{role:"button"},p,U)},[i,p,g,c]),S=$e(x=>{d.current=x,y()});return{getButtonProps:b,buttonRef:S}}function Dd(n){return wt(n)&&n.tagName==="BUTTON"}function ZR(n){return!!((n==null?void 0:n.tagName)==="A"&&(n!=null&&n.href))}const PR=O.forwardRef(function(i,r){const{render:l,className:c,disabled:f=!1,focusableWhenDisabled:d=!1,nativeButton:m=!0,style:g,...p}=i,{getButtonProps:y,buttonRef:b}=B0({disabled:f,focusableWhenDisabled:d,native:m});return Ca("button",i,{state:{disabled:f},ref:[r,b],props:[p,y]})}),IR=e0("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-none text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3"}},defaultVariants:{variant:"default",size:"default"}});function H0({className:n,variant:i="default",size:r="default",...l}){return _.jsx(PR,{"data-slot":"button",className:on(IR({variant:i,size:r,className:n})),...l})}function JR({line:n,chatroomName:i,onClose:r}){return _.jsxs("aside",{className:"flex w-96 max-w-[40%] shrink-0 flex-col border-l border-chatroom-border bg-chatroom-bg-primary",role:"dialog","aria-modal":"true","aria-label":"Log detail",children:[_.jsxs("div",{className:"flex items-center justify-between border-b border-chatroom-border px-4 py-3",children:[_.jsx("h3",{className:"text-sm font-medium",children:"Log detail"}),_.jsx(H0,{variant:"ghost",size:"sm",onClick:r,"aria-label":"Close detail panel",children:_.jsx(v0,{className:"size-4"})})]}),_.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4 text-xs",children:[_.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[_.jsx(U0,{level:n.level}),_.jsx("span",{className:"text-chatroom-text-muted",children:new Date(n.timestamp).toISOString()})]}),_.jsx(j0,{line:n,chatroomName:i}),_.jsxs("div",{className:"text-chatroom-text-muted",children:["Source: ",_.jsx("span",{className:"text-chatroom-text-primary",children:n.source}),n.stream&&_.jsxs(_.Fragment,{children:[" · Stream: ",n.stream]}),n.id!=null&&_.jsxs(_.Fragment,{children:[" · ID: ",n.id]})]}),_.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs",children:n.message}),n.metadata&&Object.keys(n.metadata).length>0&&_.jsxs("div",{children:[_.jsx("p",{className:"mb-1 text-chatroom-text-muted",children:"Metadata"}),_.jsx("pre",{className:"whitespace-pre-wrap border border-chatroom-border bg-chatroom-bg-secondary p-2 font-mono text-[11px]",children:JSON.stringify(n.metadata,null,2)})]})]})]})}const WR=[];function Yh(n){O.useEffect(n,WR)}const Cl=0;class ei{constructor(){et(this,"currentId",Cl);et(this,"clear",()=>{this.currentId!==Cl&&(clearTimeout(this.currentId),this.currentId=Cl)});et(this,"disposeEffect",()=>this.clear)}static create(){return new ei}start(i,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Cl,r()},i)}isStarted(){return this.currentId!==Cl}}function wa(){const n=Qi(ei.create).current;return Yh(n.disposeEffect),n}function $R(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:eO,platform:tO,maxTouchPoints:nO}=$R(),ru=eO.toLowerCase(),Ul=tO.toLowerCase(),au=/^i(os$|p)/.test(Ul)||Ul==="macintel"&&nO>1,Nv="android",dh=Ul===Nv||ru.includes(Nv),iO=!au&&Ul.startsWith("mac");Ul.startsWith("win");const sO=iO||au;var Mb;const Ma=typeof CSS<"u"&&!!((Mb=CSS.supports)!=null&&Mb.call(CSS,"-webkit-backdrop-filter:none"));!Ma&&ru.includes("firefox");!Ma&&ru.includes("chrom");const rO=sO,aO=/jsdom|happydom/.test(ru);function lO(n){n.preventDefault(),n.stopPropagation()}function oO(n){return"nativeEvent"in n}function cO(n){return n.pointerType===""&&n.isTrusted?!0:dh&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function uO(n){return aO?!1:!dh&&n.width===0&&n.height===0||dh&&n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0&&n.pointerType==="touch"}function Ll(n,i){const r=["mouse","pen"];return i||r.push("",void 0),r.includes(n)}function fO(n){const i=n.type;return i==="click"||i==="mousedown"||i==="keydown"||i==="keyup"}const hh="data-base-ui-focusable",q0="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ui(n){var r;let i=n.activeElement;for(;((r=i==null?void 0:i.shadowRoot)==null?void 0:r.activeElement)!=null;)i=i.shadowRoot.activeElement;return i}function Me(n,i){var l;if(!n||!i)return!1;const r=(l=i.getRootNode)==null?void 0:l.call(i);if(n.contains(i))return!0;if(r&&Ta(r)){let c=i;for(;c;){if(n===c)return!0;c=c.parentNode||c.host}}return!1}function $n(n){return"composedPath"in n?n.composedPath()[0]:n.target}function Y0(n,i){if(!Je(n))return!1;const r=n;if(i.hasElement(r))return!r.hasAttribute("data-trigger-disabled");for(const[,l]of i.entries())if(Me(l,r))return!l.hasAttribute("data-trigger-disabled");return!1}function zd(n,i){if(i==null)return!1;if("composedPath"in n)return n.composedPath().includes(i);const r=n;return r.target!=null&&i.contains(r.target)}function dO(n){return n.matches("html,body")}function Vh(n){return wt(n)&&n.matches(q0)}function hO(n){return(n==null?void 0:n.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${q0}`))!=null}function Dv(n){return n?n.getAttribute("role")==="combobox"&&Vh(n):!1}function zv(n){return n?n.hasAttribute(hh)?n:n.querySelector(`[${hh}]`)||n:null}function mO(n,i){return i!=null&&!Ll(i)?0:typeof n=="function"?n():n}function mh(n,i,r){const l=mO(n,r);return typeof l=="number"?l:l==null?void 0:l[i]}function kv(n){return typeof n=="function"?n():n}function V0(n,i){return i||n==="click"||n==="mousedown"}function pO(n){return(n==null?void 0:n.includes("mouse"))&&n!=="mousedown"}const gO="none",Bl="trigger-press",Sn="trigger-hover",G0="outside-press",yO="close-press",Hl="focus-out",Q0="escape-key",vO="imperative-action";function Qt(n,i,r,l){let c=!1,f=!1;const d=Jt;return{reason:n,event:i??new Event("base-ui"),cancel(){c=!0},allowPropagation(){f=!0},get isCanceled(){return c},get isPropagationAllowed(){return f},trigger:r,...d}}function Ke(n,i,r,l){return n.addEventListener(i,r,l),()=>{n.removeEventListener(i,r,l)}}function qi(...n){return()=>{for(let i=0;i<n.length;i+=1){const r=n[i];r&&r()}}}function xn(n){const i=Qi(bO,n).current;return i.next=n,Xe(i.effect),i}function bO(n){const i={current:n,next:n,effect:()=>{i.current=i.next}};return i}const Tc=null;class SO{constructor(){et(this,"callbacks",[]);et(this,"callbacksCount",0);et(this,"nextId",1);et(this,"startId",1);et(this,"isScheduled",!1);et(this,"tick",i=>{var c;this.isScheduled=!1;const r=this.callbacks,l=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,l>0)for(let f=0;f<r.length;f+=1)(c=r[f])==null||c.call(r,i)})}request(i){const r=this.nextId;return this.nextId+=1,this.callbacks.push(i),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(i){const r=i-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}}const wc=new SO;class di{constructor(){et(this,"currentId",Tc);et(this,"cancel",()=>{this.currentId!==Tc&&(wc.cancel(this.currentId),this.currentId=Tc)});et(this,"disposeEffect",()=>this.cancel)}static create(){return new di}static request(i){return wc.request(i)}static cancel(i){return wc.cancel(i)}request(i){this.cancel(),this.currentId=wc.request(()=>{this.currentId=Tc,i()})}}function Gh(){const n=Qi(di.create).current;return Yh(n.disposeEffect),n}function ut(n){return(n==null?void 0:n.ownerDocument)||document}const xO={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},EO={...xO,position:"fixed",top:0,left:0},Ra=O.forwardRef(function(i,r){const[l,c]=O.useState();Xe(()=>{rO&&Ma&&c("button")},[]);const f={tabIndex:0,role:l};return _.jsx("span",{...i,ref:r,style:EO,"aria-hidden":l?void 0:!0,...f,"data-base-ui-focus-guard":""})}),TO=["top","right","bottom","left"],Oa=Math.min,Yi=Math.max,Xc=Math.round,Rc=Math.floor,Vi=n=>({x:n,y:n}),wO={left:"right",right:"left",bottom:"top",top:"bottom"};function X0(n,i,r){return Yi(n,Oa(i,r))}function Gi(n,i){return typeof n=="function"?n(i):n}function zn(n){return n.split("-")[0]}function ks(n){return n.split("-")[1]}function Qh(n){return n==="x"?"y":"x"}function Xh(n){return n==="y"?"height":"width"}function Kn(n){const i=n[0];return i==="t"||i==="b"?"y":"x"}function Fh(n){return Qh(Kn(n))}function RO(n,i,r){r===void 0&&(r=!1);const l=ks(n),c=Fh(n),f=Xh(c);let d=c==="x"?l===(r?"end":"start")?"right":"left":l==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=Fc(d)),[d,Fc(d)]}function OO(n){const i=Fc(n);return[ph(n),i,ph(i)]}function ph(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const jv=["left","right"],Uv=["right","left"],CO=["top","bottom"],AO=["bottom","top"];function _O(n,i,r){switch(n){case"top":case"bottom":return r?i?Uv:jv:i?jv:Uv;case"left":case"right":return i?CO:AO;default:return[]}}function MO(n,i,r,l){const c=ks(n);let f=_O(zn(n),r==="start",l);return c&&(f=f.map(d=>d+"-"+c),i&&(f=f.concat(f.map(ph)))),f}function Fc(n){const i=zn(n);return wO[i]+n.slice(i.length)}function NO(n){var i,r,l,c;return{top:(i=n.top)!=null?i:0,right:(r=n.right)!=null?r:0,bottom:(l=n.bottom)!=null?l:0,left:(c=n.left)!=null?c:0}}function F0(n){return typeof n!="number"?NO(n):{top:n,right:n,bottom:n,left:n}}function Kc(n){const{x:i,y:r,width:l,height:c}=n;return{width:l,height:c,top:r,left:i,right:i+l,bottom:r+c,x:i,y:r}}function DO(n){return n.visibility==="hidden"||n.visibility==="collapse"}function K0(n,i=n?kn(n):null){return!n||!n.isConnected||!i||DO(i)?!1:typeof n.checkVisibility=="function"?n.checkVisibility():i.display!=="none"&&i.display!=="contents"}const zO='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function kO(n){const i=n.assignedSlot;if(i)return i;if(n.parentElement)return n.parentElement;const r=n.getRootNode();return Ta(r)?r.host:null}function gh(n){for(const i of Array.from(n.children))if(Wt(i)==="summary")return i;return null}function jO(n,i){const r=gh(i);return!!r&&(n===r||Me(r,n))}function Z0(n){const i=n?Wt(n):"";return n!=null&&n.matches(zO)&&(i!=="summary"||n.parentElement!=null&&Wt(n.parentElement)==="details"&&gh(n.parentElement)===n)&&(i!=="details"||gh(n)==null)&&(i!=="input"||n.type!=="hidden")}function P0(n){if(!Z0(n)||!n.isConnected||n.matches(":disabled"))return!1;for(let i=n;i;i=kO(i)){const r=i!==n,l=Wt(i)==="slot";if(i.hasAttribute("inert")||r&&Wt(i)==="details"&&!i.open&&!jO(n,i)||i.hasAttribute("hidden")||!l&&!UO(i,r))return!1}return!0}function UO(n,i){const r=kn(n);return i?r.display!=="none":K0(n,r)}function I0(n){const i=n.tabIndex;if(i<0){const r=Wt(n);if(r==="details"||r==="audio"||r==="video"||wt(n)&&n.isContentEditable)return 0}return i}function kd(n){if(Wt(n)!=="input")return null;const i=n;return i.type==="radio"&&i.name!==""?i:null}function LO(n,i){const r=kd(n);if(!r)return!0;const l=i.find(c=>{const f=kd(c);return(f==null?void 0:f.name)===r.name&&f.form===r.form&&f.checked});return l?l===r:i.find(c=>{const f=kd(c);return(f==null?void 0:f.name)===r.name&&f.form===r.form})===r}function J0(n){if(wt(n)&&Wt(n)==="slot"){const i=n.assignedElements({flatten:!0});if(i.length>0)return i}return wt(n)&&n.shadowRoot?Array.from(n.shadowRoot.children):Array.from(n.children)}function W0(n,i){J0(n).forEach(r=>{Z0(r)&&i.push(r),W0(r,i)})}function $0(n,i,r){J0(n).forEach(l=>{wt(l)&&l.matches(i)&&r.push(l),$0(l,i,r)})}function Kh(n){return P0(n)&&I0(n)>=0}function eS(n){const i=[];return W0(n,i),i.filter(P0)}function Il(n){const i=eS(n);return i.filter(r=>I0(r)>=0&&LO(r,i))}function tS(n,i){const r=Il(n),l=r.length;if(l===0)return;const c=Ui(ut(n)),f=r.indexOf(c),d=f===-1?i===1?0:l-1:f+i;return r[d]}function Zh(n){return tS(ut(n).body,1)||n}function nS(n){return tS(ut(n).body,-1)||n}function iS(n,i){if(!n)return null;const r=Il(ut(n).body),l=r.length;if(l===0)return null;const c=r.indexOf(n);if(c===-1)return null;const f=(c+i+l)%l;return r[f]}function BO(n){return iS(n,1)}function HO(n){return iS(n,-1)}function la(n,i){const r=i||n.currentTarget,l=n.relatedTarget;return!l||!Me(r,l)}function qO(n){Il(n).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function Lv(n){const i=[];$0(n,"[data-tabindex]",i),i.forEach(r=>{const l=r.dataset.tabindex;delete r.dataset.tabindex,l?r.setAttribute("tabindex",l):r.removeAttribute("tabindex")})}function Ns(n,i,r=!0){return n.filter(c=>c.parentId===i).flatMap(c=>{var f;return[...!r||(f=c.context)!=null&&f.open?[c]:[],...Ns(n,c.id,r)]})}function Bv(n,i){var c;let r=[],l=(c=n.find(f=>f.id===i))==null?void 0:c.parentId;for(;l;){const f=n.find(d=>d.id===l);l=f==null?void 0:f.parentId,f&&(r=r.concat(f))}return r}function Zc(n){return`data-base-ui-${n}`}let Oc=0;function jd(n,i={}){const{preventScroll:r=!1,sync:l=!1,shouldFocus:c}=i;cancelAnimationFrame(Oc);function f(){c&&!c()||n==null||n.focus({preventScroll:r})}if(l)return f(),Ch;const d=requestAnimationFrame(f);return Oc=d,()=>{Oc===d&&(cancelAnimationFrame(d),Oc=0)}}const Ud={inert:new WeakMap,"aria-hidden":new WeakMap},Hv="data-base-ui-inert",yh={inert:new WeakSet,"aria-hidden":new WeakSet};let Al=new WeakMap,Ld=0;function YO(n){return yh[n]}function sS(n){return n?Ta(n)?n.host:sS(n.parentNode):null}const qv=(n,i)=>i.map(r=>{if(n.contains(r))return r;const l=sS(r);return n.contains(l)?l:null}).filter(r=>r!=null),Yv=n=>{const i=new Set;return n.forEach(r=>{let l=r;for(;l&&!i.has(l);)i.add(l),l=l.parentNode}),i},Vv=(n,i,r)=>{const l=[],c=f=>{!f||r.has(f)||Array.from(f.children).forEach(d=>{Wt(d)!=="script"&&(i.has(d)?c(d):l.push(d))})};return c(n),l};function VO(n,i,r,l,{mark:c=!0}){let f=null;l?f="inert":r&&(f="aria-hidden");let d=null,m=null;const g=qv(i,n),p=c?Vv(i,Yv(g),new Set(g)):[],y=[],b=[];if(f){const S=Ud[f],x=YO(f);m=x,d=S;const E=qv(i,Array.from(i.querySelectorAll("[aria-live]"))),w=g.concat(E);Vv(i,Yv(w),new Set(w)).forEach(N=>{const M=N.getAttribute(f),U=M!==null&&M!=="false",A=(S.get(N)||0)+1;S.set(N,A),y.push(N),A===1&&U&&x.add(N),U||N.setAttribute(f,f==="inert"?"":"true")})}return c&&p.forEach(S=>{const x=(Al.get(S)||0)+1;Al.set(S,x),b.push(S),x===1&&S.setAttribute(Hv,"")}),Ld+=1,()=>{d&&y.forEach(S=>{const E=(d.get(S)||0)-1;d.set(S,E),E||(!(m!=null&&m.has(S))&&f&&S.removeAttribute(f),m==null||m.delete(S))}),c&&b.forEach(S=>{const x=(Al.get(S)||0)-1;Al.set(S,x),x||S.removeAttribute(Hv)}),Ld-=1,Ld||(Ud.inert=new WeakMap,Ud["aria-hidden"]=new WeakMap,yh.inert=new WeakSet,yh["aria-hidden"]=new WeakSet,Al=new WeakMap)}}function Gv(n,i={}){const{ariaHidden:r=!1,inert:l=!1,mark:c=!0}=i,f=ut(n[0]).body;return VO(n,f,r,l,{mark:c})}var Ds=Qb();let Qv=0;function GO(n,i="mui"){const[r,l]=O.useState(n),c=n||r;return O.useEffect(()=>{r==null&&(Qv+=1,l(`${i}-${Qv}`))},[r,i]),c}const Xv=qh.useId;function Jl(n,i){if(Xv!==void 0){const r=Xv();return n??(i?`${i}-${r}`:r)}return GO(n,i)}const QO=500,XO={style:{transition:"none"}},rS="data-base-ui-click-trigger",FO={fallbackAxisSide:"end"},KO={clipPath:"inset(50%)",position:"fixed",top:0,left:0},aS=O.createContext(null),lS=()=>O.useContext(aS),ZO=Zc("portal");function PO(n={}){const{ref:i,container:r,componentProps:l=Jt,elementProps:c}=n,f=Jl(),d=lS(),m=d==null?void 0:d.portalNode,[g,p]=O.useState(null),[y,b]=O.useState(null),S=$e(C=>{C!==null&&b(C)}),x=O.useRef(null);Xe(()=>{if(r===null){x.current&&(x.current=null,b(null),p(null));return}if(f==null)return;const C=(r&&(Lh(r)?r:r.current))??m??document.body;if(C==null){x.current&&(x.current=null,b(null),p(null));return}x.current!==C&&(x.current=C,b(null),p(C))},[r,m,f]);const E=Ca("div",l,{ref:[i,S],props:[{id:f,[ZO]:""},c]});return{portalNode:y,portalSubtree:g&&E?Ds.createPortal(E,g):null}}const IO=O.forwardRef(function(i,r){const{render:l,className:c,style:f,children:d,container:m,renderGuards:g,...p}=i,{portalNode:y,portalSubtree:b}=PO({container:m,ref:r,componentProps:i,elementProps:p}),S=O.useRef(null),x=O.useRef(null),E=O.useRef(null),w=O.useRef(null),[C,N]=O.useState(null),M=O.useRef(!1),U=C==null?void 0:C.modal,A=C==null?void 0:C.open,Z=typeof g=="boolean"?g:!!C&&!C.modal&&C.open&&!!y;O.useEffect(()=>{if(!y||U)return;function q(j){y&&j.relatedTarget&&la(j)&&(j.type==="focusin"?M.current&&(Lv(y),M.current=!1):(qO(y),M.current=!0))}return qi(Ke(y,"focusin",q,!0),Ke(y,"focusout",q,!0))},[y,U]),Xe(()=>{!y||A!==!0||!M.current||(Lv(y),M.current=!1)},[A,y]);const X=O.useMemo(()=>({beforeOutsideRef:S,afterOutsideRef:x,beforeInsideRef:E,afterInsideRef:w,portalNode:y,setFocusManagerState:N}),[y]);return _.jsxs(O.Fragment,{children:[b,_.jsxs(aS.Provider,{value:X,children:[Z&&y&&_.jsx(Ra,{"data-type":"outside",ref:S,onFocus:q=>{var j;if(la(q,y))(j=E.current)==null||j.focus();else{const F=C?C.domReference:null,re=nS(F);re==null||re.focus()}}}),Z&&y&&_.jsx("span",{"aria-owns":y.id,style:KO}),y&&Ds.createPortal(d,y),Z&&y&&_.jsx(Ra,{"data-type":"outside",ref:x,onFocus:q=>{var j;if(la(q,y))(j=w.current)==null||j.focus();else{const F=C?C.domReference:null,re=Zh(F);re==null||re.focus(),C!=null&&C.closeOnFocusOut&&(C==null||C.onOpenChange(!1,Qt(Hl,q.nativeEvent)))}}})]})]})});function oS(){const n=new Map;return{emit(i,r){var l;(l=n.get(i))==null||l.forEach(c=>c(r))},on(i,r){n.has(i)||n.set(i,new Set),n.get(i).add(r)},off(i,r){var l;(l=n.get(i))==null||l.delete(r)}}}class JO{constructor(){et(this,"nodesRef",{current:[]});et(this,"events",oS())}addNode(i){this.nodesRef.current.push(i)}removeNode(i){const r=this.nodesRef.current.findIndex(l=>l===i);r!==-1&&this.nodesRef.current.splice(r,1)}}const cS=O.createContext(null),uS=O.createContext(null),Na=()=>{var n;return((n=O.useContext(cS))==null?void 0:n.id)||null},Da=n=>{const i=O.useContext(uS);return n??i};function WO(n){const i=Jl(),r=Da(n),l=Na();return Xe(()=>{if(!i)return;const c={id:i,parentId:l};return r==null||r.addNode(c),()=>{r==null||r.removeNode(c)}},[r,i,l]),i}function $O(n){const{children:i,id:r}=n,l=Na();return _.jsx(cS.Provider,{value:O.useMemo(()=>({id:r,parentId:l}),[r,l]),children:i})}function eC(n){const{children:i,externalTree:r}=n,l=Qi(()=>r??new JO).current;return _.jsx(uS.Provider,{value:l,children:i})}function Li(n){return n==null?n:"current"in n?n.current:n}function tC(n,i){const r=zt($n(n));return n instanceof r.KeyboardEvent?"keyboard":n instanceof r.FocusEvent?i||"keyboard":"pointerType"in n?n.pointerType||"keyboard":"touches"in n?"touch":n instanceof r.MouseEvent?i||(n.detail===0?"keyboard":"mouse"):""}const nC=20;let Os=[];function Ph(){Os=Os.filter(n=>{var i;return(i=n.deref())==null?void 0:i.isConnected})}function Fv(n){Ph(),n&&Wt(n)!=="body"&&(Os.push(new WeakRef(n)),Os.length>nC&&(Os=Os.slice(-20)))}function Kv(){var n;return Ph(),(n=Os[Os.length-1])==null?void 0:n.deref()}function iC(n){return n?Kh(n)?n:Il(n)[0]||n:null}function Zv(n){var c;if(n.hasAttribute("tabindex")&&!n.hasAttribute("data-tabindex")||!((c=n.getAttribute("role"))!=null&&c.includes("dialog")))return;const r=eS(n).filter(f=>{const d=f.getAttribute("data-tabindex")||"";return Kh(f)||f.hasAttribute("data-tabindex")&&!d.startsWith("-")}),l=n.getAttribute("tabindex");r.length===0?l!=="0"&&(n.setAttribute("tabindex","0"),n.setAttribute("data-tabindex","0")):(l!=="-1"||n.hasAttribute("data-tabindex")&&n.getAttribute("data-tabindex")!=="-1")&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-tabindex","-1"))}function sC(n){const{context:i,children:r,disabled:l=!1,initialFocus:c=!0,returnFocus:f=!0,restoreFocus:d=!1,modal:m=!0,closeOnFocusOut:g=!0,openInteractionType:p="",nextFocusableElement:y,previousFocusableElement:b,beforeContentFocusGuardRef:S,externalTree:x,getInsideElements:E}=n,w="rootStore"in i?i.rootStore:i,C=w.useState("open"),N=w.useState("domReferenceElement"),M=w.useState("floatingElement"),{events:U,dataRef:A}=w.context,Z=$e(()=>{var be;return(be=A.current.floatingContext)==null?void 0:be.nodeId}),X=c===!1,q=Dv(N)&&X,j=xn(c),F=xn(f),re=xn(p),fe=xn(C),se=Da(x),J=lS(),oe=O.useRef(!1),ne=O.useRef(!1),k=O.useRef(!1),G=O.useRef(null),I=O.useRef(""),le=O.useRef(""),H=O.useRef(null),T=O.useRef(null),B=Vc(H,S,J==null?void 0:J.beforeInsideRef),te=Vc(T,J==null?void 0:J.afterInsideRef),ie=wa(),ae=wa(),ee=Gh(),ge=J!=null,ce=zv(M),de=$e((be=ce)=>be?Il(be):[]),Ze=$e(()=>(E==null?void 0:E().filter(be=>be!=null))??[]);O.useEffect(()=>{if(l||!m)return;function be(Oe){Oe.key==="Tab"&&Me(ce,Ui(ut(ce)))&&de().length===0&&!q&&lO(Oe)}const ze=ut(ce);return Ke(ze,"keydown",be)},[l,ce,m,q,de]),O.useEffect(()=>{if(l||!C)return;const be=ut(ce);function ze(){k.current=!1}function Oe(bt){const Re=$n(bt),ke=Ze(),Ee=Me(M,Re)||Me(N,Re)||Me(J==null?void 0:J.portalNode,Re)||ke.some(mt=>mt===Re||Me(mt,Re));k.current=!Ee,le.current=bt.pointerType||"keyboard",Re!=null&&Re.closest(`[${rS}]`)&&(ne.current=!0,ae.start(0,()=>{ne.current=!1}))}function ft(){le.current="keyboard"}return qi(Ke(be,"pointerdown",Oe,!0),Ke(be,"pointerup",ze,!0),Ke(be,"pointercancel",ze,!0),Ke(be,"keydown",ft,!0),ze)},[l,M,N,ce,C,J,ae,Ze]),O.useEffect(()=>{if(l||!g)return;const be=ut(ce);function ze(){ne.current=!0,ae.start(0,()=>{ne.current=!1})}function Oe(ke){const Ee=$n(ke);Kh(Ee)&&(G.current=Ee)}function ft(ke){const Ee=ke.relatedTarget,mt=ke.currentTarget,dt=$n(ke);m&&Ee==null&&dt!=null&&Me(M,dt)&&Fv(dt),queueMicrotask(()=>{const je=Z(),St=w.context.triggerElements,ue=Ze(),xe=(Ee==null?void 0:Ee.hasAttribute(Zc("focus-guard")))&&[H.current,T.current,J==null?void 0:J.beforeInsideRef.current,J==null?void 0:J.afterInsideRef.current,J==null?void 0:J.beforeOutsideRef.current,J==null?void 0:J.afterOutsideRef.current,Li(b),Li(y)].includes(Ee),ht=!(Me(N,Ee)||Me(M,Ee)||Me(Ee,M)||Me(J==null?void 0:J.portalNode,Ee)||ue.some(Be=>Be===Ee||Me(Be,Ee))||Ee!=null&&St.hasElement(Ee)||St.hasMatchingElement(Be=>Me(Be,Ee))||xe||se&&(Ns(se.nodesRef.current,je).find(Be=>{var pt,kt;return Me((pt=Be.context)==null?void 0:pt.elements.floating,Ee)||Me((kt=Be.context)==null?void 0:kt.elements.domReference,Ee)})||Bv(se.nodesRef.current,je).find(Be=>{var pt,kt,nn;return[(pt=Be.context)==null?void 0:pt.elements.floating,zv((kt=Be.context)==null?void 0:kt.elements.floating)].includes(Ee)||((nn=Be.context)==null?void 0:nn.elements.domReference)===Ee})));if(mt===N&&ce&&Zv(ce),d&&mt!==N&&!K0(dt)&&Ui(be)===be.body){if(wt(ce)&&(ce.focus(),d==="popup")){ee.request(()=>{ce.focus()});return}const Be=de(),pt=G.current,kt=(pt&&Be.includes(pt)?pt:null)||Be[Be.length-1]||ce;wt(kt)&&kt.focus()}if(A.current.insideReactTree){A.current.insideReactTree=!1;return}(q||!m)&&Ee&&ht&&!ne.current&&(q||Ee!==Kv())&&(oe.current=!0,w.setOpen(!1,Qt(Hl,ke)))})}function bt(){k.current||(A.current.insideReactTree=!0,ie.start(0,()=>{A.current.insideReactTree=!1}))}const Re=wt(N)?N:null;if(!(!M&&!Re))return qi(Re&&Ke(Re,"focusout",ft),Re&&Ke(Re,"pointerdown",ze),M&&Ke(M,"focusin",Oe),M&&Ke(M,"focusout",ft),M&&J&&Ke(M,"focusout",bt,!0))},[l,N,M,ce,m,se,J,w,g,d,de,q,Z,A,ie,ae,ee,y,b,Ze]),O.useEffect(()=>{var mt,dt,je;if(l||!M||!C)return;const be=Array.from(((mt=J==null?void 0:J.portalNode)==null?void 0:mt.querySelectorAll(`[${Zc("portal")}]`))||[]),Oe=(je=(dt=(se?Bv(se.nodesRef.current,Z()):[]).find(St=>{var ue;return Dv(((ue=St.context)==null?void 0:ue.elements.domReference)||null)}))==null?void 0:dt.context)==null?void 0:je.elements.domReference,bt=[...[M,...be,H.current,T.current,J==null?void 0:J.beforeOutsideRef.current,J==null?void 0:J.afterOutsideRef.current,...Ze()],Oe,Li(b),Li(y),q?N:null].filter(St=>St!=null),Re=Gv(bt,{ariaHidden:m||q,mark:!1}),ke=[M,...be].filter(St=>St!=null),Ee=Gv(ke);return()=>{Ee(),Re()}},[C,l,N,M,m,J,q,se,Z,y,b,Ze]),Xe(()=>{if(!C||l||!wt(ce))return;const be=ut(ce),ze=Ui(be);queueMicrotask(()=>{const Oe=j.current,ft=typeof Oe=="function"?Oe(re.current||""):Oe;if(ft===void 0||ft===!1||Me(ce,ze))return;let Re=null;const ke=()=>(Re==null&&(Re=de(ce)),Re[0]||ce);let Ee;ft===!0||ft===null?Ee=ke():Ee=Li(ft),Ee=Ee||ke();const mt=Me(ce,Ui(be));jd(Ee,{preventScroll:Ee===ce,shouldFocus(){if(!fe.current)return!1;if(mt)return!0;const dt=Ui(be);return!(dt!==Ee&&Me(ce,dt))}})})},[l,C,ce,de,j,re,fe]),Xe(()=>{if(l||!ce)return;const be=ut(ce),ze=Ui(be),Oe=re.current==null;Fv(ze);function ft(Re){if(Re.open||(I.current=tC(Re.nativeEvent,le.current)),Re.reason===Sn&&Re.nativeEvent.type==="mouseleave"&&(oe.current=!0),Re.reason===G0)if(Re.nested)oe.current=!1;else if(cO(Re.nativeEvent)||uO(Re.nativeEvent))oe.current=!1;else{let ke=!1;ut(ce).createElement("div").focus({get preventScroll(){return ke=!0,!1}}),ke?oe.current=!1:oe.current=!0}}U.on("openchange",ft);function bt(){const Re=F.current;let ke=typeof Re=="function"?Re(I.current):Re;if(ke===void 0||ke===!1)return null;ke===null&&(ke=!0);const Ee=N!=null&&N.isConnected?N:null,mt=ze!=null&&ze.isConnected&&Wt(ze)!=="body"?ze:null;let dt=Oe?mt||Ee:Ee||mt;return dt||(dt=Kv()||null),typeof ke=="boolean"?dt:Li(ke)||dt||null}return()=>{U.off("openchange",ft);const Re=Ui(be),ke=Ze(),Ee=Me(M,Re)||ke.some(je=>je===Re||Me(je,Re))||se&&Ns(se.nodesRef.current,Z(),!1).some(je=>{var St;return Me((St=je.context)==null?void 0:St.elements.floating,Re)}),mt=F.current,dt=bt();queueMicrotask(()=>{const je=iC(dt),St=typeof mt!="boolean";mt&&!oe.current&&wt(je)&&(!(!St&&je!==Re&&Re!==be.body)||Ee)&&je.focus({preventScroll:!0}),oe.current=!1})}},[l,M,ce,F,re,U,se,N,Z,Ze]),Xe(()=>{if(!Ma||C||!M)return;const be=Ui(ut(M));!wt(be)||!Vh(be)||Me(M,be)&&be.blur()},[C,M]),Xe(()=>{if(!(l||!J))return J.setFocusManagerState({modal:m,closeOnFocusOut:g,open:C,onOpenChange:w.setOpen,domReference:N}),()=>{J.setFocusManagerState(null)}},[l,J,m,C,w,g,N]),Xe(()=>{if(!(l||!ce))return Zv(ce),()=>{queueMicrotask(Ph)}},[l,ce]);const nt=!l&&(m?!q:!0)&&(ge||m);return _.jsxs(O.Fragment,{children:[nt&&_.jsx(Ra,{"data-type":"inside",ref:B,onFocus:be=>{var ze;if(m){const Oe=de();jd(Oe[Oe.length-1])}else if(J!=null&&J.portalNode)if(oe.current=!1,la(be,J.portalNode)){const Oe=Zh(N);Oe==null||Oe.focus()}else(ze=Li(b??J.beforeOutsideRef))==null||ze.focus()}}),r,nt&&_.jsx(Ra,{"data-type":"inside",ref:te,onFocus:be=>{var ze;if(m)jd(de()[0]);else if(J!=null&&J.portalNode)if(g&&(oe.current=!0),la(be,J.portalNode)){const Oe=nS(N);Oe==null||Oe.focus()}else(ze=Li(y??J.afterOutsideRef))==null||ze.focus()}})]})}function rC(n,i={}){const{enabled:r=!0,event:l="click",toggle:c=!0,ignoreMouse:f=!1,stickIfOpen:d=!0,touchOpenDelay:m=0,reason:g=Bl}=i,p="rootStore"in n?n.rootStore:n,y=p.context.dataRef,b=O.useRef(void 0),S=Gh(),x=wa(),E=O.useMemo(()=>{function w(N,M,U,A){const Z=Qt(g,M,U);N&&A==="touch"&&m>0?x.start(m,()=>{p.setOpen(!0,Z)}):p.setOpen(N,Z)}function C(N,M,U){const A=y.current.openEvent,Z=p.select("domReferenceElement")!==M;return N&&Z||!N||!c?!0:A&&d?!U(A.type):!1}return{onPointerDown(N){b.current=N.pointerType},onMouseDown(N){const M=b.current,U=N.nativeEvent,A=p.select("open");if(N.button!==0||l==="click"||Ll(M,!0)&&f)return;const Z=C(A,N.currentTarget,j=>j==="click"||j==="mousedown"),X=$n(U);if(Vh(X)){w(Z,U,X,M);return}const q=N.currentTarget;S.request(()=>{w(Z,U,q,M)})},onClick(N){if(l==="mousedown-only")return;const M=b.current;if(l==="mousedown"&&M){b.current=void 0;return}if(Ll(M,!0)&&f)return;const U=p.select("open"),A=C(U,N.currentTarget,Z=>Z==="click"||Z==="mousedown"||Z==="keydown"||Z==="keyup");w(A,N.nativeEvent,N.currentTarget,M)},onKeyDown(){b.current=void 0}}},[y,l,f,g,p,d,c,S,x,m]);return O.useMemo(()=>r?{reference:E}:Jt,[r,E])}function aC(){return!1}function lC(n){return{escapeKey:typeof n=="boolean"?n:(n==null?void 0:n.escapeKey)??!1,outsidePress:typeof n=="boolean"?n:(n==null?void 0:n.outsidePress)??!0}}function oC(n,i={}){const{enabled:r=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:f="sloppy",referencePress:d=aC,bubbles:m,externalTree:g}=i,p="rootStore"in n?n.rootStore:n,y=p.useState("open"),b=p.useState("floatingElement"),{dataRef:S}=p.context,x=Da(g),E=$e(typeof c=="function"?c:()=>!1),w=typeof c=="function"?E:c,C=w!==!1,N=$e(()=>f),{escapeKey:M,outsidePress:U}=lC(m),A=O.useRef(!1),Z=O.useRef(!1),X=O.useRef(!1),q=O.useRef(!1),j=O.useRef(""),F=O.useRef(null),re=wa(),fe=wa(),se=$e(()=>{fe.clear(),S.current.insideReactTree=!1}),J=$e(B=>{var ae;const te=(ae=S.current.floatingContext)==null?void 0:ae.nodeId;return(x?Ns(x.nodesRef.current,te):[]).some(ee=>{var ge;return((ge=ee.context)==null?void 0:ge.open)&&!ee.context.dataRef.current[B]})}),oe=$e(B=>zd(B,p.select("floatingElement"))||zd(B,p.select("domReferenceElement"))),ne=$e(B=>{d()&&p.setOpen(!1,Qt(Bl,B.nativeEvent))}),k=$e(B=>{if(!y||!r||!l||B.key!=="Escape"||q.current||!M&&J("__escapeKeyBubbles"))return;const te=oO(B)?B.nativeEvent:B,ie=Qt(Q0,te);p.setOpen(!1,ie),ie.isCanceled||B.preventDefault(),!M&&!ie.isPropagationAllowed&&B.stopPropagation()}),G=$e(()=>{S.current.insideReactTree=!0,fe.start(0,se)}),I=$e(B=>{if(!y||!r||B.button!==0)return;const te=$n(B.nativeEvent);Me(p.select("floatingElement"),te)&&(A.current||(A.current=!0,Z.current=!1))}),le=$e(B=>{!y||!r||(B.defaultPrevented||B.nativeEvent.defaultPrevented)&&A.current&&(Z.current=!0)});O.useEffect(()=>{if(!y||!r)return;S.current.__escapeKeyBubbles=M,S.current.__outsidePressBubbles=U;const B=new ei,te=new ei;function ie(){B.clear(),q.current=!0}function ae(){B.start(Ma?5:0,()=>{q.current=!1})}function ee(){X.current=!0,te.start(0,()=>{X.current=!1})}function ge(){A.current=!1,Z.current=!1}function ce(){const ue=j.current,xe=ue==="pen"||!ue?"mouse":ue,ht=N(),Be=typeof ht=="function"?ht():ht;return typeof Be=="string"?Be:Be[xe]}function de(ue){const xe=ce();return xe==="intentional"&&ue.type!=="click"||xe==="sloppy"&&ue.type==="click"}function Ze(ue){var Be;const xe=(Be=S.current.floatingContext)==null?void 0:Be.nodeId,ht=x&&Ns(x.nodesRef.current,xe).some(pt=>{var kt;return zd(ue,(kt=pt.context)==null?void 0:kt.elements.floating)});return oe(ue)||ht}function nt(ue){if(de(ue)){ue.type!=="click"&&!oe(ue)&&(te.clear(),X.current=!1),se();return}if(S.current.insideReactTree){se();return}const xe=$n(ue),ht=`[${Zc("inert")}]`,Be=Je(xe)?xe.getRootNode():null,pt=Array.from((Ta(Be)?Be:ut(p.select("floatingElement"))).querySelectorAll(ht)),kt=p.context.triggerElements;if(xe&&(kt.hasElement(xe)||kt.hasMatchingElement(sn=>Me(sn,xe))))return;let nn=Je(xe)?xe:null;for(;nn&&!_s(nn);){const sn=Ms(nn);if(_s(sn)||!Je(sn))break;nn=sn}if(!(pt.length&&Je(xe)&&!dO(xe)&&!Me(xe,p.select("floatingElement"))&&pt.every(sn=>!Me(nn,sn)))){if(wt(xe)&&!("touches"in ue)){const sn=_s(xe),ti=kn(xe),cn=/auto|scroll/,Bt=sn||cn.test(ti.overflowX),En=sn||cn.test(ti.overflowY),Ht=Bt&&xe.clientWidth>0&&xe.scrollWidth>xe.clientWidth,gr=En&&xe.clientHeight>0&&xe.scrollHeight>xe.clientHeight,yr=ti.direction==="rtl",vr=gr&&(yr?ue.offsetX<=xe.offsetWidth-xe.clientWidth:ue.offsetX>xe.clientWidth),pi=Ht&&ue.offsetY>xe.clientHeight;if(vr||pi)return}if(!Ze(ue)){if(ce()==="intentional"&&X.current){te.clear(),X.current=!1;return}typeof w=="function"&&!w(ue)||J("__outsidePressBubbles")||(p.setOpen(!1,Qt(G0,ue)),se())}}}function be(ue){ce()!=="sloppy"||ue.pointerType==="touch"||!p.select("open")||!r||oe(ue)||nt(ue)}function ze(ue){if(ce()!=="sloppy"||!p.select("open")||!r||oe(ue))return;const xe=ue.touches[0];xe&&(F.current={startTime:Date.now(),startX:xe.clientX,startY:xe.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},re.start(1e3,()=>{F.current&&(F.current.dismissOnTouchEnd=!1,F.current.dismissOnMouseDown=!1)}))}function Oe(ue,xe){const ht=$n(ue);if(!ht)return;const Be=Ke(ht,ue.type,()=>{xe(ue),Be()})}function ft(ue){j.current="touch",Oe(ue,ze)}function bt(ue){re.clear(),ue.type==="pointerdown"&&(j.current=ue.pointerType),!(ue.type==="mousedown"&&F.current&&!F.current.dismissOnMouseDown)&&Oe(ue,xe=>{xe.type==="pointerdown"?be(xe):nt(xe)})}function Re(ue){if(!A.current)return;const xe=Z.current;if(ge(),ce()==="intentional"){if(ue.type==="pointercancel"){xe&&ee();return}if(!Ze(ue)){if(xe){ee();return}typeof w=="function"&&!w(ue)||(te.clear(),X.current=!0,se())}}}function ke(ue){if(ce()!=="sloppy"||!F.current||oe(ue))return;const xe=ue.touches[0];if(!xe)return;const ht=Math.abs(xe.clientX-F.current.startX),Be=Math.abs(xe.clientY-F.current.startY),pt=Math.sqrt(ht*ht+Be*Be);pt>5&&(F.current.dismissOnTouchEnd=!0),pt>10&&(nt(ue),re.clear(),F.current=null)}function Ee(ue){Oe(ue,ke)}function mt(ue){ce()!=="sloppy"||!F.current||oe(ue)||(F.current.dismissOnTouchEnd&&nt(ue),re.clear(),F.current=null)}function dt(ue){Oe(ue,mt)}const je=ut(b),St=qi(l&&qi(Ke(je,"keydown",k),Ke(je,"compositionstart",ie),Ke(je,"compositionend",ae)),C&&qi(Ke(je,"click",bt,!0),Ke(je,"pointerdown",bt,!0),Ke(je,"pointerup",Re,!0),Ke(je,"pointercancel",Re,!0),Ke(je,"mousedown",bt,!0),Ke(je,"mouseup",Re,!0),Ke(je,"touchstart",ft,!0),Ke(je,"touchmove",Ee,!0),Ke(je,"touchend",dt,!0)));return()=>{St(),B.clear(),te.clear(),ge(),X.current=!1}},[S,b,l,C,w,y,r,M,U,k,se,N,J,oe,x,p,re]),O.useEffect(se,[w,se]);const H=O.useMemo(()=>({onKeyDown:k,onPointerDown:ne,onClick:ne}),[k,ne]),T=O.useMemo(()=>({onKeyDown:k,onPointerDown:le,onMouseDown:le,onClickCapture:G,onMouseDownCapture(B){G(),I(B)},onPointerDownCapture(B){G(),I(B)},onMouseUpCapture:G,onTouchEndCapture:G,onTouchMoveCapture:G}),[k,G,I,le]);return O.useMemo(()=>r?{reference:H,floating:T,trigger:H}:{},[r,H,T])}function Pv(n,i,r){let{reference:l,floating:c}=n;const f=Kn(i),d=Fh(i),m=Xh(d),g=zn(i),p=f==="y",y=l.x+l.width/2-c.width/2,b=l.y+l.height/2-c.height/2,S=l[m]/2-c[m]/2;let x;switch(g){case"top":x={x:y,y:l.y-c.height};break;case"bottom":x={x:y,y:l.y+l.height};break;case"right":x={x:l.x+l.width,y:b};break;case"left":x={x:l.x-c.width,y:b};break;default:x={x:l.x,y:l.y}}const E=ks(i);return E&&(x[d]+=S*(E==="end"?1:-1)*(r&&p?-1:1)),x}async function cC(n,i){var r;i===void 0&&(i={});const{x:l,y:c,platform:f,rects:d,elements:m,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:S=!1,padding:x=0}=Gi(i,n),E=F0(x),C=m[S?b==="floating"?"reference":"floating":b],N=Kc(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(C)))==null||r?C:C.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:y,strategy:g})),M=b==="floating"?{x:l,y:c,width:d.floating.width,height:d.floating.height}:d.reference,U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),A=await(f.isElement==null?void 0:f.isElement(U))&&await(f.getScale==null?void 0:f.getScale(U))||{x:1,y:1},Z=Kc(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:M,offsetParent:U,strategy:g}):M);return{top:(N.top-Z.top+E.top)/A.y,bottom:(Z.bottom-N.bottom+E.bottom)/A.y,left:(N.left-Z.left+E.left)/A.x,right:(Z.right-N.right+E.right)/A.x}}const uC=50,fC=async(n,i,r)=>{const{placement:l="bottom",strategy:c="absolute",middleware:f=[],platform:d}=r,m=d.detectOverflow?d:{...d,detectOverflow:cC},g=await(d.isRTL==null?void 0:d.isRTL(i));let p=await d.getElementRects({reference:n,floating:i,strategy:c}),{x:y,y:b}=Pv(p,l,g),S=l,x=0;const E={};for(let w=0;w<f.length;w++){const C=f[w];if(!C)continue;const{name:N,fn:M}=C,{x:U,y:A,data:Z,reset:X}=await M({x:y,y:b,initialPlacement:l,placement:S,strategy:c,middlewareData:E,rects:p,platform:m,elements:{reference:n,floating:i}});y=U??y,b=A??b,E[N]={...E[N],...Z},X&&x<uC&&(x++,typeof X=="object"&&(X.placement&&(S=X.placement),X.rects&&(p=X.rects===!0?await d.getElementRects({reference:n,floating:i,strategy:c}):X.rects),{x:y,y:b}=Pv(p,S,g)),w=-1)}return{x:y,y:b,placement:S,strategy:c,middlewareData:E}},dC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,l;const{placement:c,middlewareData:f,rects:d,initialPlacement:m,platform:g,elements:p}=i,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,...C}=Gi(n,i);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const N=zn(c),M=Kn(m),U=zn(m)===m,A=await(g.isRTL==null?void 0:g.isRTL(p.floating)),Z=S||(U||!w?[Fc(m)]:OO(m)),X=E!=="none";!S&&X&&Z.push(...MO(m,w,E,A));const q=[m,...Z],j=await g.detectOverflow(i,C),F=[];let re=((l=f.flip)==null?void 0:l.overflows)||[];if(y&&F.push(j[N]),b){const oe=RO(c,d,A);F.push(j[oe[0]],j[oe[1]])}if(re=[...re,{placement:c,overflows:F}],!F.every(oe=>oe<=0)){var fe,se;const oe=(((fe=f.flip)==null?void 0:fe.index)||0)+1,ne=q[oe];if(ne&&(!(b==="alignment"?M!==Kn(ne):!1)||re.every(I=>Kn(I.placement)===M?I.overflows[0]>0:!0)))return{data:{index:oe,overflows:re},reset:{placement:ne}};let k=(se=re.filter(G=>G.overflows[0]<=0).sort((G,I)=>G.overflows[1]-I.overflows[1])[0])==null?void 0:se.placement;if(!k)switch(x){case"bestFit":{var J;const G=(J=re.filter(I=>{if(X){const le=Kn(I.placement);return le===M||le==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(le=>le>0).reduce((le,H)=>le+H,0)]).sort((I,le)=>I[1]-le[1])[0])==null?void 0:J[0];G&&(k=G);break}case"initialPlacement":k=m;break}if(c!==k)return{reset:{placement:k}}}return{}}}};function Iv(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function Jv(n){return TO.some(i=>n[i]>=0)}const hC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r,platform:l}=i,{strategy:c="referenceHidden",...f}=Gi(n,i);switch(c){case"referenceHidden":{const d=await l.detectOverflow(i,{...f,elementContext:"reference"}),m=Iv(d,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Jv(m)}}}case"escaped":{const d=await l.detectOverflow(i,{...f,altBoundary:!0}),m=Iv(d,r.floating);return{data:{escapedOffsets:m,escaped:Jv(m)}}}default:return{}}}}},fS=new Set(["left","top"]);async function mC(n,i){const{placement:r,platform:l,elements:c}=n,f=await(l.isRTL==null?void 0:l.isRTL(c.floating)),d=zn(r),m=ks(r),g=Kn(r)==="y",p=fS.has(d)?-1:1,y=f&&g?-1:1,b=Gi(i,n);let{mainAxis:S,crossAxis:x,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof E=="number"&&(x=m==="end"?E*-1:E),g?{x:x*y,y:S*p}:{x:S*p,y:x*y}}const pC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,l;const{x:c,y:f,placement:d,middlewareData:m}=i,g=await mC(i,n);return d===((r=m.offset)==null?void 0:r.placement)&&(l=m.arrow)!=null&&l.alignmentOffset?{}:{x:c+g.x,y:f+g.y,data:{...g,placement:d}}}}},gC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:l,placement:c,platform:f}=i,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:M=>{let{x:U,y:A}=M;return{x:U,y:A}}},...p}=Gi(n,i),y={x:r,y:l},b=await f.detectOverflow(i,p),S=Kn(c),x=Qh(S);let E=y[x],w=y[S];const C=(M,U)=>X0(U+b[M==="y"?"top":"left"],U,U-b[M==="y"?"bottom":"right"]);d&&(E=C(x,E)),m&&(w=C(S,w));const N=g.fn({...i,[x]:E,[S]:w});return{...N,data:{x:N.x-r,y:N.y-l,enabled:{[x]:d,[S]:m}}}}}},yC=function(n){return n===void 0&&(n={}),{options:n,fn(i){var r,l;const{x:c,y:f,placement:d,rects:m,middlewareData:g}=i,{offset:p=0,mainAxis:y=!0,crossAxis:b=!0}=Gi(n,i),S={x:c,y:f},x=Kn(d),E=Qh(x);let w=S[E],C=S[x];const N=Gi(p,i),M=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:(r=N.mainAxis)!=null?r:0,crossAxis:(l=N.crossAxis)!=null?l:0};if(y){const Z=E==="y"?"height":"width",X=m.reference[E]-m.floating[Z]+M.mainAxis,q=m.reference[E]+m.reference[Z]-M.mainAxis;w<X?w=X:w>q&&(w=q)}if(b){var U,A;const Z=E==="y"?"width":"height",X=fS.has(zn(d)),q=m.reference[x]-m.floating[Z]+(X&&((U=g.offset)==null?void 0:U[x])||0)+(X?0:M.crossAxis),j=m.reference[x]+m.reference[Z]+(X?0:((A=g.offset)==null?void 0:A[x])||0)-(X?M.crossAxis:0);C<q?C=q:C>j&&(C=j)}return{[E]:w,[x]:C}}}},vC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){const{placement:r,rects:l,platform:c,elements:f}=i,{apply:d=()=>{},...m}=Gi(n,i),g=await c.detectOverflow(i,m),p=zn(r),y=ks(r),b=Kn(r)==="y",{width:S,height:x}=l.floating;let E,w;p==="top"||p==="bottom"?(E=p,w=y===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(w=p,E=y==="end"?"top":"bottom");const C=x-g.top-g.bottom,N=S-g.left-g.right,M=Oa(x-g[E],C),U=Oa(S-g[w],N),A=i.middlewareData.shift,Z=!A;let X=M,q=U;A!=null&&A.enabled.x&&(q=N),A!=null&&A.enabled.y&&(X=C),Z&&!y&&(b?q=S-2*Yi(g.left,g.right):X=x-2*Yi(g.top,g.bottom)),await d({...i,availableWidth:q,availableHeight:X});const j=await c.getDimensions(f.floating);return S!==j.width||x!==j.height?{reset:{rects:!0}}:{}}}};function dS(n){const i=kn(n);let r=parseFloat(i.width)||0,l=parseFloat(i.height)||0;const c=wt(n),f=c?n.offsetWidth:r,d=c?n.offsetHeight:l,m=Xc(r)!==f||Xc(l)!==d;return m&&(r=f,l=d),{width:r,height:l,$:m}}function Ih(n){return Je(n)?n:n.contextElement}function oa(n){const i=Ih(n);if(!wt(i))return Vi(1);const r=i.getBoundingClientRect(),{width:l,height:c,$:f}=dS(i);let d=(f?Xc(r.width):r.width)/l,m=(f?Xc(r.height):r.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const bC=Vi(0);function hS(n){const i=zt(n);return!Hh()||!i.visualViewport?bC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function SC(n,i,r){return i===void 0&&(i=!1),!!r&&i&&r===zt(n)}function fr(n,i,r,l){i===void 0&&(i=!1),r===void 0&&(r=!1);const c=n.getBoundingClientRect(),f=Ih(n);let d=Vi(1);i&&(l?Je(l)&&(d=oa(l)):d=oa(n));const m=SC(f,r,l)?hS(f):Vi(0);let g=(c.left+m.x)/d.x,p=(c.top+m.y)/d.y,y=c.width/d.x,b=c.height/d.y;if(f&&l){const S=zt(f),x=Je(l)?zt(l):l;let E=S,w=fh(E);for(;w&&x!==E;){const C=oa(w),N=w.getBoundingClientRect(),M=kn(w),U=N.left+(w.clientLeft+parseFloat(M.paddingLeft))*C.x,A=N.top+(w.clientTop+parseFloat(M.paddingTop))*C.y;g*=C.x,p*=C.y,y*=C.x,b*=C.y,g+=U,p+=A,E=zt(w),w=fh(E)}}return Kc({width:y,height:b,x:g,y:p})}function lu(n,i){const r=su(n).scrollLeft;return i?i.left+r:fr(Xi(n)).left+r}function mS(n,i){const r=n.getBoundingClientRect(),l=r.left+i.scrollLeft-lu(n,r),c=r.top+i.scrollTop;return{x:l,y:c}}function xC(n){let{elements:i,rect:r,offsetParent:l,strategy:c}=n;const f=c==="fixed",d=Xi(l),m=i?iu(i.floating):!1;if(l===d||m&&f)return r;let g={scrollLeft:0,scrollTop:0},p=Vi(1);const y=Vi(0),b=wt(l);if((b||!f)&&((Wt(l)!=="body"||pr(d))&&(g=su(l)),b)){const x=fr(l);p=oa(l),y.x=x.x+l.clientLeft,y.y=x.y+l.clientTop}const S=d&&!b&&!f?mS(d,g):Vi(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+y.x+S.x,y:r.y*p.y-g.scrollTop*p.y+y.y+S.y}}function EC(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function TC(n){const i=su(n),r=n.ownerDocument.body,l=Yi(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),c=Yi(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let f=-i.scrollLeft+lu(n);const d=-i.scrollTop;return kn(r).direction==="rtl"&&(f+=Yi(n.clientWidth,r.clientWidth)-l),{width:l,height:c,x:f,y:d}}const wC=25;function RC(n,i,r){r===void 0&&(r="viewport");const l=r==="layoutViewport",c=zt(n),f=Xi(n),d=c.visualViewport;let m=f.clientWidth,g=f.clientHeight,p=0,y=0;if(d){const S=!Hh()||i==="fixed";l?S||(p=-d.offsetLeft,y=-d.offsetTop):(m=d.width,g=d.height,S&&(p=d.offsetLeft,y=d.offsetTop))}if(lu(f)<=0){const S=f.ownerDocument,x=S.body,E=getComputedStyle(x),w=S.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,C=Math.abs(f.clientWidth-x.clientWidth-w),N=getComputedStyle(f).scrollbarGutter==="stable both-edges"?C/2:C;N<=wC&&(m-=N)}return{width:m,height:g,x:p,y}}function OC(n,i){const r=fr(n,!0,i==="fixed"),l=r.top+n.clientTop,c=r.left+n.clientLeft,f=oa(n),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=c*f.x,p=l*f.y;return{width:d,height:m,x:g,y:p}}function Wv(n,i,r){let l;if(i==="viewport"||i==="layoutViewport")l=RC(n,r,i);else if(i==="document")l=TC(Xi(n));else if(Je(i))l=OC(i,r);else{const c=hS(n);l={x:i.x-c.x,y:i.y-c.y,width:i.width,height:i.height}}return Kc(l)}function CC(n,i){const r=i.get(n);if(r)return r;let l=jl(n,[],!1).filter(m=>Je(m)&&Wt(m)!=="body"),c=null;const f=kn(n).position==="fixed";let d=f?Ms(n):n;for(;Je(d)&&!_s(d);){const m=kn(d),g=Bh(d),p=c?c.position:f?"fixed":"";!g&&(p==="fixed"||p==="absolute"&&m.position==="static")?l=l.filter(b=>b!==d):c=m,d=Ms(d)}return i.set(n,l),l}function AC(n){let{element:i,boundary:r,rootBoundary:l,strategy:c}=n;const d=[...r==="clippingAncestors"?iu(i)?[]:CC(i,this._c):[].concat(r),l],m=Wv(i,d[0],c);let g=m.top,p=m.right,y=m.bottom,b=m.left;for(let S=1;S<d.length;S++){const x=Wv(i,d[S],c);g=Yi(x.top,g),p=Oa(x.right,p),y=Oa(x.bottom,y),b=Yi(x.left,b)}return{width:p-b,height:y-g,x:b,y:g}}function _C(n){const{width:i,height:r}=dS(n);return{width:i,height:r}}function MC(n,i,r){const l=wt(i),c=Xi(i),f=r==="fixed",d=fr(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const g=Vi(0);if((l||!f)&&((Wt(i)!=="body"||pr(c))&&(m=su(i)),l)){const S=fr(i,!0,f,i);g.x=S.x+i.clientLeft,g.y=S.y+i.clientTop}!l&&c&&(g.x=lu(c));const p=c&&!l&&!f?mS(c,m):Vi(0),y=d.left+m.scrollLeft-g.x-p.x,b=d.top+m.scrollTop-g.y-p.y;return{x:y,y:b,width:d.width,height:d.height}}function Bd(n){return kn(n).position==="static"}function $v(n,i){if(!wt(n)||kn(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return Xi(n)===r&&(r=r.ownerDocument.body),r}function pS(n,i){const r=zt(n);if(iu(n))return r;if(!wt(n)){let c=Ms(n);for(;c&&!_s(c);){if(Je(c)&&!Bd(c))return c;c=Ms(c)}return r}let l=$v(n,i);for(;l&&LR(l)&&Bd(l);)l=$v(l,i);return l&&_s(l)&&Bd(l)&&!Bh(l)?r:l||qR(n)||r}const NC=async function(n){const i=this.getOffsetParent||pS,r=this.getDimensions,l=await r(n.floating);return{reference:MC(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function DC(n){return kn(n).direction==="rtl"}const zC={convertOffsetParentRelativeRectToViewportRelativeRect:xC,getDocumentElement:Xi,getClippingRect:AC,getOffsetParent:pS,getElementRects:NC,getClientRects:EC,getDimensions:_C,getScale:oa,isElement:Je,isRTL:DC};function gS(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function kC(n,i,r){let l=null,c;const f=Xi(n);function d(){var y;clearTimeout(c),(y=l)==null||y.disconnect(),l=null}function m(y,b){y===void 0&&(y=!1),b===void 0&&(b=1),d();const S=n.getBoundingClientRect(),{left:x,top:E,width:w,height:C}=S;if(y||i(),!w||!C)return;const N=Rc(E),M=Rc(f.clientWidth-(x+w)),U=Rc(f.clientHeight-(E+C)),A=Rc(x),X={rootMargin:-N+"px "+-M+"px "+-U+"px "+-A+"px",threshold:Yi(0,Oa(1,b))||1};let q=!0;function j(F){const re=F[0].intersectionRatio;if(!gS(S,n.getBoundingClientRect()))return m();if(re!==b){if(!q)return m();re?m(!1,re):c=setTimeout(()=>{m(!1,1e-7)},1e3)}q=!1}try{l=new IntersectionObserver(j,{...X,root:f.ownerDocument})}catch{l=new IntersectionObserver(j,X)}l.observe(n)}const g=zt(n),p=()=>m(r);return g.addEventListener("resize",p),m(!0),()=>{g.removeEventListener("resize",p),d()}}function eb(n,i,r,l){l===void 0&&(l={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,p=Ih(n),y=c||f?[...p?jl(p):[],...i?jl(i):[]]:[];y.forEach(N=>{c&&N.addEventListener("scroll",r),f&&N.addEventListener("resize",r)});const b=p&&m?kC(p,r,f):null;let S=-1,x=null;d&&(x=new ResizeObserver(N=>{let[M]=N;M&&M.target===p&&x&&i&&(x.unobserve(i),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var U;(U=x)==null||U.observe(i)})),r()}),p&&!g&&x.observe(p),i&&x.observe(i));let E,w=g?fr(n):null;g&&C();function C(){const N=fr(n);w&&!gS(w,N)&&r(),w=N,E=requestAnimationFrame(C)}return r(),()=>{var N;y.forEach(M=>{c&&M.removeEventListener("scroll",r),f&&M.removeEventListener("resize",r)}),b==null||b(),(N=x)==null||N.disconnect(),x=null,g&&cancelAnimationFrame(E)}}const jC=pC,UC=gC,LC=dC,BC=vC,HC=hC,qC=yC,YC=(n,i,r)=>{const l=new Map,c=r??{},f={...zC,...c.platform,_c:l};return fC(n,i,{...c,platform:f})};var VC=typeof document<"u",GC=function(){},Lc=VC?O.useLayoutEffect:GC;function Pc(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,l,c;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(l=r;l--!==0;)if(!Pc(n[l],i[l]))return!1;return!0}if(c=Object.keys(n),r=c.length,r!==Object.keys(i).length)return!1;for(l=r;l--!==0;)if(!{}.hasOwnProperty.call(i,c[l]))return!1;for(l=r;l--!==0;){const f=c[l];if(!(f==="_owner"&&n.$$typeof)&&!Pc(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function yS(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function tb(n,i){const r=yS(n);return Math.round(i*r)/r}function Hd(n){const i=O.useRef(n);return Lc(()=>{i.current=n}),i}function QC(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:l=[],platform:c,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[y,b]=O.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[S,x]=O.useState(l);Pc(S,l)||x(l);const[E,w]=O.useState(null),[C,N]=O.useState(null),M=O.useCallback(I=>{I!==X.current&&(X.current=I,w(I))},[]),U=O.useCallback(I=>{I!==q.current&&(q.current=I,N(I))},[]),A=f||E,Z=d||C,X=O.useRef(null),q=O.useRef(null),j=O.useRef(y),F=g!=null,re=Hd(g),fe=Hd(c),se=Hd(p),J=O.useCallback(()=>{if(!X.current||!q.current)return;const I={placement:i,strategy:r,middleware:S};fe.current&&(I.platform=fe.current),YC(X.current,q.current,I).then(le=>{const H={...le,isPositioned:se.current!==!1};oe.current&&!Pc(j.current,H)&&(j.current=H,Ds.flushSync(()=>{b(H)}))})},[S,i,r,fe,se]);Lc(()=>{p===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,b(I=>({...I,isPositioned:!1})))},[p]);const oe=O.useRef(!1);Lc(()=>(oe.current=!0,()=>{oe.current=!1}),[]),Lc(()=>{if(A&&(X.current=A),Z&&(q.current=Z),A&&Z){if(re.current)return re.current(A,Z,J);J()}},[A,Z,J,re,F]);const ne=O.useMemo(()=>({reference:X,floating:q,setReference:M,setFloating:U}),[M,U]),k=O.useMemo(()=>({reference:A,floating:Z}),[A,Z]),G=O.useMemo(()=>{const I={position:r,left:0,top:0};if(!k.floating)return I;const le=tb(k.floating,y.x),H=tb(k.floating,y.y);return m?{...I,transform:"translate("+le+"px, "+H+"px)",...yS(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:le,top:H}},[r,m,k.floating,y.x,y.y]);return O.useMemo(()=>({...y,update:J,refs:ne,elements:k,floatingStyles:G}),[y,J,ne,k,G])}const XC=(n,i)=>{const r=jC(n);return{name:r.name,fn:r.fn,options:[n,i]}},FC=(n,i)=>{const r=UC(n);return{name:r.name,fn:r.fn,options:[n,i]}},KC=(n,i)=>({fn:qC(n).fn,options:[n,i]}),ZC=(n,i)=>{const r=LC(n);return{name:r.name,fn:r.fn,options:[n,i]}},PC=(n,i)=>{const r=BC(n);return{name:r.name,fn:r.fn,options:[n,i]}},IC=(n,i)=>{const r=HC(n);return{name:r.name,fn:r.fn,options:[n,i]}};function JC(n){const i=O.useRef(!0);i.current&&(i.current=!1,n())}const Ve=(n,i,r,l,c,f,...d)=>{if(d.length>0)throw new Error(dr(1));let m;if(n)m=n;else throw new Error("Missing arguments");return m};var qd={exports:{}},Yd={};/**
|
|
100
|
+
* @license React
|
|
101
|
+
* use-sync-external-store-shim.production.js
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the MIT license found in the
|
|
106
|
+
* LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/var nb;function WC(){if(nb)return Yd;nb=1;var n=Kl();function i(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var r=typeof Object.is=="function"?Object.is:i,l=n.useState,c=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(b,S){var x=S(),E=l({inst:{value:x,getSnapshot:S}}),w=E[0].inst,C=E[1];return f(function(){w.value=x,w.getSnapshot=S,g(w)&&C({inst:w})},[b,x,S]),c(function(){return g(w)&&C({inst:w}),b(function(){g(w)&&C({inst:w})})},[b]),d(x),x}function g(b){var S=b.getSnapshot;b=b.value;try{var x=S();return!r(b,x)}catch{return!0}}function p(b,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return Yd.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Yd}var ib;function vS(){return ib||(ib=1,qd.exports=WC()),qd.exports}var $C=vS(),Vd={exports:{}},Gd={};/**
|
|
108
|
+
* @license React
|
|
109
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
110
|
+
*
|
|
111
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the MIT license found in the
|
|
114
|
+
* LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/var sb;function eA(){if(sb)return Gd;sb=1;var n=Kl(),i=vS();function r(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var l=typeof Object.is=="function"?Object.is:r,c=i.useSyncExternalStore,f=n.useRef,d=n.useEffect,m=n.useMemo,g=n.useDebugValue;return Gd.useSyncExternalStoreWithSelector=function(p,y,b,S,x){var E=f(null);if(E.current===null){var w={hasValue:!1,value:null};E.current=w}else w=E.current;E=m(function(){function N(X){if(!M){if(M=!0,U=X,X=S(X),x!==void 0&&w.hasValue){var q=w.value;if(x(q,X))return A=q}return A=X}if(q=A,l(U,X))return q;var j=S(X);return x!==void 0&&x(q,j)?(U=X,q):(U=X,A=j)}var M=!1,U,A,Z=b===void 0?null:b;return[function(){return N(y())},Z===null?void 0:function(){return N(Z())}]},[y,b,S,x]);var C=c(p,E[0],E[1]);return d(function(){w.hasValue=!0,w.value=C},[C]),g(C),C},Gd}var rb;function tA(){return rb||(rb=1,Vd.exports=eA()),Vd.exports}var nA=tA();const iA=Oh(19),sA=iA?aA:lA;function bS(n,i,r,l,c){return sA(n,i,r,l,c)}function rA(n,i,r,l,c){const f=O.useCallback(()=>i(n.getSnapshot(),r,l,c),[n,i,r,l,c]);return $C.useSyncExternalStore(n.subscribe,f,f)}function aA(n,i,r,l,c){return rA(n,i,r,l,c)}function lA(n,i,r,l,c){return nA.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getSnapshot,f=>i(f,r,l,c))}class oA{constructor(i){et(this,"subscribe",i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}));et(this,"getSnapshot",()=>this.state);this.state=i,this.listeners=new Set,this.updateTick=0}setState(i){if(this.state===i)return;this.state=i,this.updateTick+=1;const r=this.updateTick;for(const l of this.listeners){if(r!==this.updateTick)return;l(i)}}update(i){for(const r in i)if(!Object.is(this.state[r],i[r])){this.setState({...this.state,...i});return}}set(i,r){Object.is(this.state[i],r)||this.setState({...this.state,[i]:r})}notifyAll(){const i={...this.state};this.setState(i)}use(i,r,l,c){return bS(this,i,r,l,c)}}class SS extends oA{constructor(i,r={},l){super(i),this.context=r,this.selectors=l}useSyncedValue(i,r){O.useDebugValue(i);const l=this;Xe(()=>{l.state[i]!==r&&l.set(i,r)},[l,i,r])}useSyncedValueWithCleanup(i,r){const l=this;Xe(()=>(l.state[i]!==r&&l.set(i,r),()=>{l.set(i,void 0)}),[l,i,r])}useSyncedValues(i){const r=this,l=Object.values(i);Xe(()=>{r.update(i)},[r,...l])}useControlledProp(i,r){O.useDebugValue(i);const l=this,c=r!==void 0;Xe(()=>{c&&!Object.is(l.state[i],r)&&l.setState({...l.state,[i]:r})},[l,i,r,c])}select(i,r,l,c){const f=this.selectors[i];return f(this.state,r,l,c)}useState(i,r,l,c){return O.useDebugValue(i),bS(this,this.selectors[i],r,l,c)}useContextCallback(i,r){O.useDebugValue(i);const l=$e(r??Ch);this.context[i]=l}useStateSetter(i){const r=O.useRef(void 0);return r.current===void 0&&(r.current=l=>{this.set(i,l)}),r.current}observe(i,r){let l;typeof i=="function"?l=i:l=this.selectors[i];let c=l(this.state);return r(c,c,this),this.subscribe(f=>{const d=l(f);if(!Object.is(c,d)){const m=c;c=d,r(d,m,this)}})}}const cA={open:Ve(n=>n.open),transitionStatus:Ve(n=>n.transitionStatus),domReferenceElement:Ve(n=>n.domReferenceElement),referenceElement:Ve(n=>n.positionReference??n.referenceElement),floatingElement:Ve(n=>n.floatingElement),floatingId:Ve(n=>n.floatingId)};class ou extends SS{constructor(r){const{syncOnly:l,nested:c,onOpenChange:f,triggerElements:d,...m}=r;super({...m,positionReference:m.referenceElement,domReferenceElement:m.referenceElement},{onOpenChange:f,dataRef:{current:{}},events:oS(),nested:c,triggerElements:d},cA);et(this,"syncOpenEvent",(r,l)=>{(!r||!this.state.open||l!=null&&fO(l))&&(this.context.dataRef.current.openEvent=r?l:void 0)});et(this,"dispatchOpenChange",(r,l)=>{this.syncOpenEvent(r,l.event);const c={open:r,reason:l.reason,nativeEvent:l.event,nested:this.context.nested,triggerElement:l.trigger};this.context.events.emit("openchange",c)});et(this,"setOpen",(r,l)=>{var c,f,d,m;if(this.syncOnly){(f=(c=this.context).onOpenChange)==null||f.call(c,r,l);return}this.dispatchOpenChange(r,l),(m=(d=this.context).onOpenChange)==null||m.call(d,r,l)});this.syncOnly=l}}function uA(n){const{popupStore:i,treatPopupAsFloatingElement:r=!1,floatingRootContext:l,floatingId:c,nested:f,onOpenChange:d}=n,m=i.useState("open"),g=i.useState("activeTriggerElement"),p=i.useState(r?"popupElement":"positionerElement"),y=i.context.triggerElements,b=d,S=O.useRef(null);l===void 0&&S.current===null&&(S.current=new ou({open:m,transitionStatus:void 0,referenceElement:g,floatingElement:p,triggerElements:y,onOpenChange:b,floatingId:c,syncOnly:!0,nested:f}));const x=l??S.current;return i.useSyncedValue("floatingId",c),Xe(()=>{const E={open:m,floatingId:c,referenceElement:g,floatingElement:p};Je(g)&&(E.domReferenceElement=g),x.state.positionReference===x.state.referenceElement&&(E.positionReference=g),x.update(E)},[m,c,g,p,x]),x.context.onOpenChange=b,x.context.nested=f,x}function fA(n,i=!1,r=!1){const[l,c]=O.useState(n&&i?"idle":void 0),[f,d]=O.useState(n);return n&&!f&&(d(!0),c("starting")),!n&&f&&l!=="ending"&&!r&&c("ending"),!n&&!f&&l==="ending"&&c(void 0),Xe(()=>{if(!n&&f&&l!=="ending"&&r){const m=di.request(()=>{c("ending")});return()=>{di.cancel(m)}}},[n,f,l,r]),Xe(()=>{if(!n||i)return;const m=di.request(()=>{c(void 0)});return()=>{di.cancel(m)}},[i,n]),Xe(()=>{if(!n||!i)return;n&&f&&l!=="idle"&&c("starting");const m=di.request(()=>{c("idle")});return()=>{di.cancel(m)}},[i,n,f,l]),{mounted:f,setMounted:d,transitionStatus:l}}let ql=function(n){return n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n}({});const dA={[ql.startingStyle]:""},hA={[ql.endingStyle]:""},mA={transitionStatus(n){return n==="starting"?dA:n==="ending"?hA:null}};function xS(n,i=!1,r=!0){const l=Gh();return $e((c,f=null)=>{l.cancel();const d=Li(n);if(d==null)return;const m=d,g=()=>{Ds.flushSync(c)};if(typeof m.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){c();return}function p(){Promise.all(m.getAnimations().map(y=>y.finished)).then(()=>{f!=null&&f.aborted||g()}).catch(()=>{if(r){f!=null&&f.aborted||g();return}const y=m.getAnimations();!(f!=null&&f.aborted)&&y.length>0&&y.some(b=>b.pending||b.playState!=="finished")&&p()})}if(i){const y=ql.startingStyle;if(!m.hasAttribute(y)){l.request(p);return}const b=new MutationObserver(()=>{m.hasAttribute(y)||(b.disconnect(),p())});b.observe(m,{attributes:!0,attributeFilter:[y]}),f==null||f.addEventListener("abort",()=>b.disconnect(),{once:!0});return}l.request(p)})}function ES(n){const{enabled:i=!0,open:r,ref:l,onComplete:c}=n,f=$e(c),d=xS(l,r,!1);O.useEffect(()=>{if(!i)return;const m=new AbortController;return d(f,m.signal),()=>{m.abort()}},[i,r,f,d])}const TS={tabIndex:-1,[hh]:""};function pA(n){return i=>i==="touch"?n.current:!0}function gA(n,i,r=!1){const l=Jl(),c=Na()!=null,f=O.useRef(null);n===void 0&&f.current===null&&(f.current=i(l,c));const d=n??f.current;return uA({popupStore:d,treatPopupAsFloatingElement:r,floatingRootContext:d.state.floatingRootContext,floatingId:l,nested:c,onOpenChange:d.setOpen}),{store:d,internalStore:f.current}}function yA(n,i){const r=O.useRef(null),l=O.useRef(null);return O.useCallback(c=>{if(n===void 0)return;let f=!1;if(r.current!==null){const d=r.current,m=l.current,g=i.context.triggerElements.getById(d);m&&g===m&&(i.context.triggerElements.delete(d),f=!0),r.current=null,l.current=null}if(c!==null&&(r.current=n,l.current=c,i.context.triggerElements.add(n,c),f=!0),f){const d=i.context.triggerElements.size;i.select("open")&&i.state.triggerCount!==d&&i.set("triggerCount",d)}},[i,n])}function vA(n,i,r,l=!1){i?n.preventUnmountingOnClose=!1:l&&(n.preventUnmountingOnClose=!0);const c=(r==null?void 0:r.id)??null;(c||i)&&(n.activeTriggerId=c,n.activeTriggerElement=r??null)}function bA(n){let i=!1;return n.preventUnmountOnClose=()=>{i=!0},()=>i}function SA(n,i,r,l){JC(()=>{i===void 0&&n.state.open===!1&&r&&(n.state={...n.state,open:!0,activeTriggerId:l,preventUnmountingOnClose:!1})})}function xA(n,i,r,l){const c=r.useState("isMountedByTrigger",n),f=yA(n,r),d=$e(m=>{if(f(m),!m)return;const g=r.select("open"),p=r.select("activeTriggerId");if(p===n){r.update({activeTriggerElement:m,...g?l:null});return}p==null&&g&&r.update({activeTriggerId:n,activeTriggerElement:m,...l})});return Xe(()=>{c&&r.update({activeTriggerElement:i.current,...l})},[c,r,i,...Object.values(l)]),{registerTrigger:d,isMountedByThisTrigger:c}}function EA(n,i={}){const{closeOnActiveTriggerUnmount:r=!1}=i,l=n.useState("open"),c=n.useState("triggerCount");Xe(()=>{if(!l){n.state.triggerCount!==0&&n.set("triggerCount",0);return}const f=n.context.triggerElements.size,d={};n.state.triggerCount!==f&&(d.triggerCount=f);const m=n.select("activeTriggerId");let g=null;if(m){const p=n.context.triggerElements.getById(m);p?p!==n.state.activeTriggerElement&&(d.activeTriggerElement=p):g=m}if(!g&&!m&&f===1){const p=n.context.triggerElements.entries().next();if(!p.done){const[y,b]=p.value;d.activeTriggerId=y,d.activeTriggerElement=b}}(d.triggerCount!==void 0||d.activeTriggerId!==void 0||d.activeTriggerElement!==void 0)&&n.update(d),g&&r&&queueMicrotask(()=>{if(n.select("open")&&n.select("activeTriggerId")===g&&!n.context.triggerElements.getById(g)){const p=Qt(gO);n.setOpen(!1,p),p.isCanceled||n.update({activeTriggerId:null,activeTriggerElement:null})}})},[l,n,c,r])}function TA(n,i,r){const{mounted:l,setMounted:c,transitionStatus:f}=fA(n),d=i.useState("preventUnmountingOnClose"),m=n?!1:d;i.useSyncedValues({mounted:l,transitionStatus:f,preventUnmountingOnClose:m});const g=$e(()=>{var p,y;c(!1),i.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r==null||r(),(y=(p=i.context).onOpenChangeComplete)==null||y.call(p,!1)});return ES({enabled:l&&!n&&!m,open:n,ref:i.context.popupRef,onComplete(){n||g()}}),{forceUnmount:g,transitionStatus:f}}function wA(n,i){n.useSyncedValues(i),Xe(()=>()=>{n.update({activeTriggerProps:Jt,inactiveTriggerProps:Jt,popupProps:Jt})},[n])}function RA(n,i){Xe(()=>{!i&&n.state.openMethod!==null&&n.set("openMethod",null)},[i,n]),Xe(()=>()=>{n.state.openMethod!==null&&n.set("openMethod",null)},[n])}class Jh{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(i,r){const l=this.idMap.get(i);l!==r&&(l!==void 0&&this.elementsSet.delete(l),this.elementsSet.add(r),this.idMap.set(i,r))}delete(i){const r=this.idMap.get(i);r&&(this.elementsSet.delete(r),this.idMap.delete(i))}hasElement(i){return this.elementsSet.has(i)}hasMatchingElement(i){for(const r of this.elementsSet)if(i(r))return!0;return!1}getById(i){return this.idMap.get(i)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function OA(){return new ou({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Jh,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function CA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:OA(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Jt,inactiveTriggerProps:Jt,popupProps:Jt}}function AA(n,i,r=!1){return new ou({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:n,floatingId:i,syncOnly:!0,nested:r,onOpenChange:void 0})}const Dl=Ve(n=>n.triggerIdProp??n.activeTriggerId),Wh=Ve(n=>n.openProp??n.open),ab=Ve(n=>{var r;return(((r=n.popupElement)==null?void 0:r.id)??n.floatingId)||void 0});function wS(n,i){return i!==void 0&&Wh(n)&&Dl(n)===i}function _A(n,i){return wS(n,i)?!0:i!==void 0&&Wh(n)&&Dl(n)==null&&n.triggerCount===1}const MA={open:Wh,mounted:Ve(n=>n.mounted),transitionStatus:Ve(n=>n.transitionStatus),floatingRootContext:Ve(n=>n.floatingRootContext),triggerCount:Ve(n=>n.triggerCount),preventUnmountingOnClose:Ve(n=>n.preventUnmountingOnClose),payload:Ve(n=>n.payload),activeTriggerId:Dl,activeTriggerElement:Ve(n=>n.mounted?n.activeTriggerElement:null),popupId:ab,isTriggerActive:Ve((n,i)=>i!==void 0&&Dl(n)===i),isOpenedByTrigger:Ve((n,i)=>wS(n,i)),isMountedByTrigger:Ve((n,i)=>i!==void 0&&Dl(n)===i&&n.mounted),triggerProps:Ve((n,i)=>i?n.activeTriggerProps:n.inactiveTriggerProps),triggerPopupId:Ve((n,i)=>_A(n,i)?ab(n):void 0),popupProps:Ve(n=>n.popupProps),popupElement:Ve(n=>n.popupElement),positionerElement:Ve(n=>n.positionerElement)};function NA(n){const{open:i=!1,onOpenChange:r,elements:l={}}=n,c=Jl(),f=Na()!=null,d=Qi(()=>new ou({open:i,transitionStatus:void 0,onOpenChange:r,referenceElement:l.reference??null,floatingElement:l.floating??null,triggerElements:new Jh,floatingId:c,syncOnly:!1,nested:f})).current;return Xe(()=>{const m={open:i,floatingId:c};l.reference!==void 0&&(m.referenceElement=l.reference,m.domReferenceElement=Je(l.reference)?l.reference:null),l.floating!==void 0&&(m.floatingElement=l.floating),d.update(m)},[i,c,l.reference,l.floating,d]),d.context.onOpenChange=r,d.context.nested=f,d}function DA(n={}){const{nodeId:i,externalTree:r}=n,l=NA(n),c=n.rootContext||l,f=c.useState("referenceElement"),d=c.useState("floatingElement"),m=c.useState("domReferenceElement"),g=c.useState("open"),p=c.useState("floatingId"),[y,b]=O.useState(null),[S,x]=O.useState(void 0),[E,w]=O.useState(void 0),C=O.useRef(null),N=Da(r),M=O.useMemo(()=>({reference:f,floating:d,domReference:m}),[f,d,m]),U=QC({...n,elements:{...M,...y&&{reference:y}}}),A=Je(S)?S:null,Z=E===void 0?c.state.floatingElement:E;c.useSyncedValue("referenceElement",S??null),c.useSyncedValue("domReferenceElement",S===void 0?m:A),c.useSyncedValue("floatingElement",Z);const X=O.useCallback(se=>{const J=Je(se)?{getBoundingClientRect:()=>se.getBoundingClientRect(),getClientRects:()=>se.getClientRects(),contextElement:se}:se;b(J),U.refs.setReference(J)},[U.refs]),q=O.useCallback(se=>{(Je(se)||se===null)&&(C.current=se,x(se)),(Je(U.refs.reference.current)||U.refs.reference.current===null||se!==null&&!Je(se))&&U.refs.setReference(se)},[U.refs,x]),j=O.useCallback(se=>{w(se),U.refs.setFloating(se)},[U.refs]),F=O.useMemo(()=>({...U.refs,setReference:q,setFloating:j,setPositionReference:X,domReference:C}),[U.refs,q,j,X]),re=O.useMemo(()=>({...U.elements,domReference:m}),[U.elements,m]),fe=O.useMemo(()=>({...U,dataRef:c.context.dataRef,open:g,onOpenChange:c.setOpen,events:c.context.events,floatingId:p,refs:F,elements:re,nodeId:i,rootStore:c}),[U,F,re,i,c,g,p]);return Xe(()=>{m&&(C.current=m)},[m]),Xe(()=>{c.context.dataRef.current.floatingContext=fe;const se=N==null?void 0:N.nodesRef.current.find(J=>J.id===i);se&&(se.context=fe)}),O.useMemo(()=>({...U,context:fe,refs:F,elements:re,rootStore:c}),[U,F,re,fe,c])}class $h{constructor(){et(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});et(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ei,this.restTimeout=new ei,this.handleCloseOptions=void 0}static create(){return new $h}}const Ic=new WeakMap;function Jc(n){var r,l,c;if(!n.performedPointerEventsMutation)return;const i=n.pointerEventsScopeElement;i&&Ic.get(i)===n&&((r=n.pointerEventsScopeElement)==null||r.style.removeProperty("pointer-events"),(l=n.pointerEventsReferenceElement)==null||l.style.removeProperty("pointer-events"),(c=n.pointerEventsFloatingElement)==null||c.style.removeProperty("pointer-events"),Ic.delete(i)),n.performedPointerEventsMutation=!1,n.pointerEventsScopeElement=null,n.pointerEventsReferenceElement=null,n.pointerEventsFloatingElement=null}function RS(n,i){const{scopeElement:r,referenceElement:l,floatingElement:c}=i,f=Ic.get(r);f&&f!==n&&Jc(f),Jc(n),n.performedPointerEventsMutation=!0,n.pointerEventsScopeElement=r,n.pointerEventsReferenceElement=l,n.pointerEventsFloatingElement=c,Ic.set(r,n),r.style.pointerEvents="none",l.style.pointerEvents="auto",c.style.pointerEvents="auto"}function OS(n){const i=n.context.dataRef.current,r=Qi(()=>i.hoverInteractionState??$h.create()).current;return i.hoverInteractionState||(i.hoverInteractionState=r),Yh(i.hoverInteractionState.disposeEffect),i.hoverInteractionState}function zA(n,i={}){const{enabled:r=!0,closeDelay:l=0,nodeId:c}=i,f="rootStore"in n?n.rootStore:n,d=f.useState("open"),m=f.useState("floatingElement"),g=f.useState("domReferenceElement"),{dataRef:p}=f.context,y=Da(),b=Na(),S=OS(f),x=wa(),E=$e(()=>{var N;return V0((N=p.current.openEvent)==null?void 0:N.type,S.interactedInside)}),w=$e(()=>{var N;return pO((N=p.current.openEvent)==null?void 0:N.type)}),C=$e(()=>{Jc(S)});Xe(()=>{d||(S.pointerType=void 0,S.restTimeoutPending=!1,S.interactedInside=!1,C())},[d,S,C]),O.useEffect(()=>C,[C]),Xe(()=>{var N,M,U,A,Z;if(r&&d&&(N=S.handleCloseOptions)!=null&&N.blockPointerEvents&&w()&&Je(g)&&m){const X=g,q=m,j=ut(m),F=(U=(M=y==null?void 0:y.nodesRef.current.find(J=>J.id===b))==null?void 0:M.context)==null?void 0:U.elements.floating;F&&(F.style.pointerEvents="");const re=S.pointerEventsScopeElement!==q?S.pointerEventsScopeElement:null,fe=F!==q?F:null,se=((Z=(A=S.handleCloseOptions)==null?void 0:A.getScope)==null?void 0:Z.call(A))??re??fe??X.closest("[data-rootownerid]")??j.body;return RS(S,{scopeElement:se,referenceElement:X,floatingElement:q}),()=>{C()}}},[r,d,g,m,S,w,y,b,C]),O.useEffect(()=>{if(!r)return;function N(){return!!(y&&b&&Ns(y.nodesRef.current,b).length>0)}function M(j){const F=mh(l,"close",S.pointerType),re=()=>{f.setOpen(!1,Qt(Sn,j)),y==null||y.events.emit("floating.closed",j)};F?S.openChangeTimeout.start(F,re):(S.openChangeTimeout.clear(),re())}function U(j){const F=$n(j);if(!hO(F)){S.interactedInside=!1;return}S.interactedInside=(F==null?void 0:F.closest("[aria-haspopup]"))!=null}function A(){S.openChangeTimeout.clear(),x.clear(),y==null||y.events.off("floating.closed",X),C()}function Z(j){var se;if(N()&&y){y.events.on("floating.closed",X);return}if(Y0(j.relatedTarget,f.context.triggerElements))return;const F=((se=p.current.floatingContext)==null?void 0:se.nodeId)??c,re=j.relatedTarget;if(!(y&&F&&Je(re)&&Ns(y.nodesRef.current,F,!1).some(J=>{var oe;return Me((oe=J.context)==null?void 0:oe.elements.floating,re)}))){if(S.handler){S.handler(j);return}C(),w()&&!E()&&M(j)}}function X(j){!y||!b||N()||x.start(0,()=>{y.events.off("floating.closed",X),f.setOpen(!1,Qt(Sn,j)),y.events.emit("floating.closed",j)})}const q=m;return qi(q&&Ke(q,"mouseenter",A),q&&Ke(q,"mouseleave",Z),q&&Ke(q,"pointerdown",U,!0),()=>{y==null||y.events.off("floating.closed",X)})},[r,m,f,p,l,c,w,E,C,S,y,b,x])}const kA={current:null};function jA(n,i={}){var ne;const{enabled:r=!0,delay:l=0,handleClose:c=null,mouseOnly:f=!1,restMs:d=0,move:m=!0,triggerElementRef:g=kA,externalTree:p,isActiveTrigger:y=!0,getHandleCloseContext:b,isClosing:S,shouldOpen:x}=i,E="rootStore"in n?n.rootStore:n,{dataRef:w,events:C}=E.context,N=Da(p),M=OS(E),U=O.useRef(!1),A=xn(c),Z=xn(l),X=xn(d),q=xn(r),j=xn(x),F=xn(S),re=$e(()=>{var k;return V0((k=w.current.openEvent)==null?void 0:k.type,M.interactedInside)}),fe=$e(()=>{var k;return((k=j.current)==null?void 0:k.call(j))!==!1}),se=$e((k,G,I)=>{const le=E.context.triggerElements;if(le.hasElement(G))return!k||!Me(k,G);if(!Je(I))return!1;const H=I;return le.hasMatchingElement(T=>Me(T,H))&&(!k||!Me(k,H))}),J=$e(()=>{if(!M.handler)return;ut(E.select("domReferenceElement")).removeEventListener("mousemove",M.handler),M.handler=void 0}),oe=$e(()=>{Jc(M)});return y&&(M.handleCloseOptions=(ne=A.current)==null?void 0:ne.__options),O.useEffect(()=>J,[J]),O.useEffect(()=>{if(!r)return;function k(G){G.open?U.current=!1:(U.current=G.reason===Sn,J(),M.openChangeTimeout.clear(),M.restTimeout.clear(),M.blockMouseMove=!0,M.restTimeoutPending=!1)}return C.on("openchange",k),()=>{C.off("openchange",k)}},[r,C,M,J]),O.useEffect(()=>{if(!r)return;function k(H,T=!0){const B=mh(Z.current,"close",M.pointerType);B?M.openChangeTimeout.start(B,()=>{E.setOpen(!1,Qt(Sn,H)),N==null||N.events.emit("floating.closed",H)}):T&&(M.openChangeTimeout.clear(),E.setOpen(!1,Qt(Sn,H)),N==null||N.events.emit("floating.closed",H))}const G=g.current??(y?E.select("domReferenceElement"):null);if(!Je(G))return;function I(H){var ft;if(M.openChangeTimeout.clear(),M.blockMouseMove=!1,f&&!Ll(M.pointerType))return;const T=kv(X.current),B=mh(Z.current,"open",M.pointerType),te=$n(H),ie=H.currentTarget??null,ae=E.select("domReferenceElement");let ee=ie;if(Je(te)&&!E.context.triggerElements.hasElement(te)){for(const bt of E.context.triggerElements.elements())if(Me(bt,te)){ee=bt;break}}Je(ie)&&Je(ae)&&!E.context.triggerElements.hasElement(ie)&&Me(ie,ae)&&(ee=ae);const ge=ee==null?!1:se(ae,ee,te),ce=E.select("open"),de=((ft=F.current)==null?void 0:ft.call(F))??E.select("transitionStatus")==="ending",Ze=!ce&&de&&U.current,nt=!ge&&Je(ee)&&Je(ae)&&Me(ae,ee)&&Ze,be=T>0&&!B,ze=ge&&(ce||Ze)||nt,Oe=!ce||ge;if(ze){fe()&&E.setOpen(!0,Qt(Sn,H,ee));return}be||(B?M.openChangeTimeout.start(B,()=>{Oe&&fe()&&E.setOpen(!0,Qt(Sn,H,ee))}):Oe&&fe()&&E.setOpen(!0,Qt(Sn,H,ee)))}function le(H){if(re()){oe();return}J();const T=E.select("domReferenceElement"),B=ut(T);M.restTimeout.clear(),M.restTimeoutPending=!1;const te=w.current.floatingContext??(b==null?void 0:b());if(Y0(H.relatedTarget,E.context.triggerElements))return;if(A.current&&te){E.select("open")||M.openChangeTimeout.clear();const ae=g.current;M.handler=A.current({...te,tree:N,x:H.clientX,y:H.clientY,onClose(){oe(),J(),q.current&&!re()&&ae===E.select("domReferenceElement")&&k(H,!0)}}),B.addEventListener("mousemove",M.handler),M.handler(H);return}(M.pointerType==="touch"?!Me(E.select("floatingElement"),H.relatedTarget):!0)&&k(H)}return m?qi(Ke(G,"mousemove",I,{once:!0}),Ke(G,"mouseenter",I),Ke(G,"mouseleave",le)):qi(Ke(G,"mouseenter",I),Ke(G,"mouseleave",le))},[J,oe,w,Z,E,r,A,M,y,se,re,f,m,X,g,N,q,b,F,fe]),O.useMemo(()=>{if(!r)return;function k(G){M.pointerType=G.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(G){var ae,ee,ge;const{nativeEvent:I}=G,le=G.currentTarget,H=E.select("domReferenceElement"),T=E.select("open"),B=se(H,le,G.target);if(f&&!Ll(M.pointerType))return;if(T&&B&&((ae=M.handleCloseOptions)!=null&&ae.blockPointerEvents)){const ce=E.select("floatingElement");if(ce){const de=((ge=(ee=M.handleCloseOptions)==null?void 0:ee.getScope)==null?void 0:ge.call(ee))??le.ownerDocument.body;RS(M,{scopeElement:de,referenceElement:le,floatingElement:ce})}}const te=kv(X.current);if(T&&!B||te===0||!B&&M.restTimeoutPending&&G.movementX**2+G.movementY**2<2)return;M.restTimeout.clear();function ie(){if(M.restTimeoutPending=!1,re())return;const ce=E.select("open");!M.blockMouseMove&&(!ce||B)&&fe()&&E.setOpen(!0,Qt(Sn,I,le))}M.pointerType==="touch"?Ds.flushSync(()=>{ie()}):B&&T?ie():(M.restTimeoutPending=!0,M.restTimeout.start(te,ie))}}},[r,M,re,se,f,E,X,fe])}const lb=.1,UA=lb*lb,ot=.5;function Cc(n,i,r,l,c,f){return l>=i!=f>=i&&n<=(c-r)*(i-l)/(f-l)+r}function Ac(n,i,r,l,c,f,d,m,g,p){let y=!1;return Cc(n,i,r,l,c,f)&&(y=!y),Cc(n,i,c,f,d,m)&&(y=!y),Cc(n,i,d,m,g,p)&&(y=!y),Cc(n,i,g,p,r,l)&&(y=!y),y}function LA(n,i,r){return n>=r.x&&n<=r.x+r.width&&i>=r.y&&i<=r.y+r.height}function _c(n,i,r,l,c,f){const d=Math.min(r,c),m=Math.max(r,c),g=Math.min(l,f),p=Math.max(l,f);return n>=d&&n<=m&&i>=g&&i<=p}function BA(n={}){const{blockPointerEvents:i=!1}=n,r=new ei,l=({x:c,y:f,placement:d,elements:m,onClose:g,nodeId:p,tree:y})=>{const b=d==null?void 0:d.split("-")[0];let S=!1,x=null,E=null,w=typeof performance<"u"?performance.now():0;function C(M,U){const A=performance.now(),Z=A-w;if(x===null||E===null||Z===0)return x=M,E=U,w=A,!1;const X=M-x,q=U-E,j=X*X+q*q,F=Z*Z*UA;return x=M,E=U,w=A,j<F}function N(){r.clear(),g()}return function(U){r.clear();const A=m.domReference,Z=m.floating;if(!A||!Z||b==null||c==null||f==null)return;const{clientX:X,clientY:q}=U,j=$n(U),F=U.type==="mouseleave",re=Me(Z,j),fe=Me(A,j);if(re&&(S=!0,!F))return;if(fe&&(S=!1,!F)){S=!0;return}if(F&&Je(U.relatedTarget)&&Me(Z,U.relatedTarget))return;function se(){return!!(y&&Ns(y.nodesRef.current,p).length>0)}function J(){se()||N()}if(se())return;const oe=A.getBoundingClientRect(),ne=Z.getBoundingClientRect(),k=c>ne.right-ne.width/2,G=f>ne.bottom-ne.height/2,I=ne.width>oe.width,le=ne.height>oe.height,H=(I?oe:ne).left,T=(I?oe:ne).right,B=(le?oe:ne).top,te=(le?oe:ne).bottom;if(b==="top"&&f>=oe.bottom-1||b==="bottom"&&f<=oe.top+1||b==="left"&&c>=oe.right-1||b==="right"&&c<=oe.left+1){J();return}let ie=!1;switch(b){case"top":ie=_c(X,q,H,oe.top+1,T,ne.bottom-1);break;case"bottom":ie=_c(X,q,H,ne.top+1,T,oe.bottom-1);break;case"left":ie=_c(X,q,ne.right-1,te,oe.left+1,B);break;case"right":ie=_c(X,q,oe.right-1,te,ne.left+1,B);break}if(ie)return;if(S&&!LA(X,q,oe)){J();return}if(!F&&C(X,q)){J();return}let ae=!1;switch(b){case"top":{const ee=I?ot/2:ot*4,ge=I||k?c+ee:c-ee,ce=I?c-ee:k?c+ee:c-ee,de=f+ot+1,Ze=k||I?ne.bottom-ot:ne.top,nt=k?I?ne.bottom-ot:ne.top:ne.bottom-ot;ae=Ac(X,q,ge,de,ce,de,ne.left,Ze,ne.right,nt);break}case"bottom":{const ee=I?ot/2:ot*4,ge=I||k?c+ee:c-ee,ce=I?c-ee:k?c+ee:c-ee,de=f-ot,Ze=k||I?ne.top+ot:ne.bottom,nt=k?I?ne.top+ot:ne.bottom:ne.top+ot;ae=Ac(X,q,ge,de,ce,de,ne.left,Ze,ne.right,nt);break}case"left":{const ee=le?ot/2:ot*4,ge=le||G?f+ee:f-ee,ce=le?f-ee:G?f+ee:f-ee,de=c+ot+1,Ze=G||le?ne.right-ot:ne.left,nt=G?le?ne.right-ot:ne.left:ne.right-ot;ae=Ac(X,q,Ze,ne.top,nt,ne.bottom,de,ge,de,ce);break}case"right":{const ee=le?ot/2:ot*4,ge=le||G?f+ee:f-ee,ce=le?f-ee:G?f+ee:f-ee,de=c-ot,Ze=G||le?ne.left+ot:ne.right,nt=G?le?ne.left+ot:ne.right:ne.left+ot;ae=Ac(X,q,de,ge,de,ce,Ze,ne.top,nt,ne.bottom);break}}ae?S||r.start(40,J):J()}};return l.__options={...n,blockPointerEvents:i},l}const CS=O.createContext(void 0);function Wl(n){const i=O.useContext(CS);if(i===void 0&&!n)throw new Error(dr(47));return i}function HA(){return{...CA(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const qA={...MA,disabled:Ve(n=>n.disabled),instantType:Ve(n=>n.instantType),openMethod:Ve(n=>n.openMethod),openChangeReason:Ve(n=>n.openChangeReason),modal:Ve(n=>n.modal),focusManagerModal:Ve(n=>n.focusManagerModal),stickIfOpen:Ve(n=>n.stickIfOpen),titleElementId:Ve(n=>n.titleElementId),descriptionElementId:Ve(n=>n.descriptionElementId),openOnHover:Ve(n=>n.openOnHover),closeDelay:Ve(n=>n.closeDelay),hasViewport:Ve(n=>n.hasViewport)};class em extends SS{constructor(r,l,c=!1){const f={...HA(),...r},d=new Jh;f.open&&(r==null?void 0:r.mounted)===void 0&&(f.mounted=!0),f.floatingRootContext=AA(d,l,c);super(f,{popupRef:O.createRef(),backdropRef:O.createRef(),internalBackdropRef:O.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:O.createRef(),beforeContentFocusGuardRef:O.createRef(),stickIfOpenTimeout:new ei,triggerElements:d},qA);et(this,"setOpen",(r,l)=>{var y,b;const c=l.reason===Sn,f=l.reason===Bl&&l.event.detail===0,d=!r&&(l.reason===Q0||l.reason==null),m=bA(l),g=this.select("activeTriggerId");if(!r&&l.reason===yO&&l.trigger==null&&g!=null&&(l.trigger=this.context.triggerElements.getById(g)??this.select("activeTriggerElement")??void 0),(b=(y=this.context).onOpenChange)==null||b.call(y,r,l),l.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(r,l);const p=()=>{const S={open:r,openChangeReason:l.reason};vA(S,r,l.trigger,m()),this.update(S)};c?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(QO,()=>{this.set("stickIfOpen",!1)}),Ds.flushSync(p)):p(),f||d?this.set("instantType",f?"click":"dismiss"):l.reason===Hl?this.set("instantType","focus"):this.set("instantType",void 0)});et(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(r,l){const{store:c,internalStore:f}=gA(r,(d,m)=>new em(l,d,m));return O.useEffect(()=>f==null?void 0:f.disposeEffect(),[f]),c}}function ob({props:n}){const{children:i,open:r,defaultOpen:l=!1,onOpenChange:c,onOpenChangeComplete:f,modal:d=!1,handle:m,triggerId:g,defaultTriggerId:p=null}=n,y=em.useStore(m==null?void 0:m.store,{modal:d,open:l,openProp:r,activeTriggerId:p,triggerIdProp:g});SA(y,r,l,p),y.useControlledProp("openProp",r),y.useControlledProp("triggerIdProp",g);const b=y.useState("open"),S=y.useState("mounted"),x=y.useState("payload"),E=Na()!=null;y.useContextCallback("onOpenChange",c),y.useContextCallback("onOpenChangeComplete",f),RA(y,b),EA(y);const{forceUnmount:w}=TA(b,y,()=>{y.update({stickIfOpen:!0,openChangeReason:null})});y.useSyncedValues({modal:d,nested:E}),O.useEffect(()=>{b||y.context.stickIfOpenTimeout.clear()},[y,b]);const C=O.useCallback(()=>{y.setOpen(!1,Qt(vO))},[y]);O.useImperativeHandle(n.actionsRef,()=>({unmount:w,close:C}),[w,C]);const N=b||S,M=O.useMemo(()=>({store:y}),[y]);return _.jsxs(CS.Provider,{value:M,children:[N&&_.jsx(VA,{store:y,modal:d}),typeof i=="function"?i({payload:x}):i]})}function YA(n){return Wl(!0)?_.jsx(ob,{props:n}):_.jsx(eC,{children:_.jsx(ob,{props:n})})}function VA({store:n,modal:i}){const r=n.useState("floatingRootContext"),l=oC(r,{outsidePressEvent:{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),c=l.reference??Jt,f=l.trigger??Jt,d=O.useMemo(()=>Zl(TS,l.floating),[l.floating]);return wA(n,{activeTriggerProps:c,inactiveTriggerProps:f,popupProps:d}),null}let tm=function(n){return n.open="data-open",n.closed="data-closed",n[n.startingStyle=ql.startingStyle]="startingStyle",n[n.endingStyle=ql.endingStyle]="endingStyle",n.anchorHidden="data-anchor-hidden",n.side="data-side",n.align="data-align",n}({}),vh=function(n){return n.popupOpen="data-popup-open",n.pressed="data-pressed",n}({});const GA={[vh.popupOpen]:""},QA={[vh.popupOpen]:"",[vh.pressed]:""},XA={[tm.open]:""},FA={[tm.closed]:""},KA={[tm.anchorHidden]:""},ZA={open(n){return n?GA:null}},PA={open(n){return n?QA:null}},AS={open(n){return n?XA:FA},anchorHidden(n){return n?KA:null}},IA=300;function JA(n){return Jl(n,"base-ui")}function WA(n,i){const r=O.useRef(null);function l(f){Ds.flushSync(()=>{n.setOpen(!1,Qt(Hl,f.nativeEvent,f.currentTarget))});const d=HO(r.current);d==null||d.focus()}function c(f){var m;const d=n.select("positionerElement");if(d&&la(f,d))(m=n.context.beforeContentFocusGuardRef.current)==null||m.focus();else{Ds.flushSync(()=>{n.setOpen(!1,Qt(Hl,f.nativeEvent,f.currentTarget))});let g=BO(n.context.triggerFocusTargetRef.current||i.current);for(;g!==null&&Me(d,g);){const p=g;if(g=Zh(g),g===p)break}g==null||g.focus()}}return{preFocusGuardRef:r,handlePreFocusGuardFocus:l,handleFocusTargetFocus:c}}function $A(n){const i=O.useRef(""),r=O.useCallback(c=>{c.defaultPrevented||(i.current=c.pointerType,n(c,c.pointerType))},[n]);return{onClick:O.useCallback(c=>{if(c.detail===0){n(c,"keyboard");return}"pointerType"in c?n(c,c.pointerType):n(c,i.current),i.current=""},[n]),onPointerDown:r}}function e_(n,i){const r=$e((f,d)=>{(typeof n=="function"?n():n)||i(d||(au?"touch":""))}),{onClick:l,onPointerDown:c}=$A(r);return O.useMemo(()=>({onClick:l,onPointerDown:c}),[l,c])}const t_=O.forwardRef(function(i,r){const{render:l,className:c,style:f,disabled:d=!1,nativeButton:m=!0,handle:g,payload:p,openOnHover:y=!1,delay:b=IA,closeDelay:S=0,id:x,...E}=i,w=Wl(!0),C=(g==null?void 0:g.store)??(w==null?void 0:w.store);if(!C)throw new Error(dr(74));const N=JA(x),M=C.useState("isTriggerActive",N),U=C.useState("floatingRootContext"),A=C.useState("isOpenedByTrigger",N),Z=C.useState("triggerPopupId",N),X=O.useRef(null),{registerTrigger:q,isMountedByThisTrigger:j}=xA(N,X,C,{payload:p,disabled:d,openOnHover:y,closeDelay:S}),F=C.useState("openChangeReason"),re=C.useState("stickIfOpen"),fe=C.useState("openMethod"),se=C.useState("focusManagerModal"),J=jA(U,{enabled:!d&&U!=null&&y&&(fe!=="touch"||F!==Bl),mouseOnly:!0,move:!1,handleClose:BA(),restMs:b,delay:{close:S},triggerElementRef:X,isActiveTrigger:M,isClosing:()=>C.select("transitionStatus")==="ending"}),oe=rC(U,{enabled:U!=null,stickIfOpen:re}),ne=e_(()=>C.select("open"),ae=>{C.set("openMethod",ae)}),k=C.useState("triggerProps",j),{getButtonProps:G,buttonRef:I}=B0({disabled:d,native:m}),le={open(ae){return ae&&F===Bl?PA.open(ae):ZA.open(ae)}},{preFocusGuardRef:H,handlePreFocusGuardFocus:T,handleFocusTargetFocus:B}=WA(C,X),ie=Ca("button",i,{state:{disabled:d,open:A},ref:[I,r,q,X],props:[oe.reference,J,k,ne,{[rS]:"",id:N,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":Z},E,G],stateAttributesMapping:le});return j&&!se?_.jsxs(O.Fragment,{children:[_.jsx(Ra,{ref:H,onFocus:T}),_.jsx(O.Fragment,{children:ie},N),_.jsx(Ra,{ref:C.context.triggerFocusTargetRef,onFocus:B})]}):_.jsx(O.Fragment,{children:ie},N)}),_S=O.createContext(void 0);function n_(){const n=O.useContext(_S);if(n===void 0)throw new Error(dr(45));return n}const i_=O.forwardRef(function(i,r){const{keepMounted:l=!1,...c}=i,{store:f}=Wl();return f.useState("mounted")||l?_.jsx(_S.Provider,{value:l,children:_.jsx(IO,{ref:r,...c})}):null});function s_(n){return Oh(19)?n:n?"true":void 0}const MS=O.createContext(void 0);function r_(){const n=O.useContext(MS);if(!n)throw new Error(dr(46));return n}const a_=O.createContext(void 0);function l_(){const n=O.useContext(a_);return(n==null?void 0:n.direction)??"ltr"}const o_=n=>({name:"arrow",options:n,async fn(i){var le,H;const{x:r,y:l,placement:c,rects:f,platform:d,elements:m,middlewareData:g}=i,{element:p,padding:y=0,offsetParent:b="real"}=Gi(n,i)||{};if(p==null)return{};const S=F0(y),x={x:r,y:l},E=Fh(c),w=Xh(E),C=await d.getDimensions(p),N=E==="y",M=N?"top":"left",U=N?"bottom":"right",A=N?"clientHeight":"clientWidth",Z=f.reference[w]+f.reference[E]-x[E]-f.floating[w],X=x[E]-f.reference[E],q=b==="real"?await((le=d.getOffsetParent)==null?void 0:le.call(d,p)):m.floating;let j=m.floating[A]||f.floating[w];(!j||!await((H=d.isElement)==null?void 0:H.call(d,q)))&&(j=m.floating[A]||f.floating[w]);const F=Z/2-X/2,re=j/2-C[w]/2-1,fe=Math.min(S[M],re),se=Math.min(S[U],re),J=fe,oe=j-C[w]-se,ne=j/2-C[w]/2+F,k=X0(J,ne,oe),G=!g.arrow&&ks(c)!=null&&ne!==k&&f.reference[w]/2-(ne<J?fe:se)-C[w]/2<0,I=G?ne<J?ne-J:ne-oe:0;return{[E]:x[E]+I,data:{[E]:k,centerOffset:ne-k-I,...G&&{alignmentOffset:I}},reset:G}}}),c_=(n,i)=>({...o_(n),options:[n,i]}),u_=IC().fn,f_={name:"hide",async fn(n){var m;const{width:i,height:r,x:l,y:c}=n.rects.reference,f=i===0&&r===0&&l===0&&c===0;return{data:{referenceHidden:((m=(await u_(n)).data)==null?void 0:m.referenceHidden)||f}}}},Bc={sideX:"left",sideY:"top"},d_={name:"adaptiveOrigin",async fn(n){var M,U;const{x:i,y:r,rects:{floating:l},elements:{floating:c},platform:f,strategy:d,placement:m}=n,g=zt(c),p=g.getComputedStyle(c);if(!(p.transitionDuration!=="0s"&&p.transitionDuration!==""))return{x:i,y:r,data:Bc};const b=await((M=f.getOffsetParent)==null?void 0:M.call(f,c));let S={width:0,height:0};if(d==="fixed"&&(g!=null&&g.visualViewport))S={width:g.visualViewport.width,height:g.visualViewport.height};else if(b===g){const A=ut(c);S={width:A.documentElement.clientWidth,height:A.documentElement.clientHeight}}else await((U=f.isElement)==null?void 0:U.call(f,b))&&(S=await f.getDimensions(b));const x=zn(m);let E=i,w=r;x==="left"&&(E=S.width-(i+l.width)),x==="top"&&(w=S.height-(r+l.height));const C=x==="left"?"right":Bc.sideX,N=x==="top"?"bottom":Bc.sideY;return{x:E,y:w,data:{sideX:C,sideY:N}}}};function NS(n,i,r){const l=n==="inline-start"||n==="inline-end";return{top:"top",right:l?r?"inline-start":"inline-end":"right",bottom:"bottom",left:l?r?"inline-end":"inline-start":"left"}[i]}function cb(n,i,r){const{rects:l,placement:c}=n;return{side:NS(i,zn(c),r),align:ks(c)||"center",anchor:{width:l.reference.width,height:l.reference.height},positioner:{width:l.floating.width,height:l.floating.height}}}function h_(n){var vr,pi;const{anchor:i,positionMethod:r="absolute",side:l="bottom",sideOffset:c=0,align:f="center",alignOffset:d=0,collisionBoundary:m,collisionPadding:g=5,sticky:p=!1,arrowPadding:y=5,disableAnchorTracking:b=!1,inline:S,keepMounted:x=!1,floatingRootContext:E,mounted:w,collisionAvoidance:C,shiftCrossAxis:N=!1,nodeId:M,adaptiveOrigin:U,lazyFlip:A=!1,externalTree:Z}=n,[X,q]=O.useState(null);!w&&X!==null&&q(null);const j=C.side||"flip",F=C.align||"flip",re=C.fallbackAxisSide||"end",fe=typeof i=="function"?i:void 0,se=$e(fe),J=fe?se:i,oe=xn(i),ne=xn(w),G=l_()==="rtl",I=X||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"}[l],le=f==="center"?I:`${I}-${f}`;let H=g;const T=1,B=l==="bottom"?T:0,te=l==="top"?T:0,ie=l==="right"?T:0,ae=l==="left"?T:0;typeof H=="number"?H={top:H+B,right:H+ae,bottom:H+te,left:H+ie}:H&&(H={top:(H.top||0)+B,right:(H.right||0)+ae,bottom:(H.bottom||0)+te,left:(H.left||0)+ie});const ee={boundary:m==="clipping-ancestors"?"clippingAncestors":m,padding:H},ge=O.useRef(null),ce=xn(c),de=xn(d),Ze=typeof c!="function"?c:0,nt=typeof d!="function"?d:0,be=[];S&&be.push(S),be.push(XC(Fe=>{const Rt=cb(Fe,l,G),qt=typeof ce.current=="function"?ce.current(Rt):ce.current,Xt=typeof de.current=="function"?de.current(Rt):de.current;return{mainAxis:qt,crossAxis:Xt,alignmentAxis:Xt}},[Ze,nt,G,l]));const ze=F==="none"&&j!=="shift",Oe=!ze&&(p||N||j==="shift"),ft=j==="none"?null:ZC({...ee,padding:{top:H.top+T,right:H.right+T,bottom:H.bottom+T,left:H.left+T},mainAxis:!N&&j==="flip",crossAxis:F==="flip"?"alignment":!1,fallbackAxisSideDirection:re}),bt=ze?null:FC(Fe=>{const Rt=ut(Fe.elements.floating).documentElement;return{...ee,rootBoundary:N?{x:0,y:0,width:Rt.clientWidth,height:Rt.clientHeight}:void 0,mainAxis:F!=="none",crossAxis:Oe,limiter:p||N?void 0:KC(qt=>{if(!ge.current)return{};const{width:Xt,height:rn}=ge.current.getBoundingClientRect(),Tn=Kn(zn(qt.placement)),ni=Tn==="y"?Xt:rn,ii=Tn==="y"?H.left+H.right:H.top+H.bottom;return{offset:ni/2+ii/2}})}},[ee,p,N,H,F]);j==="shift"||F==="shift"||f==="center"?be.push(bt,ft):be.push(ft,bt),be.push(PC({...ee,apply({elements:{floating:Fe},availableWidth:Rt,availableHeight:qt,rects:Xt}){if(!ne.current)return;const rn=Fe.style;rn.setProperty("--available-width",`${Rt}px`),rn.setProperty("--available-height",`${qt}px`);const Tn=zt(Fe).devicePixelRatio||1,{x:ni,y:ii,width:un,height:za}=Xt.reference,br=(Math.round((ni+un)*Tn)-Math.round(ni*Tn))/Tn,Sr=(Math.round((ii+za)*Tn)-Math.round(ii*Tn))/Tn;rn.setProperty("--anchor-width",`${br}px`),rn.setProperty("--anchor-height",`${Sr}px`)}}),c_(Fe=>({element:ge.current||ut(Fe.elements.floating).createElement("div"),padding:y,offsetParent:"floating"}),[y]),{name:"transformOrigin",fn(Fe){var Er,no,io;const{elements:Rt,middlewareData:qt,placement:Xt,rects:rn,y:Tn}=Fe,ni=zn(Xt),ii=Kn(ni),un=ge.current,za=((Er=qt.arrow)==null?void 0:Er.x)||0,br=((no=qt.arrow)==null?void 0:no.y)||0,Sr=(un==null?void 0:un.clientWidth)||0,$l=(un==null?void 0:un.clientHeight)||0,js=za+Sr/2,xr=br+$l/2,eo=Math.abs(((io=qt.shift)==null?void 0:io.y)||0),to=rn.reference.height/2,fn=typeof c=="function"?c(cb(Fe,l,G)):c,jt=eo>fn,$t={top:`${js}px calc(100% + ${fn}px)`,bottom:`${js}px ${-fn}px`,left:`calc(100% + ${fn}px) ${xr}px`,right:`${-fn}px ${xr}px`}[ni],Fi=`${js}px ${rn.reference.y+to-Tn}px`;return Rt.floating.style.setProperty("--transform-origin",Oe&&ii==="y"&&jt?Fi:$t),{}}},f_,U),Xe(()=>{!w&&E&&E.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[w,E]);const Re=O.useMemo(()=>({elementResize:!b&&typeof ResizeObserver<"u",layoutShift:!b&&typeof IntersectionObserver<"u"}),[b]),{refs:ke,elements:Ee,x:mt,y:dt,middlewareData:je,update:St,placement:ue,context:xe,isPositioned:ht,floatingStyles:Be}=DA({rootContext:E,open:x?w:void 0,placement:le,middleware:be,strategy:r,whileElementsMounted:x?void 0:(...Fe)=>eb(...Fe,Re),nodeId:M,externalTree:Z}),{sideX:pt,sideY:kt}=je.adaptiveOrigin||Bc,nn=ht?r:"fixed",sn=O.useMemo(()=>{const Fe=U?{position:nn,[pt]:mt,[kt]:dt}:{position:nn,...Be};return ht||(Fe.opacity=0),Fe},[U,nn,pt,mt,kt,dt,Be,ht]),ti=O.useRef(null);Xe(()=>{if(!w)return;const Fe=oe.current,Rt=typeof Fe=="function"?Fe():Fe,Xt=(ub(Rt)?Rt.current:Rt)||null||null;Xt!==ti.current&&(ke.setPositionReference(Xt),ti.current=Xt)},[w,ke,J,oe]),O.useEffect(()=>{if(!w)return;const Fe=oe.current;typeof Fe!="function"&&ub(Fe)&&Fe.current!==ti.current&&(ke.setPositionReference(Fe.current),ti.current=Fe.current)},[w,ke,J,oe]),O.useEffect(()=>{if(x&&w&&Ee.reference&&Ee.floating)return eb(Ee.reference,Ee.floating,St,Re)},[x,w,Ee,St,Re]);const cn=zn(ue),Bt=NS(l,cn,G),En=ks(ue)||"center",Ht=!!((vr=je.hide)!=null&&vr.referenceHidden);Xe(()=>{A&&w&&ht&&q(cn)},[A,w,ht,cn]);const gr=O.useMemo(()=>{var Fe,Rt;return{position:"absolute",top:(Fe=je.arrow)==null?void 0:Fe.y,left:(Rt=je.arrow)==null?void 0:Rt.x}},[je.arrow]),yr=((pi=je.arrow)==null?void 0:pi.centerOffset)!==0;return O.useMemo(()=>({positionerStyles:sn,arrowStyles:gr,arrowRef:ge,arrowUncentered:yr,side:Bt,align:En,physicalSide:cn,anchorHidden:Ht,refs:ke,context:xe,isPositioned:ht,update:St}),[sn,gr,ge,yr,Bt,En,cn,Ht,ke,xe,ht,St])}function ub(n){return n!=null&&"current"in n}const m_=O.forwardRef(function(i,r){const{cutout:l,...c}=i;let f;if(l){const d=l.getBoundingClientRect();f=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${d.left}px ${d.top}px,${d.left}px ${d.bottom}px,${d.right}px ${d.bottom}px,${d.right}px ${d.top}px,${d.left}px ${d.top}px)`}return _.jsx("div",{ref:r,role:"presentation","data-base-ui-inert":"",...c,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:f}})});function DS(n){return n==="starting"?XO:Jt}function p_(n,i,{styles:r,transitionStatus:l,props:c,refs:f,hidden:d,inert:m=!1}){const g={...r};return m&&(g.pointerEvents="none"),Ca("div",n,{state:i,ref:f,props:[{role:"presentation",hidden:d,style:g},DS(l),c],stateAttributesMapping:AS})}let fb={},db={},hb="";function g_(n){if(typeof document>"u")return!1;const i=ut(n);return zt(i).innerWidth-i.documentElement.clientWidth>0}function y_(n){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const r=ut(n),l=r.documentElement,c=r.body,f=pr(l)?l:c,d=f.style.overflowY,m=l.style.scrollbarGutter;l.style.scrollbarGutter="stable",f.style.overflowY="scroll";const g=f.offsetWidth;f.style.overflowY="hidden";const p=f.offsetWidth;return f.style.overflowY=d,l.style.scrollbarGutter=m,g===p}function v_(n){const i=ut(n),r=i.documentElement,l=i.body,c=pr(r)?r:l,f={overflowY:c.style.overflowY,overflowX:c.style.overflowX};return Object.assign(c.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(c.style,f)}}function b_(n){var x;const i=ut(n),r=i.documentElement,l=i.body,c=zt(r);let f=0,d=0,m=!1;const g=di.create();if(Ma&&(((x=c.visualViewport)==null?void 0:x.scale)??1)!==1)return()=>{};function p(){const E=c.getComputedStyle(r),w=c.getComputedStyle(l),M=(E.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=r.scrollTop,d=r.scrollLeft,fb={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},hb=r.style.scrollBehavior,db={position:l.style.position,height:l.style.height,width:l.style.width,boxSizing:l.style.boxSizing,overflowY:l.style.overflowY,overflowX:l.style.overflowX,scrollBehavior:l.style.scrollBehavior};const U=r.scrollHeight>r.clientHeight,A=r.scrollWidth>r.clientWidth,Z=E.overflowY==="scroll"||w.overflowY==="scroll",X=E.overflowX==="scroll"||w.overflowX==="scroll",q=Math.max(0,c.innerWidth-l.clientWidth),j=Math.max(0,c.innerHeight-l.clientHeight),F=parseFloat(w.marginTop)+parseFloat(w.marginBottom),re=parseFloat(w.marginLeft)+parseFloat(w.marginRight),fe=pr(r)?r:l;if(m=y_(n),m){r.style.scrollbarGutter=M,fe.style.overflowY="hidden",fe.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:M,overflowY:"hidden",overflowX:"hidden"}),(U||Z)&&(r.style.overflowY="scroll"),(A||X)&&(r.style.overflowX="scroll"),Object.assign(l.style,{position:"relative",height:F||j?`calc(100dvh - ${F+j}px)`:"100dvh",width:re||q?`calc(100vw - ${re+q}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),l.scrollTop=f,l.scrollLeft=d,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function y(){Object.assign(r.style,fb),Object.assign(l.style,db),m||(r.scrollTop=f,r.scrollLeft=d,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=hb)}function b(){y(),g.request(p)}p();const S=Ke(c,"resize",b);return()=>{g.cancel(),y(),typeof c.removeEventListener=="function"&&S()}}class S_{constructor(){et(this,"lockCount",0);et(this,"restore",null);et(this,"timeoutLock",ei.create());et(this,"timeoutUnlock",ei.create());et(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});et(this,"unlock",()=>{var i;this.lockCount===0&&this.restore&&((i=this.restore)==null||i.call(this),this.restore=null)})}acquire(i){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(i)),this.release}lock(i){if(this.lockCount===0||this.restore!==null)return;const l=ut(i).documentElement,c=zt(l).getComputedStyle(l).overflowY;if(c==="hidden"||c==="clip"){this.restore=Ch;return}const f=au||!g_(i);this.restore=f?v_(i):b_(i)}}const x_=new S_;function E_(n=!0,i=null){Xe(()=>{if(n)return x_.acquire(i)},[n,i])}const T_=20;function w_(n,i,r,l){const[c,f]=O.useState(!1);Xe(()=>{if(!n||!i||r==null){f(!1);return}const d=ut(r).documentElement.clientWidth,m=r.offsetWidth;f(d>0&&m>0&&m>=d-T_)},[n,i,r]),E_(n&&(!i||c),l)}const R_=O.forwardRef(function(i,r){const{render:l,className:c,style:f,anchor:d,positionMethod:m="absolute",side:g="bottom",align:p="center",sideOffset:y=0,alignOffset:b=0,collisionBoundary:S="clipping-ancestors",collisionPadding:x=5,arrowPadding:E=5,sticky:w=!1,disableAnchorTracking:C=!1,collisionAvoidance:N=FO,...M}=i,{store:U}=Wl(),A=n_(),Z=WO(),X=U.useState("floatingRootContext"),q=U.useState("mounted"),j=U.useState("open"),F=U.useState("openChangeReason"),re=U.useState("activeTriggerElement"),fe=U.useState("modal"),se=U.useState("openMethod"),J=U.useState("positionerElement"),oe=U.useState("instantType"),ne=U.useState("transitionStatus"),k=U.useState("hasViewport"),G=O.useRef(null),I=xS(J,!1,!1),le=h_({anchor:d,floatingRootContext:X,positionMethod:m,mounted:q,side:g,sideOffset:y,align:p,alignOffset:b,arrowPadding:E,collisionBoundary:S,collisionPadding:x,sticky:w,disableAnchorTracking:C,keepMounted:A,nodeId:Z,collisionAvoidance:N,adaptiveOrigin:k?d_:void 0}),H=X.useState("domReferenceElement");Xe(()=>{const ie=H,ae=G.current;if(ie&&(G.current=ie),ae&&ie&&ie!==ae){U.set("instantType",void 0);const ee=new AbortController;return I(()=>{U.set("instantType","trigger-change")},ee.signal),()=>{ee.abort()}}},[H,I,U]),w_(j&&fe===!0&&F!==Sn,se==="touch",J,re);const T=O.useCallback(ie=>{U.set("positionerElement",ie)},[U]),B={open:j,side:le.side,align:le.align,anchorHidden:le.anchorHidden,instant:oe},te=p_(i,B,{styles:le.positionerStyles,transitionStatus:ne,props:M,refs:[r,T],hidden:!q,inert:!j});return _.jsxs(MS.Provider,{value:le,children:[q&&fe===!0&&F!==Sn&&_.jsx(m_,{ref:U.context.internalBackdropRef,inert:s_(!j),cutout:re}),_.jsx($O,{id:Z,children:te})]})}),O_="ArrowUp",C_="ArrowDown",A_="ArrowLeft",__="ArrowRight",M_="Home",N_="End",D_=new Set([A_,__]),z_=new Set([O_,C_]),k_=new Set([...D_,...z_]),j_=new Set([...k_,M_,N_]),U_=O.createContext(void 0);function L_(n){return O.useContext(U_)}const B_=O.createContext(void 0);function H_(){const[n,i]=O.useState(0),r=$e(()=>(i(c=>c+1),()=>{i(c=>Math.max(0,c-1))}));return{context:O.useMemo(()=>({register:r}),[r]),hasClosePart:n>0}}function q_(n){const{value:i,children:r}=n;return _.jsx(B_.Provider,{value:i,children:r})}const Y_={...AS,...mA},V_=O.forwardRef(function(i,r){const{render:l,className:c,style:f,initialFocus:d,finalFocus:m,...g}=i,{store:p}=Wl(),y=r_(),b=L_()!=null,{context:S,hasClosePart:x}=H_(),E=p.useState("open"),w=p.useState("openMethod"),C=p.useState("instantType"),N=p.useState("transitionStatus"),M=p.useState("popupProps"),U=p.useState("titleElementId"),A=p.useState("descriptionElementId"),Z=p.useState("modal"),X=p.useState("mounted"),q=p.useState("openChangeReason"),j=p.useState("activeTriggerElement"),F=p.useState("floatingRootContext"),re=F.useState("floatingId"),fe=p.useState("disabled"),se=p.useState("openOnHover"),J=p.useState("closeDelay"),oe=g.id??re;ES({open:E,ref:p.context.popupRef,onComplete(){var H,T;E&&((T=(H=p.context).onOpenChangeComplete)==null||T.call(H,!0))}}),zA(F,{enabled:se&&!fe,closeDelay:J});const ne=d===void 0?pA(p.context.popupRef):d,k=Z!==!1&&x;p.useSyncedValue("focusManagerModal",k);const G=O.useCallback(H=>{p.set("popupElement",H)},[p]),I={open:E,side:y.side,align:y.align,instant:C,transitionStatus:N},le=Ca("div",i,{state:I,ref:[r,p.context.popupRef,G],props:[M,{id:oe,role:"dialog",...TS,"aria-labelledby":U,"aria-describedby":A,onKeyDown(H){b&&j_.has(H.key)&&H.stopPropagation()}},DS(N),g],stateAttributesMapping:Y_});return _.jsx(sC,{context:F,openInteractionType:w,modal:k,disabled:!X||q===Sn,initialFocus:ne,returnFocus:m,restoreFocus:"popup",previousFocusableElement:wt(j)?j:void 0,nextFocusableElement:p.context.triggerFocusTargetRef,beforeContentFocusGuardRef:p.context.beforeContentFocusGuardRef,children:_.jsx(q_,{value:S,children:le})})}),G_="bg-chatroom-bg-primary text-chatroom-text-primary border border-chatroom-border rounded-none shadow-md",Q_=`z-50 pointer-events-auto outline-none ${G_}`;function zS({modal:n=!1,...i}){return _.jsx(YA,{"data-slot":"popover",modal:n,...i})}function kS(n){return _.jsx(t_,{"data-slot":"popover-trigger",...n})}function jS({className:n,align:i="start",side:r="bottom",sideOffset:l=4,...c}){return _.jsx(i_,{children:_.jsx(R_,{align:i,side:r,sideOffset:l,className:"isolate z-50",children:_.jsx(V_,{className:on("w-72 origin-(--transform-origin) overflow-hidden p-0 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95",Q_,n),...c})})})}function X_(n,i,r){const l=i.trim().toLowerCase();return l?n.filter(c=>r(c).toLowerCase().includes(l)):[...n]}function Wc({children:n,selected:i,onSelect:r,disabled:l,className:c,endAdornment:f,trailingActions:d,multiline:m=!1}){const g=on("min-w-0 px-3 py-2 text-xs text-left flex justify-between gap-2",m?"items-start":"items-center","cursor-pointer hover:bg-chatroom-bg-hover transition-colors","outline-none focus-visible:outline-none focus-visible:bg-chatroom-bg-hover","disabled:opacity-50 disabled:cursor-not-allowed",i&&"bg-chatroom-bg-hover",d?"flex-1 rounded-none":"w-full",!d&&c),p=_.jsxs("button",{type:"button",role:"option","aria-selected":i??!1,disabled:l,onClick:r,className:g,children:[_.jsx("span",{className:on("min-w-0 flex-1",m?"overflow-hidden":"truncate"),children:n}),f,i&&!d?_.jsx(xw,{size:12,className:"shrink-0 text-chatroom-accent"}):null]});return d?_.jsxs("div",{className:on("flex items-center w-full min-w-0",c),children:[p,d]}):p}function F_({children:n,className:i,maxHeightClassName:r="max-h-[60vh]"}){return _.jsx("div",{"data-picker-scroll-body":!0,className:on("min-h-0 overflow-y-auto overscroll-contain",r,i),children:n})}function K_({value:n,onChange:i,placeholder:r="Search…",autoFocus:l,className:c}){const f=l??!0;return _.jsx("div",{className:on("px-3 py-1.5 border-b border-chatroom-border shrink-0",c),"data-vaul-no-drag":"",onPointerDown:d=>d.stopPropagation(),onClick:d=>{const m=d.currentTarget.querySelector("input");m==null||m.focus()},children:_.jsx("input",{type:"search",enterKeyHint:"search",value:n,onChange:d=>i(d.target.value),placeholder:r,autoFocus:f,"data-vaul-no-drag":"",onPointerDown:d=>d.stopPropagation(),className:"w-full bg-chatroom-bg-tertiary border border-chatroom-border px-2 py-1 text-[11px] text-chatroom-text-primary placeholder:text-chatroom-text-muted focus:outline-none focus:border-chatroom-accent rounded-none"})})}function Z_(n){const[i,r]=O.useState(""),l=O.useCallback(c=>{c||r(""),n(c)},[n]);return{searchTerm:i,setSearchTerm:r,handleOpenChange:l}}const US="min-w-[8rem] max-w-[14rem] border border-chatroom-border bg-chatroom-bg-secondary text-xs text-chatroom-text-primary px-2 py-1.5 h-[28px] cursor-pointer hover:border-chatroom-border-strong focus:outline-none focus:border-chatroom-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-between gap-1",LS="shrink-0 text-chatroom-text-muted";function BS({options:n,value:i,onChange:r,disabled:l,isLoading:c,isError:f,placeholder:d="Select…",allLabel:m="All",searchPlaceholder:g="Search…",emptyLabel:p="No results",ariaLabel:y,triggerClassName:b,contentClassName:S,allowClear:x=!0}){var j;const[E,w]=O.useState(!1),{searchTerm:C,setSearchTerm:N,handleOpenChange:M}=Z_(w),U=(j=n.find(F=>F.value===i))==null?void 0:j.label,A=c?"Loading…":f?"Failed to load":U??d,Z=O.useMemo(()=>X_(n,C,F=>`${F.label} ${F.value}`),[n,C]),X=l||c||f,q=_.jsxs("button",{type:"button",disabled:X,className:on(US,b),"aria-label":y,"aria-busy":c,children:[_.jsx("span",{className:"truncate",children:A}),_.jsx(y0,{size:12,className:LS})]});return _.jsxs(zS,{open:E,onOpenChange:M,children:[_.jsx(kS,{render:q}),_.jsxs(jS,{className:on("w-64",S),children:[_.jsx(K_,{value:C,onChange:N,placeholder:g}),_.jsxs(F_,{maxHeightClassName:"max-h-60",children:[x&&_.jsx(Wc,{selected:!i,onSelect:()=>{r(void 0),M(!1)},children:m}),Z.map(F=>_.jsx(Wc,{selected:i===F.value,onSelect:()=>{r(F.value),M(!1)},children:F.label},F.value)),!Z.length&&_.jsx("div",{className:"px-3 py-2 text-xs text-chatroom-text-muted",children:p})]})]})]})}function HS({chatrooms:n,value:i,onChange:r,disabled:l,isLoading:c,isError:f}){return _.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[_.jsx("span",{className:"text-chatroom-text-muted",children:"Chatroom"}),_.jsx(BS,{options:n.map(d=>({value:d.id,label:d.displayName})),value:i,onChange:d=>{d&&r(d)},disabled:l,isLoading:c,isError:f,placeholder:"Select chatroom",allowClear:!1,searchPlaceholder:"Search chatrooms…",ariaLabel:"Filter by chatroom",triggerClassName:"min-w-[10rem]"})]})}function mb({label:n,options:i,value:r,onChange:l,disabled:c,allLabel:f="All"}){return _.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[_.jsx("span",{className:"text-chatroom-text-muted",children:n}),_.jsx(BS,{options:i.map(d=>({value:d,label:d})),value:r,onChange:l,disabled:c,placeholder:f,allLabel:f,searchPlaceholder:`Search ${n.toLowerCase()}…`,ariaLabel:n})]})}const nm="1h",qS={"1h":"Last 1 hour","3h":"Last 3 hours","1d":"Last 1 day"},YS={"1h":36e5,"3h":108e5,"1d":864e5};function $c(n,i=Date.now()){return n.timeRange==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0?{fromMs:n.fromMs,toMs:n.toMs}:{fromMs:i-(YS[n.timeRange]??36e5),toMs:i}}function P_(n){const i=n.timeRange??"1h";return i!=="custom"?qS[i]:n.fromMs!==void 0&&n.toMs!==void 0?`${new Date(n.fromMs).toLocaleString()} – ${new Date(n.toMs).toLocaleString()}`:"Custom range"}const Mc=n=>{const i=new Date(n),r=l=>String(l).padStart(2,"0");return`${i.getFullYear()}-${r(i.getMonth()+1)}-${r(i.getDate())}T${r(i.getHours())}:${r(i.getMinutes())}`},pb=n=>{const i=new Date(n).getTime();return Number.isFinite(i)?i:void 0},I_=["1h","3h","1d"];function VS({value:n,onChange:i,disabled:r}){const[l,c]=O.useState(!1),[f,d]=O.useState(""),[m,g]=O.useState(""),p=n.timeRange??nm;O.useEffect(()=>{p==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0&&(d(Mc(n.fromMs)),g(Mc(n.toMs)))},[p,n.fromMs,n.toMs]);const y=()=>{const S=Date.now(),x=n.fromMs??S-YS["1h"],E=n.toMs??S;d(Mc(x)),g(Mc(E)),i({timeRange:"custom",fromMs:x,toMs:E})},b=()=>{const S=pb(f),x=pb(m);S===void 0||x===void 0||S>x||(i({timeRange:"custom",fromMs:S,toMs:x}),c(!1))};return _.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[_.jsx("span",{className:"text-chatroom-text-muted",children:"Time"}),_.jsxs(zS,{open:l,onOpenChange:c,children:[_.jsx(kS,{render:_.jsxs("button",{type:"button",disabled:r,className:on(US,"min-w-[10rem]"),"aria-label":"Filter by time range",children:[_.jsx("span",{className:"truncate",children:P_(n)}),_.jsx(y0,{size:12,className:LS})]})}),_.jsxs(jS,{className:"w-72 p-0",align:"start",children:[I_.map(S=>_.jsx(Wc,{selected:p===S,onSelect:()=>{i({timeRange:S,fromMs:void 0,toMs:void 0}),c(!1)},children:qS[S]},S)),_.jsx(Wc,{selected:p==="custom",onSelect:y,children:"Custom range…"}),p==="custom"&&_.jsxs("div",{className:"space-y-2 border-t border-chatroom-border px-3 py-2",children:[_.jsxs("label",{className:"flex flex-col gap-1 text-[11px] text-chatroom-text-muted",children:["Start",_.jsx("input",{type:"datetime-local",value:f,onChange:S=>d(S.target.value),className:"rounded-none border border-chatroom-border bg-chatroom-bg-secondary px-2 py-1 text-xs text-chatroom-text-primary"})]}),_.jsxs("label",{className:"flex flex-col gap-1 text-[11px] text-chatroom-text-muted",children:["End",_.jsx("input",{type:"datetime-local",value:m,onChange:S=>g(S.target.value),className:"rounded-none border border-chatroom-border bg-chatroom-bg-secondary px-2 py-1 text-xs text-chatroom-text-primary"})]}),_.jsx("button",{type:"button",onClick:b,className:"w-full border border-chatroom-border bg-chatroom-bg-tertiary px-2 py-1.5 text-xs hover:bg-chatroom-bg-hover",children:"Apply"})]})]})]})]})}function J_({chatrooms:n,chatroomsLoading:i,chatroomsError:r,roles:l,harnesses:c,values:f,onChange:d,disabled:m}){return _.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[_.jsx(VS,{value:{timeRange:f.timeRange,fromMs:f.fromMs,toMs:f.toMs},onChange:g=>d({...f,...g}),disabled:m}),_.jsx(HS,{chatrooms:n,value:f.chatroomId,onChange:g=>d({...f,chatroomId:g}),disabled:m,isLoading:i,isError:r}),_.jsx(mb,{label:"Role",options:l,value:f.role,onChange:g=>d({...f,role:g}),disabled:m,allLabel:"All roles"}),_.jsx(mb,{label:"Harness",options:c,value:f.harness,onChange:g=>d({...f,harness:g}),disabled:m,allLabel:"All harnesses"})]})}function GS({title:n="Session logs",actions:i}){return _.jsxs("div",{className:"flex items-center justify-between gap-4",children:[_.jsx("h2",{className:"text-lg font-medium tracking-tight",children:n}),i]})}function W_({hasChatroom:n}){return _.jsxs("div",{className:"flex min-h-[400px] flex-1 flex-col items-center justify-center gap-2 border border-chatroom-border bg-chatroom-bg-secondary p-6 text-center",role:"status",children:[_.jsx(Ow,{className:"size-8 text-chatroom-text-muted","aria-hidden":!0}),_.jsx("p",{className:"text-sm text-chatroom-text-secondary",children:n?"No logs in this time range":"Select a chatroom to view logs"}),n&&_.jsx("p",{className:"text-xs text-chatroom-text-muted",children:"Start an agent session to see output here"})]})}function $_({message:n}){return _.jsxs("div",{className:"flex min-h-[400px] flex-1 flex-col items-center justify-center gap-2 border border-chatroom-status-error/30 bg-chatroom-bg-secondary p-6 text-center",role:"alert",children:[_.jsx(ww,{className:"size-8 text-chatroom-status-error","aria-hidden":!0}),_.jsx("p",{className:"text-sm text-chatroom-status-error",children:"Failed to load logs"}),_.jsx("p",{className:"text-xs text-chatroom-text-muted",children:n})]})}function e2({line:n,chatroomName:i,selected:r,onSelect:l}){const c=new Date(n.timestamp).toISOString().slice(11,19),d=!jh(n)||!n.source.startsWith("harness:"),m=()=>l==null?void 0:l(n);return _.jsxs("div",{className:on("flex gap-3 rounded-none px-1 py-1.5 -mx-1",l&&"cursor-pointer hover:bg-chatroom-bg-hover",r&&"bg-chatroom-bg-hover"),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?m:void 0,onKeyDown:l?g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())}:void 0,children:[_.jsx("span",{className:"shrink-0 text-chatroom-text-muted",children:c}),_.jsx(U0,{level:n.level}),_.jsx(j0,{line:n,chatroomName:i}),d&&_.jsx("span",{className:"shrink-0 text-chatroom-text-muted",children:n.source}),_.jsx("span",{className:"min-w-0 flex-1 line-clamp-2",children:n.message})]})}function QS({rows:n=8}){return _.jsx("div",{className:"flex flex-col gap-1 p-3","aria-busy":"true","aria-label":"Loading logs",children:Array.from({length:n},(i,r)=>_.jsxs("div",{className:"flex gap-3 py-1",children:[_.jsx(Ml,{className:"h-4 w-16 shrink-0"}),_.jsx(Ml,{className:"h-4 w-12 shrink-0"}),_.jsx(Ml,{className:"h-4 w-24 shrink-0"}),_.jsx(Ml,{className:"h-4 min-w-0 flex-1"})]},r))})}function t2({lines:n,isLoading:i,error:r,hasChatroom:l,autoScroll:c=!0,selectedLine:f,onSelectLine:d,getChatroomName:m}){const g=O.useRef(null);if(O.useEffect(()=>{var y;c&&!i&&!r&&n.length>0&&((y=g.current)==null||y.scrollIntoView({behavior:"smooth"}))},[n.length,i,r,c]),i)return _.jsx("div",{className:"min-h-[400px] flex-1 border border-chatroom-border bg-chatroom-bg-secondary",children:_.jsx(QS,{})});if(r)return _.jsx($_,{message:r});if(n.length===0)return _.jsx(W_,{hasChatroom:l});const p=f?f.id??`${f.timestamp}-${f.message.slice(0,32)}`:null;return _.jsxs("div",{className:"min-h-[400px] flex-1 overflow-auto border border-chatroom-border bg-chatroom-bg-secondary p-3 font-mono text-xs",children:[n.map((y,b)=>{var w;const S=y.id??`${y.timestamp}-${b}`,x=y.id??`${y.timestamp}-${y.message.slice(0,32)}`,E=(w=y.metadata)==null?void 0:w.chatroomId;return _.jsx(e2,{line:y,chatroomName:typeof E=="string"?m==null?void 0:m(E):void 0,selected:p===x,onSelect:d},S)}),_.jsx("div",{ref:g})]})}function XS(){return Gb({queryKey:["daemon","chatrooms"],queryFn:async()=>{const n=await _R();if(!n.ok)throw new Error(n.error.message);return n.data.chatrooms},staleTime:6e4})}function gb(n,i){const r=$c(i);return n.timestamp>=r.fromMs&&n.timestamp<=r.toMs&&Uh(n)===i.chatroomId&&(!i.role||k0(n)===i.role)&&(!i.harness||jh(n)===i.harness)}function n2(n){const i=n.chatroomId,[r,l]=O.useState([]),[c,f]=O.useState({roles:[],harnesses:[]}),[d,m]=O.useState(!1),[g,p]=O.useState(null);return O.useEffect(()=>{if(!i){l([]),f({roles:[],harnesses:[]}),m(!1),p(null);return}m(!0),p(null);let y=!0,b;return(async()=>{try{const S=await AR(i);if(!y)return;S.ok&&f(S.data);const x=$c(n),E=await CR({chatroomId:i,role:n.role,harness:n.harness,fromTimestamp:x.fromMs,toTimestamp:x.toMs,limit:500});if(!E.ok)throw new Error(E.error.message);if(!y)return;l(E.data.entries.filter(w=>gb(w,n))),b=DR(w=>{gb(w,n)&&l(C=>[...C,w])})}catch(S){y&&p(S instanceof Error?S.message:"Failed to load logs")}finally{y&&m(!1)}})(),()=>{y=!1,b==null||b()}},[i,n.role,n.harness,n.timeRange,n.fromMs,n.toMs]),{lines:r,dimensions:c,isLoading:d,error:g}}function i2(n={}){return n2(n)}const s2=n=>n&&["1h","3h","1d","custom"].includes(n)?n:void 0;function yb(n){const i=new URLSearchParams(n.startsWith("?")?n.slice(1):n),r=s2(i.get("timeRange")),l=Number(i.get("from")),c=Number(i.get("to"));return{...i.get("chatroomId")?{chatroomId:i.get("chatroomId")}:{},...i.get("role")?{role:i.get("role")}:{},...i.get("harness")?{harness:i.get("harness")}:{},...r?{timeRange:r}:{},...Number.isFinite(l)&&i.get("from")?{fromMs:l}:{},...Number.isFinite(c)&&i.get("to")?{toMs:c}:{}}}function r2(n){const i=new URLSearchParams;n.chatroomId&&i.set("chatroomId",n.chatroomId),n.role&&i.set("role",n.role),n.harness&&i.set("harness",n.harness);const r=n.timeRange??nm;return i.set("timeRange",r),r==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0&&(i.set("from",String(n.fromMs)),i.set("to",String(n.toMs))),i.toString()}function a2(n){const i=r2(n);window.history.replaceState(null,"",`${window.location.pathname}${i?`?${i}`:""}`)}function l2(){const[n,i]=O.useState(()=>yb(window.location.search)),r=O.useCallback(l=>{i(l),a2(l)},[]);return O.useEffect(()=>{const l=()=>i(yb(window.location.search));return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)},[]),{filters:n,setFilters:r}}function o2(){const{filters:n,setFilters:i}=l2(),[r,l]=O.useState(null),c=XS(),f=c.data??[],d=O.useMemo(()=>new Map(f.map(x=>[x.id,x.displayName])),[f]),{lines:m,dimensions:g,isLoading:p,error:y}=i2(n),b=x=>d.get(x),S=r?b(Uh(r)??""):void 0;return _.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 p-6",children:[_.jsx(GS,{actions:_.jsx(J_,{chatrooms:f,chatroomsLoading:c.isLoading,chatroomsError:c.isError,roles:g.roles,harnesses:g.harnesses,values:n,onChange:i,disabled:p})}),_.jsxs("div",{className:"flex min-h-0 flex-1 gap-0",children:[_.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:_.jsx(t2,{lines:m,isLoading:p,error:y,hasChatroom:!!n.chatroomId,autoScroll:!r,selectedLine:r,onSelectLine:l,getChatroomName:b})}),r&&_.jsx(JR,{line:r,chatroomName:S,onClose:()=>l(null)})]})]})}function c2({chatrooms:n,chatroomsLoading:i,chatroomsError:r,values:l,onChange:c,disabled:f}){return _.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[_.jsx(VS,{value:{timeRange:l.timeRange,fromMs:l.fromMs,toMs:l.toMs},onChange:d=>c({...l,...d}),disabled:f}),_.jsx(HS,{chatrooms:n,value:l.chatroomId,onChange:d=>c({...l,chatroomId:d}),disabled:f,isLoading:i,isError:r})]})}function u2({hasChatroom:n}){return _.jsxs("div",{className:"flex min-h-[400px] flex-1 flex-col items-center justify-center gap-2 border border-chatroom-border bg-chatroom-bg-secondary p-6 text-center",role:"status",children:[_.jsx(g0,{className:"size-8 text-chatroom-text-muted","aria-hidden":!0}),_.jsx("p",{className:"text-sm text-chatroom-text-secondary",children:n?"No events in this time range":"Select a chatroom to view events"})]})}const f2=["role","message","reason","taskId","agentId","phase","status","harness"];function d2(n){for(const r of f2){const l=n[r];if(typeof l=="string"&&l.trim())return l.length>80?`${l.slice(0,77)}…`:l;if(typeof l=="number")return String(l)}const i=new Set(["type","timestamp","chatroomId","_id"]);for(const[r,l]of Object.entries(n)){if(i.has(r)||l==null)continue;const c=`${r}: ${typeof l=="string"?l:JSON.stringify(l)}`;return c.length>80?`${c.slice(0,77)}…`:c}return""}const h2={"agent.started":["Agent Started","success"],"agent.exited":["Agent Exited","error"],"agent.circuitOpen":["Circuit Open","warning"],"agent.requestStart":["Agent Request Start","warning"],"agent.requestStop":["Agent Request Stop","error"],"agent.registered":["Agent Registered","success"],"agent.waiting":["Agent Waiting","success"],"agent.startFailed":["Agent Start Failed","error"],"agent.providerUnavailable":["Provider Unavailable","warning"],"agent.sessionResumeRequested":["Session Reconnect Requested","info"],"agent.sessionResumed":["Session Reconnected","success"],"agent.sessionResumeFailed":["Session Reconnect Failed","warning"],"agent.sessionReopenRetry":["Session Reopen Retry","info"],"agent.sessionCompacted":["Session Compacted","info"],"agent.sessionAugmented":["Session Augmented","info"],"agent.resumeStormAborted":["Resume Storm Aborted","error"],"agent.restart":["Agent Restarting","info"],"agent.restartCompleted":["Agent Restarted","success"],"agent.restartPhase":["Agent Restart Progress","info"],"agent.restartLimitReached":["Agent Restart Limit","error"],"agent.stopTimeout":["Agent Stop Timeout","warning"],"agent.harnessSessionIdUpdated":["Harness Session ID Updated","info"],"agent.awaitingHandoff":["Awaiting Handoff","warning"],"agent.enhancing":["Planning Review","info"],"agent.taskDelivered":["Task Delivered","success"],"agent.taskDeliveryFailed":["Task Delivery Failed","error"],"machine.switched":["Machine Switched","info"],"connection.terminated":["Connection Terminated","muted"],"workflow.started":["Workflow Started","info"],"workflow.stepCompleted":["Workflow Step Completed","success"],"workflow.stepCancelled":["Workflow Step Cancelled","warning"],"workflow.completed":["Workflow Completed","success"],"workflow.created":["Workflow Created","info"],"workflow.specified":["Workflow Specified","info"],"workflow.stepStarted":["Workflow Step Started","info"],"task.activated":["Task Activated","success"],"task.acknowledged":["Task Acknowledged","success"],"task.inProgress":["Task In Progress","info"],"task.completed":["Task Completed","success"],"skill.activated":["Skill Activated","purple"],"daemon.ping":["Daemon Ping","muted"],"daemon.pong":["Daemon Pong","muted"],"daemon.gitRefresh":["Git Refresh","muted"],"daemon.refreshCapabilities":["Capabilities Refresh","muted"],"daemon.pickFolder":["Pick Folder","muted"],"daemon.localAction":["Local Action","muted"],"config.requestRemoval":["Config Request Removal","warning"],"command.run":["Command Run","warning"],"command.stop":["Command Stop","error"],"enhancer.job.created":["Planning Review Started","info"],"enhancer.attempt.failed":["Planning Review Attempt Failed","warning"],"enhancer.job.failed":["Planning Review Failed","error"],"enhancer.job.complete":["Planning Review Complete","success"],"enhancer.job.cancelled":["Planning Review Cancelled","warning"]},m2=Object.fromEntries(Object.entries(h2).map(([n,[i,r]])=>[n,{label:i,classification:r}]));function p2(n){const i=n.toLowerCase();return i.includes("failed")||i.includes("error")||i.includes("timeout")?"error":n.startsWith("task.")?"success":n.startsWith("agent.")||n.startsWith("workflow.")||n.startsWith("enhancer.")?"info":n.startsWith("daemon.")?"muted":n.startsWith("command.")?"warning":n.startsWith("skill.")?"purple":"muted"}function g2(n){return m2[n]??{label:n,classification:p2(n)}}const y2={info:{badge:"bg-chatroom-status-info/15 text-chatroom-status-info"},success:{badge:"bg-chatroom-status-success/15 text-chatroom-status-success"},warning:{badge:"bg-chatroom-status-warning/15 text-chatroom-status-warning"},error:{badge:"bg-chatroom-status-error/15 text-chatroom-status-error"},muted:{badge:"bg-chatroom-text-muted/15 text-chatroom-text-muted"},purple:{badge:"bg-chatroom-status-purple/15 text-chatroom-status-purple"}};function v2(n){return y2[n]}function FS({type:n,className:i}){const r=g2(n);return _.jsx("span",{className:on("shrink-0 rounded px-1.5 py-0.5 text-[9px] font-bold uppercase tracking-wider",v2(r.classification).badge,i),children:r.label})}function b2({entry:n,selected:i,onSelect:r}){return _.jsxs("div",{role:"button",tabIndex:0,onClick:()=>r==null?void 0:r(n),onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),r==null||r(n))},className:`flex items-center gap-3 border-b border-chatroom-border px-3 py-2 text-xs ${i?"bg-chatroom-bg-hover":"hover:bg-chatroom-bg-hover"}`,children:[_.jsx("span",{className:"w-20 shrink-0 font-mono text-chatroom-text-muted",children:new Date(n.timestamp).toLocaleTimeString()}),_.jsx(FS,{type:n.type}),_.jsx("span",{className:"min-w-0 truncate text-chatroom-text-secondary",children:d2(n.payload)})]})}function S2({entries:n,isLoading:i,error:r,hasChatroom:l,selectedEntry:c,onSelectEntry:f}){return i?_.jsx("div",{className:"min-h-[400px] flex-1 border border-chatroom-border bg-chatroom-bg-secondary",children:_.jsx(QS,{})}):r?_.jsx("div",{className:"flex min-h-[400px] flex-1 items-center border border-chatroom-border bg-chatroom-bg-secondary p-4 text-chatroom-status-error",children:r}):!l||n.length===0?_.jsx(u2,{hasChatroom:l}):_.jsx("div",{className:"min-h-[400px] flex-1 overflow-auto border border-chatroom-border bg-chatroom-bg-secondary",children:n.map(d=>_.jsx(b2,{entry:d,selected:(c==null?void 0:c.id)===d.id,onSelect:f},d.id))})}function x2(n){const i=n.chatroomId,[r,l]=O.useState([]),[c,f]=O.useState(!1),[d,m]=O.useState(null);return O.useEffect(()=>{if(!i){l([]),f(!1),m(null);return}f(!0),m(null);let g=!0,p;return(async()=>{try{const y=$c(n),b=await MR({chatroomId:i,fromTimestamp:y.fromMs,toTimestamp:y.toMs,limit:500});if(!b.ok)throw new Error(b.error.message);g&&(l(b.data.entries),p=NR(S=>{var w;const x=(w=S.payload)==null?void 0:w.chatroomId,E=$c(n);S.timestamp<E.fromMs||S.timestamp>E.toMs||typeof x!="string"||x!==i||l(C=>C.some(N=>N.id===S.id)?C:[...C,S])}))}catch(y){g&&m(y instanceof Error?y.message:"Failed to load event stream")}finally{g&&f(!1)}})(),()=>{g=!1,p==null||p()}},[i,n.timeRange,n.fromMs,n.toMs]),{entries:r,isLoading:c,error:d}}function E2({entry:n,onClose:i}){const r=n.payload;return _.jsxs("aside",{className:"flex w-96 max-w-[40%] shrink-0 flex-col border-l border-chatroom-border bg-chatroom-bg-primary",role:"dialog","aria-modal":"true","aria-label":"Event detail",children:[_.jsxs("div",{className:"flex items-center justify-between border-b border-chatroom-border px-4 py-3",children:[_.jsx("h3",{className:"text-sm font-medium",children:"Event detail"}),_.jsx(H0,{variant:"ghost",size:"sm",onClick:i,"aria-label":"Close detail panel",children:_.jsx(v0,{className:"size-4"})})]}),_.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4 text-xs",children:[_.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[_.jsx(FS,{type:n.type}),_.jsx("span",{className:"text-chatroom-text-muted",children:new Date(n.timestamp).toISOString()})]}),_.jsxs("div",{className:"space-y-1 text-chatroom-text-muted",children:[_.jsxs("div",{children:["Type: ",_.jsx("span",{className:"text-chatroom-text-primary",children:n.type})]}),_.jsxs("div",{children:["ID: ",_.jsx("span",{className:"text-chatroom-text-primary",children:n.id})]}),typeof r.chatroomId=="string"&&_.jsxs("div",{children:["Chatroom: ",_.jsx("span",{className:"text-chatroom-text-primary",children:r.chatroomId})]})]}),_.jsxs("div",{children:[_.jsx("p",{className:"mb-1 text-chatroom-text-muted",children:"Payload"}),_.jsx("pre",{className:"whitespace-pre-wrap border border-chatroom-border bg-chatroom-bg-secondary p-2 font-mono text-[11px]",children:JSON.stringify(r,null,2)})]})]})]})}const T2=n=>n&&["1h","3h","1d","custom"].includes(n)?n:void 0;function vb(n){const i=new URLSearchParams(n.startsWith("?")?n.slice(1):n),r=T2(i.get("timeRange")),l=i.get("from"),c=i.get("to"),f=Number(l),d=Number(c);return{...i.get("chatroomId")?{chatroomId:i.get("chatroomId")}:{},...r?{timeRange:r}:{},...Number.isFinite(f)&&l?{fromMs:f}:{},...Number.isFinite(d)&&c?{toMs:d}:{}}}function w2(n){const i=new URLSearchParams(window.location.search);n.chatroomId?i.set("chatroomId",n.chatroomId):i.delete("chatroomId");const r=n.timeRange??nm;i.set("timeRange",r),r==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0?(i.set("from",String(n.fromMs)),i.set("to",String(n.toMs))):(i.delete("from"),i.delete("to"));const l=i.toString();window.history.replaceState(null,"",`${window.location.pathname}${l?`?${l}`:""}`)}function R2(){const[n,i]=O.useState(()=>vb(window.location.search)),r=O.useCallback(l=>{i(l),w2(l)},[]);return O.useEffect(()=>{const l=()=>i(vb(window.location.search));return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)},[]),{filters:n,setFilters:r}}function O2(){const{filters:n,setFilters:i}=R2(),r=XS(),{entries:l,isLoading:c,error:f}=x2(n),[d,m]=O.useState(null);return O.useEffect(()=>{m(null)},[n.chatroomId,n.timeRange,n.fromMs,n.toMs]),_.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 p-6",children:[_.jsx(GS,{title:"Event stream",actions:_.jsx(c2,{chatrooms:r.data??[],chatroomsLoading:r.isLoading,chatroomsError:r.isError,values:n,onChange:i,disabled:c})}),_.jsxs("div",{className:"flex min-h-0 flex-1 gap-0",children:[_.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:_.jsx(S2,{entries:l,isLoading:c,error:f,hasChatroom:!!n.chatroomId,selectedEntry:d,onSelectEntry:m})}),d&&_.jsx(E2,{entry:d,onClose:()=>m(null)})]})]})}function C2(){var l,c;const{activeTab:n,setActiveTab:i}=jR(),r=zR();return _.jsx(hw,{header:_.jsx(Aw,{status:_.jsx(dw,{isLoading:r.isLoading,isError:r.isError,port:(l=r.data)==null?void 0:l.port,service:(c=r.data)==null?void 0:c.service})}),nav:_.jsxs(_w,{children:[_.jsx(Rv,{active:n==="logs",onClick:()=>i("logs"),children:"Logs"}),_.jsx(Rv,{active:n==="event-stream",onClick:()=>i("event-stream"),children:"Event Stream"})]}),children:n==="logs"?_.jsx(o2,{}):_.jsx(O2,{})})}const A2=new z1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),bb=document.getElementById("root");bb&&tT.createRoot(bb).render(_.jsx(O.StrictMode,{children:_.jsx(B1,{client:A2,children:_.jsx(C2,{})})}));
|