@meetploy/emulator 1.4.0 → 1.4.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.
@@ -0,0 +1,319 @@
1
+ var N0=n=>{throw TypeError(n)};var nh=(n,l,r)=>l.has(n)||N0("Cannot "+r);var D=(n,l,r)=>(nh(n,l,"read from private field"),r?r.call(n):l.get(n)),xe=(n,l,r)=>l.has(n)?N0("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),se=(n,l,r,i)=>(nh(n,l,"write to private field"),i?i.call(n,r):l.set(n,r),r),Te=(n,l,r)=>(nh(n,l,"access private method"),r);var xu=(n,l,r,i)=>({set _(s){se(n,l,s,r)},get _(){return D(n,l,i)}});function sC(n,l){for(var r=0;r<l.length;r++){const i=l[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function nx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ah={exports:{}},Co={};/**
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 _0;function uC(){if(_0)return Co;_0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(i,s,u){var h=null;if(u!==void 0&&(h=""+u),s.key!==void 0&&(h=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:u}}return Co.Fragment=l,Co.jsx=r,Co.jsxs=r,Co}var R0;function cC(){return R0||(R0=1,ah.exports=uC()),ah.exports}var d=cC(),yi=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(){}},Il=typeof window>"u"||"Deno"in globalThis;function yn(){}function dC(n,l){return typeof n=="function"?n(l):n}function _h(n){return typeof n=="number"&&n>=0&&n!==1/0}function ax(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Jr(n,l){return typeof n=="function"?n(l):n}function An(n,l){return typeof n=="function"?n(l):n}function T0(n,l){const{type:r="all",exact:i,fetchStatus:s,predicate:u,queryKey:h,stale:m}=n;if(h){if(i){if(l.queryHash!==hm(h,l.options))return!1}else if(!Ho(l.queryKey,h))return!1}if(r!=="all"){const p=l.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||s&&s!==l.state.fetchStatus||u&&!u(l))}function M0(n,l){const{exact:r,status:i,predicate:s,mutationKey:u}=n;if(u){if(!l.options.mutationKey)return!1;if(r){if(er(l.options.mutationKey)!==er(u))return!1}else if(!Ho(l.options.mutationKey,u))return!1}return!(i&&l.state.status!==i||s&&!s(l))}function hm(n,l){return((l==null?void 0:l.queryKeyHashFn)||er)(n)}function er(n){return JSON.stringify(n,(l,r)=>Rh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Ho(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>Ho(n[r],l[r])):!1}function lx(n,l){if(n===l)return n;const r=A0(n)&&A0(l);if(r||Rh(n)&&Rh(l)){const i=r?n:Object.keys(n),s=i.length,u=r?l:Object.keys(l),h=u.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:u[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&l[y]===void 0?(m[y]=void 0,p++):(m[y]=lx(n[y],l[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return l}function qu(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(n[r]!==l[r])return!1;return!0}function A0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Rh(n){if(!D0(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!D0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function D0(n){return Object.prototype.toString.call(n)==="[object Object]"}function fC(n){return new Promise(l=>{setTimeout(l,n)})}function Th(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?lx(n,l):l}function hC(n,l,r=0){const i=[...n,l];return r&&i.length>r?i.slice(1):i}function mC(n,l,r=0){const i=[l,...n];return r&&i.length>r?i.slice(0,-1):i}var mm=Symbol();function rx(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===mm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Vl,ol,ti,Xb,pC=(Xb=class extends yi{constructor(){super();xe(this,Vl);xe(this,ol);xe(this,ti);se(this,ti,l=>{if(!Il&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){D(this,ol)||this.setEventListener(D(this,ti))}onUnsubscribe(){var l;this.hasListeners()||((l=D(this,ol))==null||l.call(this),se(this,ol,void 0))}setEventListener(l){var r;se(this,ti,l),(r=D(this,ol))==null||r.call(this),se(this,ol,l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(l){D(this,Vl)!==l&&(se(this,Vl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof D(this,Vl)=="boolean"?D(this,Vl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Vl=new WeakMap,ol=new WeakMap,ti=new WeakMap,Xb),pm=new pC,ni,sl,ai,$b,vC=($b=class extends yi{constructor(){super();xe(this,ni,!0);xe(this,sl);xe(this,ai);se(this,ai,l=>{if(!Il&&window.addEventListener){const r=()=>l(!0),i=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){D(this,sl)||this.setEventListener(D(this,ai))}onUnsubscribe(){var l;this.hasListeners()||((l=D(this,sl))==null||l.call(this),se(this,sl,void 0))}setEventListener(l){var r;se(this,ai,l),(r=D(this,sl))==null||r.call(this),se(this,sl,l(this.setOnline.bind(this)))}setOnline(l){D(this,ni)!==l&&(se(this,ni,l),this.listeners.forEach(i=>{i(l)}))}isOnline(){return D(this,ni)}},ni=new WeakMap,sl=new WeakMap,ai=new WeakMap,$b),Bu=new vC;function Mh(){let n,l;const r=new Promise((s,u)=>{n=s,l=u});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},r.reject=s=>{i({status:"rejected",reason:s}),l(s)},r}function gC(n){return Math.min(1e3*2**n,3e4)}function ix(n){return(n??"online")==="online"?Bu.isOnline():!0}var ox=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function lh(n){return n instanceof ox}function sx(n){let l=!1,r=0,i=!1,s;const u=Mh(),h=S=>{var N;i||(w(new ox(S)),(N=n.abort)==null||N.call(n))},m=()=>{l=!0},p=()=>{l=!1},g=()=>pm.isFocused()&&(n.networkMode==="always"||Bu.isOnline())&&n.canRun(),y=()=>ix(n.networkMode)&&n.canRun(),b=S=>{var N;i||(i=!0,(N=n.onSuccess)==null||N.call(n,S),s==null||s(),u.resolve(S))},w=S=>{var N;i||(i=!0,(N=n.onError)==null||N.call(n,S),s==null||s(),u.reject(S))},E=()=>new Promise(S=>{var N;s=_=>{(i||g())&&S(_)},(N=n.onPause)==null||N.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),j=()=>{if(i)return;let S;const N=r===0?n.initialPromise:void 0;try{S=N??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(b).catch(_=>{var X;if(i)return;const R=n.retry??(Il?0:3),T=n.retryDelay??gC,k=typeof T=="function"?T(r,_):T,L=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,_);if(l||!L){w(_);return}r++,(X=n.onFail)==null||X.call(n,r,_),fC(k).then(()=>g()?void 0:E()).then(()=>{l?w(_):j()})})};return{promise:u,cancel:h,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?j():E().then(j),u)}}var yC=n=>setTimeout(n,0);function bC(){let n=[],l=0,r=m=>{m()},i=m=>{m()},s=yC;const u=m=>{l?n.push(m):s(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;l++;try{p=m()}finally{l--,l||h()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var pt=bC(),Kl,Zb,ux=(Zb=class{constructor(){xe(this,Kl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&se(this,Kl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Il?1/0:300*1e3))}clearGcTimeout(){D(this,Kl)&&(clearTimeout(D(this,Kl)),se(this,Kl,void 0))}},Kl=new WeakMap,Zb),li,ri,gn,Xl,Nt,Vo,$l,Tn,wa,Fb,xC=(Fb=class extends ux{constructor(l){super();xe(this,Tn);xe(this,li);xe(this,ri);xe(this,gn);xe(this,Xl);xe(this,Nt);xe(this,Vo);xe(this,$l);se(this,$l,!1),se(this,Vo,l.defaultOptions),this.setOptions(l.options),this.observers=[],se(this,Xl,l.client),se(this,gn,D(this,Xl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,se(this,li,wC(this.options)),this.state=l.state??D(this,li),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=D(this,Nt))==null?void 0:l.promise}setOptions(l){this.options={...D(this,Vo),...l},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,gn).remove(this)}setData(l,r){const i=Th(this.state.data,l,this.options);return Te(this,Tn,wa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(l,r){Te(this,Tn,wa).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var i,s;const r=(i=D(this,Nt))==null?void 0:i.promise;return(s=D(this,Nt))==null||s.cancel(l),r?r.then(yn).catch(yn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,li))}isActive(){return this.observers.some(l=>An(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(l=0){return this.state.isInvalidated||this.state.data===void 0||!ax(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(i=>i.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=D(this,Nt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(i=>i.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=D(this,Nt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),D(this,gn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(D(this,Nt)&&(D(this,$l)?D(this,Nt).cancel({revert:!0}):D(this,Nt).cancelRetry()),this.scheduleGc()),D(this,gn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Tn,wa).call(this,{type:"invalidate"})}fetch(l,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(D(this,Nt))return D(this,Nt).continueRetry(),D(this,Nt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const b=this.observers.find(w=>w.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(se(this,$l,!0),i.signal)})},u=()=>{const b=rx(this.options,r),w={client:D(this,Xl),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,$l,!1),this.options.persister?this.options.persister(b,w,this):b(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,Xl),state:this.state,fetchFn:u};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Te(this,Tn,wa).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,E,j,S;lh(b)&&b.silent||Te(this,Tn,wa).call(this,{type:"error",error:b}),lh(b)||((E=(w=D(this,gn).config).onError)==null||E.call(w,b,this),(S=(j=D(this,gn).config).onSettled)==null||S.call(j,this.state.data,b,this)),this.scheduleGc()};return se(this,Nt,sx({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var w,E,j,S;if(b===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){m(N);return}(E=(w=D(this,gn).config).onSuccess)==null||E.call(w,b,this),(S=(j=D(this,gn).config).onSettled)==null||S.call(j,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,Tn,wa).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,Tn,wa).call(this,{type:"pause"})},onContinue:()=>{Te(this,Tn,wa).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),D(this,Nt).start()}},li=new WeakMap,ri=new WeakMap,gn=new WeakMap,Xl=new WeakMap,Nt=new WeakMap,Vo=new WeakMap,$l=new WeakMap,Tn=new WeakSet,wa=function(l){const r=i=>{switch(l.type){case"failed":return{...i,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...cx(i.data,this.options),fetchMeta:l.meta??null};case"success":return{...i,data:l.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:l.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=l.error;return lh(s)&&s.revert&&D(this,ri)?{...D(this,ri),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...l.state}}};this.state=r(this.state),pt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),D(this,gn).notify({query:this,type:"updated",action:l})})},Fb);function cx(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ix(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function wC(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,r=l!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Gn,Pb,SC=(Pb=class extends yi{constructor(l={}){super();xe(this,Gn);this.config=l,se(this,Gn,new Map)}build(l,r,i){const s=r.queryKey,u=r.queryHash??hm(s,r);let h=this.get(u);return h||(h=new xC({client:l,queryKey:s,queryHash:u,options:l.defaultQueryOptions(r),state:i,defaultOptions:l.getQueryDefaults(s)}),this.add(h)),h}add(l){D(this,Gn).has(l.queryHash)||(D(this,Gn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=D(this,Gn).get(l.queryHash);r&&(l.destroy(),r===l&&D(this,Gn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return D(this,Gn).get(l)}getAll(){return[...D(this,Gn).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(i=>T0(r,i))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(i=>T0(l,i)):r}notify(l){pt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Gn=new WeakMap,Pb),Vn,Tt,Zl,Kn,rl,Jb,EC=(Jb=class extends ux{constructor(l){super();xe(this,Kn);xe(this,Vn);xe(this,Tt);xe(this,Zl);this.mutationId=l.mutationId,se(this,Tt,l.mutationCache),se(this,Vn,[]),this.state=l.state||dx(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){D(this,Vn).includes(l)||(D(this,Vn).push(l),this.clearGcTimeout(),D(this,Tt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){se(this,Vn,D(this,Vn).filter(r=>r!==l)),this.scheduleGc(),D(this,Tt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){D(this,Vn).length||(this.state.status==="pending"?this.scheduleGc():D(this,Tt).remove(this))}continue(){var l;return((l=D(this,Zl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var u,h,m,p,g,y,b,w,E,j,S,N,_,R,T,k,L,X,q,H;const r=()=>{Te(this,Kn,rl).call(this,{type:"continue"})};se(this,Zl,sx({fn:()=>this.options.mutationFn?this.options.mutationFn(l):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Kn,rl).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Kn,rl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Tt).canRun(this)}));const i=this.state.status==="pending",s=!D(this,Zl).canStart();try{if(i)r();else{Te(this,Kn,rl).call(this,{type:"pending",variables:l,isPaused:s}),await((h=(u=D(this,Tt).config).onMutate)==null?void 0:h.call(u,l,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,l));te!==this.state.context&&Te(this,Kn,rl).call(this,{type:"pending",context:te,variables:l,isPaused:s})}const G=await D(this,Zl).start();return await((y=(g=D(this,Tt).config).onSuccess)==null?void 0:y.call(g,G,l,this.state.context,this)),await((w=(b=this.options).onSuccess)==null?void 0:w.call(b,G,l,this.state.context)),await((j=(E=D(this,Tt).config).onSettled)==null?void 0:j.call(E,G,null,this.state.variables,this.state.context,this)),await((N=(S=this.options).onSettled)==null?void 0:N.call(S,G,null,l,this.state.context)),Te(this,Kn,rl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((R=(_=D(this,Tt).config).onError)==null?void 0:R.call(_,G,l,this.state.context,this)),await((k=(T=this.options).onError)==null?void 0:k.call(T,G,l,this.state.context)),await((X=(L=D(this,Tt).config).onSettled)==null?void 0:X.call(L,void 0,G,this.state.variables,this.state.context,this)),await((H=(q=this.options).onSettled)==null?void 0:H.call(q,void 0,G,l,this.state.context)),G}finally{Te(this,Kn,rl).call(this,{type:"error",error:G})}}finally{D(this,Tt).runNext(this)}}},Vn=new WeakMap,Tt=new WeakMap,Zl=new WeakMap,Kn=new WeakSet,rl=function(l){const r=i=>{switch(l.type){case"failed":return{...i,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...i,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:l.error,failureCount:i.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pt.batch(()=>{D(this,Vn).forEach(i=>{i.onMutationUpdate(l)}),D(this,Tt).notify({mutation:this,type:"updated",action:l})})},Jb);function dx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sa,Mn,Ko,Wb,jC=(Wb=class extends yi{constructor(l={}){super();xe(this,Sa);xe(this,Mn);xe(this,Ko);this.config=l,se(this,Sa,new Set),se(this,Mn,new Map),se(this,Ko,0)}build(l,r,i){const s=new EC({mutationCache:this,mutationId:++xu(this,Ko)._,options:l.defaultMutationOptions(r),state:i});return this.add(s),s}add(l){D(this,Sa).add(l);const r=wu(l);if(typeof r=="string"){const i=D(this,Mn).get(r);i?i.push(l):D(this,Mn).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(D(this,Sa).delete(l)){const r=wu(l);if(typeof r=="string"){const i=D(this,Mn).get(r);if(i)if(i.length>1){const s=i.indexOf(l);s!==-1&&i.splice(s,1)}else i[0]===l&&D(this,Mn).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=wu(l);if(typeof r=="string"){const i=D(this,Mn).get(r),s=i==null?void 0:i.find(u=>u.state.status==="pending");return!s||s===l}else return!0}runNext(l){var i;const r=wu(l);if(typeof r=="string"){const s=(i=D(this,Mn).get(r))==null?void 0:i.find(u=>u!==l&&u.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pt.batch(()=>{D(this,Sa).forEach(l=>{this.notify({type:"removed",mutation:l})}),D(this,Sa).clear(),D(this,Mn).clear()})}getAll(){return Array.from(D(this,Sa))}find(l){const r={exact:!0,...l};return this.getAll().find(i=>M0(r,i))}findAll(l={}){return this.getAll().filter(r=>M0(l,r))}notify(l){pt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return pt.batch(()=>Promise.all(l.map(r=>r.continue().catch(yn))))}},Sa=new WeakMap,Mn=new WeakMap,Ko=new WeakMap,Wb);function wu(n){var l;return(l=n.options.scope)==null?void 0:l.id}function k0(n){return{onFetch:(l,r)=>{var y,b,w,E,j;const i=l.options,s=(w=(b=(y=l.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,u=((E=l.state.data)==null?void 0:E.pages)||[],h=((j=l.state.data)==null?void 0:j.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const N=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(l.signal.aborted?S=!0:l.signal.addEventListener("abort",()=>{S=!0}),l.signal)})},_=rx(l.options,l.fetchOptions),R=async(T,k,L)=>{if(S)return Promise.reject();if(k==null&&T.pages.length)return Promise.resolve(T);const X={client:l.client,queryKey:l.queryKey,pageParam:k,direction:L?"backward":"forward",meta:l.options.meta};N(X);const q=await _(X),{maxPages:H}=l.options,G=L?mC:hC;return{pages:G(T.pages,q,H),pageParams:G(T.pageParams,k,H)}};if(s&&u.length){const T=s==="backward",k=T?CC:O0,L={pages:u,pageParams:h},X=k(i,L);m=await R(L,X,T)}else{const T=n??u.length;do{const k=p===0?h[0]??i.initialPageParam:O0(i,m);if(p>0&&k==null)break;m=await R(m,k),p++}while(p<T)}return m};l.options.persister?l.fetchFn=()=>{var S,N;return(N=(S=l.options).persister)==null?void 0:N.call(S,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=g}}}function O0(n,{pages:l,pageParams:r}){const i=l.length-1;return l.length>0?n.getNextPageParam(l[i],l,r[i],r):void 0}function CC(n,{pages:l,pageParams:r}){var i;return l.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,l[0],l,r[0],r):void 0}var at,ul,cl,ii,oi,dl,si,ui,Ib,NC=(Ib=class{constructor(n={}){xe(this,at);xe(this,ul);xe(this,cl);xe(this,ii);xe(this,oi);xe(this,dl);xe(this,si);xe(this,ui);se(this,at,n.queryCache||new SC),se(this,ul,n.mutationCache||new jC),se(this,cl,n.defaultOptions||{}),se(this,ii,new Map),se(this,oi,new Map),se(this,dl,0)}mount(){xu(this,dl)._++,D(this,dl)===1&&(se(this,si,pm.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onFocus())})),se(this,ui,Bu.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onOnline())})))}unmount(){var n,l;xu(this,dl)._--,D(this,dl)===0&&((n=D(this,si))==null||n.call(this),se(this,si,void 0),(l=D(this,ui))==null||l.call(this),se(this,ui,void 0))}isFetching(n){return D(this,at).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return D(this,ul).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=D(this,at).build(this,l),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Jr(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(i))}getQueriesData(n){return D(this,at).findAll(n).map(({queryKey:l,state:r})=>{const i=r.data;return[l,i]})}setQueryData(n,l,r){const i=this.defaultQueryOptions({queryKey:n}),s=D(this,at).get(i.queryHash),u=s==null?void 0:s.state.data,h=dC(l,u);if(h!==void 0)return D(this,at).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,l,r){return pt.batch(()=>D(this,at).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,l,r)]))}getQueryState(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(l.queryHash))==null?void 0:r.state}removeQueries(n){const l=D(this,at);pt.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=D(this,at);return pt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const r={revert:!0,...l},i=pt.batch(()=>D(this,at).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(yn).catch(yn)}invalidateQueries(n,l={}){return pt.batch(()=>(D(this,at).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"},l)))}refetchQueries(n,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},i=pt.batch(()=>D(this,at).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let u=s.fetch(void 0,r);return r.throwOnError||(u=u.catch(yn)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(yn)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=D(this,at).build(this,l);return r.isStaleByTime(Jr(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(yn).catch(yn)}fetchInfiniteQuery(n){return n.behavior=k0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(yn).catch(yn)}ensureInfiniteQueryData(n){return n.behavior=k0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Bu.isOnline()?D(this,ul).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,at)}getMutationCache(){return D(this,ul)}getDefaultOptions(){return D(this,cl)}setDefaultOptions(n){se(this,cl,n)}setQueryDefaults(n,l){D(this,ii).set(er(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...D(this,ii).values()],r={};return l.forEach(i=>{Ho(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,l){D(this,oi).set(er(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...D(this,oi).values()],r={};return l.forEach(i=>{Ho(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={...D(this,cl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=hm(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===mm&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...D(this,cl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){D(this,at).clear(),D(this,ul).clear()}},at=new WeakMap,ul=new WeakMap,cl=new WeakMap,ii=new WeakMap,oi=new WeakMap,dl=new WeakMap,si=new WeakMap,ui=new WeakMap,Ib),qt,Le,Xo,Mt,Fl,ci,fl,hl,$o,di,fi,Pl,Jl,ml,hi,Qe,Ao,Ah,Dh,kh,Oh,zh,Lh,Uh,fx,ex,_C=(ex=class extends yi{constructor(l,r){super();xe(this,Qe);xe(this,qt);xe(this,Le);xe(this,Xo);xe(this,Mt);xe(this,Fl);xe(this,ci);xe(this,fl);xe(this,hl);xe(this,$o);xe(this,di);xe(this,fi);xe(this,Pl);xe(this,Jl);xe(this,ml);xe(this,hi,new Set);this.options=r,se(this,qt,l),se(this,hl,null),se(this,fl,Mh()),this.options.experimental_prefetchInRender||D(this,fl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Le).addObserver(this),z0(D(this,Le),this.options)?Te(this,Qe,Ao).call(this):this.updateResult(),Te(this,Qe,Oh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hh(D(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hh(D(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,zh).call(this),Te(this,Qe,Lh).call(this),D(this,Le).removeObserver(this)}setOptions(l){const r=this.options,i=D(this,Le);if(this.options=D(this,qt).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof An(this.options.enabled,D(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Qe,Uh).call(this),D(this,Le).setOptions(this.options),r._defaulted&&!qu(this.options,r)&&D(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Le),observer:this});const s=this.hasListeners();s&&L0(D(this,Le),i,this.options,r)&&Te(this,Qe,Ao).call(this),this.updateResult(),s&&(D(this,Le)!==i||An(this.options.enabled,D(this,Le))!==An(r.enabled,D(this,Le))||Jr(this.options.staleTime,D(this,Le))!==Jr(r.staleTime,D(this,Le)))&&Te(this,Qe,Ah).call(this);const u=Te(this,Qe,Dh).call(this);s&&(D(this,Le)!==i||An(this.options.enabled,D(this,Le))!==An(r.enabled,D(this,Le))||u!==D(this,ml))&&Te(this,Qe,kh).call(this,u)}getOptimisticResult(l){const r=D(this,qt).getQueryCache().build(D(this,qt),l),i=this.createResult(r,l);return TC(this,i)&&(se(this,Mt,i),se(this,ci,this.options),se(this,Fl,D(this,Le).state)),i}getCurrentResult(){return D(this,Mt)}trackResult(l,r){const i={};return Object.keys(l).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),l[s])})}),i}trackProp(l){D(this,hi).add(l)}getCurrentQuery(){return D(this,Le)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=D(this,qt).defaultQueryOptions(l),i=D(this,qt).getQueryCache().build(D(this,qt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(l){return Te(this,Qe,Ao).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Mt)))}createResult(l,r){var G;const i=D(this,Le),s=this.options,u=D(this,Mt),h=D(this,Fl),m=D(this,ci),g=l!==i?l.state:D(this,Xo),{state:y}=l;let b={...y},w=!1,E;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&z0(l,r),ce=te&&L0(l,i,r,s);(ue||ce)&&(b={...b,...cx(y.data,l.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:j,errorUpdatedAt:S,status:N}=b;E=b.data;let _=!1;if(r.placeholderData!==void 0&&E===void 0&&N==="pending"){let te;u!=null&&u.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=u.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=D(this,fi))==null?void 0:G.state.data,D(this,fi)):r.placeholderData,te!==void 0&&(N="success",E=Th(u==null?void 0:u.data,te,r),w=!0)}if(r.select&&E!==void 0&&!_)if(u&&E===(h==null?void 0:h.data)&&r.select===D(this,$o))E=D(this,di);else try{se(this,$o,r.select),E=r.select(E),E=Th(u==null?void 0:u.data,E,r),se(this,di,E),se(this,hl,null)}catch(te){se(this,hl,te)}D(this,hl)&&(j=D(this,hl),E=D(this,di),S=Date.now(),N="error");const R=b.fetchStatus==="fetching",T=N==="pending",k=N==="error",L=T&&R,X=E!==void 0,H={status:N,fetchStatus:b.fetchStatus,isPending:T,isSuccess:N==="success",isError:k,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:b.dataUpdatedAt,error:j,errorUpdatedAt:S,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:k&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:k&&X,isStale:vm(l,r),refetch:this.refetch,promise:D(this,fl)};if(this.options.experimental_prefetchInRender){const te=I=>{H.status==="error"?I.reject(H.error):H.data!==void 0&&I.resolve(H.data)},ue=()=>{const I=se(this,fl,H.promise=Mh());te(I)},ce=D(this,fl);switch(ce.status){case"pending":l.queryHash===i.queryHash&&te(ce);break;case"fulfilled":(H.status==="error"||H.data!==ce.value)&&ue();break;case"rejected":(H.status!=="error"||H.error!==ce.reason)&&ue();break}}return H}updateResult(){const l=D(this,Mt),r=this.createResult(D(this,Le),this.options);if(se(this,Fl,D(this,Le).state),se(this,ci,this.options),D(this,Fl).data!==void 0&&se(this,fi,D(this,Le)),qu(r,l))return;se(this,Mt,r);const i=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!D(this,hi).size)return!0;const h=new Set(u??D(this,hi));return this.options.throwOnError&&h.add("error"),Object.keys(D(this,Mt)).some(m=>{const p=m;return D(this,Mt)[p]!==l[p]&&h.has(p)})};Te(this,Qe,fx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,Oh).call(this)}},qt=new WeakMap,Le=new WeakMap,Xo=new WeakMap,Mt=new WeakMap,Fl=new WeakMap,ci=new WeakMap,fl=new WeakMap,hl=new WeakMap,$o=new WeakMap,di=new WeakMap,fi=new WeakMap,Pl=new WeakMap,Jl=new WeakMap,ml=new WeakMap,hi=new WeakMap,Qe=new WeakSet,Ao=function(l){Te(this,Qe,Uh).call(this);let r=D(this,Le).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(yn)),r},Ah=function(){Te(this,Qe,zh).call(this);const l=Jr(this.options.staleTime,D(this,Le));if(Il||D(this,Mt).isStale||!_h(l))return;const i=ax(D(this,Mt).dataUpdatedAt,l)+1;se(this,Pl,setTimeout(()=>{D(this,Mt).isStale||this.updateResult()},i))},Dh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Le)):this.options.refetchInterval)??!1},kh=function(l){Te(this,Qe,Lh).call(this),se(this,ml,l),!(Il||An(this.options.enabled,D(this,Le))===!1||!_h(D(this,ml))||D(this,ml)===0)&&se(this,Jl,setInterval(()=>{(this.options.refetchIntervalInBackground||pm.isFocused())&&Te(this,Qe,Ao).call(this)},D(this,ml)))},Oh=function(){Te(this,Qe,Ah).call(this),Te(this,Qe,kh).call(this,Te(this,Qe,Dh).call(this))},zh=function(){D(this,Pl)&&(clearTimeout(D(this,Pl)),se(this,Pl,void 0))},Lh=function(){D(this,Jl)&&(clearInterval(D(this,Jl)),se(this,Jl,void 0))},Uh=function(){const l=D(this,qt).getQueryCache().build(D(this,qt),this.options);if(l===D(this,Le))return;const r=D(this,Le);se(this,Le,l),se(this,Xo,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},fx=function(l){pt.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(D(this,Mt))}),D(this,qt).getQueryCache().notify({query:D(this,Le),type:"observerResultsUpdated"})})},ex);function RC(n,l){return An(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function z0(n,l){return RC(n,l)||n.state.data!==void 0&&Hh(n,l,l.refetchOnMount)}function Hh(n,l,r){if(An(l.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&vm(n,l)}return!1}function L0(n,l,r,i){return(n!==l||An(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&vm(n,r)}function vm(n,l){return An(l.enabled,n)!==!1&&n.isStaleByTime(Jr(l.staleTime,n))}function TC(n,l){return!qu(n.getCurrentResult(),l)}var pl,vl,Bt,Ea,_a,Du,qh,tx,MC=(tx=class extends yi{constructor(r,i){super();xe(this,_a);xe(this,pl);xe(this,vl);xe(this,Bt);xe(this,Ea);se(this,pl,r),this.setOptions(i),this.bindMethods(),Te(this,_a,Du).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=D(this,pl).defaultMutationOptions(r),qu(this.options,i)||D(this,pl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Bt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&er(i.mutationKey)!==er(this.options.mutationKey)?this.reset():((s=D(this,Bt))==null?void 0:s.state.status)==="pending"&&D(this,Bt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=D(this,Bt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,_a,Du).call(this),Te(this,_a,qh).call(this,r)}getCurrentResult(){return D(this,vl)}reset(){var r;(r=D(this,Bt))==null||r.removeObserver(this),se(this,Bt,void 0),Te(this,_a,Du).call(this),Te(this,_a,qh).call(this)}mutate(r,i){var s;return se(this,Ea,i),(s=D(this,Bt))==null||s.removeObserver(this),se(this,Bt,D(this,pl).getMutationCache().build(D(this,pl),this.options)),D(this,Bt).addObserver(this),D(this,Bt).execute(r)}},pl=new WeakMap,vl=new WeakMap,Bt=new WeakMap,Ea=new WeakMap,_a=new WeakSet,Du=function(){var i;const r=((i=D(this,Bt))==null?void 0:i.state)??dx();se(this,vl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},qh=function(r){pt.batch(()=>{var i,s,u,h,m,p,g,y;if(D(this,Ea)&&this.hasListeners()){const b=D(this,vl).variables,w=D(this,vl).context;(r==null?void 0:r.type)==="success"?((s=(i=D(this,Ea)).onSuccess)==null||s.call(i,r.data,b,w),(h=(u=D(this,Ea)).onSettled)==null||h.call(u,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=D(this,Ea)).onError)==null||p.call(m,r.error,b,w),(y=(g=D(this,Ea)).onSettled)==null||y.call(g,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(D(this,vl))})})},tx),rh={exports:{}},Ne={};/**
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 U0;function AC(){if(U0)return Ne;U0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function _(A,Z,ee){this.props=A,this.context=Z,this.refs=N,this.updater=ee||j}_.prototype.isReactComponent={},_.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Z,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=_.prototype;function T(A,Z,ee){this.props=A,this.context=Z,this.refs=N,this.updater=ee||j}var k=T.prototype=new R;k.constructor=T,S(k,_.prototype),k.isPureReactComponent=!0;var L=Array.isArray;function X(){}var q={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(A,Z,ee){var le=ee.ref;return{$$typeof:n,type:A,key:Z,ref:le!==void 0?le:null,props:ee}}function te(A,Z){return G(A.type,Z,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return Z[ee]})}var I=/\/+/g;function ie(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):Z.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(X,X):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,Z,ee,le,pe){var Ee=typeof A;(Ee==="undefined"||Ee==="boolean")&&(A=null);var ne=!1;if(A===null)ne=!0;else switch(Ee){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(A.$$typeof){case n:case l:ne=!0;break;case y:return ne=A._init,U(ne(A._payload),Z,ee,le,pe)}}if(ne)return pe=pe(A),ne=le===""?"."+ie(A,0):le,L(pe)?(ee="",ne!=null&&(ee=ne.replace(I,"$&/")+"/"),U(pe,Z,ee,"",function(Ce){return Ce})):pe!=null&&(ue(pe)&&(pe=te(pe,ee+(pe.key==null||A&&A.key===pe.key?"":(""+pe.key).replace(I,"$&/")+"/")+ne)),Z.push(pe)),1;ne=0;var je=le===""?".":le+":";if(L(A))for(var ge=0;ge<A.length;ge++)le=A[ge],Ee=je+ie(le,ge),ne+=U(le,Z,ee,Ee,pe);else if(ge=E(A),typeof ge=="function")for(A=ge.call(A),ge=0;!(le=A.next()).done;)le=le.value,Ee=je+ie(le,ge++),ne+=U(le,Z,ee,Ee,pe);else if(Ee==="object"){if(typeof A.then=="function")return U(re(A),Z,ee,le,pe);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ne}function W(A,Z,ee){if(A==null)return A;var le=[],pe=0;return U(A,le,"","",function(Ee){return Z.call(ee,Ee,pe++)}),le}function V(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var $=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:W,forEach:function(A,Z,ee){W(A,function(){Z.apply(this,arguments)},ee)},count:function(A){var Z=0;return W(A,function(){Z++}),Z},toArray:function(A){return W(A,function(Z){return Z})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ne.Activity=b,Ne.Children=de,Ne.Component=_,Ne.Fragment=r,Ne.Profiler=s,Ne.PureComponent=T,Ne.StrictMode=i,Ne.Suspense=p,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ne.cache=function(A){return function(){return A.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(A,Z,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=S({},A.props),pe=A.key;if(Z!=null)for(Ee in Z.key!==void 0&&(pe=""+Z.key),Z)!H.call(Z,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&Z.ref===void 0||(le[Ee]=Z[Ee]);var Ee=arguments.length-2;if(Ee===1)le.children=ee;else if(1<Ee){for(var ne=Array(Ee),je=0;je<Ee;je++)ne[je]=arguments[je+2];le.children=ne}return G(A.type,pe,le)},Ne.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:u,_context:A},A},Ne.createElement=function(A,Z,ee){var le,pe={},Ee=null;if(Z!=null)for(le in Z.key!==void 0&&(Ee=""+Z.key),Z)H.call(Z,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(pe[le]=Z[le]);var ne=arguments.length-2;if(ne===1)pe.children=ee;else if(1<ne){for(var je=Array(ne),ge=0;ge<ne;ge++)je[ge]=arguments[ge+2];pe.children=je}if(A&&A.defaultProps)for(le in ne=A.defaultProps,ne)pe[le]===void 0&&(pe[le]=ne[le]);return G(A,Ee,pe)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(A){return{$$typeof:m,render:A}},Ne.isValidElement=ue,Ne.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:V}},Ne.memo=function(A,Z){return{$$typeof:g,type:A,compare:Z===void 0?null:Z}},Ne.startTransition=function(A){var Z=q.T,ee={};q.T=ee;try{var le=A(),pe=q.S;pe!==null&&pe(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(X,$)}catch(Ee){$(Ee)}finally{Z!==null&&ee.types!==null&&(Z.types=ee.types),q.T=Z}},Ne.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ne.use=function(A){return q.H.use(A)},Ne.useActionState=function(A,Z,ee){return q.H.useActionState(A,Z,ee)},Ne.useCallback=function(A,Z){return q.H.useCallback(A,Z)},Ne.useContext=function(A){return q.H.useContext(A)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(A,Z){return q.H.useDeferredValue(A,Z)},Ne.useEffect=function(A,Z){return q.H.useEffect(A,Z)},Ne.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ne.useId=function(){return q.H.useId()},Ne.useImperativeHandle=function(A,Z,ee){return q.H.useImperativeHandle(A,Z,ee)},Ne.useInsertionEffect=function(A,Z){return q.H.useInsertionEffect(A,Z)},Ne.useLayoutEffect=function(A,Z){return q.H.useLayoutEffect(A,Z)},Ne.useMemo=function(A,Z){return q.H.useMemo(A,Z)},Ne.useOptimistic=function(A,Z){return q.H.useOptimistic(A,Z)},Ne.useReducer=function(A,Z,ee){return q.H.useReducer(A,Z,ee)},Ne.useRef=function(A){return q.H.useRef(A)},Ne.useState=function(A){return q.H.useState(A)},Ne.useSyncExternalStore=function(A,Z,ee){return q.H.useSyncExternalStore(A,Z,ee)},Ne.useTransition=function(){return q.H.useTransition()},Ne.version="19.2.3",Ne}var H0;function gm(){return H0||(H0=1,rh.exports=AC()),rh.exports}var v=gm();const lt=nx(v),hx=sC({__proto__:null,default:lt},[v]);var mx=v.createContext(void 0),ym=n=>{const l=v.useContext(mx);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},DC=({client:n,children:l})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(mx.Provider,{value:n,children:l})),px=v.createContext(!1),kC=()=>v.useContext(px);px.Provider;function OC(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var zC=v.createContext(OC()),LC=()=>v.useContext(zC);function vx(n,l){return typeof n=="function"?n(...l):!!n}function Bh(){}var UC=(n,l)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(l.isReset()||(n.retryOnMount=!1))},HC=n=>{v.useEffect(()=>{n.clearReset()},[n])},qC=({result:n,errorResetBoundary:l,throwOnError:r,query:i,suspense:s})=>n.isError&&!l.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||vx(r,[n.error,i])),BC=n=>{const l=n.staleTime;n.suspense&&(n.staleTime=typeof l=="function"?(...r)=>Math.max(l(...r),1e3):Math.max(l??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},QC=(n,l)=>n.isLoading&&n.isFetching&&!l,YC=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,q0=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function GC(n,l,r){var b,w,E,j,S;const i=ym(),s=kC(),u=LC(),h=i.defaultQueryOptions(n);(w=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||w.call(b,h),h._optimisticResults=s?"isRestoring":"optimistic",BC(h),UC(h,u),HC(u);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new l(i,h)),g=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(N=>{const _=y?p.subscribe(pt.batchCalls(N)):Bh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),YC(h,g))throw q0(h,p,u);if(qC({result:g,errorResetBoundary:u,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((j=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||j.call(E,h,g),h.experimental_prefetchInRender&&!Il&&QC(g,s)){const N=m?q0(h,p,u):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;N==null||N.catch(Bh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Gt(n,l){return GC(n,_C)}function Qh(n,l){const r=ym(),[i]=v.useState(()=>new MC(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(pt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=v.useCallback((h,m)=>{i.mutate(h,m).catch(Bh)},[i]);if(s.error&&vx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}var ih={exports:{}},No={},oh={exports:{}},sh={};/**
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 B0;function VC(){return B0||(B0=1,(function(n){function l(U,W){var V=U.length;U.push(W);e:for(;0<V;){var $=V-1>>>1,de=U[$];if(0<s(de,W))U[$]=W,U[V]=de,V=$;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var W=U[0],V=U.pop();if(V!==W){U[0]=V;e:for(var $=0,de=U.length,A=de>>>1;$<A;){var Z=2*($+1)-1,ee=U[Z],le=Z+1,pe=U[le];if(0>s(ee,V))le<de&&0>s(pe,ee)?(U[$]=pe,U[le]=V,$=le):(U[$]=ee,U[Z]=V,$=Z);else if(le<de&&0>s(pe,V))U[$]=pe,U[le]=V,$=le;else break e}}return W}function s(U,W){var V=U.sortIndex-W.sortIndex;return V!==0?V:U.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,b=null,w=3,E=!1,j=!1,S=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function k(U){for(var W=r(g);W!==null;){if(W.callback===null)i(g);else if(W.startTime<=U)i(g),W.sortIndex=W.expirationTime,l(p,W);else break;W=r(g)}}function L(U){if(S=!1,k(U),!j)if(r(p)!==null)j=!0,X||(X=!0,ce());else{var W=r(g);W!==null&&re(L,W.startTime-U)}}var X=!1,q=-1,H=5,G=-1;function te(){return N?!0:!(n.unstable_now()-G<H)}function ue(){if(N=!1,X){var U=n.unstable_now();G=U;var W=!0;try{e:{j=!1,S&&(S=!1,R(q),q=-1),E=!0;var V=w;try{t:{for(k(U),b=r(p);b!==null&&!(b.expirationTime>U&&te());){var $=b.callback;if(typeof $=="function"){b.callback=null,w=b.priorityLevel;var de=$(b.expirationTime<=U);if(U=n.unstable_now(),typeof de=="function"){b.callback=de,k(U),W=!0;break t}b===r(p)&&i(p),k(U)}else i(p);b=r(p)}if(b!==null)W=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{b=null,w=V,E=!1}W=void 0}}finally{W?ce():X=!1}}}var ce;if(typeof T=="function")ce=function(){T(ue)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ie=I.port2;I.port1.onmessage=ue,ce=function(){ie.postMessage(null)}}else ce=function(){_(ue,0)};function re(U,W){q=_(function(){U(n.unstable_now())},W)}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(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var V=w;w=W;try{return U()}finally{w=V}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(U,W){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var V=w;w=U;try{return W()}finally{w=V}},n.unstable_scheduleCallback=function(U,W,V){var $=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?$+V:$):V=$,U){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=V+de,U={id:y++,callback:W,priorityLevel:U,startTime:V,expirationTime:de,sortIndex:-1},V>$?(U.sortIndex=V,l(g,U),r(p)===null&&U===r(g)&&(S?(R(q),q=-1):S=!0,re(L,V-$))):(U.sortIndex=de,l(p,U),j||E||(j=!0,X||(X=!0,ce()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var W=w;return function(){var V=w;w=W;try{return U.apply(this,arguments)}finally{w=V}}}})(sh)),sh}var Q0;function KC(){return Q0||(Q0=1,oh.exports=VC()),oh.exports}var uh={exports:{}},Ct={};/**
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 Y0;function XC(){if(Y0)return Ct;Y0=1;var n=gm();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ct.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return u(p,g,null,y)},Ct.flushSync=function(p){var g=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=y,i.d.f()}},Ct.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},Ct.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Ct.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:E}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ct.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Ct.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ct.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Ct.requestFormReset=function(p){i.d.r(p)},Ct.unstable_batchedUpdates=function(p,g){return p(g)},Ct.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},Ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ct.version="19.2.3",Ct}var G0;function gx(){if(G0)return uh.exports;G0=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(l){console.error(l)}}return n(),uh.exports=XC(),uh.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 V0;function $C(){if(V0)return No;V0=1;var n=KC(),l=gm(),r=gx();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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 p(e){if(u(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,o=t;;){var c=a.return;if(c===null)break;var f=c.alternate;if(f===null){if(o=c.return,o!==null){a=o;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===a)return p(c),e;if(f===o)return p(c),t;f=f.sibling}throw Error(i(188))}if(a.return!==o.return)a=c,o=f;else{for(var x=!1,C=c.child;C;){if(C===a){x=!0,a=c,o=f;break}if(C===o){x=!0,o=c,a=f;break}C=C.sibling}if(!x){for(C=f.child;C;){if(C===a){x=!0,a=f,o=c;break}if(C===o){x=!0,o=f,a=c;break}C=C.sibling}if(!x)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?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,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case N:return"StrictMode";case L:return"Suspense";case X:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case T:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case k: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:ie(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},$=[],de=-1;function A(e){return{current:e}}function Z(e){0>de||(e.current=$[de],$[de]=null,de--)}function ee(e,t){de++,$[de]=e.current,e.current=t}var le=A(null),pe=A(null),Ee=A(null),ne=A(null);function je(e,t){switch(ee(Ee,t),ee(pe,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fy(t),e=Py(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(le),ee(le,e)}function ge(){Z(le),Z(pe),Z(Ee)}function Ce(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,a=Py(t,e.type);t!==a&&(ee(pe,e),ee(le,a))}function Ue(e){pe.current===e&&(Z(le),Z(pe)),ne.current===e&&(Z(ne),wo._currentValue=V)}var Ye,jt;function Vt(e){if(Ye===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",jt=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ye+e+jt}var ea=!1;function ta(e,t){if(!e||ea)return"";ea=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(K){var Y=K}Reflect.construct(e,[],J)}else{try{J.call()}catch(K){Y=K}e.call(J.prototype)}}else{try{throw Error()}catch(K){Y=K}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(K){if(K&&Y&&typeof K.stack=="string")return[K.stack,Y.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),x=f[0],C=f[1];if(x&&C){var M=x.split(`
44
+ `),Q=C.split(`
45
+ `);for(c=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;if(o===M.length||c===Q.length)for(o=M.length-1,c=Q.length-1;1<=o&&0<=c&&M[o]!==Q[c];)c--;for(;1<=o&&0<=c;o--,c--)if(M[o]!==Q[c]){if(o!==1||c!==1)do if(o--,c--,0>c||M[o]!==Q[c]){var F=`
46
+ `+M[o].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=o&&0<=c);break}}}finally{ea=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Vt(a):""}function Bc(e,t){switch(e.tag){case 26:case 27:case 5:return Vt(e.type);case 16:return Vt("Lazy");case 13:return e.child!==t&&t!==null?Vt("Suspense Fallback"):Vt("Suspense");case 19:return Vt("SuspenseList");case 0:case 15:return ta(e.type,!1);case 11:return ta(e.type.render,!1);case 1:return ta(e.type,!0);case 31:return Vt("Activity");default:return""}}function ns(e){try{var t="",a=null;do t+=Bc(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}var Da=Object.prototype.hasOwnProperty,Qc=n.unstable_scheduleCallback,Yc=n.unstable_cancelCallback,BE=n.unstable_shouldYield,QE=n.unstable_requestPaint,Kt=n.unstable_now,YE=n.unstable_getCurrentPriorityLevel,_p=n.unstable_ImmediatePriority,Rp=n.unstable_UserBlockingPriority,as=n.unstable_NormalPriority,GE=n.unstable_LowPriority,Tp=n.unstable_IdlePriority,VE=n.log,KE=n.unstable_setDisableYieldValue,Di=null,Xt=null;function ka(e){if(typeof VE=="function"&&KE(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Di,e)}catch{}}var $t=Math.clz32?Math.clz32:ZE,XE=Math.log,$E=Math.LN2;function ZE(e){return e>>>=0,e===0?32:31-(XE(e)/$E|0)|0}var ls=256,rs=262144,is=4194304;function jl(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 os(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var c=0,f=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var C=o&134217727;return C!==0?(o=C&~f,o!==0?c=jl(o):(x&=C,x!==0?c=jl(x):a||(a=C&~e,a!==0&&(c=jl(a))))):(C=o&~f,C!==0?c=jl(C):x!==0?c=jl(x):a||(a=o&~e,a!==0&&(c=jl(a)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:c}function ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function FE(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 Mp(){var e=is;return is<<=1,(is&62914560)===0&&(is=4194304),e}function Gc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Oi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function PE(e,t,a,o,c,f){var x=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var C=e.entanglements,M=e.expirationTimes,Q=e.hiddenUpdates;for(a=x&~a;0<a;){var F=31-$t(a),J=1<<F;C[F]=0,M[F]=-1;var Y=Q[F];if(Y!==null)for(Q[F]=null,F=0;F<Y.length;F++){var K=Y[F];K!==null&&(K.lane&=-536870913)}a&=~J}o!==0&&Ap(e,o,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Ap(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-$t(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Dp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-$t(a),c=1<<o;c&t|e[o]&t&&(e[o]|=t),a&=~c}}function kp(e,t){var a=t&-t;return a=(a&42)!==0?1:Vc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Vc(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 Kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Op(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:b0(e.type))}function zp(e,t){var a=W.p;try{return W.p=e,t()}finally{W.p=a}}var Oa=Math.random().toString(36).slice(2),bt="__reactFiber$"+Oa,Dt="__reactProps$"+Oa,ur="__reactContainer$"+Oa,Xc="__reactEvents$"+Oa,JE="__reactListeners$"+Oa,WE="__reactHandles$"+Oa,Lp="__reactResources$"+Oa,zi="__reactMarker$"+Oa;function $c(e){delete e[bt],delete e[Dt],delete e[Xc],delete e[JE],delete e[WE]}function cr(e){var t=e[bt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ur]||a[bt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=a0(e);e!==null;){if(a=e[bt])return a;e=a0(e)}return t}e=a,a=e.parentNode}return null}function dr(e){if(e=e[bt]||e[ur]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Li(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function fr(e){var t=e[Lp];return t||(t=e[Lp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[zi]=!0}var Up=new Set,Hp={};function Cl(e,t){hr(e,t),hr(e+"Capture",t)}function hr(e,t){for(Hp[e]=t,e=0;e<t.length;e++)Up.add(t[e])}var IE=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]*$"),qp={},Bp={};function ej(e){return Da.call(Bp,e)?!0:Da.call(qp,e)?!1:IE.test(e)?Bp[e]=!0:(qp[e]=!0,!1)}function ss(e,t,a){if(ej(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function us(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tj(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){a=""+x,f.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zc(e){if(!e._valueTracker){var t=Qp(e)?"checked":"value";e._valueTracker=tj(e,t,""+e[t])}}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Qp(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function cs(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 nj=/[\n"\\]/g;function sn(e){return e.replace(nj,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fc(e,t,a,o,c,f,x,C){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+on(t)):e.value!==""+on(t)&&(e.value=""+on(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Pc(e,x,on(t)):a!=null?Pc(e,x,on(a)):o!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+on(C):e.removeAttribute("name")}function Gp(e,t,a,o,c,f,x,C){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Zc(e);return}a=a!=null?""+on(a):"",t=t!=null?""+on(t):a,C||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=C?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Zc(e)}function Pc(e,t,a){t==="number"&&cs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function mr(e,t,a,o){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&o&&(e[a].defaultSelected=!0)}else{for(a=""+on(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Vp(e,t,a){if(t!=null&&(t=""+on(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+on(a):""}function Kp(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=on(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Zc(e)}function pr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var aj=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 Xp(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||aj.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function $p(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&a[c]!==o&&Xp(e,c,o)}else for(var f in t)t.hasOwnProperty(f)&&Xp(e,f,t[f])}function Jc(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 lj=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"]]),rj=/^[\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 ds(e){return rj.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function aa(){}var Wc=null;function Ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vr=null,gr=null;function Zp(e){var t=dr(e);if(t&&(e=t.stateNode)){var a=e[Dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var c=o[Dt]||null;if(!c)throw Error(i(90));Fc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Yp(o)}break e;case"textarea":Vp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&mr(e,!!a.multiple,t,!1)}}}var ed=!1;function Fp(e,t,a){if(ed)return e(t,a);ed=!0;try{var o=e(t);return o}finally{if(ed=!1,(vr!==null||gr!==null)&&(Ws(),vr&&(t=vr,e=gr,gr=vr=null,Zp(t),e)))for(t=0;t<e.length;t++)Zp(e[t])}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Dt]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=!1;if(la)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){td=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{td=!1}var za=null,nd=null,fs=null;function Pp(){if(fs)return fs;var e,t=nd,a=t.length,o,c="value"in za?za.value:za.textContent,f=c.length;for(e=0;e<a&&t[e]===c[e];e++);var x=a-e;for(o=1;o<=x&&t[a-o]===c[f-o];o++);return fs=c.slice(e,1<o?1-o:void 0)}function hs(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 ms(){return!0}function Jp(){return!1}function kt(e){function t(a,o,c,f,x){this._reactName=a,this._targetInst=c,this.type=o,this.nativeEvent=f,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(a=e[C],this[C]=a?a(f):f[C]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ms:Jp,this.isPropagationStopped=Jp,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=kt(Nl),qi=b({},Nl,{view:0,detail:0}),ij=kt(qi),ad,ld,Bi,vs=b({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==Bi&&(Bi&&e.type==="mousemove"?(ad=e.screenX-Bi.screenX,ld=e.screenY-Bi.screenY):ld=ad=0,Bi=e),ad)},movementY:function(e){return"movementY"in e?e.movementY:ld}}),Wp=kt(vs),oj=b({},vs,{dataTransfer:0}),sj=kt(oj),uj=b({},qi,{relatedTarget:0}),rd=kt(uj),cj=b({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),dj=kt(cj),fj=b({},Nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hj=kt(fj),mj=b({},Nl,{data:0}),Ip=kt(mj),pj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vj={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"},gj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gj[e])?!!t[e]:!1}function id(){return yj}var bj=b({},qi,{key:function(e){if(e.key){var t=pj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xj=kt(bj),wj=b({},vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ev=kt(wj),Sj=b({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),Ej=kt(Sj),jj=b({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cj=kt(jj),Nj=b({},vs,{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}),_j=kt(Nj),Rj=b({},Nl,{newState:0,oldState:0}),Tj=kt(Rj),Mj=[9,13,27,32],od=la&&"CompositionEvent"in window,Qi=null;la&&"documentMode"in document&&(Qi=document.documentMode);var Aj=la&&"TextEvent"in window&&!Qi,tv=la&&(!od||Qi&&8<Qi&&11>=Qi),nv=" ",av=!1;function lv(e,t){switch(e){case"keyup":return Mj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function Dj(e,t){switch(e){case"compositionend":return rv(t);case"keypress":return t.which!==32?null:(av=!0,nv);case"textInput":return e=t.data,e===nv&&av?null:e;default:return null}}function kj(e,t){if(yr)return e==="compositionend"||!od&&lv(e,t)?(e=Pp(),fs=nd=za=null,yr=!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 tv&&t.locale!=="ko"?null:t.data;default:return null}}var Oj={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 iv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Oj[e.type]:t==="textarea"}function ov(e,t,a,o){vr?gr?gr.push(o):gr=[o]:vr=o,t=ru(t,"onChange"),0<t.length&&(a=new ps("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Yi=null,Gi=null;function zj(e){Gy(e,0)}function gs(e){var t=Li(e);if(Yp(t))return e}function sv(e,t){if(e==="change")return t}var uv=!1;if(la){var sd;if(la){var ud="oninput"in document;if(!ud){var cv=document.createElement("div");cv.setAttribute("oninput","return;"),ud=typeof cv.oninput=="function"}sd=ud}else sd=!1;uv=sd&&(!document.documentMode||9<document.documentMode)}function dv(){Yi&&(Yi.detachEvent("onpropertychange",fv),Gi=Yi=null)}function fv(e){if(e.propertyName==="value"&&gs(Gi)){var t=[];ov(t,Gi,e,Ic(e)),Fp(zj,t)}}function Lj(e,t,a){e==="focusin"?(dv(),Yi=t,Gi=a,Yi.attachEvent("onpropertychange",fv)):e==="focusout"&&dv()}function Uj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gs(Gi)}function Hj(e,t){if(e==="click")return gs(t)}function qj(e,t){if(e==="input"||e==="change")return gs(t)}function Bj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:Bj;function Vi(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var c=a[o];if(!Da.call(t,c)||!Zt(e[c],t[c]))return!1}return!0}function hv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mv(e,t){var a=hv(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=hv(a)}}function pv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=cs(e.document)}return t}function cd(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 Qj=la&&"documentMode"in document&&11>=document.documentMode,br=null,dd=null,Ki=null,fd=!1;function gv(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fd||br==null||br!==cs(o)||(o=br,"selectionStart"in o&&cd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ki&&Vi(Ki,o)||(Ki=o,o=ru(dd,"onSelect"),0<o.length&&(t=new ps("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=br)))}function _l(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var xr={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},hd={},yv={};la&&(yv=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function Rl(e){if(hd[e])return hd[e];if(!xr[e])return e;var t=xr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in yv)return hd[e]=t[a];return e}var bv=Rl("animationend"),xv=Rl("animationiteration"),wv=Rl("animationstart"),Yj=Rl("transitionrun"),Gj=Rl("transitionstart"),Vj=Rl("transitioncancel"),Sv=Rl("transitionend"),Ev=new Map,md="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(" ");md.push("scrollEnd");function Cn(e,t){Ev.set(e,t),Cl(t,[e])}var ys=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)},un=[],wr=0,pd=0;function bs(){for(var e=wr,t=pd=wr=0;t<e;){var a=un[t];un[t++]=null;var o=un[t];un[t++]=null;var c=un[t];un[t++]=null;var f=un[t];if(un[t++]=null,o!==null&&c!==null){var x=o.pending;x===null?c.next=c:(c.next=x.next,x.next=c),o.pending=c}f!==0&&jv(a,c,f)}}function xs(e,t,a,o){un[wr++]=e,un[wr++]=t,un[wr++]=a,un[wr++]=o,pd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function vd(e,t,a,o){return xs(e,t,a,o),ws(e)}function Tl(e,t){return xs(e,null,null,t),ws(e)}function jv(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var c=!1,f=e.return;f!==null;)f.childLanes|=a,o=f.alternate,o!==null&&(o.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-$t(a),e=f.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=a|536870912),f):null}function ws(e){if(50<mo)throw mo=0,Nf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sr={};function Kj(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,a,o){return new Kj(e,t,a,o)}function gd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var a=e.alternate;return a===null?(a=Ft(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Cv(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ss(e,t,a,o,c,f){var x=0;if(o=e,typeof e=="function")gd(e)&&(x=1);else if(typeof e=="string")x=P2(e,a,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Ft(31,a,t,c),e.elementType=G,e.lanes=f,e;case S:return Ml(a.children,c,f,t);case N:x=8,c|=24;break;case _:return e=Ft(12,a,t,c|2),e.elementType=_,e.lanes=f,e;case L:return e=Ft(13,a,t,c),e.elementType=L,e.lanes=f,e;case X:return e=Ft(19,a,t,c),e.elementType=X,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:x=10;break e;case R:x=9;break e;case k:x=11;break e;case q:x=14;break e;case H:x=16,o=null;break e}x=29,a=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=Ft(x,a,t,c),t.elementType=e,t.type=o,t.lanes=f,t}function Ml(e,t,a,o){return e=Ft(7,e,o,t),e.lanes=a,e}function yd(e,t,a){return e=Ft(6,e,null,t),e.lanes=a,e}function Nv(e){var t=Ft(18,null,null,0);return t.stateNode=e,t}function bd(e,t,a){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _v=new WeakMap;function cn(e,t){if(typeof e=="object"&&e!==null){var a=_v.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ns(t)},_v.set(e,t),t)}return{value:e,source:t,stack:ns(t)}}var Er=[],jr=0,Es=null,Xi=0,dn=[],fn=0,La=null,qn=1,Bn="";function ia(e,t){Er[jr++]=Xi,Er[jr++]=Es,Es=e,Xi=t}function Rv(e,t,a){dn[fn++]=qn,dn[fn++]=Bn,dn[fn++]=La,La=e;var o=qn;e=Bn;var c=32-$t(o)-1;o&=~(1<<c),a+=1;var f=32-$t(t)+c;if(30<f){var x=c-c%5;f=(o&(1<<x)-1).toString(32),o>>=x,c-=x,qn=1<<32-$t(t)+c|a<<c|o,Bn=f+e}else qn=1<<f|a<<c|o,Bn=e}function xd(e){e.return!==null&&(ia(e,1),Rv(e,1,0))}function wd(e){for(;e===Es;)Es=Er[--jr],Er[jr]=null,Xi=Er[--jr],Er[jr]=null;for(;e===La;)La=dn[--fn],dn[fn]=null,Bn=dn[--fn],dn[fn]=null,qn=dn[--fn],dn[fn]=null}function Tv(e,t){dn[fn++]=qn,dn[fn++]=Bn,dn[fn++]=La,qn=t.id,Bn=t.overflow,La=e}var xt=null,Fe=null,ze=!1,Ua=null,hn=!1,Sd=Error(i(519));function Ha(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(cn(t,e)),Sd}function Mv(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[bt]=e,t[Dt]=o,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<vo.length;a++)De(vo[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Gp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Kp(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||$y(t.textContent,a)?(o.popover!=null&&(De("beforetoggle",t),De("toggle",t)),o.onScroll!=null&&De("scroll",t),o.onScrollEnd!=null&&De("scrollend",t),o.onClick!=null&&(t.onclick=aa),t=!0):t=!1,t||Ha(e,!0)}function Av(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:xt=xt.return}}function Cr(e){if(e!==xt)return!1;if(!ze)return Av(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qf(e.type,e.memoizedProps)),a=!a),a&&Fe&&Ha(e),Av(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=n0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=n0(e)}else t===27?(t=Fe,Wa(e.type)?(e=Xf,Xf=null,Fe=e):Fe=t):Fe=xt?pn(e.stateNode.nextSibling):null;return!0}function Al(){Fe=xt=null,ze=!1}function Ed(){var e=Ua;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Ua=null),e}function $i(e){Ua===null?Ua=[e]:Ua.push(e)}var jd=A(null),Dl=null,oa=null;function qa(e,t,a){ee(jd,t._currentValue),t._currentValue=a}function sa(e){e._currentValue=jd.current,Z(jd)}function Cd(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function Nd(e,t,a,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var x=c.child;f=f.firstContext;e:for(;f!==null;){var C=f;f=c;for(var M=0;M<t.length;M++)if(C.context===t[M]){f.lanes|=a,C=f.alternate,C!==null&&(C.lanes|=a),Cd(f.return,a,e),o||(x=null);break e}f=C.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(i(341));x.lanes|=a,f=x.alternate,f!==null&&(f.lanes|=a),Cd(x,a,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function Nr(e,t,a,o){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var C=c.type;Zt(c.pendingProps.value,x.value)||(e!==null?e.push(C):e=[C])}}else if(c===ne.current){if(x=c.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(wo):e=[wo])}c=c.return}e!==null&&Nd(t,e,a,o),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Dl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return Dv(Dl,e)}function Cs(e,t){return Dl===null&&kl(e),Dv(e,t)}function Dv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(i(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var Xj=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},$j=n.unstable_scheduleCallback,Zj=n.unstable_NormalPriority,st={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _d(){return{controller:new Xj,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&$j(Zj,function(){e.controller.abort()})}var Fi=null,Rd=0,_r=0,Rr=null;function Fj(e,t){if(Fi===null){var a=Fi=[];Rd=0,_r=Df(),Rr={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Rd++,t.then(kv,kv),t}function kv(){if(--Rd===0&&Fi!==null){Rr!==null&&(Rr.status="fulfilled");var e=Fi;Fi=null,_r=0,Rr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pj(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),o}var Ov=U.S;U.S=function(e,t){gy=Kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fj(e,t),Ov!==null&&Ov(e,t)};var Ol=A(null);function Td(){var e=Ol.current;return e!==null?e:Ze.pooledCache}function Ns(e,t){t===null?ee(Ol,Ol.current):ee(Ol,t.pool)}function zv(){var e=Td();return e===null?null:{parent:st._currentValue,pool:e}}var Tr=Error(i(460)),Md=Error(i(474)),_s=Error(i(542)),Rs={then:function(){}};function Lv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uv(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(aa,aa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qv(e),e;default:if(typeof t.status=="string")t.then(aa,aa);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qv(e),e}throw Ll=t,Tr}}function zl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ll=a,Tr):a}}var Ll=null;function Hv(){if(Ll===null)throw Error(i(459));var e=Ll;return Ll=null,e}function qv(e){if(e===Tr||e===_s)throw Error(i(483))}var Mr=null,Pi=0;function Ts(e){var t=Pi;return Pi+=1,Mr===null&&(Mr=[]),Uv(Mr,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ms(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bv(e){function t(z,O){if(e){var B=z.deletions;B===null?(z.deletions=[O],z.flags|=16):B.push(O)}}function a(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function o(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function c(z,O){return z=ra(z,O),z.index=0,z.sibling=null,z}function f(z,O,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<O?(z.flags|=67108866,O):B):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function C(z,O,B,P){return O===null||O.tag!==6?(O=yd(B,z.mode,P),O.return=z,O):(O=c(O,B),O.return=z,O)}function M(z,O,B,P){var be=B.type;return be===S?F(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type)?(O=c(O,B.props),Ji(O,B),O.return=z,O):(O=Ss(B.type,B.key,B.props,null,z.mode,P),Ji(O,B),O.return=z,O)}function Q(z,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=bd(B,z.mode,P),O.return=z,O):(O=c(O,B.children||[]),O.return=z,O)}function F(z,O,B,P,be){return O===null||O.tag!==7?(O=Ml(B,z.mode,P,be),O.return=z,O):(O=c(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=yd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return B=Ss(O.type,O.key,O.props,null,z.mode,B),Ji(B,O),B.return=z,B;case j:return O=bd(O,z.mode,B),O.return=z,O;case H:return O=zl(O),J(z,O,B)}if(re(O)||ce(O))return O=Ml(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Ts(O),B);if(O.$$typeof===T)return J(z,Cs(z,O),B);Ms(z,O)}return null}function Y(z,O,B,P){var be=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:C(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case E:return B.key===be?M(z,O,B,P):null;case j:return B.key===be?Q(z,O,B,P):null;case H:return B=zl(B),Y(z,O,B,P)}if(re(B)||ce(B))return be!==null?null:F(z,O,B,P,null);if(typeof B.then=="function")return Y(z,O,Ts(B),P);if(B.$$typeof===T)return Y(z,O,Cs(z,B),P);Ms(z,B)}return null}function K(z,O,B,P,be){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,C(O,z,""+P,be);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case E:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,be);case j:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,be);case H:return P=zl(P),K(z,O,B,P,be)}if(re(P)||ce(P))return z=z.get(B)||null,F(O,z,P,be,null);if(typeof P.then=="function")return K(z,O,B,Ts(P),be);if(P.$$typeof===T)return K(z,O,B,Cs(O,P),be);Ms(O,P)}return null}function fe(z,O,B,P){for(var be=null,He=null,ve=O,Re=O=0,Oe=null;ve!==null&&Re<B.length;Re++){ve.index>Re?(Oe=ve,ve=null):Oe=ve.sibling;var qe=Y(z,ve,B[Re],P);if(qe===null){ve===null&&(ve=Oe);break}e&&ve&&qe.alternate===null&&t(z,ve),O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe,ve=Oe}if(Re===B.length)return a(z,ve),ze&&ia(z,Re),be;if(ve===null){for(;Re<B.length;Re++)ve=J(z,B[Re],P),ve!==null&&(O=f(ve,O,Re),He===null?be=ve:He.sibling=ve,He=ve);return ze&&ia(z,Re),be}for(ve=o(ve);Re<B.length;Re++)Oe=K(ve,z,Re,B[Re],P),Oe!==null&&(e&&Oe.alternate!==null&&ve.delete(Oe.key===null?Re:Oe.key),O=f(Oe,O,Re),He===null?be=Oe:He.sibling=Oe,He=Oe);return e&&ve.forEach(function(al){return t(z,al)}),ze&&ia(z,Re),be}function Se(z,O,B,P){if(B==null)throw Error(i(151));for(var be=null,He=null,ve=O,Re=O=0,Oe=null,qe=B.next();ve!==null&&!qe.done;Re++,qe=B.next()){ve.index>Re?(Oe=ve,ve=null):Oe=ve.sibling;var al=Y(z,ve,qe.value,P);if(al===null){ve===null&&(ve=Oe);break}e&&ve&&al.alternate===null&&t(z,ve),O=f(al,O,Re),He===null?be=al:He.sibling=al,He=al,ve=Oe}if(qe.done)return a(z,ve),ze&&ia(z,Re),be;if(ve===null){for(;!qe.done;Re++,qe=B.next())qe=J(z,qe.value,P),qe!==null&&(O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe);return ze&&ia(z,Re),be}for(ve=o(ve);!qe.done;Re++,qe=B.next())qe=K(ve,z,Re,qe.value,P),qe!==null&&(e&&qe.alternate!==null&&ve.delete(qe.key===null?Re:qe.key),O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe);return e&&ve.forEach(function(oC){return t(z,oC)}),ze&&ia(z,Re),be}function $e(z,O,B,P){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case E:e:{for(var be=B.key;O!==null;){if(O.key===be){if(be=B.type,be===S){if(O.tag===7){a(z,O.sibling),P=c(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type){a(z,O.sibling),P=c(O,B.props),Ji(P,B),P.return=z,z=P;break e}a(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Ml(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=Ss(B.type,B.key,B.props,null,z.mode,P),Ji(P,B),P.return=z,z=P)}return x(z);case j:e:{for(be=B.key;O!==null;){if(O.key===be)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){a(z,O.sibling),P=c(O,B.children||[]),P.return=z,z=P;break e}else{a(z,O);break}else t(z,O);O=O.sibling}P=bd(B,z.mode,P),P.return=z,z=P}return x(z);case H:return B=zl(B),$e(z,O,B,P)}if(re(B))return fe(z,O,B,P);if(ce(B)){if(be=ce(B),typeof be!="function")throw Error(i(150));return B=be.call(B),Se(z,O,B,P)}if(typeof B.then=="function")return $e(z,O,Ts(B),P);if(B.$$typeof===T)return $e(z,O,Cs(z,B),P);Ms(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(a(z,O.sibling),P=c(O,B),P.return=z,z=P):(a(z,O),P=yd(B,z.mode,P),P.return=z,z=P),x(z)):a(z,O)}return function(z,O,B,P){try{Pi=0;var be=$e(z,O,B,P);return Mr=null,be}catch(ve){if(ve===Tr||ve===_s)throw ve;var He=Ft(29,ve,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Ul=Bv(!0),Qv=Bv(!1),Ba=!1;function Ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dd(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 Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=ws(e),jv(e,null,a),t}return xs(e,o,t,a),ws(e)}function Wi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Dp(e,a)}}function kd(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var c=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?c=f=x:f=f.next=x,a=a.next}while(a!==null);f===null?c=f=t:f=f.next=t}else c=f=t;a={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Od=!1;function Ii(){if(Od){var e=Rr;if(e!==null)throw e}}function eo(e,t,a,o){Od=!1;var c=e.updateQueue;Ba=!1;var f=c.firstBaseUpdate,x=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var M=C,Q=M.next;M.next=null,x===null?f=Q:x.next=Q,x=M;var F=e.alternate;F!==null&&(F=F.updateQueue,C=F.lastBaseUpdate,C!==x&&(C===null?F.firstBaseUpdate=Q:C.next=Q,F.lastBaseUpdate=M))}if(f!==null){var J=c.baseState;x=0,F=Q=M=null,C=f;do{var Y=C.lane&-536870913,K=Y!==C.lane;if(K?(ke&Y)===Y:(o&Y)===Y){Y!==0&&Y===_r&&(Od=!0),F!==null&&(F=F.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var fe=e,Se=C;Y=t;var $e=a;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){J=fe.call($e,J,Y);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Se.payload,Y=typeof fe=="function"?fe.call($e,J,Y):fe,Y==null)break e;J=b({},J,Y);break e;case 2:Ba=!0}}Y=C.callback,Y!==null&&(e.flags|=64,K&&(e.flags|=8192),K=c.callbacks,K===null?c.callbacks=[Y]:K.push(Y))}else K={lane:Y,tag:C.tag,payload:C.payload,callback:C.callback,next:null},F===null?(Q=F=K,M=J):F=F.next=K,x|=Y;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;K=C,C=K.next,K.next=null,c.lastBaseUpdate=K,c.shared.pending=null}}while(!0);F===null&&(M=J),c.baseState=M,c.firstBaseUpdate=Q,c.lastBaseUpdate=F,f===null&&(c.shared.lanes=0),$a|=x,e.lanes=x,e.memoizedState=J}}function Yv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Gv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Yv(a[e],t)}var Ar=A(null),As=A(0);function Vv(e,t){e=ga,ee(As,e),ee(Ar,t),ga=e|t.baseLanes}function zd(){ee(As,ga),ee(Ar,Ar.current)}function Ld(){ga=As.current,Z(Ar),Z(As)}var Pt=A(null),mn=null;function Ga(e){var t=e.alternate;ee(it,it.current&1),ee(Pt,e),mn===null&&(t===null||Ar.current!==null||t.memoizedState!==null)&&(mn=e)}function Ud(e){ee(it,it.current),ee(Pt,e),mn===null&&(mn=e)}function Kv(e){e.tag===22?(ee(it,it.current),ee(Pt,e),mn===null&&(mn=e)):Va()}function Va(){ee(it,it.current),ee(Pt,Pt.current)}function Jt(e){Z(Pt),mn===e&&(mn=null),Z(it)}var it=A(0);function Ds(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vf(a)||Kf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=0,_e=null,Ke=null,ut=null,ks=!1,Dr=!1,Hl=!1,Os=0,to=0,kr=null,Jj=0;function tt(){throw Error(i(321))}function Hd(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Zt(e[a],t[a]))return!1;return!0}function qd(e,t,a,o,c,f){return ua=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Rg:ef,Hl=!1,f=a(o,c),Hl=!1,Dr&&(f=$v(t,a,o,c)),Xv(e),f}function Xv(e){U.H=lo;var t=Ke!==null&&Ke.next!==null;if(ua=0,ut=Ke=_e=null,ks=!1,to=0,kr=null,t)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&js(e)&&(ct=!0))}function $v(e,t,a,o){_e=e;var c=0;do{if(Dr&&(kr=null),to=0,Dr=!1,25<=c)throw Error(i(301));if(c+=1,ut=Ke=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Tg,f=t(a,o)}while(Dr);return f}function Wj(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?no(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(_e.flags|=1024),t}function Bd(){var e=Os!==0;return Os=0,e}function Qd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Yd(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}ua=0,ut=Ke=_e=null,Dr=!1,to=Os=0,kr=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?_e.memoizedState=ut=e:ut=ut.next=e,ut}function ot(){if(Ke===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ut===null?_e.memoizedState:ut.next;if(t!==null)ut=t,Ke=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ut===null?_e.memoizedState=ut=e:ut=ut.next=e}return ut}function zs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function no(e){var t=to;return to+=1,kr===null&&(kr=[]),e=Uv(kr,e,t),t=_e,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Rg:ef),e}function Ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return no(e);if(e.$$typeof===T)return wt(e)}throw Error(i(438,String(e)))}function Gd(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=zs(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=te;return t.index++,a}function ca(e,t){return typeof t=="function"?t(e):t}function Us(e){var t=ot();return Vd(t,Ke,e)}function Vd(e,t,a){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var c=e.baseQueue,f=o.pending;if(f!==null){if(c!==null){var x=c.next;c.next=f.next,f.next=x}t.baseQueue=c=f,o.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var C=x=null,M=null,Q=t,F=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(ke&J)===J:(ua&J)===J){var Y=Q.revertLane;if(Y===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),J===_r&&(F=!0);else if((ua&Y)===Y){Q=Q.next,Y===_r&&(F=!0);continue}else J={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(C=M=J,x=f):M=M.next=J,_e.lanes|=Y,$a|=Y;J=Q.action,Hl&&a(f,J),f=Q.hasEagerState?Q.eagerState:a(f,J)}else Y={lane:J,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(C=M=Y,x=f):M=M.next=Y,_e.lanes|=J,$a|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?x=f:M.next=C,!Zt(f,e.memoizedState)&&(ct=!0,F&&(a=Rr,a!==null)))throw a;e.memoizedState=f,e.baseState=x,e.baseQueue=M,o.lastRenderedState=f}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Kd(e){var t=ot(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var o=a.dispatch,c=a.pending,f=t.memoizedState;if(c!==null){a.pending=null;var x=c=c.next;do f=e(f,x.action),x=x.next;while(x!==c);Zt(f,t.memoizedState)||(ct=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,o]}function Zv(e,t,a){var o=_e,c=ot(),f=ze;if(f){if(a===void 0)throw Error(i(407));a=a()}else a=t();var x=!Zt((Ke||c).memoizedState,a);if(x&&(c.memoizedState=a,ct=!0),c=c.queue,Zd(Jv.bind(null,o,c,e),[e]),c.getSnapshot!==t||x||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,Or(9,{destroy:void 0},Pv.bind(null,o,c,a,t),null),Ze===null)throw Error(i(349));f||(ua&127)!==0||Fv(o,t,a)}return a}function Fv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=zs(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Pv(e,t,a,o){t.value=a,t.getSnapshot=o,Wv(t)&&Iv(e)}function Jv(e,t,a){return a(function(){Wv(t)&&Iv(e)})}function Wv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Zt(e,a)}catch{return!0}}function Iv(e){var t=Tl(e,2);t!==null&&Ht(t,e,2)}function Xd(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),Hl){ka(!0);try{a()}finally{ka(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function eg(e,t,a,o){return e.baseState=a,Vd(e,Ke,typeof o=="function"?o:ca)}function Ij(e,t,a,o,c){if(Bs(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};U.T!==null?a(!0):f.isTransition=!1,o(f),a=t.pending,a===null?(f.next=t.pending=f,tg(t,f)):(f.next=a.next,t.pending=a.next=f)}}function tg(e,t){var a=t.action,o=t.payload,c=e.state;if(t.isTransition){var f=U.T,x={};U.T=x;try{var C=a(c,o),M=U.S;M!==null&&M(x,C),ng(e,t,C)}catch(Q){$d(e,t,Q)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=a(c,o),ng(e,t,f)}catch(Q){$d(e,t,Q)}}function ng(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){ag(e,t,o)},function(o){return $d(e,t,o)}):ag(e,t,a)}function ag(e,t,a){t.status="fulfilled",t.value=a,lg(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,tg(e,a)))}function $d(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,lg(t),t=t.next;while(t!==o)}e.action=null}function lg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rg(e,t){return t}function ig(e,t){if(ze){var a=Ze.formState;if(a!==null){e:{var o=_e;if(ze){if(Fe){t:{for(var c=Fe,f=hn;c.nodeType!==8;){if(!f){c=null;break t}if(c=pn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Fe=pn(c.nextSibling),o=c.data==="F!";break e}}Ha(o)}o=!1}o&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rg,lastRenderedState:t},a.queue=o,a=Cg.bind(null,_e,o),o.dispatch=a,o=Xd(!1),f=Id.bind(null,_e,!1,o.queue),o=Rt(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,a=Ij.bind(null,_e,c,f,a),c.dispatch=a,o.memoizedState=e,[t,a,!1]}function og(e){var t=ot();return sg(t,Ke,e)}function sg(e,t,a){if(t=Vd(e,t,rg)[0],e=Us(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=no(t)}catch(x){throw x===Tr?_s:x}else o=t;t=ot();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,Or(9,{destroy:void 0},e2.bind(null,c,a),null)),[o,f,e]}function e2(e,t){e.action=t}function ug(e){var t=ot(),a=Ke;if(a!==null)return sg(t,a,e);ot(),t=t.memoizedState,a=ot();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Or(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=zs(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function cg(){return ot().memoizedState}function Hs(e,t,a,o){var c=Rt();_e.flags|=e,c.memoizedState=Or(1|t,{destroy:void 0},a,o===void 0?null:o)}function qs(e,t,a,o){var c=ot();o=o===void 0?null:o;var f=c.memoizedState.inst;Ke!==null&&o!==null&&Hd(o,Ke.memoizedState.deps)?c.memoizedState=Or(t,f,a,o):(_e.flags|=e,c.memoizedState=Or(1|t,f,a,o))}function dg(e,t){Hs(8390656,8,e,t)}function Zd(e,t){qs(2048,8,e,t)}function t2(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=zs(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function fg(e){var t=ot().memoizedState;return t2({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function hg(e,t){return qs(4,2,e,t)}function mg(e,t){return qs(4,4,e,t)}function pg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vg(e,t,a){a=a!=null?a.concat([e]):null,qs(4,4,pg.bind(null,t,e),a)}function Fd(){}function gg(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Hd(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function yg(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Hd(t,o[1]))return o[0];if(o=e(),Hl){ka(!0);try{e()}finally{ka(!1)}}return a.memoizedState=[o,t],o}function Pd(e,t,a){return a===void 0||(ua&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=by(),_e.lanes|=e,$a|=e,a)}function bg(e,t,a,o){return Zt(a,t)?a:Ar.current!==null?(e=Pd(e,a,o),Zt(e,t)||(ct=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(ke&261930)===0?(ct=!0,e.memoizedState=a):(e=by(),_e.lanes|=e,$a|=e,t)}function xg(e,t,a,o,c){var f=W.p;W.p=f!==0&&8>f?f:8;var x=U.T,C={};U.T=C,Id(e,!1,t,a);try{var M=c(),Q=U.S;if(Q!==null&&Q(C,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var F=Pj(M,o);ao(e,t,F,en(e))}else ao(e,t,o,en(e))}catch(J){ao(e,t,{then:function(){},status:"rejected",reason:J},en())}finally{W.p=f,x!==null&&C.types!==null&&(x.types=C.types),U.T=x}}function n2(){}function Jd(e,t,a,o){if(e.tag!==5)throw Error(i(476));var c=wg(e).queue;xg(e,c,t,V,a===null?n2:function(){return Sg(e),a(o)})}function wg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:V},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sg(e){var t=wg(e);t.next===null&&(t=e.alternate.memoizedState),ao(e,t.next.queue,{},en())}function Wd(){return wt(wo)}function Eg(){return ot().memoizedState}function jg(){return ot().memoizedState}function a2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=en();e=Qa(a);var o=Ya(t,e,a);o!==null&&(Ht(o,t,a),Wi(o,t,a)),t={cache:_d()},e.payload=t;return}t=t.return}}function l2(e,t,a){var o=en();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Ng(t,a):(a=vd(e,t,a,o),a!==null&&(Ht(a,e,o),_g(a,t,o)))}function Cg(e,t,a){var o=en();ao(e,t,a,o)}function ao(e,t,a,o){var c={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Ng(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var x=t.lastRenderedState,C=f(x,a);if(c.hasEagerState=!0,c.eagerState=C,Zt(C,x))return xs(e,t,c,0),Ze===null&&bs(),!1}catch{}finally{}if(a=vd(e,t,c,o),a!==null)return Ht(a,e,o),_g(a,t,o),!0}return!1}function Id(e,t,a,o){if(o={lane:2,revertLane:Df(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=vd(e,a,o,2),t!==null&&Ht(t,e,2)}function Bs(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ng(e,t){Dr=ks=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function _g(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Dp(e,a)}}var lo={readContext:wt,use:Ls,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};lo.useEffectEvent=tt;var Rg={readContext:wt,use:Ls,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:dg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hs(4194308,4,pg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var o=e();if(Hl){ka(!0);try{e()}finally{ka(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Rt();if(a!==void 0){var c=a(t);if(Hl){ka(!0);try{a(t)}finally{ka(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=l2.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xd(e);var t=e.queue,a=Cg.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Fd,useDeferredValue:function(e,t){var a=Rt();return Pd(a,e,t)},useTransition:function(){var e=Xd(!1);return e=xg.bind(null,_e,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=_e,c=Rt();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ze===null)throw Error(i(349));(ke&127)!==0||Fv(o,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,dg(Jv.bind(null,o,f,e),[e]),o.flags|=2048,Or(9,{destroy:void 0},Pv.bind(null,o,f,a,t),null),a},useId:function(){var e=Rt(),t=Ze.identifierPrefix;if(ze){var a=Bn,o=qn;a=(o&~(1<<32-$t(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Os++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Jj++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wd,useFormState:ig,useActionState:ig,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Id.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Gd,useCacheRefresh:function(){return Rt().memoizedState=a2.bind(null,_e)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},ef={readContext:wt,use:Ls,useCallback:gg,useContext:wt,useEffect:Zd,useImperativeHandle:vg,useInsertionEffect:hg,useLayoutEffect:mg,useMemo:yg,useReducer:Us,useRef:cg,useState:function(){return Us(ca)},useDebugValue:Fd,useDeferredValue:function(e,t){var a=ot();return bg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Us(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Zv,useId:Eg,useHostTransitionStatus:Wd,useFormState:og,useActionState:og,useOptimistic:function(e,t){var a=ot();return eg(a,Ke,e,t)},useMemoCache:Gd,useCacheRefresh:jg};ef.useEffectEvent=fg;var Tg={readContext:wt,use:Ls,useCallback:gg,useContext:wt,useEffect:Zd,useImperativeHandle:vg,useInsertionEffect:hg,useLayoutEffect:mg,useMemo:yg,useReducer:Kd,useRef:cg,useState:function(){return Kd(ca)},useDebugValue:Fd,useDeferredValue:function(e,t){var a=ot();return Ke===null?Pd(a,e,t):bg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Kd(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:no(e),t]},useSyncExternalStore:Zv,useId:Eg,useHostTransitionStatus:Wd,useFormState:ug,useActionState:ug,useOptimistic:function(e,t){var a=ot();return Ke!==null?eg(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Gd,useCacheRefresh:jg};Tg.useEffectEvent=fg;function tf(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var nf={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=en(),c=Qa(o);c.payload=t,a!=null&&(c.callback=a),t=Ya(e,c,o),t!==null&&(Ht(t,e,o),Wi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=en(),c=Qa(o);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Ya(e,c,o),t!==null&&(Ht(t,e,o),Wi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=en(),o=Qa(a);o.tag=2,t!=null&&(o.callback=t),t=Ya(e,o,a),t!==null&&(Ht(t,e,a),Wi(t,e,a))}};function Mg(e,t,a,o,c,f,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,x):t.prototype&&t.prototype.isPureReactComponent?!Vi(a,o)||!Vi(c,f):!0}function Ag(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&nf.enqueueReplaceState(t,t.state,null)}function ql(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function Dg(e){ys(e)}function kg(e){console.error(e)}function Og(e){ys(e)}function Qs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function zg(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function af(e,t,a){return a=Qa(a),a.tag=3,a.payload={element:null},a.callback=function(){Qs(e,t)},a}function Lg(e){return e=Qa(e),e.tag=3,e}function Ug(e,t,a,o){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var f=o.value;e.payload=function(){return c(f)},e.callback=function(){zg(t,a,o)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){zg(t,a,o),typeof c!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function r2(e,t,a,o,c){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&Nr(t,a,c,!0),a=Pt.current,a!==null){switch(a.tag){case 31:case 13:return mn===null?Is():a.alternate===null&&nt===0&&(nt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,o===Rs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Tf(e,o,c)),!1;case 22:return a.flags|=65536,o===Rs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Tf(e,o,c)),!1}throw Error(i(435,a.tag))}return Tf(e,o,c),Is(),!1}if(ze)return t=Pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==Sd&&(e=Error(i(422),{cause:o}),$i(cn(e,a)))):(o!==Sd&&(t=Error(i(423),{cause:o}),$i(cn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=cn(o,a),c=af(e.stateNode,o,c),kd(e,c),nt!==4&&(nt=2)),!1;var f=Error(i(520),{cause:o});if(f=cn(f,a),ho===null?ho=[f]:ho.push(f),nt!==4&&(nt=2),t===null)return!0;o=cn(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=af(a.stateNode,o,e),kd(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Za===null||!Za.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=Lg(c),Ug(c,e,a,o),kd(a,c),!1}a=a.return}while(a!==null);return!1}var lf=Error(i(461)),ct=!1;function St(e,t,a,o){t.child=e===null?Qv(t,null,a,o):Ul(t,e.child,a,o)}function Hg(e,t,a,o,c){a=a.render;var f=t.ref;if("ref"in o){var x={};for(var C in o)C!=="ref"&&(x[C]=o[C])}else x=o;return kl(t),o=qd(e,t,a,x,f,c),C=Bd(),e!==null&&!ct?(Qd(e,t,c),da(e,t,c)):(ze&&C&&xd(t),t.flags|=1,St(e,t,o,c),t.child)}function qg(e,t,a,o,c){if(e===null){var f=a.type;return typeof f=="function"&&!gd(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Bg(e,t,f,o,c)):(e=Ss(a.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!hf(e,c)){var x=f.memoizedProps;if(a=a.compare,a=a!==null?a:Vi,a(x,o)&&e.ref===t.ref)return da(e,t,c)}return t.flags|=1,e=ra(f,o),e.ref=t.ref,e.return=t,t.child=e}function Bg(e,t,a,o,c){if(e!==null){var f=e.memoizedProps;if(Vi(f,o)&&e.ref===t.ref)if(ct=!1,t.pendingProps=o=f,hf(e,c))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,da(e,t,c)}return rf(e,t,a,o,c)}function Qg(e,t,a,o){var c=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;o=c&~f}else o=0,t.child=null;return Yg(e,t,f,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(t,f!==null?f.cachePool:null),f!==null?Vv(t,f):zd(),Kv(t);else return o=t.lanes=536870912,Yg(e,t,f!==null?f.baseLanes|a:a,a,o)}else f!==null?(Ns(t,f.cachePool),Vv(t,f),Va(),t.memoizedState=null):(e!==null&&Ns(t,null),zd(),Va());return St(e,t,c,a),t.child}function ro(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yg(e,t,a,o,c){var f=Td();return f=f===null?null:{parent:st._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&Ns(t,null),zd(),Kv(t),e!==null&&Nr(e,t,o,!0),t.childLanes=c,null}function Ys(e,t){return t=Vs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gg(e,t,a){return Ul(t,e.child,null,a),e=Ys(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function i2(e,t,a){var o=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=Ys(t,o),t.lanes=536870912,ro(null,e);if(Ud(t),(e=Fe)?(e=t0(e,hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Nv(e),a.return=t,t.child=a,xt=t,Fe=null)):e=null,e===null)throw Ha(t);return t.lanes=536870912,null}return Ys(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(Ud(t),c)if(t.flags&256)t.flags&=-257,t=Gg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ct||Nr(e,t,a,!1),c=(a&e.childLanes)!==0,ct||c){if(o=Ze,o!==null&&(x=kp(o,a),x!==0&&x!==f.retryLane))throw f.retryLane=x,Tl(e,x),Ht(o,e,x),lf;Is(),t=Gg(e,t,a)}else e=f.treeContext,Fe=pn(x.nextSibling),xt=t,ze=!0,Ua=null,hn=!1,e!==null&&Tv(t,e),t=Ys(t,o),t.flags|=4096;return t}return e=ra(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rf(e,t,a,o,c){return kl(t),a=qd(e,t,a,o,void 0,c),o=Bd(),e!==null&&!ct?(Qd(e,t,c),da(e,t,c)):(ze&&o&&xd(t),t.flags|=1,St(e,t,a,c),t.child)}function Vg(e,t,a,o,c,f){return kl(t),t.updateQueue=null,a=$v(t,o,a,c),Xv(e),o=Bd(),e!==null&&!ct?(Qd(e,t,f),da(e,t,f)):(ze&&o&&xd(t),t.flags|=1,St(e,t,a,f),t.child)}function Kg(e,t,a,o,c){if(kl(t),t.stateNode===null){var f=Sr,x=a.contextType;typeof x=="object"&&x!==null&&(f=wt(x)),f=new a(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=nf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Ad(t),x=a.contextType,f.context=typeof x=="object"&&x!==null?wt(x):Sr,f.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(tf(t,a,x,o),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(x=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),x!==f.state&&nf.enqueueReplaceState(f,f.state,null),eo(t,o,f,c),Ii(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var C=t.memoizedProps,M=ql(a,C);f.props=M;var Q=f.context,F=a.contextType;x=Sr,typeof F=="object"&&F!==null&&(x=wt(F));var J=a.getDerivedStateFromProps;F=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",C=t.pendingProps!==C,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(C||Q!==x)&&Ag(t,f,o,x),Ba=!1;var Y=t.memoizedState;f.state=Y,eo(t,o,f,c),Ii(),Q=t.memoizedState,C||Y!==Q||Ba?(typeof J=="function"&&(tf(t,a,J,o),Q=t.memoizedState),(M=Ba||Mg(t,a,M,o,Y,Q,x))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Q),f.props=o,f.state=Q,f.context=x,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Dd(e,t),x=t.memoizedProps,F=ql(a,x),f.props=F,J=t.pendingProps,Y=f.context,Q=a.contextType,M=Sr,typeof Q=="object"&&Q!==null&&(M=wt(Q)),C=a.getDerivedStateFromProps,(Q=typeof C=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==J||Y!==M)&&Ag(t,f,o,M),Ba=!1,Y=t.memoizedState,f.state=Y,eo(t,o,f,c),Ii();var K=t.memoizedState;x!==J||Y!==K||Ba||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof C=="function"&&(tf(t,a,C,o),K=t.memoizedState),(F=Ba||Mg(t,a,F,o,Y,K,M)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,K,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,K,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),f.props=o,f.state=K,f.context=M,o=F):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,Gs(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Ul(t,e.child,null,c),t.child=Ul(t,null,a,c)):St(e,t,a,c),t.memoizedState=f.state,e=t.child):e=da(e,t,c),e}function Xg(e,t,a,o){return Al(),t.flags|=256,St(e,t,a,o),t.child}var of={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sf(e){return{baseLanes:e,cachePool:zv()}}function uf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=It),e}function $g(e,t,a){var o=t.pendingProps,c=!1,f=(t.flags&128)!==0,x;if((x=f)||(x=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),x&&(c=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(c?Ga(t):Va(),(e=Fe)?(e=t0(e,hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Nv(e),a.return=t,t.child=a,xt=t,Fe=null)):e=null,e===null)throw Ha(t);return Kf(e)?t.lanes=32:t.lanes=536870912,null}var C=o.children;return o=o.fallback,c?(Va(),c=t.mode,C=Vs({mode:"hidden",children:C},c),o=Ml(o,c,a,null),C.return=t,o.return=t,C.sibling=o,t.child=C,o=t.child,o.memoizedState=sf(a),o.childLanes=uf(e,x,a),t.memoizedState=of,ro(null,o)):(Ga(t),cf(t,C))}var M=e.memoizedState;if(M!==null&&(C=M.dehydrated,C!==null)){if(f)t.flags&256?(Ga(t),t.flags&=-257,t=df(e,t,a)):t.memoizedState!==null?(Va(),t.child=e.child,t.flags|=128,t=null):(Va(),C=o.fallback,c=t.mode,o=Vs({mode:"visible",children:o.children},c),C=Ml(C,c,a,null),C.flags|=2,o.return=t,C.return=t,o.sibling=C,t.child=o,Ul(t,e.child,null,a),o=t.child,o.memoizedState=sf(a),o.childLanes=uf(e,x,a),t.memoizedState=of,t=ro(null,o));else if(Ga(t),Kf(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var Q=x.dgst;x=Q,o=Error(i(419)),o.stack="",o.digest=x,$i({value:o,source:null,stack:null}),t=df(e,t,a)}else if(ct||Nr(e,t,a,!1),x=(a&e.childLanes)!==0,ct||x){if(x=Ze,x!==null&&(o=kp(x,a),o!==0&&o!==M.retryLane))throw M.retryLane=o,Tl(e,o),Ht(x,e,o),lf;Vf(C)||Is(),t=df(e,t,a)}else Vf(C)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Fe=pn(C.nextSibling),xt=t,ze=!0,Ua=null,hn=!1,e!==null&&Tv(t,e),t=cf(t,o.children),t.flags|=4096);return t}return c?(Va(),C=o.fallback,c=t.mode,M=e.child,Q=M.sibling,o=ra(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?C=ra(Q,C):(C=Ml(C,c,a,null),C.flags|=2),C.return=t,o.return=t,o.sibling=C,t.child=o,ro(null,o),o=t.child,C=e.child.memoizedState,C===null?C=sf(a):(c=C.cachePool,c!==null?(M=st._currentValue,c=c.parent!==M?{parent:M,pool:M}:c):c=zv(),C={baseLanes:C.baseLanes|a,cachePool:c}),o.memoizedState=C,o.childLanes=uf(e,x,a),t.memoizedState=of,ro(e.child,o)):(Ga(t),a=e.child,e=a.sibling,a=ra(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=a,t.memoizedState=null,a)}function cf(e,t){return t=Vs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vs(e,t){return e=Ft(22,e,null,t),e.lanes=0,e}function df(e,t,a){return Ul(t,e.child,null,a),e=cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Cd(e.return,t,a)}function ff(e,t,a,o,c,f){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:c,treeForkCount:f}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=a,x.tailMode=c,x.treeForkCount=f)}function Fg(e,t,a){var o=t.pendingProps,c=o.revealOrder,f=o.tail;o=o.children;var x=it.current,C=(x&2)!==0;if(C?(x=x&1|2,t.flags|=128):x&=1,ee(it,x),St(e,t,o,a),o=ze?Xi:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zg(e,a,t);else if(e.tag===19)Zg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&Ds(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),ff(t,!1,c,a,f,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ds(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}ff(t,!0,a,null,f,o);break;case"together":ff(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function da(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Nr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=ra(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ra(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function o2(e,t,a){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),qa(t,st,e.memoizedState.cache),Al();break;case 27:case 5:Ce(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ud(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ga(t),t.flags|=128,null):(a&t.child.childLanes)!==0?$g(e,t,a):(Ga(t),e=da(e,t,a),e!==null?e.sibling:null);Ga(t);break;case 19:var c=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Nr(e,t,a,!1),o=(a&t.childLanes)!==0),c){if(o)return Fg(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(it,it.current),o)break;return null;case 22:return t.lanes=0,Qg(e,t,a,t.pendingProps);case 24:qa(t,st,e.memoizedState.cache)}return da(e,t,a)}function Pg(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!hf(e,a)&&(t.flags&128)===0)return ct=!1,o2(e,t,a);ct=(e.flags&131072)!==0}else ct=!1,ze&&(t.flags&1048576)!==0&&Rv(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")gd(e)?(o=ql(e,o),t.tag=1,t=Kg(null,t,e,o,a)):(t.tag=0,t=rf(null,t,e,o,a));else{if(e!=null){var c=e.$$typeof;if(c===k){t.tag=11,t=Hg(null,t,e,o,a);break e}else if(c===q){t.tag=14,t=qg(null,t,e,o,a);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return rf(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,c=ql(o,t.pendingProps),Kg(e,t,o,c,a);case 3:e:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;c=f.element,Dd(e,t),eo(t,o,null,a);var x=t.memoizedState;if(o=x.cache,qa(t,st,o),o!==f.cache&&Nd(t,[st],a,!0),Ii(),o=x.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Xg(e,t,o,a);break e}else if(o!==c){c=cn(Error(i(424)),t),$i(c),t=Xg(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=pn(e.firstChild),xt=t,ze=!0,Ua=null,hn=!0,a=Qv(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Al(),o===c){t=da(e,t,a);break e}St(e,t,o,a)}t=t.child}return t;case 26:return Gs(e,t),e===null?(a=o0(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,o=iu(Ee.current).createElement(a),o[bt]=t,o[Dt]=e,Et(o,a,e),gt(o),t.stateNode=o):t.memoizedState=o0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&ze&&(o=t.stateNode=l0(t.type,t.pendingProps,Ee.current),xt=t,hn=!0,c=Fe,Wa(t.type)?(Xf=c,Fe=pn(o.firstChild)):Fe=c),St(e,t,t.pendingProps.children,a),Gs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((c=o=Fe)&&(o=U2(o,t.type,t.pendingProps,hn),o!==null?(t.stateNode=o,xt=t,Fe=pn(o.firstChild),hn=!1,c=!0):c=!1),c||Ha(t)),Ce(t),c=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,Qf(c,f)?o=null:x!==null&&Qf(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=qd(e,t,Wj,null,null,a),wo._currentValue=c),Gs(e,t),St(e,t,o,a),t.child;case 6:return e===null&&ze&&((e=a=Fe)&&(a=H2(a,t.pendingProps,hn),a!==null?(t.stateNode=a,xt=t,Fe=null,e=!0):e=!1),e||Ha(t)),null;case 13:return $g(e,t,a);case 4:return je(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ul(t,null,o,a):St(e,t,o,a),t.child;case 11:return Hg(e,t,t.type,t.pendingProps,a);case 7:return St(e,t,t.pendingProps,a),t.child;case 8:return St(e,t,t.pendingProps.children,a),t.child;case 12:return St(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,qa(t,t.type,o.value),St(e,t,o.children,a),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,kl(t),c=wt(c),o=o(c),t.flags|=1,St(e,t,o,a),t.child;case 14:return qg(e,t,t.type,t.pendingProps,a);case 15:return Bg(e,t,t.type,t.pendingProps,a);case 19:return Fg(e,t,a);case 31:return i2(e,t,a);case 22:return Qg(e,t,a,t.pendingProps);case 24:return kl(t),o=wt(st),e===null?(c=Td(),c===null&&(c=Ze,f=_d(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:o,cache:c},Ad(t),qa(t,st,c)):((e.lanes&a)!==0&&(Dd(e,t),eo(t,null,null,a),Ii()),c=e.memoizedState,f=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),qa(t,st,o)):(o=f.cache,qa(t,st,o),o!==c.cache&&Nd(t,[st],a,!0))),St(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fa(e){e.flags|=4}function mf(e,t,a,o,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Ey())e.flags|=8192;else throw Ll=Rs,Md}else e.flags&=-16777217}function Jg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!f0(t))if(Ey())e.flags|=8192;else throw Ll=Rs,Md}function Ks(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mp():536870912,e.lanes|=t,Hr|=t)}function io(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function s2(e,t,a){var o=t.pendingProps;switch(wd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),sa(st),ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Cr(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ed())),Pe(t),null;case 26:var c=t.type,f=t.memoizedState;return e===null?(fa(t),f!==null?(Pe(t),Jg(t,f)):(Pe(t),mf(t,c,null,o,a))):f?f!==e.memoizedState?(fa(t),Pe(t),Jg(t,f)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&fa(t),Pe(t),mf(t,c,e,o,a)),null;case 27:if(Ue(t),a=Ee.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}e=le.current,Cr(t)?Mv(t):(e=l0(c,o,a),t.stateNode=e,fa(t))}return Pe(t),null;case 5:if(Ue(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}if(f=le.current,Cr(t))Mv(t);else{var x=iu(Ee.current);switch(f){case 1:f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=x.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?x.createElement("select",{is:o.is}):x.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?x.createElement(c,{is:o.is}):x.createElement(c)}}f[bt]=t,f[Dt]=o;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)f.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=f;e:switch(Et(f,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&fa(t)}}return Pe(t),mf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=Ee.current,Cr(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,c=xt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[bt]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||$y(e.nodeValue,a)),e||Ha(t,!0)}else e=iu(e).createTextNode(o),e[bt]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Cr(t),a!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[bt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Pe(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Cr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[bt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=Ed(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ks(t,t.updateQueue),Pe(t),null);case 4:return ge(),e===null&&Lf(t.stateNode.containerInfo),Pe(t),null;case 10:return sa(t.type),Pe(t),null;case 19:if(Z(it),o=t.memoizedState,o===null)return Pe(t),null;if(c=(t.flags&128)!==0,f=o.rendering,f===null)if(c)io(o,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ds(e),f!==null){for(t.flags|=128,io(o,!1),e=f.updateQueue,t.updateQueue=e,Ks(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Cv(a,e),a=a.sibling;return ee(it,it.current&1|2),ze&&ia(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Kt()>Ps&&(t.flags|=128,c=!0,io(o,!1),t.lanes=4194304)}else{if(!c)if(e=Ds(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Ks(t,e),io(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return Pe(t),null}else 2*Kt()-o.renderingStartTime>Ps&&a!==536870912&&(t.flags|=128,c=!0,io(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Kt(),e.sibling=null,a=it.current,ee(it,c?a&1|2:a&1),ze&&ia(t,o.treeForkCount),e):(Pe(t),null);case 22:case 23:return Jt(t),Ld(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&Ks(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Z(Ol),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sa(st),Pe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function u2(e,t){switch(wd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(st),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ue(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(it),null;case 4:return ge(),null;case 10:return sa(t.type),null;case 22:case 23:return Jt(t),Ld(),e!==null&&Z(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(st),null;case 25:return null;default:return null}}function Wg(e,t){switch(wd(t),t.tag){case 3:sa(st),ge();break;case 26:case 27:case 5:Ue(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:Z(it);break;case 10:sa(t.type);break;case 22:case 23:Jt(t),Ld(),e!==null&&Z(Ol);break;case 24:sa(st)}}function oo(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var c=o.next;a=c;do{if((a.tag&e)===e){o=void 0;var f=a.create,x=a.inst;o=f(),x.destroy=o}a=a.next}while(a!==c)}}catch(C){Ve(t,t.return,C)}}function Ka(e,t,a){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&e)===e){var x=o.inst,C=x.destroy;if(C!==void 0){x.destroy=void 0,c=t;var M=a,Q=C;try{Q()}catch(F){Ve(c,M,F)}}}o=o.next}while(o!==f)}}catch(F){Ve(t,t.return,F)}}function Ig(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Gv(t,a)}catch(o){Ve(e,e.return,o)}}}function ey(e,t,a){a.props=ql(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ve(e,t,o)}}function so(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(c){Ve(e,t,c)}}function Qn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Ve(e,t,c)}else a.current=null}function ty(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(c){Ve(e,e.return,c)}}function pf(e,t,a){try{var o=e.stateNode;A2(o,e.type,a,t),o[Dt]=t}catch(c){Ve(e,e.return,c)}}function ny(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ny(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&&Wa(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 gf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=aa));else if(o!==4&&(o===27&&Wa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(gf(e,t,a),e=e.sibling;e!==null;)gf(e,t,a),e=e.sibling}function Xs(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Wa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Xs(e,t,a),e=e.sibling;e!==null;)Xs(e,t,a),e=e.sibling}function ay(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Et(t,o,a),t[bt]=e,t[Dt]=a}catch(f){Ve(e,e.return,f)}}var ha=!1,dt=!1,yf=!1,ly=typeof WeakSet=="function"?WeakSet:Set,yt=null;function c2(e,t){if(e=e.containerInfo,qf=hu,e=vv(e),cd(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var c=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var x=0,C=-1,M=-1,Q=0,F=0,J=e,Y=null;t:for(;;){for(var K;J!==a||c!==0&&J.nodeType!==3||(C=x+c),J!==f||o!==0&&J.nodeType!==3||(M=x+o),J.nodeType===3&&(x+=J.nodeValue.length),(K=J.firstChild)!==null;)Y=J,J=K;for(;;){if(J===e)break t;if(Y===a&&++Q===c&&(C=x),Y===f&&++F===o&&(M=x),(K=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=K}a=C===-1||M===-1?null:{start:C,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bf={focusedElem:e,selectionRange:a},hu=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)c=e[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,c=f.memoizedProps,f=f.memoizedState,o=a.stateNode;try{var fe=ql(a.type,c);e=o.getSnapshotBeforeUpdate(fe,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ve(a,a.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Gf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function ry(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),o&4&&oo(5,a);break;case 1:if(pa(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(a,a.return,x)}else{var c=ql(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(a,a.return,x)}}o&64&&Ig(a),o&512&&so(a,a.return);break;case 3:if(pa(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Gv(e,t)}catch(x){Ve(a,a.return,x)}}break;case 27:t===null&&o&4&&ay(a);case 26:case 5:pa(e,a),t===null&&o&4&&ty(a),o&512&&so(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),o&4&&sy(e,a);break;case 13:pa(e,a),o&4&&uy(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=b2.bind(null,a),q2(e,a))));break;case 22:if(o=a.memoizedState!==null||ha,!o){t=t!==null&&t.memoizedState!==null||dt,c=ha;var f=dt;ha=o,(dt=t)&&!f?va(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ha=c,dt=f}break;case 30:break;default:pa(e,a)}}function iy(e){var t=e.alternate;t!==null&&(e.alternate=null,iy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$c(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 Je=null,Ot=!1;function ma(e,t,a){for(a=a.child;a!==null;)oy(e,t,a),a=a.sibling}function oy(e,t,a){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Di,a)}catch{}switch(a.tag){case 26:dt||Qn(a,t),ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:dt||Qn(a,t);var o=Je,c=Ot;Wa(a.type)&&(Je=a.stateNode,Ot=!1),ma(e,t,a),yo(a.stateNode),Je=o,Ot=c;break;case 5:dt||Qn(a,t);case 6:if(o=Je,c=Ot,Je=null,ma(e,t,a),Je=o,Ot=c,Je!==null)if(Ot)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(a.stateNode)}catch(f){Ve(a,t,f)}else try{Je.removeChild(a.stateNode)}catch(f){Ve(a,t,f)}break;case 18:Je!==null&&(Ot?(e=Je,Iy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Xr(e)):Iy(Je,a.stateNode));break;case 4:o=Je,c=Ot,Je=a.stateNode.containerInfo,Ot=!0,ma(e,t,a),Je=o,Ot=c;break;case 0:case 11:case 14:case 15:Ka(2,a,t),dt||Ka(4,a,t),ma(e,t,a);break;case 1:dt||(Qn(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&ey(a,t,o)),ma(e,t,a);break;case 21:ma(e,t,a);break;case 22:dt=(o=dt)||a.memoizedState!==null,ma(e,t,a),dt=o;break;default:ma(e,t,a)}}function sy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xr(e)}catch(a){Ve(t,t.return,a)}}}function uy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xr(e)}catch(a){Ve(t,t.return,a)}}function d2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ly),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ly),t;default:throw Error(i(435,e.tag))}}function $s(e,t){var a=d2(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var c=x2.bind(null,e,o);o.then(c,c)}})}function zt(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var c=a[o],f=e,x=t,C=x;e:for(;C!==null;){switch(C.tag){case 27:if(Wa(C.type)){Je=C.stateNode,Ot=!1;break e}break;case 5:Je=C.stateNode,Ot=!1;break e;case 3:case 4:Je=C.stateNode.containerInfo,Ot=!0;break e}C=C.return}if(Je===null)throw Error(i(160));oy(f,x,c),Je=null,Ot=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cy(t,e),t=t.sibling}var Nn=null;function cy(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Lt(e),o&4&&(Ka(3,e,e.return),oo(3,e),Ka(5,e,e.return));break;case 1:zt(t,e),Lt(e),o&512&&(dt||a===null||Qn(a,a.return)),o&64&&ha&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var c=Nn;if(zt(t,e),Lt(e),o&512&&(dt||a===null||Qn(a,a.return)),o&4){var f=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":f=c.getElementsByTagName("title")[0],(!f||f[zi]||f[bt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(o),c.head.insertBefore(f,c.querySelector("head > title"))),Et(f,o,a),f[bt]=e,gt(f),o=f;break e;case"link":var x=c0("link","href",c).get(o+(a.href||""));if(x){for(var C=0;C<x.length;C++)if(f=x[C],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(C,1);break t}}f=c.createElement(o),Et(f,o,a),c.head.appendChild(f);break;case"meta":if(x=c0("meta","content",c).get(o+(a.content||""))){for(C=0;C<x.length;C++)if(f=x[C],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(C,1);break t}}f=c.createElement(o),Et(f,o,a),c.head.appendChild(f);break;default:throw Error(i(468,o))}f[bt]=e,gt(f),o=f}e.stateNode=o}else d0(c,e.type,e.stateNode);else e.stateNode=u0(c,o,e.memoizedProps);else f!==o?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,o===null?d0(c,e.type,e.stateNode):u0(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&pf(e,e.memoizedProps,a.memoizedProps)}break;case 27:zt(t,e),Lt(e),o&512&&(dt||a===null||Qn(a,a.return)),a!==null&&o&4&&pf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(zt(t,e),Lt(e),o&512&&(dt||a===null||Qn(a,a.return)),e.flags&32){c=e.stateNode;try{pr(c,"")}catch(fe){Ve(e,e.return,fe)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,pf(e,c,a!==null?a.memoizedProps:c)),o&1024&&(yf=!0);break;case 6:if(zt(t,e),Lt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(fe){Ve(e,e.return,fe)}}break;case 3:if(uu=null,c=Nn,Nn=ou(t.containerInfo),zt(t,e),Nn=c,Lt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Xr(t.containerInfo)}catch(fe){Ve(e,e.return,fe)}yf&&(yf=!1,dy(e));break;case 4:o=Nn,Nn=ou(e.stateNode.containerInfo),zt(t,e),Lt(e),Nn=o;break;case 12:zt(t,e),Lt(e);break;case 31:zt(t,e),Lt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 13:zt(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Fs=Kt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 22:c=e.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,Q=ha,F=dt;if(ha=Q||c,dt=F||M,zt(t,e),dt=F,ha=Q,Lt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||M||ha||dt||Bl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){M=a=t;try{if(f=M.stateNode,c)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{C=M.stateNode;var J=M.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;C.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(fe){Ve(M,M.return,fe)}}}else if(t.tag===6){if(a===null){M=t;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(fe){Ve(M,M.return,fe)}}}else if(t.tag===18){if(a===null){M=t;try{var K=M.stateNode;c?e0(K,!0):e0(M.stateNode,!1)}catch(fe){Ve(M,M.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,$s(e,a))));break;case 19:zt(t,e),Lt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,$s(e,o)));break;case 30:break;case 21:break;default:zt(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(ny(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var c=a.stateNode,f=vf(e);Xs(e,f,c);break;case 5:var x=a.stateNode;a.flags&32&&(pr(x,""),a.flags&=-33);var C=vf(e);Xs(e,C,x);break;case 3:case 4:var M=a.stateNode.containerInfo,Q=vf(e);gf(e,Q,M);break;default:throw Error(i(161))}}catch(F){Ve(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ry(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ka(4,t,t.return),Bl(t);break;case 1:Qn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ey(t,t.return,a),Bl(t);break;case 27:yo(t.stateNode);case 26:case 5:Qn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,f=t,x=f.flags;switch(f.tag){case 0:case 11:case 15:va(c,f,a),oo(4,f);break;case 1:if(va(c,f,a),o=f,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Q){Ve(o,o.return,Q)}if(o=f,c=o.updateQueue,c!==null){var C=o.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)Yv(M[c],C)}catch(Q){Ve(o,o.return,Q)}}a&&x&64&&Ig(f),so(f,f.return);break;case 27:ay(f);case 26:case 5:va(c,f,a),a&&o===null&&x&4&&ty(f),so(f,f.return);break;case 12:va(c,f,a);break;case 31:va(c,f,a),a&&x&4&&sy(c,f);break;case 13:va(c,f,a),a&&x&4&&uy(c,f);break;case 22:f.memoizedState===null&&va(c,f,a),so(f,f.return);break;case 30:break;default:va(c,f,a)}t=t.sibling}}function bf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Zi(a))}function xf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function _n(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fy(e,t,a,o),t=t.sibling}function fy(e,t,a,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:_n(e,t,a,o),c&2048&&oo(9,t);break;case 1:_n(e,t,a,o);break;case 3:_n(e,t,a,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e)));break;case 12:if(c&2048){_n(e,t,a,o),e=t.stateNode;try{var f=t.memoizedProps,x=f.id,C=f.onPostCommit;typeof C=="function"&&C(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ve(t,t.return,M)}}else _n(e,t,a,o);break;case 31:_n(e,t,a,o);break;case 13:_n(e,t,a,o);break;case 23:break;case 22:f=t.stateNode,x=t.alternate,t.memoizedState!==null?f._visibility&2?_n(e,t,a,o):uo(e,t):f._visibility&2?_n(e,t,a,o):(f._visibility|=2,zr(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),c&2048&&bf(x,t);break;case 24:_n(e,t,a,o),c&2048&&xf(t.alternate,t);break;default:_n(e,t,a,o)}}function zr(e,t,a,o,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,x=t,C=a,M=o,Q=x.flags;switch(x.tag){case 0:case 11:case 15:zr(f,x,C,M,c),oo(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?zr(f,x,C,M,c):uo(f,x):(F._visibility|=2,zr(f,x,C,M,c)),c&&Q&2048&&bf(x.alternate,x);break;case 24:zr(f,x,C,M,c),c&&Q&2048&&xf(x.alternate,x);break;default:zr(f,x,C,M,c)}t=t.sibling}}function uo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,c=o.flags;switch(o.tag){case 22:uo(a,o),c&2048&&bf(o.alternate,o);break;case 24:uo(a,o),c&2048&&xf(o.alternate,o);break;default:uo(a,o)}t=t.sibling}}var co=8192;function Lr(e,t,a){if(e.subtreeFlags&co)for(e=e.child;e!==null;)hy(e,t,a),e=e.sibling}function hy(e,t,a){switch(e.tag){case 26:Lr(e,t,a),e.flags&co&&e.memoizedState!==null&&J2(a,Nn,e.memoizedState,e.memoizedProps);break;case 5:Lr(e,t,a);break;case 3:case 4:var o=Nn;Nn=ou(e.stateNode.containerInfo),Lr(e,t,a),Nn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=co,co=16777216,Lr(e,t,a),co=o):Lr(e,t,a));break;default:Lr(e,t,a)}}function my(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 fo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];yt=o,vy(o,e)}my(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)py(e),e=e.sibling}function py(e){switch(e.tag){case 0:case 11:case 15:fo(e),e.flags&2048&&Ka(9,e,e.return);break;case 3:fo(e);break;case 12:fo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zs(e)):fo(e);break;default:fo(e)}}function Zs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];yt=o,vy(o,e)}my(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ka(8,t,t.return),Zs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Zs(t));break;default:Zs(t)}e=e.sibling}}function vy(e,t){for(;yt!==null;){var a=yt;switch(a.tag){case 0:case 11:case 15:Ka(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Zi(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,yt=o;else e:for(a=e;yt!==null;){o=yt;var c=o.sibling,f=o.return;if(iy(o),o===a){yt=null;break e}if(c!==null){c.return=f,yt=c;break e}yt=f}}}var f2={getCacheForType:function(e){var t=wt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return wt(st).controller.signal}},h2=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ze=null,Ae=null,ke=0,Ge=0,Wt=null,Xa=!1,Ur=!1,wf=!1,ga=0,nt=0,$a=0,Ql=0,Sf=0,It=0,Hr=0,ho=null,Ut=null,Ef=!1,Fs=0,gy=0,Ps=1/0,Js=null,Za=null,ht=0,Fa=null,qr=null,ya=0,jf=0,Cf=null,yy=null,mo=0,Nf=null;function en(){return(Be&2)!==0&&ke!==0?ke&-ke:U.T!==null?Df():Op()}function by(){if(It===0)if((ke&536870912)===0||ze){var e=rs;rs<<=1,(rs&3932160)===0&&(rs=262144),It=e}else It=536870912;return e=Pt.current,e!==null&&(e.flags|=32),It}function Ht(e,t,a){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Br(e,0),Pa(e,ke,It,!1)),Oi(e,a),((Be&2)===0||e!==Ze)&&(e===Ze&&((Be&2)===0&&(Ql|=a),nt===4&&Pa(e,ke,It,!1)),Yn(e))}function xy(e,t,a){if((Be&6)!==0)throw Error(i(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ki(e,t),c=o?v2(e,t):Rf(e,t,!0),f=o;do{if(c===0){Ur&&!o&&Pa(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!m2(a)){c=Rf(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var C=e;c=ho;var M=C.current.memoizedState.isDehydrated;if(M&&(Br(C,x).flags|=256),x=Rf(C,x,!1),x!==2){if(wf&&!M){C.errorRecoveryDisabledLanes|=f,Ql|=f,c=4;break e}f=Ut,Ut=c,f!==null&&(Ut===null?Ut=f:Ut.push.apply(Ut,f))}c=x}if(f=!1,c!==2)continue}}if(c===1){Br(e,0),Pa(e,t,0,!0);break}e:{switch(o=e,f=c,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Pa(o,t,It,!Xa);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=Fs+300-Kt(),10<c)){if(Pa(o,t,It,!Xa),os(o,0,!0)!==0)break e;ya=t,o.timeoutHandle=Jy(wy.bind(null,o,a,Ut,Js,Ef,t,It,Ql,Hr,Xa,f,"Throttled",-0,0),c);break e}wy(o,a,Ut,Js,Ef,t,It,Ql,Hr,Xa,f,null,-0,0)}}break}while(!0);Yn(e)}function wy(e,t,a,o,c,f,x,C,M,Q,F,J,Y,K){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:aa},hy(t,f,J);var fe=(f&62914560)===f?Fs-Kt():(f&4194048)===f?gy-Kt():0;if(fe=W2(J,fe),fe!==null){ya=f,e.cancelPendingCommit=fe(Ty.bind(null,e,t,f,a,o,c,x,C,M,F,J,null,Y,K)),Pa(e,f,x,!Q);return}}Ty(e,t,f,a,o,c,x,C,M)}function m2(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var c=a[o],f=c.getSnapshot;c=c.value;try{if(!Zt(f(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pa(e,t,a,o){t&=~Sf,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var f=31-$t(c),x=1<<f;o[f]=-1,c&=~x}a!==0&&Ap(e,a,t)}function Ws(){return(Be&6)===0?(po(0),!1):!0}function _f(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,oa=Dl=null,Yd(e),Mr=null,Pi=0,e=Ae;for(;e!==null;)Wg(e.alternate,e),e=e.return;Ae=null}}function Br(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,O2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ya=0,_f(),Ze=e,Ae=a=ra(e.current,null),ke=t,Ge=0,Wt=null,Xa=!1,Ur=ki(e,t),wf=!1,Hr=It=Sf=Ql=$a=nt=0,Ut=ho=null,Ef=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-$t(o),f=1<<c;t|=e[c],o&=~f}return ga=t,bs(),a}function Sy(e,t){_e=null,U.H=lo,t===Tr||t===_s?(t=Hv(),Ge=3):t===Md?(t=Hv(),Ge=4):Ge=t===lf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,Ae===null&&(nt=1,Qs(e,cn(t,e.current)))}function Ey(){var e=Pt.current;return e===null?!0:(ke&4194048)===ke?mn===null:(ke&62914560)===ke||(ke&536870912)!==0?e===mn:!1}function jy(){var e=U.H;return U.H=lo,e===null?lo:e}function Cy(){var e=U.A;return U.A=f2,e}function Is(){nt=4,Xa||(ke&4194048)!==ke&&Pt.current!==null||(Ur=!0),($a&134217727)===0&&(Ql&134217727)===0||Ze===null||Pa(Ze,ke,It,!1)}function Rf(e,t,a){var o=Be;Be|=2;var c=jy(),f=Cy();(Ze!==e||ke!==t)&&(Js=null,Br(e,t)),t=!1;var x=nt;e:do try{if(Ge!==0&&Ae!==null){var C=Ae,M=Wt;switch(Ge){case 8:_f(),x=6;break e;case 3:case 2:case 9:case 6:Pt.current===null&&(t=!0);var Q=Ge;if(Ge=0,Wt=null,Qr(e,C,M,Q),a&&Ur){x=0;break e}break;default:Q=Ge,Ge=0,Wt=null,Qr(e,C,M,Q)}}p2(),x=nt;break}catch(F){Sy(e,F)}while(!0);return t&&e.shellSuspendCounter++,oa=Dl=null,Be=o,U.H=c,U.A=f,Ae===null&&(Ze=null,ke=0,bs()),x}function p2(){for(;Ae!==null;)Ny(Ae)}function v2(e,t){var a=Be;Be|=2;var o=jy(),c=Cy();Ze!==e||ke!==t?(Js=null,Ps=Kt()+500,Br(e,t)):Ur=ki(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=Wt;t:switch(Ge){case 1:Ge=0,Wt=null,Qr(e,t,f,1);break;case 2:case 9:if(Lv(f)){Ge=0,Wt=null,_y(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),Yn(e)},f.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Lv(f)?(Ge=0,Wt=null,_y(t)):(Ge=0,Wt=null,Qr(e,t,f,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var C=Ae;if(x?f0(x):C.stateNode.complete){Ge=0,Wt=null;var M=C.sibling;if(M!==null)Ae=M;else{var Q=C.return;Q!==null?(Ae=Q,eu(Q)):Ae=null}break t}}Ge=0,Wt=null,Qr(e,t,f,5);break;case 6:Ge=0,Wt=null,Qr(e,t,f,6);break;case 8:_f(),nt=6;break e;default:throw Error(i(462))}}g2();break}catch(F){Sy(e,F)}while(!0);return oa=Dl=null,U.H=o,U.A=c,Be=a,Ae!==null?0:(Ze=null,ke=0,bs(),nt)}function g2(){for(;Ae!==null&&!BE();)Ny(Ae)}function Ny(e){var t=Pg(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?eu(e):Ae=t}function _y(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Vg(a,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=Vg(a,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:Yd(t);default:Wg(a,t),t=Ae=Cv(t,ga),t=Pg(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?eu(e):Ae=t}function Qr(e,t,a,o){oa=Dl=null,Yd(t),Mr=null,Pi=0;var c=t.return;try{if(r2(e,c,t,a,ke)){nt=1,Qs(e,cn(a,e.current)),Ae=null;return}}catch(f){if(c!==null)throw Ae=c,f;nt=1,Qs(e,cn(a,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Ur||(ke&536870912)!==0?e=!1:(Xa=e=!0,(o===2||o===9||o===3||o===6)&&(o=Pt.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ry(t,e)):eu(t)}function eu(e){var t=e;do{if((t.flags&32768)!==0){Ry(t,Xa);return}e=t.return;var a=s2(t.alternate,t,ga);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);nt===0&&(nt=5)}function Ry(e,t){do{var a=u2(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);nt=6,Ae=null}function Ty(e,t,a,o,c,f,x,C,M){e.cancelPendingCommit=null;do tu();while(ht!==0);if((Be&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=pd,PE(e,a,f,x,C,M),e===Ze&&(Ae=Ze=null,ke=0),qr=t,Fa=e,ya=a,jf=f,Cf=c,yy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,w2(as,function(){return Oy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,c=W.p,W.p=2,x=Be,Be|=4;try{c2(e,t,a)}finally{Be=x,W.p=c,U.T=o}}ht=1,My(),Ay(),Dy()}}function My(){if(ht===1){ht=0;var e=Fa,t=qr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{cy(t,e);var f=Bf,x=vv(e.containerInfo),C=f.focusedElem,M=f.selectionRange;if(x!==C&&C&&C.ownerDocument&&pv(C.ownerDocument.documentElement,C)){if(M!==null&&cd(C)){var Q=M.start,F=M.end;if(F===void 0&&(F=Q),"selectionStart"in C)C.selectionStart=Q,C.selectionEnd=Math.min(F,C.value.length);else{var J=C.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var K=Y.getSelection(),fe=C.textContent.length,Se=Math.min(M.start,fe),$e=M.end===void 0?Se:Math.min(M.end,fe);!K.extend&&Se>$e&&(x=$e,$e=Se,Se=x);var z=mv(C,Se),O=mv(C,$e);if(z&&O&&(K.rangeCount!==1||K.anchorNode!==z.node||K.anchorOffset!==z.offset||K.focusNode!==O.node||K.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),K.removeAllRanges(),Se>$e?(K.addRange(B),K.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),K.addRange(B))}}}}for(J=[],K=C;K=K.parentNode;)K.nodeType===1&&J.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<J.length;C++){var P=J[C];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}hu=!!qf,Bf=qf=null}finally{Be=c,W.p=o,U.T=a}}e.current=t,ht=2}}function Ay(){if(ht===2){ht=0;var e=Fa,t=qr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{ry(e,t.alternate,t)}finally{Be=c,W.p=o,U.T=a}}ht=3}}function Dy(){if(ht===4||ht===3){ht=0,QE();var e=Fa,t=qr,a=ya,o=yy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,qr=Fa=null,ky(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Za=null),Kc(a),t=t.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Di,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,c=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,x=0;x<o.length;x++){var C=o[x];f(C.value,{componentStack:C.stack})}}finally{U.T=t,W.p=c}}(ya&3)!==0&&tu(),Yn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===Nf?mo++:(mo=0,Nf=e):mo=0,po(0)}}function ky(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function tu(){return My(),Ay(),Dy(),Oy()}function Oy(){if(ht!==5)return!1;var e=Fa,t=jf;jf=0;var a=Kc(ya),o=U.T,c=W.p;try{W.p=32>a?32:a,U.T=null,a=Cf,Cf=null;var f=Fa,x=ya;if(ht=0,qr=Fa=null,ya=0,(Be&6)!==0)throw Error(i(331));var C=Be;if(Be|=4,py(f.current),fy(f,f.current,x,a),Be=C,po(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Di,f)}catch{}return!0}finally{W.p=c,U.T=o,ky(e,t)}}function zy(e,t,a){t=cn(a,t),t=af(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Oi(e,2),Yn(e))}function Ve(e,t,a){if(e.tag===3)zy(e,e,a);else for(;t!==null;){if(t.tag===3){zy(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){e=cn(a,e),a=Lg(2),o=Ya(t,a,2),o!==null&&(Ug(a,o,t,e),Oi(o,2),Yn(o));break}}t=t.return}}function Tf(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new h2;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(a)||(wf=!0,c.add(a),e=y2.bind(null,e,t,a),t.then(e,e))}function y2(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(ke&a)===a&&(nt===4||nt===3&&(ke&62914560)===ke&&300>Kt()-Fs?(Be&2)===0&&Br(e,0):Sf|=a,Hr===ke&&(Hr=0)),Yn(e)}function Ly(e,t){t===0&&(t=Mp()),e=Tl(e,t),e!==null&&(Oi(e,t),Yn(e))}function b2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ly(e,a)}function x2(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Ly(e,a)}function w2(e,t){return Qc(e,t)}var nu=null,Yr=null,Mf=!1,au=!1,Af=!1,Ja=0;function Yn(e){e!==Yr&&e.next===null&&(Yr===null?nu=Yr=e:Yr=Yr.next=e),au=!0,Mf||(Mf=!0,E2())}function po(e,t){if(!Af&&au){Af=!0;do for(var a=!1,o=nu;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var f=0;else{var x=o.suspendedLanes,C=o.pingedLanes;f=(1<<31-$t(42|e)+1)-1,f&=c&~(x&~C),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,By(o,f))}else f=ke,f=os(o,o===Ze?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||ki(o,f)||(a=!0,By(o,f));o=o.next}while(a);Af=!1}}function S2(){Uy()}function Uy(){au=Mf=!1;var e=0;Ja!==0&&k2()&&(e=Ja);for(var t=Kt(),a=null,o=nu;o!==null;){var c=o.next,f=Hy(o,t);f===0?(o.next=null,a===null?nu=c:a.next=c,c===null&&(Yr=a)):(a=o,(e!==0||(f&3)!==0)&&(au=!0)),o=c}ht!==0&&ht!==5||po(e),Ja!==0&&(Ja=0)}function Hy(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-$t(f),C=1<<x,M=c[x];M===-1?((C&a)===0||(C&o)!==0)&&(c[x]=FE(C,t)):M<=t&&(e.expiredLanes|=C),f&=~C}if(t=Ze,a=ke,a=os(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Yc(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ki(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Yc(o),Kc(a)){case 2:case 8:a=Rp;break;case 32:a=as;break;case 268435456:a=Tp;break;default:a=as}return o=qy.bind(null,e),a=Qc(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Yc(o),e.callbackPriority=2,e.callbackNode=null,2}function qy(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(tu()&&e.callbackNode!==a)return null;var o=ke;return o=os(e,e===Ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(xy(e,o,t),Hy(e,Kt()),e.callbackNode!=null&&e.callbackNode===a?qy.bind(null,e):null)}function By(e,t){if(tu())return null;xy(e,t,!0)}function E2(){z2(function(){(Be&6)!==0?Qc(_p,S2):Uy()})}function Df(){if(Ja===0){var e=_r;e===0&&(e=ls,ls<<=1,(ls&261888)===0&&(ls=256)),Ja=e}return Ja}function Qy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ds(""+e)}function Yy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function j2(e,t,a,o,c){if(t==="submit"&&a&&a.stateNode===c){var f=Qy((c[Dt]||null).action),x=o.submitter;x&&(t=(t=x[Dt]||null)?Qy(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var C=new ps("action","action",null,o,c);e.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ja!==0){var M=x?Yy(c,x):new FormData(c);Jd(a,{pending:!0,data:M,method:c.method,action:f},null,M)}}else typeof f=="function"&&(C.preventDefault(),M=x?Yy(c,x):new FormData(c),Jd(a,{pending:!0,data:M,method:c.method,action:f},f,M))},currentTarget:c}]})}}for(var kf=0;kf<md.length;kf++){var Of=md[kf],C2=Of.toLowerCase(),N2=Of[0].toUpperCase()+Of.slice(1);Cn(C2,"on"+N2)}Cn(bv,"onAnimationEnd"),Cn(xv,"onAnimationIteration"),Cn(wv,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(Yj,"onTransitionRun"),Cn(Gj,"onTransitionStart"),Cn(Vj,"onTransitionCancel"),Cn(Sv,"onTransitionEnd"),hr("onMouseEnter",["mouseout","mouseover"]),hr("onMouseLeave",["mouseout","mouseover"]),hr("onPointerEnter",["pointerout","pointerover"]),hr("onPointerLeave",["pointerout","pointerover"]),Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),_2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vo));function Gy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],c=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var x=o.length-1;0<=x;x--){var C=o[x],M=C.instance,Q=C.currentTarget;if(C=C.listener,M!==f&&c.isPropagationStopped())break e;f=C,c.currentTarget=Q;try{f(c)}catch(F){ys(F)}c.currentTarget=null,f=M}else for(x=0;x<o.length;x++){if(C=o[x],M=C.instance,Q=C.currentTarget,C=C.listener,M!==f&&c.isPropagationStopped())break e;f=C,c.currentTarget=Q;try{f(c)}catch(F){ys(F)}c.currentTarget=null,f=M}}}}function De(e,t){var a=t[Xc];a===void 0&&(a=t[Xc]=new Set);var o=e+"__bubble";a.has(o)||(Vy(t,e,2,!1),a.add(o))}function zf(e,t,a){var o=0;t&&(o|=4),Vy(a,e,o,t)}var lu="_reactListening"+Math.random().toString(36).slice(2);function Lf(e){if(!e[lu]){e[lu]=!0,Up.forEach(function(a){a!=="selectionchange"&&(_2.has(a)||zf(a,!1,e),zf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lu]||(t[lu]=!0,zf("selectionchange",!1,t))}}function Vy(e,t,a,o){switch(b0(t)){case 2:var c=tC;break;case 8:c=nC;break;default:c=Jf}a=c.bind(null,t,a,e),c=void 0,!td||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Uf(e,t,a,o,c){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var C=o.stateNode.containerInfo;if(C===c)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;C!==null;){if(x=cr(C),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=f=x;continue e}C=C.parentNode}}o=o.return}Fp(function(){var Q=f,F=Ic(a),J=[];e:{var Y=Ev.get(e);if(Y!==void 0){var K=ps,fe=e;switch(e){case"keypress":if(hs(a)===0)break e;case"keydown":case"keyup":K=xj;break;case"focusin":fe="focus",K=rd;break;case"focusout":fe="blur",K=rd;break;case"beforeblur":case"afterblur":K=rd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Wp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=sj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Ej;break;case bv:case xv:case wv:K=dj;break;case Sv:K=Cj;break;case"scroll":case"scrollend":K=ij;break;case"wheel":K=_j;break;case"copy":case"cut":case"paste":K=hj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=ev;break;case"toggle":case"beforetoggle":K=Tj}var Se=(t&4)!==0,$e=!Se&&(e==="scroll"||e==="scrollend"),z=Se?Y!==null?Y+"Capture":null:Y;Se=[];for(var O=Q,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||z===null||(P=Ui(O,z),P!=null&&Se.push(go(O,P,B))),$e)break;O=O.return}0<Se.length&&(Y=new K(Y,fe,null,a,F),J.push({event:Y,listeners:Se}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Y&&a!==Wc&&(fe=a.relatedTarget||a.fromElement)&&(cr(fe)||fe[ur]))break e;if((K||Y)&&(Y=F.window===F?F:(Y=F.ownerDocument)?Y.defaultView||Y.parentWindow:window,K?(fe=a.relatedTarget||a.toElement,K=Q,fe=fe?cr(fe):null,fe!==null&&($e=u(fe),Se=fe.tag,fe!==$e||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(K=null,fe=Q),K!==fe)){if(Se=Wp,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=ev,P="onPointerLeave",z="onPointerEnter",O="pointer"),$e=K==null?Y:Li(K),B=fe==null?Y:Li(fe),Y=new Se(P,O+"leave",K,a,F),Y.target=$e,Y.relatedTarget=B,P=null,cr(F)===Q&&(Se=new Se(z,O+"enter",fe,a,F),Se.target=B,Se.relatedTarget=$e,P=Se),$e=P,K&&fe)t:{for(Se=R2,z=K,O=fe,B=0,P=z;P;P=Se(P))B++;P=0;for(var be=O;be;be=Se(be))P++;for(;0<B-P;)z=Se(z),B--;for(;0<P-B;)O=Se(O),P--;for(;B--;){if(z===O||O!==null&&z===O.alternate){Se=z;break t}z=Se(z),O=Se(O)}Se=null}else Se=null;K!==null&&Ky(J,Y,K,Se,!1),fe!==null&&$e!==null&&Ky(J,$e,fe,Se,!0)}}e:{if(Y=Q?Li(Q):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var He=sv;else if(iv(Y))if(uv)He=qj;else{He=Uj;var ve=Lj}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&Jc(Q.elementType)&&(He=sv):He=Hj;if(He&&(He=He(e,Q))){ov(J,He,a,F);break e}ve&&ve(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&Pc(Y,"number",Y.value)}switch(ve=Q?Li(Q):window,e){case"focusin":(iv(ve)||ve.contentEditable==="true")&&(br=ve,dd=Q,Ki=null);break;case"focusout":Ki=dd=br=null;break;case"mousedown":fd=!0;break;case"contextmenu":case"mouseup":case"dragend":fd=!1,gv(J,a,F);break;case"selectionchange":if(Qj)break;case"keydown":case"keyup":gv(J,a,F)}var Re;if(od)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else yr?lv(e,a)&&(Oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Oe="onCompositionStart");Oe&&(tv&&a.locale!=="ko"&&(yr||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&yr&&(Re=Pp()):(za=F,nd="value"in za?za.value:za.textContent,yr=!0)),ve=ru(Q,Oe),0<ve.length&&(Oe=new Ip(Oe,e,null,a,F),J.push({event:Oe,listeners:ve}),Re?Oe.data=Re:(Re=rv(a),Re!==null&&(Oe.data=Re)))),(Re=Aj?Dj(e,a):kj(e,a))&&(Oe=ru(Q,"onBeforeInput"),0<Oe.length&&(ve=new Ip("onBeforeInput","beforeinput",null,a,F),J.push({event:ve,listeners:Oe}),ve.data=Re)),j2(J,e,Q,a,F)}Gy(J,t)})}function go(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ru(e,t){for(var a=t+"Capture",o=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Ui(e,a),c!=null&&o.unshift(go(e,c,f)),c=Ui(e,t),c!=null&&o.push(go(e,c,f))),e.tag===3)return o;e=e.return}return[]}function R2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ky(e,t,a,o,c){for(var f=t._reactName,x=[];a!==null&&a!==o;){var C=a,M=C.alternate,Q=C.stateNode;if(C=C.tag,M!==null&&M===o)break;C!==5&&C!==26&&C!==27||Q===null||(M=Q,c?(Q=Ui(a,f),Q!=null&&x.unshift(go(a,Q,M))):c||(Q=Ui(a,f),Q!=null&&x.push(go(a,Q,M)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var T2=/\r\n?/g,M2=/\u0000|\uFFFD/g;function Xy(e){return(typeof e=="string"?e:""+e).replace(T2,`
49
+ `).replace(M2,"")}function $y(e,t){return t=Xy(t),Xy(e)===t}function Xe(e,t,a,o,c,f){switch(a){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||pr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&pr(e,""+o);break;case"className":us(e,"class",o);break;case"tabIndex":us(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":us(e,a,o);break;case"style":$p(e,o,f);break;case"data":if(t!=="object"){us(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ds(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Xe(e,t,"name",c.name,c,null),Xe(e,t,"formEncType",c.formEncType,c,null),Xe(e,t,"formMethod",c.formMethod,c,null),Xe(e,t,"formTarget",c.formTarget,c,null)):(Xe(e,t,"encType",c.encType,c,null),Xe(e,t,"method",c.method,c,null),Xe(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ds(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=aa);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=ds(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":De("beforetoggle",e),De("toggle",e),ss(e,"popover",o);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ss(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=lj.get(a)||a,ss(e,a,o))}}function Hf(e,t,a,o,c,f){switch(a){case"style":$p(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof o=="string"?pr(e,o):(typeof o=="number"||typeof o=="bigint")&&pr(e,""+o);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"onClick":o!=null&&(e.onclick=aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),f=e[Dt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof o=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,c);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):ss(e,a,o)}}}function Et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var o=!1,c=!1,f;for(f in a)if(a.hasOwnProperty(f)){var x=a[f];if(x!=null)switch(f){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,f,x,a,null)}}c&&Xe(e,t,"srcSet",a.srcSet,a,null),o&&Xe(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var C=f=x=c=null,M=null,Q=null;for(o in a)if(a.hasOwnProperty(o)){var F=a[o];if(F!=null)switch(o){case"name":c=F;break;case"type":x=F;break;case"checked":M=F;break;case"defaultChecked":Q=F;break;case"value":f=F;break;case"defaultValue":C=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,t));break;default:Xe(e,t,o,F,a,null)}}Gp(e,f,C,M,Q,x,c,!1);return;case"select":De("invalid",e),o=x=f=null;for(c in a)if(a.hasOwnProperty(c)&&(C=a[c],C!=null))switch(c){case"value":f=C;break;case"defaultValue":x=C;break;case"multiple":o=C;default:Xe(e,t,c,C,a,null)}t=f,a=x,e.multiple=!!o,t!=null?mr(e,!!o,t,!1):a!=null&&mr(e,!!o,a,!0);return;case"textarea":De("invalid",e),f=c=o=null;for(x in a)if(a.hasOwnProperty(x)&&(C=a[x],C!=null))switch(x){case"value":o=C;break;case"defaultValue":c=C;break;case"children":f=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:Xe(e,t,x,C,a,null)}Kp(e,o,c,f);return;case"option":for(M in a)if(a.hasOwnProperty(M)&&(o=a[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Xe(e,t,M,o,a,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(o=0;o<vo.length;o++)De(vo[o],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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(Q in a)if(a.hasOwnProperty(Q)&&(o=a[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,Q,o,a,null)}return;default:if(Jc(t)){for(F in a)a.hasOwnProperty(F)&&(o=a[F],o!==void 0&&Hf(e,t,F,o,a,void 0));return}}for(C in a)a.hasOwnProperty(C)&&(o=a[C],o!=null&&Xe(e,t,C,o,a,null))}function A2(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,x=null,C=null,M=null,Q=null,F=null;for(K in a){var J=a[K];if(a.hasOwnProperty(K)&&J!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(K)||Xe(e,t,K,null,o,J)}}for(var Y in o){var K=o[Y];if(J=a[Y],o.hasOwnProperty(Y)&&(K!=null||J!=null))switch(Y){case"type":f=K;break;case"name":c=K;break;case"checked":Q=K;break;case"defaultChecked":F=K;break;case"value":x=K;break;case"defaultValue":C=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:K!==J&&Xe(e,t,Y,K,o,J)}}Fc(e,x,C,M,Q,F,f,c);return;case"select":K=x=C=Y=null;for(f in a)if(M=a[f],a.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":K=M;default:o.hasOwnProperty(f)||Xe(e,t,f,null,o,M)}for(c in o)if(f=o[c],M=a[c],o.hasOwnProperty(c)&&(f!=null||M!=null))switch(c){case"value":Y=f;break;case"defaultValue":C=f;break;case"multiple":x=f;default:f!==M&&Xe(e,t,c,f,o,M)}t=C,a=x,o=K,Y!=null?mr(e,!!a,Y,!1):!!o!=!!a&&(t!=null?mr(e,!!a,t,!0):mr(e,!!a,a?[]:"",!1));return;case"textarea":K=Y=null;for(C in a)if(c=a[C],a.hasOwnProperty(C)&&c!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Xe(e,t,C,null,o,c)}for(x in o)if(c=o[x],f=a[x],o.hasOwnProperty(x)&&(c!=null||f!=null))switch(x){case"value":Y=c;break;case"defaultValue":K=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==f&&Xe(e,t,x,c,o,f)}Vp(e,Y,K);return;case"option":for(var fe in a)if(Y=a[fe],a.hasOwnProperty(fe)&&Y!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Xe(e,t,fe,null,o,Y)}for(M in o)if(Y=o[M],K=a[M],o.hasOwnProperty(M)&&Y!==K&&(Y!=null||K!=null))switch(M){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Xe(e,t,M,Y,o,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 Se in a)Y=a[Se],a.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&Xe(e,t,Se,null,o,Y);for(Q in o)if(Y=o[Q],K=a[Q],o.hasOwnProperty(Q)&&Y!==K&&(Y!=null||K!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Xe(e,t,Q,Y,o,K)}return;default:if(Jc(t)){for(var $e in a)Y=a[$e],a.hasOwnProperty($e)&&Y!==void 0&&!o.hasOwnProperty($e)&&Hf(e,t,$e,void 0,o,Y);for(F in o)Y=o[F],K=a[F],!o.hasOwnProperty(F)||Y===K||Y===void 0&&K===void 0||Hf(e,t,F,Y,o,K);return}}for(var z in a)Y=a[z],a.hasOwnProperty(z)&&Y!=null&&!o.hasOwnProperty(z)&&Xe(e,t,z,null,o,Y);for(J in o)Y=o[J],K=a[J],!o.hasOwnProperty(J)||Y===K||Y==null&&K==null||Xe(e,t,J,Y,o,K)}function Zy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function D2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var c=a[o],f=c.transferSize,x=c.initiatorType,C=c.duration;if(f&&C&&Zy(x)){for(x=0,C=c.responseEnd,o+=1;o<a.length;o++){var M=a[o],Q=M.startTime;if(Q>C)break;var F=M.transferSize,J=M.initiatorType;F&&Zy(J)&&(M=M.responseEnd,x+=F*(M<C?1:(C-Q)/(M-Q)))}if(--o,t+=8*(f+x)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var qf=null,Bf=null;function iu(e){return e.nodeType===9?e:e.ownerDocument}function Fy(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 Py(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 Qf(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 Yf=null;function k2(){var e=window.event;return e&&e.type==="popstate"?e===Yf?!1:(Yf=e,!0):(Yf=null,!1)}var Jy=typeof setTimeout=="function"?setTimeout:void 0,O2=typeof clearTimeout=="function"?clearTimeout:void 0,Wy=typeof Promise=="function"?Promise:void 0,z2=typeof queueMicrotask=="function"?queueMicrotask:typeof Wy<"u"?function(e){return Wy.resolve(null).then(e).catch(L2)}:Jy;function L2(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function Iy(e,t){var a=t,o=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(c),Xr(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")yo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,yo(a);for(var f=a.firstChild;f;){var x=f.nextSibling,C=f.nodeName;f[zi]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=x}}else a==="body"&&yo(e.ownerDocument.body);a=c}while(a);Xr(t)}function e0(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function Gf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Gf(a),$c(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function U2(e,t,a,o){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=pn(e.nextSibling),e===null)break}return null}function H2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=pn(e.nextSibling),e===null))return null;return e}function t0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pn(e.nextSibling),e===null))return null;return e}function Vf(e){return e.data==="$?"||e.data==="$~"}function Kf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function q2(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function pn(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 Xf=null;function n0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return pn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function a0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function l0(e,t,a){switch(t=iu(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function yo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$c(e)}var vn=new Map,r0=new Set;function ou(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=W.d;W.d={f:B2,r:Q2,D:Y2,C:G2,L:V2,m:K2,X:$2,S:X2,M:Z2};function B2(){var e=ba.f(),t=Ws();return e||t}function Q2(e){var t=dr(e);t!==null&&t.tag===5&&t.type==="form"?Sg(t):ba.r(e)}var Gr=typeof document>"u"?null:document;function i0(e,t,a){var o=Gr;if(o&&typeof t=="string"&&t){var c=sn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),r0.has(c)||(r0.add(c),e={rel:e,crossOrigin:a,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),Et(t,"link",e),gt(t),o.head.appendChild(t)))}}function Y2(e){ba.D(e),i0("dns-prefetch",e,null)}function G2(e,t){ba.C(e,t),i0("preconnect",e,t)}function V2(e,t,a){ba.L(e,t,a);var o=Gr;if(o&&e&&t){var c='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+sn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+sn(a.imageSizes)+'"]')):c+='[href="'+sn(e)+'"]';var f=c;switch(t){case"style":f=Vr(e);break;case"script":f=Kr(e)}vn.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),vn.set(f,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(bo(f))||t==="script"&&o.querySelector(xo(f))||(t=o.createElement("link"),Et(t,"link",e),gt(t),o.head.appendChild(t)))}}function K2(e,t){ba.m(e,t);var a=Gr;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+sn(o)+'"][href="'+sn(e)+'"]',f=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Kr(e)}if(!vn.has(f)&&(e=b({rel:"modulepreload",href:e},t),vn.set(f,e),a.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xo(f)))return}o=a.createElement("link"),Et(o,"link",e),gt(o),a.head.appendChild(o)}}}function X2(e,t,a){ba.S(e,t,a);var o=Gr;if(o&&e){var c=fr(o).hoistableStyles,f=Vr(e);t=t||"default";var x=c.get(f);if(!x){var C={loading:0,preload:null};if(x=o.querySelector(bo(f)))C.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=vn.get(f))&&$f(e,a);var M=x=o.createElement("link");gt(M),Et(M,"link",e),M._p=new Promise(function(Q,F){M.onload=Q,M.onerror=F}),M.addEventListener("load",function(){C.loading|=1}),M.addEventListener("error",function(){C.loading|=2}),C.loading|=4,su(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:C},c.set(f,x)}}}function $2(e,t){ba.X(e,t);var a=Gr;if(a&&e){var o=fr(a).hoistableScripts,c=Kr(e),f=o.get(c);f||(f=a.querySelector(xo(c)),f||(e=b({src:e,async:!0},t),(t=vn.get(c))&&Zf(e,t),f=a.createElement("script"),gt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function Z2(e,t){ba.M(e,t);var a=Gr;if(a&&e){var o=fr(a).hoistableScripts,c=Kr(e),f=o.get(c);f||(f=a.querySelector(xo(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=vn.get(c))&&Zf(e,t),f=a.createElement("script"),gt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function o0(e,t,a,o){var c=(c=Ee.current)?ou(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vr(a.href),a=fr(c).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vr(a.href);var f=fr(c).hoistableStyles,x=f.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,x),(f=c.querySelector(bo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),vn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},vn.set(e,a),f||F2(c,e,a,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kr(a),a=fr(c).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vr(e){return'href="'+sn(e)+'"'}function bo(e){return'link[rel="stylesheet"]['+e+"]"}function s0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function F2(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Et(t,"link",a),gt(t),e.head.appendChild(t))}function Kr(e){return'[src="'+sn(e)+'"]'}function xo(e){return"script[async]"+e}function u0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+sn(a.href)+'"]');if(o)return t.instance=o,gt(o),o;var c=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),gt(o),Et(o,"style",c),su(o,a.precedence,e),t.instance=o;case"stylesheet":c=Vr(a.href);var f=e.querySelector(bo(c));if(f)return t.state.loading|=4,t.instance=f,gt(f),f;o=s0(a),(c=vn.get(c))&&$f(o,c),f=(e.ownerDocument||e).createElement("link"),gt(f);var x=f;return x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),Et(f,"link",o),t.state.loading|=4,su(f,a.precedence,e),t.instance=f;case"script":return f=Kr(a.src),(c=e.querySelector(xo(f)))?(t.instance=c,gt(c),c):(o=a,(c=vn.get(f))&&(o=b({},a),Zf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),gt(c),Et(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,su(o,a.precedence,e));return t.instance}function su(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,f=c,x=0;x<o.length;x++){var C=o[x];if(C.dataset.precedence===t)f=C;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function $f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uu=null;function c0(e,t,a){if(uu===null){var o=new Map,c=uu=new Map;c.set(a,o)}else c=uu,o=c.get(a),o||(o=new Map,c.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var f=a[c];if(!(f[zi]||f[bt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(t)||"";x=e+x;var C=o.get(x);C?C.push(f):o.set(x,[f])}}return o}function d0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function P2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function f0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function J2(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=Vr(o.href),f=t.querySelector(bo(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,gt(f);return}f=t.ownerDocument||t,o=s0(o),(c=vn.get(c))&&$f(o,c),f=f.createElement("link"),gt(f);var x=f;x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),Et(f,"link",o),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=cu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ff=0;function W2(e,t){return e.stylesheets&&e.count===0&&fu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Ff===0&&(Ff=62500*D2());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ff?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var du=null;function fu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,du=new Map,t.forEach(I2,e),du=null,cu.call(e))}function I2(e,t){if(!(t.state.loading&4)){var a=du.get(e);if(a)var o=a.get(null);else{a=new Map,du.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var x=c[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),o=x)}o&&a.set(null,o)}c=t.instance,x=c.getAttribute("data-precedence"),f=a.get(x)||o,f===o&&a.set(null,c),a.set(x,c),this.count++,o=cu.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var wo={$$typeof:T,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function eC(e,t,a,o,c,f,x,C,M){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=Gc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gc(0),this.hiddenUpdates=Gc(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function h0(e,t,a,o,c,f,x,C,M,Q,F,J){return e=new eC(e,t,a,x,M,Q,F,J,C),t=1,f===!0&&(t|=24),f=Ft(3,null,null,t),e.current=f,f.stateNode=e,t=_d(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:a,cache:t},Ad(f),e}function m0(e){return e?(e=Sr,e):Sr}function p0(e,t,a,o,c,f){c=m0(c),o.context===null?o.context=c:o.pendingContext=c,o=Qa(t),o.payload={element:a},f=f===void 0?null:f,f!==null&&(o.callback=f),a=Ya(e,o,t),a!==null&&(Ht(a,e,t),Wi(a,e,t))}function v0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Pf(e,t){v0(e,t),(e=e.alternate)&&v0(e,t)}function g0(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&Ht(t,e,67108864),Pf(e,67108864)}}function y0(e){if(e.tag===13||e.tag===31){var t=en();t=Vc(t);var a=Tl(e,t);a!==null&&Ht(a,e,t),Pf(e,t)}}var hu=!0;function tC(e,t,a,o){var c=U.T;U.T=null;var f=W.p;try{W.p=2,Jf(e,t,a,o)}finally{W.p=f,U.T=c}}function nC(e,t,a,o){var c=U.T;U.T=null;var f=W.p;try{W.p=8,Jf(e,t,a,o)}finally{W.p=f,U.T=c}}function Jf(e,t,a,o){if(hu){var c=Wf(o);if(c===null)Uf(e,t,o,mu,a),x0(e,o);else if(lC(c,e,t,a,o))o.stopPropagation();else if(x0(e,o),t&4&&-1<aC.indexOf(e)){for(;c!==null;){var f=dr(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=jl(f.pendingLanes);if(x!==0){var C=f;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var M=1<<31-$t(x);C.entanglements[1]|=M,x&=~M}Yn(f),(Be&6)===0&&(Ps=Kt()+500,po(0))}}break;case 31:case 13:C=Tl(f,2),C!==null&&Ht(C,f,2),Ws(),Pf(f,2)}if(f=Wf(o),f===null&&Uf(e,t,o,mu,a),f===c)break;c=f}c!==null&&o.stopPropagation()}else Uf(e,t,o,null,a)}}function Wf(e){return e=Ic(e),If(e)}var mu=null;function If(e){if(mu=null,e=cr(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mu=e,null}function b0(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(YE()){case _p:return 2;case Rp:return 8;case as:case GE:return 32;case Tp:return 268435456;default:return 32}default:return 32}}var eh=!1,Ia=null,el=null,tl=null,So=new Map,Eo=new Map,nl=[],aC="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 x0(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eo.delete(t.pointerId)}}function jo(e,t,a,o,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:f,targetContainers:[c]},t!==null&&(t=dr(t),t!==null&&g0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function lC(e,t,a,o,c){switch(t){case"focusin":return Ia=jo(Ia,e,t,a,o,c),!0;case"dragenter":return el=jo(el,e,t,a,o,c),!0;case"mouseover":return tl=jo(tl,e,t,a,o,c),!0;case"pointerover":var f=c.pointerId;return So.set(f,jo(So.get(f)||null,e,t,a,o,c)),!0;case"gotpointercapture":return f=c.pointerId,Eo.set(f,jo(Eo.get(f)||null,e,t,a,o,c)),!0}return!1}function w0(e){var t=cr(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,zp(e.priority,function(){y0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,zp(e.priority,function(){y0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Wf(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Wc=o,a.target.dispatchEvent(o),Wc=null}else return t=dr(a),t!==null&&g0(t),e.blockedOn=a,!1;t.shift()}return!0}function S0(e,t,a){pu(e)&&a.delete(t)}function rC(){eh=!1,Ia!==null&&pu(Ia)&&(Ia=null),el!==null&&pu(el)&&(el=null),tl!==null&&pu(tl)&&(tl=null),So.forEach(S0),Eo.forEach(S0)}function vu(e,t){e.blockedOn===t&&(e.blockedOn=null,eh||(eh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,rC)))}var gu=null;function E0(e){gu!==e&&(gu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){gu===e&&(gu=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(If(o||a)===null)continue;break}var f=dr(a);f!==null&&(e.splice(t,3),t-=3,Jd(f,{pending:!0,data:c,method:a.method,action:o},o,c))}}))}function Xr(e){function t(M){return vu(M,e)}Ia!==null&&vu(Ia,e),el!==null&&vu(el,e),tl!==null&&vu(tl,e),So.forEach(t),Eo.forEach(t);for(var a=0;a<nl.length;a++){var o=nl[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<nl.length&&(a=nl[0],a.blockedOn===null);)w0(a),a.blockedOn===null&&nl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var c=a[o],f=a[o+1],x=c[Dt]||null;if(typeof f=="function")x||E0(a);else if(x){var C=null;if(f&&f.hasAttribute("formAction")){if(c=f,x=f[Dt]||null)C=x.formAction;else if(If(c)!==null)continue}else C=x.action;typeof C=="function"?a[o+1]=C:(a.splice(o,3),o-=3),E0(a)}}}function j0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(x){return c=x})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function th(e){this._internalRoot=e}yu.prototype.render=th.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,o=en();p0(a,o,e,t,null,null)},yu.prototype.unmount=th.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;p0(e.current,2,null,e,null,null),Ws(),t[ur]=null}};function yu(e){this._internalRoot=e}yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Op();e={blockedOn:null,target:e,priority:t};for(var a=0;a<nl.length&&t!==0&&t<nl[a].priority;a++);nl.splice(a,0,e),a===0&&w0(e)}};var C0=l.version;if(C0!=="19.2.3")throw Error(i(527,C0,"19.2.3"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var iC={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{Di=bu.inject(iC),Xt=bu}catch{}}return No.createRoot=function(e,t){if(!s(e))throw Error(i(299));var a=!1,o="",c=Dg,f=kg,x=Og;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=h0(e,1,!1,null,null,a,o,null,c,f,x,j0),e[ur]=t.current,Lf(e),new th(t)},No.hydrateRoot=function(e,t,a){if(!s(e))throw Error(i(299));var o=!1,c="",f=Dg,x=kg,C=Og,M=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.formState!==void 0&&(M=a.formState)),t=h0(e,1,!0,t,a??null,o,c,M,f,x,C,j0),t.context=m0(null),a=t.current,o=en(),o=Vc(o),c=Qa(o),c.callback=null,Ya(a,c,o),a=o,t.current.lanes=a,Oi(t,a),Yn(t),e[ur]=t.current,Lf(e),new yu(t)},No.version="19.2.3",No}var K0;function ZC(){if(K0)return ih.exports;K0=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(l){console.error(l)}}return n(),ih.exports=$C(),ih.exports}var FC=ZC(),_o={},X0;function PC(){if(X0)return _o;X0=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.parse=h,_o.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,u=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,E){const j=new u,S=w.length;if(S<2)return j;const N=(E==null?void 0:E.decode)||y;let _=0;do{const R=w.indexOf("=",_);if(R===-1)break;const T=w.indexOf(";",_),k=T===-1?S:T;if(R>k){_=w.lastIndexOf(";",R-1)+1;continue}const L=m(w,_,R),X=p(w,R,L),q=w.slice(L,X);if(j[q]===void 0){let H=m(w,R+1,k),G=p(w,k,H);const te=N(w.slice(H,G));j[q]=te}_=k+1}while(_<S);return j}function m(w,E,j){do{const S=w.charCodeAt(E);if(S!==32&&S!==9)return E}while(++E<j);return j}function p(w,E,j){for(;E>j;){const S=w.charCodeAt(--E);if(S!==32&&S!==9)return E+1}return j}function g(w,E,j){const S=(j==null?void 0:j.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const N=S(E);if(!l.test(N))throw new TypeError(`argument val is invalid: ${E}`);let _=w+"="+N;if(!j)return _;if(j.maxAge!==void 0){if(!Number.isInteger(j.maxAge))throw new TypeError(`option maxAge is invalid: ${j.maxAge}`);_+="; Max-Age="+j.maxAge}if(j.domain){if(!r.test(j.domain))throw new TypeError(`option domain is invalid: ${j.domain}`);_+="; Domain="+j.domain}if(j.path){if(!i.test(j.path))throw new TypeError(`option path is invalid: ${j.path}`);_+="; Path="+j.path}if(j.expires){if(!b(j.expires)||!Number.isFinite(j.expires.valueOf()))throw new TypeError(`option expires is invalid: ${j.expires}`);_+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(_+="; HttpOnly"),j.secure&&(_+="; Secure"),j.partitioned&&(_+="; Partitioned"),j.priority)switch(typeof j.priority=="string"?j.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${j.priority}`)}if(j.sameSite)switch(typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${j.sameSite}`)}return _}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function b(w){return s.call(w)==="[object Date]"}return _o}PC();var $0="popstate";function JC(n={}){function l(s,u){let{pathname:h="/",search:m="",hash:p=""}=rr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Yh("",{pathname:h,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(s,u){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof u=="string"?u:qo(u))}function i(s,u){Sn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return IC(l,r,i,n)}function Ie(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Sn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function WC(){return Math.random().toString(36).substring(2,10)}function Z0(n,l){return{usr:n.state,key:n.key,idx:l}}function Yh(n,l,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?rr(l):l,state:r,key:l&&l.key||i||WC()}}function qo({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function rr(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function IC(n,l,r,i={}){let{window:s=document.defaultView,v5Compat:u=!1}=i,h=s.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){m="POP";let N=y(),_=N==null?null:N-g;g=N,p&&p({action:m,location:S.location,delta:_})}function w(N,_){m="PUSH";let R=Yh(S.location,N,_);r&&r(R,N),g=y()+1;let T=Z0(R,g),k=S.createHref(R);try{h.pushState(T,"",k)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(k)}u&&p&&p({action:m,location:S.location,delta:1})}function E(N,_){m="REPLACE";let R=Yh(S.location,N,_);r&&r(R,N),g=y();let T=Z0(R,g),k=S.createHref(R);h.replaceState(T,"",k),u&&p&&p({action:m,location:S.location,delta:0})}function j(N){return eN(N)}let S={get action(){return m},get location(){return n(s,h)},listen(N){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener($0,b),p=N,()=>{s.removeEventListener($0,b),p=null}},createHref(N){return l(s,N)},createURL:j,encodeLocation(N){let _=j(N);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:E,go(N){return h.go(N)}};return S}function eN(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:qo(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function yx(n,l,r="/"){return tN(n,l,r,!1)}function tN(n,l,r,i){let s=typeof l=="string"?rr(l):l,u=Ra(s.pathname||"/",r);if(u==null)return null;let h=bx(n);nN(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=hN(u);m=dN(h[p],g,i)}return m}function bx(n,l=[],r=[],i=""){let s=(u,h,m)=>{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};p.relativePath.startsWith("/")&&(Ie(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Ca([i,p.relativePath]),y=r.concat(p);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),bx(u.children,l,y,g)),!(u.path==null&&!u.index)&&l.push({path:g,score:uN(g,u.index),routesMeta:y})};return n.forEach((u,h)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))s(u,h);else for(let p of xx(u.path))s(u,h,p)}),l}function xx(n){let l=n.split("/");if(l.length===0)return[];let[r,...i]=l,s=r.endsWith("?"),u=r.replace(/\?$/,"");if(i.length===0)return s?[u,""]:[u];let h=xx(i.join("/")),m=[];return m.push(...h.map(p=>p===""?u:[u,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function nN(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:cN(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var aN=/^:[\w-]+$/,lN=3,rN=2,iN=1,oN=10,sN=-2,F0=n=>n==="*";function uN(n,l){let r=n.split("/"),i=r.length;return r.some(F0)&&(i+=sN),l&&(i+=rN),r.filter(s=>!F0(s)).reduce((s,u)=>s+(aN.test(u)?lN:u===""?iN:oN),i)}function cN(n,l){return n.length===l.length&&n.slice(0,-1).every((i,s)=>i===l[s])?n[n.length-1]-l[l.length-1]:0}function dN(n,l,r=!1){let{routesMeta:i}=n,s={},u="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=u==="/"?l:l.slice(u.length)||"/",b=Qu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!b&&g&&r&&!i[i.length-1].route.index&&(b=Qu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),h.push({params:s,pathname:Ca([u,b.pathname]),pathnameBase:gN(Ca([u,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(u=Ca([u,b.pathnameBase]))}return h}function Qu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=fN(n.path,n.caseSensitive,n.end),s=l.match(r);if(!s)return null;let u=s[0],h=u.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:b},w)=>{if(y==="*"){let j=m[w]||"";h=u.slice(0,u.length-j.length).replace(/(.)\/+$/,"$1")}const E=m[w];return b&&!E?g[y]=void 0:g[y]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:h,pattern:n}}function fN(n,l=!1,r=!0){Sn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,l?void 0:"i"),i]}function hN(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Sn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function Ra(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function mN(n,l="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?rr(n):n;return{pathname:r?r.startsWith("/")?r:pN(r,l):l,search:yN(i),hash:bN(s)}}function pN(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function ch(n,l,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vN(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function bm(n){let l=vN(n);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function xm(n,l,r,i=!1){let s;typeof n=="string"?s=rr(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),ch("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),ch("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),ch("#","search","hash",s)));let u=n===""||s.pathname==="",h=u?"/":s.pathname,m;if(h==null)m=r;else{let b=l.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?l[b]:"/"}let p=mN(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(u||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ca=n=>n.join("/").replace(/\/\/+/g,"/"),gN=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),yN=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,bN=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function xN(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var wx=["POST","PUT","PATCH","DELETE"];new Set(wx);var wN=["GET",...wx];new Set(wN);var bi=v.createContext(null);bi.displayName="DataRouter";var lc=v.createContext(null);lc.displayName="DataRouterState";var Sx=v.createContext({isTransitioning:!1});Sx.displayName="ViewTransition";var SN=v.createContext(new Map);SN.displayName="Fetchers";var EN=v.createContext(null);EN.displayName="Await";var zn=v.createContext(null);zn.displayName="Navigation";var Zo=v.createContext(null);Zo.displayName="Location";var Ln=v.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var wm=v.createContext(null);wm.displayName="RouteError";function jN(n,{relative:l}={}){Ie(xi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(zn),{hash:s,pathname:u,search:h}=Fo(n,{relative:l}),m=u;return r!=="/"&&(m=u==="/"?r:Ca([r,u])),i.createHref({pathname:m,search:h,hash:s})}function xi(){return v.useContext(Zo)!=null}function Aa(){return Ie(xi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Zo).location}var Ex="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jx(n){v.useContext(zn).static||v.useLayoutEffect(n)}function Cx(){let{isDataRoute:n}=v.useContext(Ln);return n?UN():CN()}function CN(){Ie(xi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(bi),{basename:l,navigator:r}=v.useContext(zn),{matches:i}=v.useContext(Ln),{pathname:s}=Aa(),u=JSON.stringify(bm(i)),h=v.useRef(!1);return jx(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Sn(h.current,Ex),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=xm(p,JSON.parse(u),s,g.relative==="path");n==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:Ca([l,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[l,r,u,s,n])}v.createContext(null);function rc(){let{matches:n}=v.useContext(Ln),l=n[n.length-1];return l?l.params:{}}function Fo(n,{relative:l}={}){let{matches:r}=v.useContext(Ln),{pathname:i}=Aa(),s=JSON.stringify(bm(r));return v.useMemo(()=>xm(n,JSON.parse(s),i,l==="path"),[n,s,i,l])}function NN(n,l){return Nx(n,l)}function Nx(n,l,r,i){var _;Ie(xi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(zn),{matches:u}=v.useContext(Ln),h=u[u.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let R=y&&y.path||"";_x(p,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
+
51
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=Aa(),w;if(l){let R=typeof l=="string"?rr(l):l;Ie(g==="/"||((_=R.pathname)==null?void 0:_.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let E=w.pathname||"/",j=E;if(g!=="/"){let R=g.replace(/^\//,"").split("/");j="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=yx(n,{pathname:j});Sn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Sn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=AN(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Ca([g,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Ca([g,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),u,r,i);return l&&N?v.createElement(Zo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function _N(){let n=LN(),l=xN(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},l),r?v.createElement("pre",{style:s},r):null,h)}var RN=v.createElement(_N,null),TN=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){console.error("React Router caught the following error during render",n,l)}render(){return this.state.error!==void 0?v.createElement(Ln.Provider,{value:this.props.routeContext},v.createElement(wm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function MN({routeContext:n,match:l,children:r}){let i=v.useContext(bi);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(Ln.Provider,{value:n},r)}function AN(n,l=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,u=r==null?void 0:r.errors;if(u!=null){let p=s.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Ie(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:b}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let b,w=!1,E=null,j=null;r&&(b=u&&g.route.id?u[g.route.id]:void 0,E=g.route.errorElement||RN,h&&(m<0&&y===0?(_x("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,j=null):m===y&&(w=!0,j=g.route.hydrateFallbackElement||null)));let S=l.concat(s.slice(0,y+1)),N=()=>{let _;return b?_=E:w?_=j:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(MN,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(TN,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:N(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):N()},null)}function Sm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function DN(n){let l=v.useContext(bi);return Ie(l,Sm(n)),l}function kN(n){let l=v.useContext(lc);return Ie(l,Sm(n)),l}function ON(n){let l=v.useContext(Ln);return Ie(l,Sm(n)),l}function Em(n){let l=ON(n),r=l.matches[l.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function zN(){return Em("useRouteId")}function LN(){var i;let n=v.useContext(wm),l=kN("useRouteError"),r=Em("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[r]}function UN(){let{router:n}=DN("useNavigate"),l=Em("useNavigate"),r=v.useRef(!1);return jx(()=>{r.current=!0}),v.useCallback(async(s,u={})=>{Sn(r.current,Ex),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:l,...u}))},[n,l])}var P0={};function _x(n,l,r){!l&&!P0[n]&&(P0[n]=!0,Sn(!1,r))}v.memo(HN);function HN({routes:n,future:l,state:r}){return Nx(n,void 0,r,l)}function Su({to:n,replace:l,state:r,relative:i}){Ie(xi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(zn);Sn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=v.useContext(Ln),{pathname:h}=Aa(),m=Cx(),p=xm(n,bm(u),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:l,state:r,relative:i})},[m,g,i,l,r]),null}function Gl(n){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function qN({basename:n="/",children:l=null,location:r,navigationType:i="POP",navigator:s,static:u=!1}){Ie(!xi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:s,static:u,future:{}}),[h,s,u]);typeof r=="string"&&(r=rr(r));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,E=v.useMemo(()=>{let j=Ra(p,h);return j==null?null:{location:{pathname:j,search:g,hash:y,state:b,key:w},navigationType:i}},[h,p,g,y,b,w,i]);return Sn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(zn.Provider,{value:m},v.createElement(Zo.Provider,{children:l,value:E}))}function BN({children:n,location:l}){return NN(Gh(n),l)}function Gh(n,l=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let u=[...l,s];if(i.type===v.Fragment){r.push.apply(r,Gh(i.props.children,u));return}Ie(i.type===Gl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=Gh(i.props.children,u)),r.push(h)}),r}var ku="get",Ou="application/x-www-form-urlencoded";function ic(n){return n!=null&&typeof n.tagName=="string"}function QN(n){return ic(n)&&n.tagName.toLowerCase()==="button"}function YN(n){return ic(n)&&n.tagName.toLowerCase()==="form"}function GN(n){return ic(n)&&n.tagName.toLowerCase()==="input"}function VN(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function KN(n,l){return n.button===0&&(!l||l==="_self")&&!VN(n)}var Eu=null;function XN(){if(Eu===null)try{new FormData(document.createElement("form"),0),Eu=!1}catch{Eu=!0}return Eu}var $N=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dh(n){return n!=null&&!$N.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ou}"`),null):n}function ZN(n,l){let r,i,s,u,h;if(YN(n)){let m=n.getAttribute("action");i=m?Ra(m,l):null,r=n.getAttribute("method")||ku,s=dh(n.getAttribute("enctype"))||Ou,u=new FormData(n)}else if(QN(n)||GN(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?Ra(p,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||ku,s=dh(n.getAttribute("formenctype"))||dh(m.getAttribute("enctype"))||Ou,u=new FormData(m,n),!XN()){let{name:g,type:y,value:b}=n;if(y==="image"){let w=g?`${g}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else g&&u.append(g,b)}}else{if(ic(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ku,i=null,s=Ou,h=n}return u&&s==="text/plain"&&(h=u,u=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:u,body:h}}function jm(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function FN(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function PN(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function JN(n,l,r){let i=await Promise.all(n.map(async s=>{let u=l.routes[s.route.id];if(u){let h=await FN(u,r);return h.links?h.links():[]}return[]}));return t_(i.flat(1).filter(PN).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function J0(n,l,r,i,s,u){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return u==="assets"?l.filter((p,g)=>h(p,g)||m(p,g)):u==="data"?l.filter((p,g)=>{var b;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function WN(n,l,{includeHydrateFallback:r}={}){return IN(n.map(i=>{let s=l.routes[i.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function IN(n){return[...new Set(n)]}function e_(n){let l={},r=Object.keys(n).sort();for(let i of r)l[i]=n[i];return l}function t_(n,l){let r=new Set;return new Set(l),n.reduce((i,s)=>{let u=JSON.stringify(e_(s));return r.has(u)||(r.add(u),i.push({key:u,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var n_=new Set([100,101,204,205]);function a_(n,l){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":l&&Ra(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Rx(){let n=v.useContext(bi);return jm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function l_(){let n=v.useContext(lc);return jm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Cm=v.createContext(void 0);Cm.displayName="FrameworkContext";function Tx(){let n=v.useContext(Cm);return jm(n,"You must render this element inside a <HydratedRouter> element"),n}function r_(n,l){let r=v.useContext(Cm),[i,s]=v.useState(!1),[u,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(R=>{h(R.isIntersecting)})},N=new IntersectionObserver(S,{threshold:.5});return w.current&&N.observe(w.current),()=>{N.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[i]);let E=()=>{s(!0)},j=()=>{s(!1),h(!1)};return r?n!=="intent"?[u,w,{}]:[u,w,{onFocus:Ro(m,E),onBlur:Ro(p,j),onMouseEnter:Ro(g,E),onMouseLeave:Ro(y,j),onTouchStart:Ro(b,E)}]:[!1,w,{}]}function Ro(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function i_({page:n,...l}){let{router:r}=Rx(),i=v.useMemo(()=>yx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(s_,{page:n,matches:i,...l}):null}function o_(n){let{manifest:l,routeModules:r}=Tx(),[i,s]=v.useState([]);return v.useEffect(()=>{let u=!1;return JN(n,l,r).then(h=>{u||s(h)}),()=>{u=!0}},[n,l,r]),i}function s_({page:n,matches:l,...r}){let i=Aa(),{manifest:s,routeModules:u}=Tx(),{basename:h}=Rx(),{loaderData:m,matches:p}=l_(),g=v.useMemo(()=>J0(n,l,p,s,i,"data"),[n,l,p,s,i]),y=v.useMemo(()=>J0(n,l,p,s,i,"assets"),[n,l,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let j=new Set,S=!1;if(l.forEach(_=>{var T;let R=s.routes[_.route.id];!R||!R.hasLoader||(!g.some(k=>k.route.id===_.route.id)&&_.route.id in m&&((T=u[_.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?S=!0:j.add(_.route.id))}),j.size===0)return[];let N=a_(n,h);return S&&j.size>0&&N.searchParams.set("_routes",l.filter(_=>j.has(_.route.id)).map(_=>_.route.id).join(",")),[N.pathname+N.search]},[h,m,i,s,g,l,n,u]),w=v.useMemo(()=>WN(y,s),[y,s]),E=o_(y);return v.createElement(v.Fragment,null,b.map(j=>v.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),w.map(j=>v.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),E.map(({key:j,link:S})=>v.createElement("link",{key:j,...S})))}function u_(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Mx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Mx&&(window.__reactRouterVersion="7.6.1")}catch{}function c_({basename:n,children:l,window:r}){let i=v.useRef();i.current==null&&(i.current=JC({window:r,v5Compat:!0}));let s=i.current,[u,h]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement(qN,{basename:n,children:l,location:u.location,navigationType:u.action,navigator:s})}var Ax=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ja=v.forwardRef(function({onClick:l,discover:r="render",prefetch:i="none",relative:s,reloadDocument:u,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:b,...w},E){let{basename:j}=v.useContext(zn),S=typeof g=="string"&&Ax.test(g),N,_=!1;if(typeof g=="string"&&S&&(N=g,Mx))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=Ra(te.pathname,j);te.origin===G.origin&&ue!=null?g=ue+te.search+te.hash:_=!0}catch{Sn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=jN(g,{relative:s}),[T,k,L]=r_(i,w),X=m_(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:b});function q(G){l&&l(G),G.defaultPrevented||X(G)}let H=v.createElement("a",{...w,...L,href:N||R,onClick:_||u?l:q,ref:u_(E,k),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,H,v.createElement(i_,{page:R})):H});ja.displayName="Link";var d_=v.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:i="",end:s=!1,style:u,to:h,viewTransition:m,children:p,...g},y){let b=Fo(h,{relative:g.relative}),w=Aa(),E=v.useContext(lc),{navigator:j,basename:S}=v.useContext(zn),N=E!=null&&b_(b)&&m===!0,_=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,R=w.pathname,T=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;r||(R=R.toLowerCase(),T=T?T.toLowerCase():null,_=_.toLowerCase()),T&&S&&(T=Ra(T,S)||T);const k=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=R===_||!s&&R.startsWith(_)&&R.charAt(k)==="/",X=T!=null&&(T===_||!s&&T.startsWith(_)&&T.charAt(_.length)==="/"),q={isActive:L,isPending:X,isTransitioning:N},H=L?l:void 0,G;typeof i=="function"?G=i(q):G=[i,L?"active":null,X?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let te=typeof u=="function"?u(q):u;return v.createElement(ja,{...g,"aria-current":H,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(q):p)});d_.displayName="NavLink";var f_=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:s,state:u,method:h=ku,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,...w},E)=>{let j=g_(),S=y_(m,{relative:g}),N=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Ax.test(m),R=T=>{if(p&&p(T),T.defaultPrevented)return;T.preventDefault();let k=T.nativeEvent.submitter,L=(k==null?void 0:k.getAttribute("formmethod"))||h;j(k||T.currentTarget,{fetcherKey:l,method:L,navigate:r,replace:s,state:u,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:E,method:N,action:S,onSubmit:i?p:R,...w,"data-discover":!_&&n==="render"?"true":void 0})});f_.displayName="Form";function h_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dx(n){let l=v.useContext(bi);return Ie(l,h_(n)),l}function m_(n,{target:l,replace:r,state:i,preventScrollReset:s,relative:u,viewTransition:h}={}){let m=Cx(),p=Aa(),g=Fo(n,{relative:u});return v.useCallback(y=>{if(KN(y,l)){y.preventDefault();let b=r!==void 0?r:qo(p)===qo(g);m(n,{replace:b,state:i,preventScrollReset:s,relative:u,viewTransition:h})}},[p,m,g,r,i,l,n,s,u,h])}var p_=0,v_=()=>`__${String(++p_)}__`;function g_(){let{router:n}=Dx("useSubmit"),{basename:l}=v.useContext(zn),r=zN();return v.useCallback(async(i,s={})=>{let{action:u,method:h,encType:m,formData:p,body:g}=ZN(i,l);if(s.navigate===!1){let y=s.fetcherKey||v_();await n.fetch(y,r,s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,l,r])}function y_(n,{relative:l}={}){let{basename:r}=v.useContext(zn),i=v.useContext(Ln);Ie(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),u={...Fo(n||".",{relative:l})},h=Aa();if(n==null){u.search=h.search;let m=new URLSearchParams(u.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let y=m.toString();u.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Ca([r,u.pathname])),qo(u)}function b_(n,l={}){let r=v.useContext(Sx);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Dx("useViewTransitionState"),s=Fo(n,{relative:l.relative});if(!r.isTransitioning)return!1;let u=Ra(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ra(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Qu(s.pathname,h)!=null||Qu(s.pathname,u)!=null}[...n_];var Po=gx();const kx=nx(Po);/**
52
+ * @license lucide-react v0.488.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const x_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),w_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),W0=n=>{const l=w_(n);return l.charAt(0).toUpperCase()+l.slice(1)},Ox=(...n)=>n.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim();/**
57
+ * @license lucide-react v0.488.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */var S_={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"};/**
62
+ * @license lucide-react v0.488.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const E_=v.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...S_,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:Ox("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
67
+ * @license lucide-react v0.488.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const rt=(n,l)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(E_,{ref:u,iconNode:l,className:Ox(`lucide-${x_(W0(n))}`,`lucide-${n}`,i),...s}));return r.displayName=W0(n),r};/**
72
+ * @license lucide-react v0.488.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const j_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],C_=rt("arrow-left",j_);/**
77
+ * @license lucide-react v0.488.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const N_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],__=rt("ban",N_);/**
82
+ * @license lucide-react v0.488.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const R_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zx=rt("chevron-down",R_);/**
87
+ * @license lucide-react v0.488.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const T_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Lx=rt("chevron-left",T_);/**
92
+ * @license lucide-react v0.488.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const M_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],oc=rt("chevron-right",M_);/**
97
+ * @license lucide-react v0.488.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const A_=[["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"}]],D_=rt("circle-alert",A_);/**
102
+ * @license lucide-react v0.488.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const k_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],sc=rt("circle-check",k_);/**
107
+ * @license lucide-react v0.488.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const O_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],uc=rt("circle-x",O_);/**
112
+ * @license lucide-react v0.488.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],cc=rt("clock",z_);/**
117
+ * @license lucide-react v0.488.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const L_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Ux=rt("columns-3",L_);/**
122
+ * @license lucide-react v0.488.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const U_=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],H_=rt("database",U_);/**
127
+ * @license lucide-react v0.488.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const q_=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],B_=rt("git-branch",q_);/**
132
+ * @license lucide-react v0.488.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Q_=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Y_=rt("inbox",Q_);/**
137
+ * @license lucide-react v0.488.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const G_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Hx=rt("info",G_);/**
142
+ * @license lucide-react v0.488.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const V_=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],qx=rt("key",V_);/**
147
+ * @license lucide-react v0.488.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const K_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Dn=rt("loader-circle",K_);/**
152
+ * @license lucide-react v0.488.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const X_=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],$_=rt("mail-warning",X_);/**
157
+ * @license lucide-react v0.488.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const Z_=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Bx=rt("play",Z_);/**
162
+ * @license lucide-react v0.488.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const F_=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],dc=rt("refresh-cw",F_);/**
167
+ * @license lucide-react v0.488.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const P_=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],J_=rt("settings",P_);/**
172
+ * @license lucide-react v0.488.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const W_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],I_=rt("shield",W_);/**
177
+ * @license lucide-react v0.488.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const eR=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],fc=rt("table",eR);function Qx(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(l=0;l<n.length;l++)n[l]&&(r=Qx(n[l]))&&(i&&(i+=" "),i+=r);else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function tR(){for(var n,l,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(l=Qx(n))&&(i&&(i+=" "),i+=l);return i}const Nm="-",nR=n=>{const l=lR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const u=s.split(Nm);return u[0]===""&&u.length!==1&&u.shift(),Yx(u,l)||aR(s)},getConflictingClassGroupIds:(s,u)=>{const h=r[s]||[];return u&&i[s]?[...h,...i[s]]:h}}},Yx=(n,l)=>{var r;if(n.length===0)return l.classGroupId;const i=n[0],s=l.nextPart.get(i),u=s?Yx(n.slice(1),s):void 0;if(u)return u;if(l.validators.length===0)return;const h=n.join(Nm);return(r=l.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},I0=/^\[(.+)\]$/,aR=n=>{if(I0.test(n)){const l=I0.exec(n)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},lR=n=>{const{theme:l,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Vh(r[s],i,s,l);return i},Vh=(n,l,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?l:eb(l,s);u.classGroupId=r;return}if(typeof s=="function"){if(rR(s)){Vh(s(i),l,r,i);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([u,h])=>{Vh(h,eb(l,u),r,i)})})},eb=(n,l)=>{let r=n;return l.split(Nm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},rR=n=>n.isThemeGetter,iR=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,i=new Map;const s=(u,h)=>{r.set(u,h),l++,l>n&&(l=0,i=r,r=new Map)};return{get(u){let h=r.get(u);if(h!==void 0)return h;if((h=i.get(u))!==void 0)return s(u,h),h},set(u,h){r.has(u)?r.set(u,h):s(u,h)}}},Kh="!",Xh=":",oR=Xh.length,sR=n=>{const{prefix:l,experimentalParseClassName:r}=n;let i=s=>{const u=[];let h=0,m=0,p=0,g;for(let j=0;j<s.length;j++){let S=s[j];if(h===0&&m===0){if(S===Xh){u.push(s.slice(p,j)),p=j+oR;continue}if(S==="/"){g=j;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=u.length===0?s:s.substring(p),b=uR(y),w=b!==y,E=g&&g>p?g-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:E}};if(l){const s=l+Xh,u=i;i=h=>h.startsWith(s)?u(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=u=>r({className:u,parseClassName:s})}return i},uR=n=>n.endsWith(Kh)?n.substring(0,n.length-1):n.startsWith(Kh)?n.substring(1):n,cR=n=>{const l=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(u=>{u[0]==="["||l[u]?(i.push(...s.sort(),u),s=[]):s.push(u)}),i.push(...s.sort()),i}},dR=n=>({cache:iR(n.cacheSize),parseClassName:sR(n),sortModifiers:cR(n),...nR(n)}),fR=/\s+/,hR=(n,l)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=l,h=[],m=n.trim().split(fR);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:w,hasImportantModifier:E,baseClassName:j,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let N=!!S,_=i(N?j.substring(0,S):j);if(!_){if(!N){p=y+(p.length>0?" "+p:p);continue}if(_=i(j),!_){p=y+(p.length>0?" "+p:p);continue}N=!1}const R=u(w).join(":"),T=E?R+Kh:R,k=T+_;if(h.includes(k))continue;h.push(k);const L=s(_,N);for(let X=0;X<L.length;++X){const q=L[X];h.push(T+q)}p=y+(p.length>0?" "+p:p)}return p};function mR(){let n=0,l,r,i="";for(;n<arguments.length;)(l=arguments[n++])&&(r=Gx(l))&&(i&&(i+=" "),i+=r);return i}const Gx=n=>{if(typeof n=="string")return n;let l,r="";for(let i=0;i<n.length;i++)n[i]&&(l=Gx(n[i]))&&(r&&(r+=" "),r+=l);return r};function pR(n,...l){let r,i,s,u=h;function h(p){const g=l.reduce((y,b)=>b(y),n());return r=dR(g),i=r.cache.get,s=r.cache.set,u=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=hR(p,r);return s(p,y),y}return function(){return u(mR.apply(null,arguments))}}const mt=n=>{const l=r=>r[n]||[];return l.isThemeGetter=!0,l},Vx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vR=/^\d+\/\d+$/,gR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yR=/\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$/,bR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=n=>vR.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),ll=n=>!!n&&Number.isInteger(Number(n)),fh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),xa=n=>gR.test(n),SR=()=>!0,ER=n=>yR.test(n)&&!bR.test(n),Xx=()=>!1,jR=n=>xR.test(n),CR=n=>wR.test(n),NR=n=>!he(n)&&!me(n),_R=n=>wi(n,Fx,Xx),he=n=>Vx.test(n),Yl=n=>wi(n,Px,ER),hh=n=>wi(n,DR,Me),tb=n=>wi(n,$x,Xx),RR=n=>wi(n,Zx,CR),ju=n=>wi(n,Jx,jR),me=n=>Kx.test(n),To=n=>Si(n,Px),TR=n=>Si(n,kR),nb=n=>Si(n,$x),MR=n=>Si(n,Fx),AR=n=>Si(n,Zx),Cu=n=>Si(n,Jx,!0),wi=(n,l,r)=>{const i=Vx.exec(n);return i?i[1]?l(i[1]):r(i[2]):!1},Si=(n,l,r=!1)=>{const i=Kx.exec(n);return i?i[1]?l(i[1]):r:!1},$x=n=>n==="position"||n==="percentage",Zx=n=>n==="image"||n==="url",Fx=n=>n==="length"||n==="size"||n==="bg-size",Px=n=>n==="length",DR=n=>n==="number",kR=n=>n==="family-name",Jx=n=>n==="shadow",OR=()=>{const n=mt("color"),l=mt("font"),r=mt("text"),i=mt("font-weight"),s=mt("tracking"),u=mt("leading"),h=mt("breakpoint"),m=mt("container"),p=mt("spacing"),g=mt("radius"),y=mt("shadow"),b=mt("inset-shadow"),w=mt("text-shadow"),E=mt("drop-shadow"),j=mt("blur"),S=mt("perspective"),N=mt("aspect"),_=mt("ease"),R=mt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),me,he],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[me,he,p],G=()=>[$r,"full","auto",...H()],te=()=>[ll,"none","subgrid",me,he],ue=()=>["auto",{span:["full",ll,me,he]},ll,me,he],ce=()=>[ll,"auto",me,he],I=()=>["auto","min","max","fr",me,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...H()],W=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],V=()=>[n,me,he],$=()=>[...k(),nb,tb,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",MR,_R,{size:[me,he]}],Z=()=>[fh,To,Yl],ee=()=>["","none","full",g,me,he],le=()=>["",Me,To,Yl],pe=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,fh,nb,tb],je=()=>["","none",j,me,he],ge=()=>["none",Me,me,he],Ce=()=>["none",Me,me,he],Ue=()=>[Me,me,he],Ye=()=>[$r,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[SR],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[NR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",Me],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,he,me,N]}],container:["container"],columns:[{columns:[Me,he,me,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:L()}],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:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[ll,"auto",me,he]}],basis:[{basis:[$r,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,$r,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[ll,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[m,"screen",...W()]}],"min-w":[{"min-w":[m,"screen","none",...W()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,To,Yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,hh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fh,he]}],"font-family":[{font:[TR,he,l]}],"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:[s,me,he]}],"line-clamp":[{"line-clamp":[Me,"none",me,hh]}],leading:[{leading:[u,...H()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Yl]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Me,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],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",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ll,me,he],radial:["",me,he],conic:[ll,me,he]},AR,RR]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,he]}],"outline-w":[{outline:["",Me,To,Yl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",y,Cu,ju]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Cu,ju]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Me,Yl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Cu,ju]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Me,me,he]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:je()}],brightness:[{brightness:[Me,me,he]}],contrast:[{contrast:[Me,me,he]}],"drop-shadow":[{"drop-shadow":["","none",E,Cu,ju]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Me,me,he]}],"hue-rotate":[{"hue-rotate":[Me,me,he]}],invert:[{invert:["",Me,me,he]}],saturate:[{saturate:[Me,me,he]}],sepia:[{sepia:["",Me,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[Me,me,he]}],animate:[{animate:["none",R,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,me,he]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",me,he]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Me,To,Yl,hh]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zR=pR(OR);function ye(...n){return zR(tR(n))}function zo(n){return n===null?"-":n<1e3?`${n}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const LR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},UR={sm:"dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]",md:"dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]",lg:"dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]"};function Yu({children:n,className:l,rounded:r="lg",shadow:i="md",...s}){return d.jsxs("div",{"data-slot":"glass-container",className:ye("relative","bg-card","backdrop-blur-xl","border border-border",LR[r],UR[i],l),...s,children:[d.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"relative z-10",children:n})]})}function Qt({className:n,rounded:l="2xl",shadow:r="lg",children:i,...s}){return d.jsx(Yu,{"data-slot":"card",rounded:l,shadow:r,className:ye("p-6",n),...s,children:i})}function bn({className:n,...l}){return d.jsx("div",{"data-slot":"card-header",className:ye("flex flex-row items-center justify-between space-y-0 pb-2",n),...l})}function xn({className:n,...l}){return d.jsx("h3",{"data-slot":"card-title",className:ye("font-semibold text-sm leading-none text-card-foreground",n),...l})}function Na({className:n,...l}){return d.jsx("p",{"data-slot":"card-description",className:ye("text-muted-foreground text-sm",n),...l})}function Yt({className:n,...l}){return d.jsx("div",{"data-slot":"card-content",className:ye(n),...l})}/**
182
+ * @license lucide-react v0.511.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const HR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),ab=n=>{const l=qR(n);return l.charAt(0).toUpperCase()+l.slice(1)},Wx=(...n)=>n.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim(),BR=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
187
+ * @license lucide-react v0.511.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */var QR={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"};/**
192
+ * @license lucide-react v0.511.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const YR=v.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...QR,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:Wx("lucide",s),...!u&&!BR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
197
+ * @license lucide-react v0.511.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const Un=(n,l)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(YR,{ref:u,iconNode:l,className:Wx(`lucide-${HR(ab(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ab(n),r};/**
202
+ * @license lucide-react v0.511.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const GR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ix=Un("check",GR);/**
207
+ * @license lucide-react v0.511.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const VR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],KR=Un("chevron-down",VR);/**
212
+ * @license lucide-react v0.511.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const XR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],lb=Un("chevron-left",XR);/**
217
+ * @license lucide-react v0.511.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const $R=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rb=Un("chevron-right",$R);/**
222
+ * @license lucide-react v0.511.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const ZR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],FR=Un("chevron-up",ZR);/**
227
+ * @license lucide-react v0.511.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const PR=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],JR=Un("clipboard",PR);/**
232
+ * @license lucide-react v0.511.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const WR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],IR=Un("file-json",WR);/**
237
+ * @license lucide-react v0.511.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const eT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],tT=Un("file-spreadsheet",eT);/**
242
+ * @license lucide-react v0.511.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const nT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aT=Un("loader-circle",nT);/**
247
+ * @license lucide-react v0.511.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const lT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rT=Un("search",lT);/**
252
+ * @license lucide-react v0.511.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const iT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oT=Un("x",iT);function sT(n){const l=Math.floor((new Date().getTime()-n.getTime())/1e3);return l<5?"just now":l<60?`${l}s ago`:l<3600?`${Math.floor(l/60)}m ago`:l<86400?`${Math.floor(l/3600)}h ago`:l<604800?`${Math.floor(l/86400)}d ago`:n.toLocaleDateString()}function mh({value:n}){const[l,r]=v.useState(!1);return d.jsx("button",{onClick:async i=>{i.stopPropagation();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),2e3)}catch{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),r(!0),setTimeout(()=>r(!1),2e3)}},className:ye("p-1 rounded transition-colors flex-shrink-0",l?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:l?"Copied!":"Copy to clipboard",children:l?d.jsx(Ix,{className:"w-3 h-3"}):d.jsx(JR,{className:"w-3 h-3"})})}function Wl({timestamp:n,className:l,rawValue:r,forceOpen:i=!1}){const[s,u]=v.useState(!1),[,h]=v.useState(0),m=i||s;if(v.useEffect(()=>{const w=setInterval(()=>{h(E=>E+1)},1e3);return()=>clearInterval(w)},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),y=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),b=sT(p);return d.jsxs("div",{className:ye("relative inline-block",l),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[d.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:b}),d.jsx("div",{className:ye("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:d.jsx(Yu,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:d.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:String(r)}),d.jsx(mh,{value:String(r)})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),d.jsx(mh,{value:g})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),d.jsx(mh,{value:y})]})]})]})})})]})}function uT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function cT(n){return typeof n!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(l=>l.test(n))}function dT(n){const l=n.toLowerCase();return!!(l.includes("created")||l.includes("date")||l.includes("updated")||n.endsWith("At")||l.endsWith("_at"))}function fT(n,l){for(const r of l){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&dT(n)?"date":typeof i=="number"?"number":cT(i)?"date":"string"}return"string"}function ew({results:n,meta:l,columns:r,error:i,title:s="Results",pageSize:u=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[b,w]=v.useState(null),[E,j]=v.useState(new Set),[S,N]=v.useState(1),_=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,T=p?Math.ceil(p.total/p.limit):1,k=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(I=>({key:I,label:I,type:fT(I,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(I=>Object.values(I).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),X=v.useMemo(()=>b?[...L].sort((I,ie)=>{const re=I[b.key],U=ie[b.key];return re==null?1:U==null?-1:re<U?b.direction==="asc"?-1:1:re>U?b.direction==="asc"?1:-1:0}):L,[L,b]),q=Math.ceil(X.length/u),H=v.useMemo(()=>{const I=(S-1)*u;return X.slice(I,I+u)},[X,S,u]);v.useMemo(()=>{N(1)},[g,b]);const G=I=>{w(ie=>(ie==null?void 0:ie.key)===I?ie.direction==="asc"?{key:I,direction:"desc"}:null:{key:I,direction:"asc"})},te=()=>{E.size===H.length?j(new Set):j(new Set(H.map((I,ie)=>ie)))},ue=I=>{const ie=new Set(E);ie.has(I)?ie.delete(I):ie.add(I),j(ie)},ce=(I,ie)=>{const re=I[ie.key];if(re==null)return d.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type||"string"){case"bool":return re?d.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:d.jsx(Ix,{className:"w-3.5 h-3.5"})}):d.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:d.jsx(oT,{className:"w-3.5 h-3.5"})});case"date":return d.jsx(Wl,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():String(re)});default:return typeof re=="object"?d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):d.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:String(re)})}};return i?d.jsxs(Yu,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[d.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:d.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),d.jsx("div",{className:"p-5",children:d.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):d.jsxs(Yu,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[d.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),l&&d.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:uT(l.duration)}),d.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"relative group",children:[d.jsx(rT,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 group-focus-within:text-blue-500 transition-colors"}),d.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:I=>y(I.target.value),className:"pl-9 pr-4 py-2 rounded-lg text-sm bg-gray-100 dark:bg-white/[0.06] border border-transparent focus:bg-white dark:focus:bg-black focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all w-full sm:w-64 dark:text-white text-gray-900 placeholder-gray-500"})]}),(h||m)&&d.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&d.jsx("button",{onClick:h,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export CSV",children:d.jsx(tT,{className:"w-4 h-4"})}),m&&d.jsx("button",{onClick:m,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export JSON",children:d.jsx(IR,{className:"w-4 h-4"})})]})]})]}),d.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:d.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[d.jsx("th",{className:"p-4 w-12",children:d.jsx("input",{type:"checkbox",checked:E.size===H.length&&H.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(I=>d.jsx("th",{className:"p-4 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400 cursor-pointer hover:text-blue-500 dark:hover:text-blue-400 transition-colors select-none group",onClick:()=>G(I.key),children:d.jsxs("div",{className:"flex items-center gap-1",children:[I.label,d.jsxs("div",{className:ye("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===I.key&&"opacity-100"),children:[d.jsx(FR,{className:ye("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="asc"&&"text-blue-500")}),d.jsx(KR,{className:ye("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),d.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:H.length>0?H.map((I,ie)=>d.jsxs("tr",{className:ye("group transition-colors",E.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[d.jsx("td",{className:"p-4",children:d.jsx("input",{type:"checkbox",checked:E.has(ie),onChange:()=>ue(ie),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(re=>d.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(I,re)},`${ie}-${re.key}`))]},ie)):d.jsx("tr",{children:d.jsx("td",{colSpan:k.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"Query executed successfully. No rows returned."})})})]})}),d.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[d.jsxs("div",{children:[_?d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:X.length})," ","results"]}),E.size>0&&d.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[E.size," row",E.size!==1?"s":""," ","selected"]})]}),_&&T>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>p.onPageChange(Math.max(0,p.offset-p.limit)),disabled:R===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(lb,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(T,5)},(I,ie)=>{let re;return T<=5||R<=3?re=ie+1:R>=T-2?re=T-4+ie:re=R-2+ie,d.jsx("button",{onClick:()=>p.onPageChange((re-1)*p.limit),className:ye("px-2.5 py-1 rounded-lg font-medium transition-colors",R===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),d.jsx("button",{onClick:()=>p.onPageChange(p.offset+p.limit),disabled:R===T,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(rb,{className:"w-4 h-4"})})]}),!_&&q>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>N(I=>Math.max(1,I-1)),disabled:S===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(lb,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(I,ie)=>{let re;return q<=5||S<=3?re=ie+1:S>=q-2?re=q-4+ie:re=S-2+ie,d.jsx("button",{onClick:()=>N(re),className:ye("px-2.5 py-1 rounded-lg font-medium transition-colors",S===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),d.jsx("button",{onClick:()=>N(I=>Math.min(q,I+1)),disabled:S===q,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(rb,{className:"w-4 h-4"})})]})]})]})}function hc({className:n,...l}){return d.jsx("table",{"data-slot":"table",className:ye("w-full caption-bottom text-sm",n),...l})}function mc({className:n,...l}){return d.jsx("thead",{"data-slot":"table-header",className:ye("[&_tr]:border-b",n),...l})}function pc({className:n,...l}){return d.jsx("tbody",{"data-slot":"table-body",className:ye("[&_tr:last-child]:border-0",n),...l})}function yl({className:n,...l}){return d.jsx("tr",{"data-slot":"table-row",className:ye("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...l})}function tn({className:n,...l}){return d.jsx("th",{"data-slot":"table-head",className:ye("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...l})}function nn({className:n,...l}){return d.jsx("td",{"data-slot":"table-cell",className:ye("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...l})}function ib(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Jo(...n){return l=>{let r=!1;const i=n.map(s=>{const u=ib(s,l);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():ib(n[s],null)}}}}function we(...n){return v.useCallback(Jo(...n),n)}function tr(n){const l=hT(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(mT);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(l,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(l,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}var ob=tr("Slot");function hT(n){const l=v.forwardRef((r,i)=>{const{children:s,...u}=r;if(v.isValidElement(s)){const h=vT(s),m=pT(u,s.props);return s.type!==v.Fragment&&(m.ref=i?Jo(i,h):h),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var tw=Symbol("radix.slottable");function nw(n){const l=({children:r})=>d.jsx(d.Fragment,{children:r});return l.displayName=`${n}.Slottable`,l.__radixId=tw,l}function mT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===tw}function pT(n,l){const r={...l};for(const i in l){const s=n[i],u=l[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function vT(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function aw(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l<s;l++)n[l]&&(r=aw(n[l]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function gT(){for(var n,l,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=aw(n))&&(i&&(i+=" "),i+=l);return i}const sb=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ub=gT,lw=(n,l)=>r=>{var i;if((l==null?void 0:l.variants)==null)return ub(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:u}=l,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],b=u==null?void 0:u[g];if(y===null)return null;const w=sb(y)||sb(b);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[b,w]=y;return w===void 0||(g[b]=w),g},{}),p=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:b,className:w,...E}=y;return Object.entries(E).every(j=>{let[S,N]=j;return Array.isArray(N)?N.includes({...u,...m}[S]):{...u,...m}[S]===N})?[...g,b,w]:g},[]);return ub(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},yT={default:"text-gray-600 bg-gray-100 border-gray-200 dark:text-gray-400 dark:bg-gray-900 dark:border-gray-500/20",success:"text-green-600 bg-green-50 border-green-200 dark:text-green-400 dark:bg-green-950 dark:border-green-500/20",error:"text-red-600 bg-red-50 border-red-200 dark:text-red-400 dark:bg-red-950 dark:border-red-500/20",warning:"text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-400 dark:bg-yellow-950 dark:border-yellow-500/20",purple:"text-purple-600 bg-purple-50 border-purple-200 dark:text-purple-400 dark:bg-purple-950 dark:border-purple-500/20",blue:"text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-500/20",orange:"text-orange-600 bg-orange-50 border-orange-200 dark:text-orange-400 dark:bg-orange-950 dark:border-orange-500/20",emerald:"text-emerald-600 bg-emerald-50 border-emerald-200 dark:text-emerald-400 dark:bg-emerald-950 dark:border-emerald-500/20"};function Gu({className:n,icon:l,variant:r="default",children:i,...s}){return d.jsxs("div",{className:ye("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",yT[r],n),...s,children:[l&&d.jsx("span",{className:"flex-shrink-0",children:l}),d.jsx("span",{className:"leading-none",children:i})]})}const cb=lw("relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent dark:focus-visible:ring-white/20 focus-visible:ring-black/10 cursor-pointer overflow-hidden",{variants:{variant:{default:"rounded-md bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",primary:ye("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-white/[0.08] bg-black/[0.05]","dark:border-white/[0.1] border-black/[0.1]","dark:text-white text-gray-900","dark:hover:bg-white/[0.15] hover:bg-black/[0.1]","dark:hover:border-white/[0.2] hover:border-black/[0.2]"),secondary:ye("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.05] hover:bg-black/[0.04]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.15] hover:border-gray-300"),destructive:"rounded-md bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",danger:ye("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-red-500/[0.1] bg-red-500/[0.05]","dark:border-red-500/[0.2] border-red-500/[0.2]","dark:text-red-400 text-red-600","dark:hover:bg-red-500/[0.2] hover:bg-red-500/[0.1]","dark:hover:border-red-500/[0.3] hover:border-red-500/[0.3]"),success:ye("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-emerald-500/[0.1] bg-emerald-500/[0.05]","dark:border-emerald-500/[0.2] border-emerald-500/[0.2]","dark:text-emerald-400 text-emerald-600","dark:hover:bg-emerald-500/[0.2] hover:bg-emerald-500/[0.1]","dark:hover:border-emerald-500/[0.3] hover:border-emerald-500/[0.3]"),outline:"rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:ye("rounded-lg border border-transparent","dark:text-gray-400 text-gray-600","dark:hover:text-white hover:text-gray-900","dark:hover:bg-white/[0.08] hover:bg-black/[0.06]"),link:"text-primary underline-offset-4 hover:underline",icon:ye("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),bT=["primary","secondary","danger","success","icon"];function _t({className:n,variant:l,size:r,asChild:i=!1,isLoading:s=!1,children:u,disabled:h,...m}){const p=i?ob:"button",g=l&&bT.includes(l);return i?d.jsx(ob,{"data-slot":"button",className:ye(cb({variant:l,size:r,className:n})),...m,children:u}):d.jsxs(p,{"data-slot":"button",className:ye(cb({variant:l,size:r,className:n})),disabled:h||s,...m,children:[g&&d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),d.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&d.jsx(aT,{className:"size-4 animate-spin"}),u]})]})}const rw=({ref:n,className:l,active:r=!1,icon:i,children:s,"data-state":u,...h})=>{const m=r||u==="active";return d.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":u,className:ye("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",l),...h,children:[i&&d.jsx(i,{className:"size-4"}),s,d.jsx("span",{className:ye("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})};rw.displayName="TabButton";const xT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function wT({className:n,label:l,error:r,leftIcon:i,rightContent:s,inputSize:u="md",...h}){return d.jsxs("div",{className:"w-full",children:[l&&d.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:l}),d.jsx("div",{className:"relative",children:d.jsxs("div",{className:ye("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),d.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&d.jsx("div",{className:"relative z-10 pl-4",children:d.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),d.jsx("input",{className:ye("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",xT[u],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&d.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&d.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var ST=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=ST.reduce((n,l)=>{const r=tr(`Primitive.${l}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function Vu(n,l){n&&Po.flushSync(()=>n.dispatchEvent(l))}var et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function ET(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var vt=n=>{const{present:l,children:r}=n,i=jT(l),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),u=we(i.ref,CT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:u}):null};vt.displayName="Presence";function jT(n){const[l,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),u=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=ET(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Nu(i.current);u.current=m==="mounted"?g:"none"},[m]),et(()=>{const g=i.current,y=s.current;if(y!==n){const b=u.current,w=Nu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),et(()=>{if(l){let g;const y=l.ownerDocument.defaultView??window,b=E=>{const j=Nu(i.current).includes(CSS.escape(E.animationName));if(E.target===l&&j&&(p("ANIMATION_END"),!s.current)){const S=l.style.animationFillMode;l.style.animationFillMode="forwards",g=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=S)})}},w=E=>{E.target===l&&(u.current=Nu(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",b),l.addEventListener("animationend",b),()=>{y.clearTimeout(g),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",b),l.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Nu(n){return(n==null?void 0:n.animationName)||"none"}function CT(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function NT(n,l){const r=v.createContext(l),i=u=>{const{children:h,...m}=u,p=v.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(u){const h=v.useContext(r);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,s]}function ft(n,l=[]){let r=[];function i(u,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=b=>{var w;const{scope:E,children:j,...S}=b,N=((w=E==null?void 0:E[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return d.jsx(N.Provider,{value:_,children:j})};g.displayName=u+"Provider";function y(b,w){var E;const j=((E=w==null?void 0:w[n])==null?void 0:E[p])||m,S=v.useContext(j);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[g,y]}const s=()=>{const u=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,_T(s,...l)]}function _T(...n){const l=n[0];if(n.length===1)return l;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const u=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:u}),[u])}};return r.scopeName=l.scopeName,r}function We(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=l.current)==null?void 0:i.call(l,...r)},[])}var RT=v.createContext(void 0);function Ei(n){const l=v.useContext(RT);return n||l||"ltr"}function $h(n,[l,r]){return Math.min(r,Math.max(l,n))}function ae(n,l,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return l==null?void 0:l(i)}}function TT(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var _m="ScrollArea",[iw,K5]=ft(_m),[MT,En]=iw(_m),ow=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:u=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(null),[E,j]=v.useState(null),[S,N]=v.useState(null),[_,R]=v.useState(0),[T,k]=v.useState(0),[L,X]=v.useState(!1),[q,H]=v.useState(!1),G=we(l,ue=>p(ue)),te=Ei(s);return d.jsx(MT,{scope:r,type:i,dir:te,scrollHideDelay:u,scrollArea:m,viewport:g,onViewportChange:y,content:b,onContentChange:w,scrollbarX:E,onScrollbarXChange:j,scrollbarXEnabled:L,onScrollbarXEnabledChange:X,scrollbarY:S,onScrollbarYChange:N,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:R,onCornerHeightChange:k,children:d.jsx(oe.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});ow.displayName=_m;var sw="ScrollAreaViewport",uw=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,children:i,nonce:s,...u}=n,h=En(sw,r),m=v.useRef(null),p=we(l,m,h.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...u,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:d.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});uw.displayName=sw;var Pn="ScrollAreaScrollbar",cw=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?u(!0):h(!0),()=>{m?u(!1):h(!1)}),[m,u,h]),s.type==="hover"?d.jsx(AT,{...i,ref:l,forceMount:r}):s.type==="scroll"?d.jsx(DT,{...i,ref:l,forceMount:r}):s.type==="auto"?d.jsx(dw,{...i,ref:l,forceMount:r}):s.type==="always"?d.jsx(Rm,{...i,ref:l}):null});cw.displayName=Pn;var AT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),[u,h]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),d.jsx(vt,{present:r||u,children:d.jsx(dw,{"data-state":u?"visible":"hidden",...i,ref:l})})}),DT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),u=n.orientation==="horizontal",h=gc(()=>p("SCROLL_END"),100),[m,p]=TT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=u?"scrollLeft":"scrollTop";if(g){let b=g[y];const w=()=>{const E=g[y];b!==E&&(p("SCROLL"),h()),b=E};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,u,p,h]),d.jsx(vt,{present:r||m!=="hidden",children:d.jsx(Rm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:l,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),dw=v.forwardRef((n,l)=>{const r=En(Pn,n.__scopeScrollArea),{forceMount:i,...s}=n,[u,h]=v.useState(!1),m=n.orientation==="horizontal",p=gc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return mi(r.viewport,p),mi(r.content,p),d.jsx(vt,{present:i||u,children:d.jsx(Rm,{"data-state":u?"visible":"hidden",...s,ref:l})})}),Rm=v.forwardRef((n,l)=>{const{orientation:r="vertical",...i}=n,s=En(Pn,n.__scopeScrollArea),u=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=vw(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>u.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function b(w,E){return HT(w,h.current,m,E)}return r==="horizontal"?d.jsx(kT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollLeft,E=db(w,m,s.dir);u.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=b(w,s.dir))}}):r==="vertical"?d.jsx(OT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollTop,E=db(w,m);u.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=b(w))}}):null}),kT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,u=En(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(l,p,u.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(hw,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":vc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),yw(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Xu(h.paddingLeft),paddingEnd:Xu(h.paddingRight)}})}})}),OT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,u=En(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(l,p,u.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(hw,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":vc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),yw(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Xu(h.paddingTop),paddingEnd:Xu(h.paddingBottom)}})}})}),[zT,fw]=iw(Pn),hw=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:u,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:b,...w}=n,E=En(Pn,r),[j,S]=v.useState(null),N=we(l,G=>S(G)),_=v.useRef(null),R=v.useRef(""),T=E.viewport,k=i.content-i.viewport,L=We(y),X=We(p),q=gc(b,10);function H(G){if(_.current){const te=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:te,y:ue})}}return v.useEffect(()=>{const G=te=>{const ue=te.target;j!=null&&j.contains(ue)&&L(te,k)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,j,k,L]),v.useEffect(X,[i,X]),mi(j,q),mi(E.content,q),d.jsx(zT,{scope:r,scrollbar:j,hasThumb:s,onThumbChange:We(u),onThumbPointerUp:We(h),onThumbPositionChange:X,onThumbPointerDown:We(m),children:d.jsx(oe.div,{...w,ref:N,style:{position:"absolute",...w.style},onPointerDown:ae(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),_.current=j.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),H(G))}),onPointerMove:ae(n.onPointerMove,H),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=R.current,E.viewport&&(E.viewport.style.scrollBehavior=""),_.current=null})})})}),Ku="ScrollAreaThumb",mw=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=fw(Ku,n.__scopeScrollArea);return d.jsx(vt,{present:r||s.hasThumb,children:d.jsx(LT,{ref:l,...i})})}),LT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,style:i,...s}=n,u=En(Ku,r),h=fw(Ku,r),{onThumbPositionChange:m}=h,p=we(l,b=>h.onThumbChange(b)),g=v.useRef(void 0),y=gc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const b=u.viewport;if(b){const w=()=>{if(y(),!g.current){const E=qT(b,m);g.current=E,m()}};return m(),b.addEventListener("scroll",w),()=>b.removeEventListener("scroll",w)}},[u.viewport,y,m]),d.jsx(oe.div,{"data-state":h.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),E=b.clientX-w.left,j=b.clientY-w.top;h.onThumbPointerDown({x:E,y:j})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});mw.displayName=Ku;var Tm="ScrollAreaCorner",pw=v.forwardRef((n,l)=>{const r=En(Tm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?d.jsx(UT,{...n,ref:l}):null});pw.displayName=Tm;var UT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,...i}=n,s=En(Tm,r),[u,h]=v.useState(0),[m,p]=v.useState(0),g=!!(u&&m);return mi(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),mi(s.scrollbarY,()=>{var y;const b=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(b),h(b)}),g?d.jsx(oe.div,{...i,ref:l,style:{width:u,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Xu(n){return n?parseInt(n,10):0}function vw(n,l){const r=n/l;return isNaN(r)?0:r}function vc(n){const l=vw(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*l;return Math.max(i,18)}function HT(n,l,r,i="ltr"){const s=vc(r),u=s/2,h=l||u,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,b=i==="ltr"?[0,y]:[y*-1,0];return gw([p,g],b)(n)}function db(n,l,r="ltr"){const i=vc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=l.scrollbar.size-s,h=l.content-l.viewport,m=u-i,p=r==="ltr"?[0,h]:[h*-1,0],g=$h(n,p);return gw([0,h],[0,m])(g)}function gw(n,l){return r=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const i=(l[1]-l[0])/(n[1]-n[0]);return l[0]+i*(r-n[0])}}function yw(n,l){return n>0&&n<l}var qT=(n,l=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},h=r.left!==u.left,m=r.top!==u.top;(h||m)&&l(),r=u,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function gc(n,l){const r=We(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,l)},[r,l])}function mi(n,l){const r=We(l);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var BT=ow,QT=uw,YT=pw;function bw({className:n,children:l,...r}){return d.jsxs(BT,{"data-slot":"scroll-area",className:ye("relative",n),...r,children:[d.jsx(QT,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:l}),d.jsx(GT,{}),d.jsx(YT,{})]})}function GT({className:n,orientation:l="vertical",...r}){return d.jsx(cw,{"data-slot":"scroll-area-scrollbar",orientation:l,className:ye("flex touch-none p-px transition-colors select-none",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:d.jsx(mw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var VT=hx[" useInsertionEffect ".trim().toString()]||et;function Jn({prop:n,defaultProp:l,onChange:r=()=>{},caller:i}){const[s,u,h]=KT({defaultProp:l,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const b=y.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var b;if(m){const w=XT(y)?y(n):y;w!==n&&((b=h.current)==null||b.call(h,w))}else u(y)},[m,n,u,h]);return[p,g]}function KT({defaultProp:n,onChange:l}){const[r,i]=v.useState(n),s=v.useRef(r),u=v.useRef(l);return VT(()=>{u.current=l},[l]),v.useEffect(()=>{var h;s.current!==r&&((h=u.current)==null||h.call(u,r),s.current=r)},[r,s]),[r,i,u]}function XT(n){return typeof n=="function"}function ji(n){const l=n+"CollectionProvider",[r,i]=ft(l),[s,u]=r(l,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:N,children:_}=S,R=lt.useRef(null),T=lt.useRef(new Map).current;return d.jsx(s,{scope:N,itemMap:T,collectionRef:R,children:_})};h.displayName=l;const m=n+"CollectionSlot",p=tr(m),g=lt.forwardRef((S,N)=>{const{scope:_,children:R}=S,T=u(m,_),k=we(N,T.collectionRef);return d.jsx(p,{ref:k,children:R})});g.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=tr(y),E=lt.forwardRef((S,N)=>{const{scope:_,children:R,...T}=S,k=lt.useRef(null),L=we(N,k),X=u(y,_);return lt.useEffect(()=>(X.itemMap.set(k,{ref:k,...T}),()=>void X.itemMap.delete(k))),d.jsx(w,{[b]:"",ref:L,children:R})});E.displayName=y;function j(S){const N=u(n+"CollectionConsumer",S);return lt.useCallback(()=>{const _=N.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((T,k)=>R.indexOf(T.ref.current)-R.indexOf(k.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:h,Slot:g,ItemSlot:E},j,i]}function $T(n,l=globalThis==null?void 0:globalThis.document){const r=We(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[r,l])}var ZT="DismissableLayer",Zh="dismissableLayer.update",FT="dismissableLayer.pointerDownOutside",PT="dismissableLayer.focusOutside",fb,xw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ci=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(xw),[y,b]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=v.useState({}),j=we(l,q=>b(q)),S=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(N),R=y?S.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,k=R>=_,L=IT(q=>{const H=q.target,G=[...g.branches].some(te=>te.contains(H));!k||G||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),X=eM(q=>{const H=q.target;[...g.branches].some(G=>G.contains(H))||(u==null||u(q),h==null||h(q),q.defaultPrevented||m==null||m())},w);return $T(q=>{R===g.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(fb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),hb(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=fb)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),hb())},[y,g]),v.useEffect(()=>{const q=()=>E({});return document.addEventListener(Zh,q),()=>document.removeEventListener(Zh,q)},[]),d.jsx(oe.div,{...p,ref:j,style:{pointerEvents:T?k?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,X.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Ci.displayName=ZT;var JT="DismissableLayerBranch",WT=v.forwardRef((n,l)=>{const r=v.useContext(xw),i=v.useRef(null),s=we(l,i);return v.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),d.jsx(oe.div,{...n,ref:s})});WT.displayName=JT;function IT(n,l=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let p=function(){ww(FT,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=p,l.addEventListener("click",s.current,{once:!0})):p()}else l.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{l.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(h),l.removeEventListener("pointerdown",u),l.removeEventListener("click",s.current)}},[l,r]),{onPointerDownCapture:()=>i.current=!0}}function eM(n,l=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1);return v.useEffect(()=>{const s=u=>{u.target&&!i.current&&ww(PT,r,{originalEvent:u},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function hb(){const n=new CustomEvent(Zh);document.dispatchEvent(n)}function ww(n,l,r,{discrete:i}){const s=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});l&&s.addEventListener(n,l,{once:!0}),i?Vu(s,u):s.dispatchEvent(u)}var ph=0;function Mm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??mb()),document.body.insertAdjacentElement("beforeend",n[1]??mb()),ph++,()=>{ph===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),ph--}},[])}function mb(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var vh="focusScope.autoFocusOnMount",gh="focusScope.autoFocusOnUnmount",pb={bubbles:!1,cancelable:!0},tM="FocusScope",yc=v.forwardRef((n,l)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...h}=n,[m,p]=v.useState(null),g=We(s),y=We(u),b=v.useRef(null),w=we(l,S=>p(S)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(E.paused||!m)return;const k=T.target;m.contains(k)?b.current=k:il(b.current,{select:!0})},N=function(T){if(E.paused||!m)return;const k=T.relatedTarget;k!==null&&(m.contains(k)||il(b.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const k of T)k.removedNodes.length>0&&il(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",N);const R=new MutationObserver(_);return m&&R.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",N),R.disconnect()}}},[i,m,E.paused]),v.useEffect(()=>{if(m){gb.add(E);const S=document.activeElement;if(!m.contains(S)){const N=new CustomEvent(vh,pb);m.addEventListener(vh,g),m.dispatchEvent(N),N.defaultPrevented||(nM(oM(Sw(m)),{select:!0}),document.activeElement===S&&il(m))}return()=>{m.removeEventListener(vh,g),setTimeout(()=>{const N=new CustomEvent(gh,pb);m.addEventListener(gh,y),m.dispatchEvent(N),N.defaultPrevented||il(S??document.body,{select:!0}),m.removeEventListener(gh,y),gb.remove(E)},0)}}},[m,g,y,E]);const j=v.useCallback(S=>{if(!r&&!i||E.paused)return;const N=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(N&&_){const R=S.currentTarget,[T,k]=aM(R);T&&k?!S.shiftKey&&_===k?(S.preventDefault(),r&&il(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&il(k,{select:!0})):_===R&&S.preventDefault()}},[r,i,E.paused]);return d.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:j})});yc.displayName=tM;function nM(n,{select:l=!1}={}){const r=document.activeElement;for(const i of n)if(il(i,{select:l}),document.activeElement!==r)return}function aM(n){const l=Sw(n),r=vb(l,n),i=vb(l.reverse(),n);return[r,i]}function Sw(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function vb(n,l){for(const r of n)if(!lM(r,{upTo:l}))return r}function lM(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function rM(n){return n instanceof HTMLInputElement&&"select"in n}function il(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&rM(n)&&l&&n.select()}}var gb=iM();function iM(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=yb(n,l),n.unshift(l)},remove(l){var r;n=yb(n,l),(r=n[0])==null||r.resume()}}}function yb(n,l){const r=[...n],i=r.indexOf(l);return i!==-1&&r.splice(i,1),r}function oM(n){return n.filter(l=>l.tagName!=="A")}var sM=hx[" useId ".trim().toString()]||(()=>{}),uM=0;function wl(n){const[l,r]=v.useState(sM());return et(()=>{r(i=>i??String(uM++))},[n]),l?`radix-${l}`:""}const cM=["top","right","bottom","left"],bl=Math.min,an=Math.max,$u=Math.round,_u=Math.floor,Zn=n=>({x:n,y:n}),dM={left:"right",right:"left",bottom:"top",top:"bottom"},fM={start:"end",end:"start"};function Fh(n,l,r){return an(n,bl(l,r))}function Ta(n,l){return typeof n=="function"?n(l):n}function Ma(n){return n.split("-")[0]}function Ni(n){return n.split("-")[1]}function Am(n){return n==="x"?"y":"x"}function Dm(n){return n==="y"?"height":"width"}const hM=new Set(["top","bottom"]);function $n(n){return hM.has(Ma(n))?"y":"x"}function km(n){return Am($n(n))}function mM(n,l,r){r===void 0&&(r=!1);const i=Ni(n),s=km(n),u=Dm(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(h=Zu(h)),[h,Zu(h)]}function pM(n){const l=Zu(n);return[Ph(n),l,Ph(l)]}function Ph(n){return n.replace(/start|end/g,l=>fM[l])}const bb=["left","right"],xb=["right","left"],vM=["top","bottom"],gM=["bottom","top"];function yM(n,l,r){switch(n){case"top":case"bottom":return r?l?xb:bb:l?bb:xb;case"left":case"right":return l?vM:gM;default:return[]}}function bM(n,l,r,i){const s=Ni(n);let u=yM(Ma(n),r==="start",i);return s&&(u=u.map(h=>h+"-"+s),l&&(u=u.concat(u.map(Ph)))),u}function Zu(n){return n.replace(/left|right|bottom|top/g,l=>dM[l])}function xM(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ew(n){return typeof n!="number"?xM(n):{top:n,right:n,bottom:n,left:n}}function Fu(n){const{x:l,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:l,right:l+i,bottom:r+s,x:l,y:r}}function wb(n,l,r){let{reference:i,floating:s}=n;const u=$n(l),h=km(l),m=Dm(h),p=Ma(l),g=u==="y",y=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,w=i[m]/2-s[m]/2;let E;switch(p){case"top":E={x:y,y:i.y-s.height};break;case"bottom":E={x:y,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:b};break;case"left":E={x:i.x-s.width,y:b};break;default:E={x:i.x,y:i.y}}switch(Ni(l)){case"start":E[h]-=w*(r&&g?-1:1);break;case"end":E[h]+=w*(r&&g?-1:1);break}return E}const wM=async(n,l,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:h}=r,m=u.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(l));let g=await h.getElementRects({reference:n,floating:l,strategy:s}),{x:y,y:b}=wb(g,i,p),w=i,E={},j=0;for(let S=0;S<m.length;S++){const{name:N,fn:_}=m[S],{x:R,y:T,data:k,reset:L}=await _({x:y,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:E,rects:g,platform:h,elements:{reference:n,floating:l}});y=R??y,b=T??b,E={...E,[N]:{...E[N],...k}},L&&j<=50&&(j++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await h.getElementRects({reference:n,floating:l,strategy:s}):L.rects),{x:y,y:b}=wb(g,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:E}};async function Bo(n,l){var r;l===void 0&&(l={});const{x:i,y:s,platform:u,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:w=!1,padding:E=0}=Ta(l,n),j=Ew(E),S=m[w?b==="floating"?"reference":"floating":b],N=Fu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(S)))==null||r?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),_=b==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),T=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},k=Fu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:R,strategy:p}):_);return{top:(N.top-k.top+j.top)/T.y,bottom:(k.bottom-N.bottom+j.bottom)/T.y,left:(N.left-k.left+j.left)/T.x,right:(k.right-N.right+j.right)/T.x}}const SM=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:i,placement:s,rects:u,platform:h,elements:m,middlewareData:p}=l,{element:g,padding:y=0}=Ta(n,l)||{};if(g==null)return{};const b=Ew(y),w={x:r,y:i},E=km(s),j=Dm(E),S=await h.getDimensions(g),N=E==="y",_=N?"top":"left",R=N?"bottom":"right",T=N?"clientHeight":"clientWidth",k=u.reference[j]+u.reference[E]-w[E]-u.floating[j],L=w[E]-u.reference[E],X=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let q=X?X[T]:0;(!q||!await(h.isElement==null?void 0:h.isElement(X)))&&(q=m.floating[T]||u.floating[j]);const H=k/2-L/2,G=q/2-S[j]/2-1,te=bl(b[_],G),ue=bl(b[R],G),ce=te,I=q-S[j]-ue,ie=q/2-S[j]/2+H,re=Fh(ce,ie,I),U=!p.arrow&&Ni(s)!=null&&ie!==re&&u.reference[j]/2-(ie<ce?te:ue)-S[j]/2<0,W=U?ie<ce?ie-ce:ie-I:0;return{[E]:w[E]+W,data:{[E]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),EM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,i;const{placement:s,middlewareData:u,rects:h,initialPlacement:m,platform:p,elements:g}=l,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,...N}=Ta(n,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Ma(s),R=$n(m),T=Ma(m)===m,k=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[Zu(m)]:pM(m)),X=j!=="none";!w&&X&&L.push(...bM(m,S,j,k));const q=[m,...L],H=await Bo(l,N),G=[];let te=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[_]),b){const ie=mM(s,h,k);G.push(H[ie[0]],H[ie[1]])}if(te=[...te,{placement:s,overflows:G}],!G.every(ie=>ie<=0)){var ue,ce;const ie=(((ue=u.flip)==null?void 0:ue.index)||0)+1,re=q[ie];if(re&&(!(b==="alignment"&&R!==$n(re))||te.every(W=>$n(W.placement)===R?W.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(ce=te.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:ce.placement;if(!U)switch(E){case"bestFit":{var I;const W=(I=te.filter(V=>{if(X){const $=$n(V.placement);return $===R||$==="y"}return!0}).map(V=>[V.placement,V.overflows.filter($=>$>0).reduce(($,de)=>$+de,0)]).sort((V,$)=>V[1]-$[1])[0])==null?void 0:I[0];W&&(U=W);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function Sb(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Eb(n){return cM.some(l=>n[l]>=0)}const jM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r}=l,{strategy:i="referenceHidden",...s}=Ta(n,l);switch(i){case"referenceHidden":{const u=await Bo(l,{...s,elementContext:"reference"}),h=Sb(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Eb(h)}}}case"escaped":{const u=await Bo(l,{...s,altBoundary:!0}),h=Sb(u,r.floating);return{data:{escapedOffsets:h,escaped:Eb(h)}}}default:return{}}}}},jw=new Set(["left","top"]);async function CM(n,l){const{placement:r,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Ma(r),m=Ni(r),p=$n(r)==="y",g=jw.has(h)?-1:1,y=u&&p?-1:1,b=Ta(l,n);let{mainAxis:w,crossAxis:E,alignmentAxis:j}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof j=="number"&&(E=m==="end"?j*-1:j),p?{x:E*y,y:w*g}:{x:w*g,y:E*y}}const NM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,i;const{x:s,y:u,placement:h,middlewareData:m}=l,p=await CM(l,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:h}}}}},_M=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:i,placement:s}=l,{mainAxis:u=!0,crossAxis:h=!1,limiter:m={fn:N=>{let{x:_,y:R}=N;return{x:_,y:R}}},...p}=Ta(n,l),g={x:r,y:i},y=await Bo(l,p),b=$n(Ma(s)),w=Am(b);let E=g[w],j=g[b];if(u){const N=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=E+y[N],T=E-y[_];E=Fh(R,E,T)}if(h){const N=b==="y"?"top":"left",_=b==="y"?"bottom":"right",R=j+y[N],T=j-y[_];j=Fh(R,j,T)}const S=m.fn({...l,[w]:E,[b]:j});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:u,[b]:h}}}}}},RM=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:r,y:i,placement:s,rects:u,middlewareData:h}=l,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Ta(n,l),y={x:r,y:i},b=$n(s),w=Am(b);let E=y[w],j=y[b];const S=Ta(m,l),N=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",k=u.reference[w]-u.floating[T]+N.mainAxis,L=u.reference[w]+u.reference[T]-N.mainAxis;E<k?E=k:E>L&&(E=L)}if(g){var _,R;const T=w==="y"?"width":"height",k=jw.has(Ma(s)),L=u.reference[b]-u.floating[T]+(k&&((_=h.offset)==null?void 0:_[b])||0)+(k?0:N.crossAxis),X=u.reference[b]+u.reference[T]+(k?0:((R=h.offset)==null?void 0:R[b])||0)-(k?N.crossAxis:0);j<L?j=L:j>X&&(j=X)}return{[w]:E,[b]:j}}}},TM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var r,i;const{placement:s,rects:u,platform:h,elements:m}=l,{apply:p=()=>{},...g}=Ta(n,l),y=await Bo(l,g),b=Ma(s),w=Ni(s),E=$n(s)==="y",{width:j,height:S}=u.floating;let N,_;b==="top"||b==="bottom"?(N=b,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=b,N=w==="end"?"top":"bottom");const R=S-y.top-y.bottom,T=j-y.left-y.right,k=bl(S-y[N],R),L=bl(j-y[_],T),X=!l.middlewareData.shift;let q=k,H=L;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(H=T),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(q=R),X&&!w){const te=an(y.left,0),ue=an(y.right,0),ce=an(y.top,0),I=an(y.bottom,0);E?H=j-2*(te!==0||ue!==0?te+ue:an(y.left,y.right)):q=S-2*(ce!==0||I!==0?ce+I:an(y.top,y.bottom))}await p({...l,availableWidth:H,availableHeight:q});const G=await h.getDimensions(m.floating);return j!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function bc(){return typeof window<"u"}function _i(n){return Cw(n)?(n.nodeName||"").toLowerCase():"#document"}function ln(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Wn(n){var l;return(l=(Cw(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Cw(n){return bc()?n instanceof Node||n instanceof ln(n).Node:!1}function kn(n){return bc()?n instanceof Element||n instanceof ln(n).Element:!1}function Fn(n){return bc()?n instanceof HTMLElement||n instanceof ln(n).HTMLElement:!1}function jb(n){return!bc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ln(n).ShadowRoot}const MM=new Set(["inline","contents"]);function Wo(n){const{overflow:l,overflowX:r,overflowY:i,display:s}=On(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+r)&&!MM.has(s)}const AM=new Set(["table","td","th"]);function DM(n){return AM.has(_i(n))}const kM=[":popover-open",":modal"];function xc(n){return kM.some(l=>{try{return n.matches(l)}catch{return!1}})}const OM=["transform","translate","scale","rotate","perspective"],zM=["transform","translate","scale","rotate","perspective","filter"],LM=["paint","layout","strict","content"];function Om(n){const l=zm(),r=kn(n)?On(n):n;return OM.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!l&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!l&&(r.filter?r.filter!=="none":!1)||zM.some(i=>(r.willChange||"").includes(i))||LM.some(i=>(r.contain||"").includes(i))}function UM(n){let l=xl(n);for(;Fn(l)&&!pi(l);){if(Om(l))return l;if(xc(l))return null;l=xl(l)}return null}function zm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HM=new Set(["html","body","#document"]);function pi(n){return HM.has(_i(n))}function On(n){return ln(n).getComputedStyle(n)}function wc(n){return kn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function xl(n){if(_i(n)==="html")return n;const l=n.assignedSlot||n.parentNode||jb(n)&&n.host||Wn(n);return jb(l)?l.host:l}function Nw(n){const l=xl(n);return pi(l)?n.ownerDocument?n.ownerDocument.body:n.body:Fn(l)&&Wo(l)?l:Nw(l)}function Qo(n,l,r){var i;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=Nw(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),h=ln(s);if(u){const m=Jh(h);return l.concat(h,h.visualViewport||[],Wo(s)?s:[],m&&r?Qo(m):[])}return l.concat(s,Qo(s,[],r))}function Jh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function _w(n){const l=On(n);let r=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const s=Fn(n),u=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=$u(r)!==u||$u(i)!==h;return m&&(r=u,i=h),{width:r,height:i,$:m}}function Lm(n){return kn(n)?n:n.contextElement}function Wr(n){const l=Lm(n);if(!Fn(l))return Zn(1);const r=l.getBoundingClientRect(),{width:i,height:s,$:u}=_w(l);let h=(u?$u(r.width):r.width)/i,m=(u?$u(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const qM=Zn(0);function Rw(n){const l=ln(n);return!zm()||!l.visualViewport?qM:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function BM(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==ln(n)?!1:l}function nr(n,l,r,i){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=Lm(n);let h=Zn(1);l&&(i?kn(i)&&(h=Wr(i)):h=Wr(n));const m=BM(u,r,i)?Rw(u):Zn(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,b=s.height/h.y;if(u){const w=ln(u),E=i&&kn(i)?ln(i):i;let j=w,S=Jh(j);for(;S&&i&&E!==j;){const N=Wr(S),_=S.getBoundingClientRect(),R=On(S),T=_.left+(S.clientLeft+parseFloat(R.paddingLeft))*N.x,k=_.top+(S.clientTop+parseFloat(R.paddingTop))*N.y;p*=N.x,g*=N.y,y*=N.x,b*=N.y,p+=T,g+=k,j=ln(S),S=Jh(j)}}return Fu({width:y,height:b,x:p,y:g})}function Sc(n,l){const r=wc(n).scrollLeft;return l?l.left+r:nr(Wn(n)).left+r}function Tw(n,l){const r=n.getBoundingClientRect(),i=r.left+l.scrollLeft-Sc(n,r),s=r.top+l.scrollTop;return{x:i,y:s}}function QM(n){let{elements:l,rect:r,offsetParent:i,strategy:s}=n;const u=s==="fixed",h=Wn(i),m=l?xc(l.floating):!1;if(i===h||m&&u)return r;let p={scrollLeft:0,scrollTop:0},g=Zn(1);const y=Zn(0),b=Fn(i);if((b||!b&&!u)&&((_i(i)!=="body"||Wo(h))&&(p=wc(i)),Fn(i))){const E=nr(i);g=Wr(i),y.x=E.x+i.clientLeft,y.y=E.y+i.clientTop}const w=h&&!b&&!u?Tw(h,p):Zn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function YM(n){return Array.from(n.getClientRects())}function GM(n){const l=Wn(n),r=wc(n),i=n.ownerDocument.body,s=an(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),u=an(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Sc(n);const m=-r.scrollTop;return On(i).direction==="rtl"&&(h+=an(l.clientWidth,i.clientWidth)-s),{width:s,height:u,x:h,y:m}}const Cb=25;function VM(n,l){const r=ln(n),i=Wn(n),s=r.visualViewport;let u=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){u=s.width,h=s.height;const y=zm();(!y||y&&l==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=Sc(i);if(g<=0){const y=i.ownerDocument,b=y.body,w=getComputedStyle(b),E=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,j=Math.abs(i.clientWidth-b.clientWidth-E);j<=Cb&&(u-=j)}else g<=Cb&&(u+=g);return{width:u,height:h,x:m,y:p}}const KM=new Set(["absolute","fixed"]);function XM(n,l){const r=nr(n,!0,l==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,u=Fn(n)?Wr(n):Zn(1),h=n.clientWidth*u.x,m=n.clientHeight*u.y,p=s*u.x,g=i*u.y;return{width:h,height:m,x:p,y:g}}function Nb(n,l,r){let i;if(l==="viewport")i=VM(n,r);else if(l==="document")i=GM(Wn(n));else if(kn(l))i=XM(l,r);else{const s=Rw(n);i={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return Fu(i)}function Mw(n,l){const r=xl(n);return r===l||!kn(r)||pi(r)?!1:On(r).position==="fixed"||Mw(r,l)}function $M(n,l){const r=l.get(n);if(r)return r;let i=Qo(n,[],!1).filter(m=>kn(m)&&_i(m)!=="body"),s=null;const u=On(n).position==="fixed";let h=u?xl(n):n;for(;kn(h)&&!pi(h);){const m=On(h),p=Om(h);!p&&m.position==="fixed"&&(s=null),(u?!p&&!s:!p&&m.position==="static"&&s&&KM.has(s.position)||Wo(h)&&!p&&Mw(n,h))?i=i.filter(g=>g!==h):s=m,h=xl(h)}return l.set(n,i),i}function ZM(n){let{element:l,boundary:r,rootBoundary:i,strategy:s}=n;const u=[...r==="clippingAncestors"?xc(l)?[]:$M(l,this._c):[].concat(r),i],h=u[0],m=u.reduce((p,g)=>{const y=Nb(l,g,s);return p.top=an(y.top,p.top),p.right=bl(y.right,p.right),p.bottom=bl(y.bottom,p.bottom),p.left=an(y.left,p.left),p},Nb(l,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function FM(n){const{width:l,height:r}=_w(n);return{width:l,height:r}}function PM(n,l,r){const i=Fn(l),s=Wn(l),u=r==="fixed",h=nr(n,!0,u,l);let m={scrollLeft:0,scrollTop:0};const p=Zn(0);function g(){p.x=Sc(s)}if(i||!i&&!u)if((_i(l)!=="body"||Wo(s))&&(m=wc(l)),i){const E=nr(l,!0,u,l);p.x=E.x+l.clientLeft,p.y=E.y+l.clientTop}else s&&g();u&&!i&&s&&g();const y=s&&!i&&!u?Tw(s,m):Zn(0),b=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x:b,y:w,width:h.width,height:h.height}}function yh(n){return On(n).position==="static"}function _b(n,l){if(!Fn(n)||On(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return Wn(n)===r&&(r=r.ownerDocument.body),r}function Aw(n,l){const r=ln(n);if(xc(n))return r;if(!Fn(n)){let s=xl(n);for(;s&&!pi(s);){if(kn(s)&&!yh(s))return s;s=xl(s)}return r}let i=_b(n,l);for(;i&&DM(i)&&yh(i);)i=_b(i,l);return i&&pi(i)&&yh(i)&&!Om(i)?r:i||UM(n)||r}const JM=async function(n){const l=this.getOffsetParent||Aw,r=this.getDimensions,i=await r(n.floating);return{reference:PM(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function WM(n){return On(n).direction==="rtl"}const IM={convertOffsetParentRelativeRectToViewportRelativeRect:QM,getDocumentElement:Wn,getClippingRect:ZM,getOffsetParent:Aw,getElementRects:JM,getClientRects:YM,getDimensions:FM,getScale:Wr,isElement:kn,isRTL:WM};function Dw(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function eA(n,l){let r=null,i;const s=Wn(n);function u(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const g=n.getBoundingClientRect(),{left:y,top:b,width:w,height:E}=g;if(m||l(),!w||!E)return;const j=_u(b),S=_u(s.clientWidth-(y+w)),N=_u(s.clientHeight-(b+E)),_=_u(y),R={rootMargin:-j+"px "+-S+"px "+-N+"px "+-_+"px",threshold:an(0,bl(1,p))||1};let T=!0;function k(L){const X=L[0].intersectionRatio;if(X!==p){if(!T)return h();X?h(!1,X):i=setTimeout(()=>{h(!1,1e-7)},1e3)}X===1&&!Dw(g,n.getBoundingClientRect())&&h(),T=!1}try{r=new IntersectionObserver(k,{...R,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,R)}r.observe(n)}return h(!0),u}function tA(n,l,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Lm(n),y=s||u?[...g?Qo(g):[],...Qo(l)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const b=g&&m?eA(g,r):null;let w=-1,E=null;h&&(E=new ResizeObserver(_=>{let[R]=_;R&&R.target===g&&E&&(E.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=E)==null||T.observe(l)})),r()}),g&&!p&&E.observe(g),E.observe(l));let j,S=p?nr(n):null;p&&N();function N(){const _=nr(n);S&&!Dw(S,_)&&r(),S=_,j=requestAnimationFrame(N)}return r(),()=>{var _;y.forEach(R=>{s&&R.removeEventListener("scroll",r),u&&R.removeEventListener("resize",r)}),b==null||b(),(_=E)==null||_.disconnect(),E=null,p&&cancelAnimationFrame(j)}}const nA=NM,aA=_M,lA=EM,rA=TM,iA=jM,Rb=SM,oA=RM,sA=(n,l,r)=>{const i=new Map,s={platform:IM,...r},u={...s.platform,_c:i};return wM(n,l,{...s,platform:u})};var uA=typeof document<"u",cA=function(){},zu=uA?v.useLayoutEffect:cA;function Pu(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,i,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(i=r;i--!==0;)if(!Pu(n[i],l[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(l).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(l,s[i]))return!1;for(i=r;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!Pu(n[u],l[u]))return!1}return!0}return n!==n&&l!==l}function kw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Tb(n,l){const r=kw(n);return Math.round(l*r)/r}function bh(n){const l=v.useRef(n);return zu(()=>{l.current=n}),l}function dA(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,b]=v.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[w,E]=v.useState(i);Pu(w,i)||E(i);const[j,S]=v.useState(null),[N,_]=v.useState(null),R=v.useCallback(V=>{V!==X.current&&(X.current=V,S(V))},[]),T=v.useCallback(V=>{V!==q.current&&(q.current=V,_(V))},[]),k=u||j,L=h||N,X=v.useRef(null),q=v.useRef(null),H=v.useRef(y),G=p!=null,te=bh(p),ue=bh(s),ce=bh(g),I=v.useCallback(()=>{if(!X.current||!q.current)return;const V={placement:l,strategy:r,middleware:w};ue.current&&(V.platform=ue.current),sA(X.current,q.current,V).then($=>{const de={...$,isPositioned:ce.current!==!1};ie.current&&!Pu(H.current,de)&&(H.current=de,Po.flushSync(()=>{b(de)}))})},[w,l,r,ue,ce]);zu(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[g]);const ie=v.useRef(!1);zu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),zu(()=>{if(k&&(X.current=k),L&&(q.current=L),k&&L){if(te.current)return te.current(k,L,I);I()}},[k,L,I,te,G]);const re=v.useMemo(()=>({reference:X,floating:q,setReference:R,setFloating:T}),[R,T]),U=v.useMemo(()=>({reference:k,floating:L}),[k,L]),W=v.useMemo(()=>{const V={position:r,left:0,top:0};if(!U.floating)return V;const $=Tb(U.floating,y.x),de=Tb(U.floating,y.y);return m?{...V,transform:"translate("+$+"px, "+de+"px)",...kw(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:de}},[r,m,U.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:I,refs:re,elements:U,floatingStyles:W}),[y,I,re,U,W])}const fA=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:s}=typeof n=="function"?n(r):n;return i&&l(i)?i.current!=null?Rb({element:i.current,padding:s}).fn(r):{}:i?Rb({element:i,padding:s}).fn(r):{}}}},hA=(n,l)=>({...nA(n),options:[n,l]}),mA=(n,l)=>({...aA(n),options:[n,l]}),pA=(n,l)=>({...oA(n),options:[n,l]}),vA=(n,l)=>({...lA(n),options:[n,l]}),gA=(n,l)=>({...rA(n),options:[n,l]}),yA=(n,l)=>({...iA(n),options:[n,l]}),bA=(n,l)=>({...fA(n),options:[n,l]});var xA="Arrow",Ow=v.forwardRef((n,l)=>{const{children:r,width:i=10,height:s=5,...u}=n;return d.jsx(oe.svg,{...u,ref:l,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ow.displayName=xA;var wA=Ow;function Ec(n){const[l,r]=v.useState(void 0);return et(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let h,m;if("borderBoxSize"in u){const p=u.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),l}var zw="Popper",[Lw,Ri]=ft(zw),[X5,Uw]=Lw(zw),Hw="PopperAnchor",qw=v.forwardRef((n,l)=>{const{__scopePopper:r,virtualRef:i,...s}=n,u=Uw(Hw,r),h=v.useRef(null),m=we(l,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&u.onAnchorChange(p.current)}),i?null:d.jsx(oe.div,{...s,ref:m})});qw.displayName=Hw;var Um="PopperContent",[SA,EA]=Lw(Um),Bw=v.forwardRef((n,l)=>{var r,i,s,u,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:b="center",alignOffset:w=0,arrowPadding:E=0,avoidCollisions:j=!0,collisionBoundary:S=[],collisionPadding:N=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:k,...L}=n,X=Uw(Um,p),[q,H]=v.useState(null),G=we(l,jt=>H(jt)),[te,ue]=v.useState(null),ce=Ec(te),I=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=g+(b!=="center"?"-"+b:""),U=typeof N=="number"?N:{top:0,right:0,bottom:0,left:0,...N},W=Array.isArray(S)?S:[S],V=W.length>0,$={padding:U,boundary:W.filter(CA),altBoundary:V},{refs:de,floatingStyles:A,placement:Z,isPositioned:ee,middlewareData:le}=dA({strategy:"fixed",placement:re,whileElementsMounted:(...jt)=>tA(...jt,{animationFrame:T==="always"}),elements:{reference:X.anchor},middleware:[hA({mainAxis:y+ie,alignmentAxis:w}),j&&mA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?pA():void 0,...$}),j&&vA({...$}),gA({...$,apply:({elements:jt,rects:Vt,availableWidth:ea,availableHeight:ta})=>{const{width:Bc,height:ns}=Vt.reference,Da=jt.floating.style;Da.setProperty("--radix-popper-available-width",`${ea}px`),Da.setProperty("--radix-popper-available-height",`${ta}px`),Da.setProperty("--radix-popper-anchor-width",`${Bc}px`),Da.setProperty("--radix-popper-anchor-height",`${ns}px`)}}),te&&bA({element:te,padding:E}),NA({arrowWidth:I,arrowHeight:ie}),R&&yA({strategy:"referenceHidden",...$})]}),[pe,Ee]=Gw(Z),ne=We(k);et(()=>{ee&&(ne==null||ne())},[ee,ne]);const je=(r=le.arrow)==null?void 0:r.x,ge=(i=le.arrow)==null?void 0:i.y,Ce=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[Ue,Ye]=v.useState();return et(()=>{q&&Ye(window.getComputedStyle(q).zIndex)},[q]),d.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(u=le.transformOrigin)==null?void 0:u.x,(h=le.transformOrigin)==null?void 0:h.y].join(" "),...((m=le.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(SA,{scope:p,placedSide:pe,onArrowChange:ue,arrowX:je,arrowY:ge,shouldHideArrow:Ce,children:d.jsx(oe.div,{"data-side":pe,"data-align":Ee,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});Bw.displayName=Um;var Qw="PopperArrow",jA={top:"bottom",right:"left",bottom:"top",left:"right"},Yw=v.forwardRef(function(n,l){const{__scopePopper:r,...i}=n,s=EA(Qw,r),u=jA[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(wA,{...i,ref:l,style:{...i.style,display:"block"}})})});Yw.displayName=Qw;function CA(n){return n!==null}var NA=n=>({name:"transformOrigin",options:n,fn(l){var r,i,s;const{placement:u,rects:h,middlewareData:m}=l,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[b,w]=Gw(u),E={start:"0%",center:"50%",end:"100%"}[w],j=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let N="",_="";return b==="bottom"?(N=p?E:`${j}px`,_=`${-y}px`):b==="top"?(N=p?E:`${j}px`,_=`${h.floating.height+y}px`):b==="right"?(N=`${-y}px`,_=p?E:`${S}px`):b==="left"&&(N=`${h.floating.width+y}px`,_=p?E:`${S}px`),{data:{x:N,y:_}}}});function Gw(n){const[l,r="center"]=n.split("-");return[l,r]}var Hm=qw,qm=Bw,Bm=Yw,_A="Portal",RA=v.forwardRef((n,l)=>{var r;const{container:i,...s}=n,[u,h]=v.useState(!1);et(()=>h(!0),[]);const m=i||u&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?kx.createPortal(d.jsx(oe.div,{...s,ref:l}),m):null});RA.displayName=_A;var xh="rovingFocusGroup.onEntryFocus",TA={bubbles:!1,cancelable:!0},Io="RovingFocusGroup",[Wh,Vw,MA]=ji(Io),[AA,Ti]=ft(Io,[MA]),[DA,kA]=AA(Io),Kw=v.forwardRef((n,l)=>d.jsx(Wh.Provider,{scope:n.__scopeRovingFocusGroup,children:d.jsx(Wh.Slot,{scope:n.__scopeRovingFocusGroup,children:d.jsx(OA,{...n,ref:l})})}));Kw.displayName=Io;var OA=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...b}=n,w=v.useRef(null),E=we(l,w),j=Ei(u),[S,N]=Jn({prop:h,defaultProp:m??null,onChange:p,caller:Io}),[_,R]=v.useState(!1),T=We(g),k=Vw(r),L=v.useRef(!1),[X,q]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(xh,T),()=>H.removeEventListener(xh,T)},[T]),d.jsx(DA,{scope:r,orientation:i,dir:j,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(H=>N(H),[N]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>q(H=>H-1),[]),children:d.jsx(oe.div,{tabIndex:_||X===0?-1:0,"data-orientation":i,...b,ref:E,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,H=>{const G=!L.current;if(H.target===H.currentTarget&&G&&!_){const te=new CustomEvent(xh,TA);if(H.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=k().filter(re=>re.focusable),ce=ue.find(re=>re.active),I=ue.find(re=>re.id===S),ie=[ce,I,...ue].filter(Boolean).map(re=>re.ref.current);Zw(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>R(!1))})})}),Xw="RovingFocusGroupItem",$w=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:u,children:h,...m}=n,p=wl(),g=u||p,y=kA(Xw,r),b=y.currentTabStopId===g,w=Vw(r),{onFocusableItemAdd:E,onFocusableItemRemove:j,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return E(),()=>j()},[i,E,j]),d.jsx(Wh.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:d.jsx(oe.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...m,ref:l,onMouseDown:ae(n.onMouseDown,N=>{i?y.onItemFocus(g):N.preventDefault()}),onFocus:ae(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ae(n.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){y.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const _=UA(N,y.orientation,y.dir);if(_!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let R=w().filter(T=>T.focusable).map(T=>T.ref.current);if(_==="last")R.reverse();else if(_==="prev"||_==="next"){_==="prev"&&R.reverse();const T=R.indexOf(N.currentTarget);R=y.loop?HA(R,T+1):R.slice(T+1)}setTimeout(()=>Zw(R))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:S!=null}):h})})});$w.displayName=Xw;var zA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function LA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function UA(n,l,r){const i=LA(n.key,r);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return zA[i]}function Zw(n,l=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:l}),document.activeElement!==r))return}function HA(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var Qm=Kw,Ym=$w,qA=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Zr=new WeakMap,Ru=new WeakMap,Tu={},wh=0,Fw=function(n){return n&&(n.host||Fw(n.parentNode))},BA=function(n,l){return l.map(function(r){if(n.contains(r))return r;var i=Fw(r);return i&&n.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},QA=function(n,l,r,i){var s=BA(l,Array.isArray(n)?n:[n]);Tu[r]||(Tu[r]=new WeakMap);var u=Tu[r],h=[],m=new Set,p=new Set(s),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};s.forEach(g);var y=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))y(w);else try{var E=w.getAttribute(i),j=E!==null&&E!=="false",S=(Zr.get(w)||0)+1,N=(u.get(w)||0)+1;Zr.set(w,S),u.set(w,N),h.push(w),S===1&&j&&Ru.set(w,!0),N===1&&w.setAttribute(r,"true"),j||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(l),m.clear(),wh++,function(){h.forEach(function(b){var w=Zr.get(b)-1,E=u.get(b)-1;Zr.set(b,w),u.set(b,E),w||(Ru.has(b)||b.removeAttribute(i),Ru.delete(b)),E||b.removeAttribute(r)}),wh--,wh||(Zr=new WeakMap,Zr=new WeakMap,Ru=new WeakMap,Tu={})}},Gm=function(n,l,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=qA(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),QA(i,s,r,"aria-hidden")):function(){return null}},Xn=function(){return Xn=Object.assign||function(n){for(var l,r=1,i=arguments.length;r<i;r++){l=arguments[r];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Xn.apply(this,arguments)};function Pw(n,l){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)l.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function YA(n,l,r){for(var i=0,s=l.length,u;i<s;i++)(u||!(i in l))&&(u||(u=Array.prototype.slice.call(l,0,i)),u[i]=l[i]);return n.concat(u||Array.prototype.slice.call(l))}var Lu="right-scroll-bar-position",Uu="width-before-scroll-bar",GA="with-scroll-bars-hidden",VA="--removed-body-scroll-bar-size";function Sh(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function KA(n,l){var r=v.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=l,r.facade}var XA=typeof window<"u"?v.useLayoutEffect:v.useEffect,Mb=new WeakMap;function $A(n,l){var r=KA(null,function(i){return n.forEach(function(s){return Sh(s,i)})});return XA(function(){var i=Mb.get(r);if(i){var s=new Set(i),u=new Set(n),h=r.current;s.forEach(function(m){u.has(m)||Sh(m,null)}),u.forEach(function(m){s.has(m)||Sh(m,h)})}Mb.set(r,n)},[n]),r}function ZA(n){return n}function FA(n,l){l===void 0&&(l=ZA);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(u){var h=l(u,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(u){for(i=!0;r.length;){var h=r;r=[],h.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(u),h=r}var p=function(){var y=h;h=[],y.forEach(u)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){h.push(y),g()},filter:function(y){return h=h.filter(y),r}}}};return s}function PA(n){n===void 0&&(n={});var l=FA(null);return l.options=Xn({async:!0,ssr:!1},n),l}var Jw=function(n){var l=n.sideCar,r=Pw(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Xn({},r))};Jw.isSideCarExport=!0;function JA(n,l){return n.useMedium(l),Jw}var Ww=PA(),Eh=function(){},jc=v.forwardRef(function(n,l){var r=v.useRef(null),i=v.useState({onScrollCapture:Eh,onWheelCapture:Eh,onTouchMoveCapture:Eh}),s=i[0],u=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,b=n.shards,w=n.sideCar,E=n.noRelative,j=n.noIsolation,S=n.inert,N=n.allowPinchZoom,_=n.as,R=_===void 0?"div":_,T=n.gapMode,k=Pw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,X=$A([r,l]),q=Xn(Xn({},k),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:Ww,removeScrollBar:g,shards:b,noRelative:E,noIsolation:j,inert:S,setCallbacks:u,allowPinchZoom:!!N,lockRef:r,gapMode:T}),h?v.cloneElement(v.Children.only(m),Xn(Xn({},q),{ref:X})):v.createElement(R,Xn({},q,{className:p,ref:X}),m))});jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jc.classNames={fullWidth:Uu,zeroRight:Lu};var WA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IA(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=WA();return l&&n.setAttribute("nonce",l),n}function eD(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function tD(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var nD=function(){var n=0,l=null;return{add:function(r){n==0&&(l=IA())&&(eD(l,r),tD(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},aD=function(){var n=nD();return function(l,r){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},Iw=function(){var n=aD(),l=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return l},lD={left:0,top:0,right:0,gap:0},jh=function(n){return parseInt(n||"",10)||0},rD=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[jh(r),jh(i),jh(s)]},iD=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return lD;var l=rD(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-r+l[2]-l[0])}},oD=Iw(),Ir="data-scroll-locked",sD=function(n,l,r,i){var s=n.left,u=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
257
+ .`.concat(GA,` {
258
+ overflow: hidden `).concat(i,`;
259
+ padding-right: `).concat(m,"px ").concat(i,`;
260
+ }
261
+ body[`).concat(Ir,`] {
262
+ overflow: hidden `).concat(i,`;
263
+ overscroll-behavior: contain;
264
+ `).concat([l&&"position: relative ".concat(i,";"),r==="margin"&&`
265
+ padding-left: `.concat(s,`px;
266
+ padding-top: `).concat(u,`px;
267
+ padding-right: `).concat(h,`px;
268
+ margin-left:0;
269
+ margin-top:0;
270
+ margin-right: `).concat(m,"px ").concat(i,`;
271
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
272
+ }
273
+
274
+ .`).concat(Lu,` {
275
+ right: `).concat(m,"px ").concat(i,`;
276
+ }
277
+
278
+ .`).concat(Uu,` {
279
+ margin-right: `).concat(m,"px ").concat(i,`;
280
+ }
281
+
282
+ .`).concat(Lu," .").concat(Lu,` {
283
+ right: 0 `).concat(i,`;
284
+ }
285
+
286
+ .`).concat(Uu," .").concat(Uu,` {
287
+ margin-right: 0 `).concat(i,`;
288
+ }
289
+
290
+ body[`).concat(Ir,`] {
291
+ `).concat(VA,": ").concat(m,`px;
292
+ }
293
+ `)},Ab=function(){var n=parseInt(document.body.getAttribute(Ir)||"0",10);return isFinite(n)?n:0},uD=function(){v.useEffect(function(){return document.body.setAttribute(Ir,(Ab()+1).toString()),function(){var n=Ab()-1;n<=0?document.body.removeAttribute(Ir):document.body.setAttribute(Ir,n.toString())}},[])},cD=function(n){var l=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;uD();var u=v.useMemo(function(){return iD(s)},[s]);return v.createElement(oD,{styles:sD(u,!l,s,r?"":"!important")})},Ih=!1;if(typeof window<"u")try{var Mu=Object.defineProperty({},"passive",{get:function(){return Ih=!0,!0}});window.addEventListener("test",Mu,Mu),window.removeEventListener("test",Mu,Mu)}catch{Ih=!1}var Fr=Ih?{passive:!1}:!1,dD=function(n){return n.tagName==="TEXTAREA"},e1=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!dD(n)&&r[l]==="visible")},fD=function(n){return e1(n,"overflowY")},hD=function(n){return e1(n,"overflowX")},Db=function(n,l){var r=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=t1(n,i);if(s){var u=n1(n,i),h=u[1],m=u[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},mD=function(n){var l=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[l,r,i]},pD=function(n){var l=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[l,r,i]},t1=function(n,l){return n==="v"?fD(l):hD(l)},n1=function(n,l){return n==="v"?mD(l):pD(l)},vD=function(n,l){return n==="h"&&l==="rtl"?-1:1},gD=function(n,l,r,i,s){var u=vD(n,window.getComputedStyle(l).direction),h=u*i,m=r.target,p=l.contains(m),g=!1,y=h>0,b=0,w=0;do{if(!m)break;var E=n1(n,m),j=E[0],S=E[1],N=E[2],_=S-N-u*j;(j||_)&&t1(n,m)&&(b+=_,w+=j);var R=m.parentNode;m=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&m!==document.body||p&&(l.contains(m)||l===m));return(y&&Math.abs(b)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Au=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},kb=function(n){return[n.deltaX,n.deltaY]},Ob=function(n){return n&&"current"in n?n.current:n},yD=function(n,l){return n[0]===l[0]&&n[1]===l[1]},bD=function(n){return`
294
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
295
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
296
+ `)},xD=0,Pr=[];function wD(n){var l=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(xD++)[0],u=v.useState(Iw)[0],h=v.useRef(n);v.useEffect(function(){h.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var S=YA([n.lockRef.current],(n.shards||[]).map(Ob)).filter(Boolean);return S.forEach(function(N){return N.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,N){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=Au(S),R=r.current,T="deltaX"in S?S.deltaX:R[0]-_[0],k="deltaY"in S?S.deltaY:R[1]-_[1],L,X=S.target,q=Math.abs(T)>Math.abs(k)?"h":"v";if("touches"in S&&q==="h"&&X.type==="range")return!1;var H=Db(q,X);if(!H)return!0;if(H?L=q:(L=q==="v"?"h":"v",H=Db(q,X)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||k)&&(i.current=L),!L)return!0;var G=i.current||L;return gD(G,N,S,G==="h"?T:k)},[]),p=v.useCallback(function(S){var N=S;if(!(!Pr.length||Pr[Pr.length-1]!==u)){var _="deltaY"in N?kb(N):Au(N),R=l.current.filter(function(L){return L.name===N.type&&(L.target===N.target||N.target===L.shadowParent)&&yD(L.delta,_)})[0];if(R&&R.should){N.cancelable&&N.preventDefault();return}if(!R){var T=(h.current.shards||[]).map(Ob).filter(Boolean).filter(function(L){return L.contains(N.target)}),k=T.length>0?m(N,T[0]):!h.current.noIsolation;k&&N.cancelable&&N.preventDefault()}}},[]),g=v.useCallback(function(S,N,_,R){var T={name:S,delta:N,target:_,should:R,shadowParent:SD(_)};l.current.push(T),setTimeout(function(){l.current=l.current.filter(function(k){return k!==T})},1)},[]),y=v.useCallback(function(S){r.current=Au(S),i.current=void 0},[]),b=v.useCallback(function(S){g(S.type,kb(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Au(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return Pr.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Fr),document.addEventListener("touchmove",p,Fr),document.addEventListener("touchstart",y,Fr),function(){Pr=Pr.filter(function(S){return S!==u}),document.removeEventListener("wheel",p,Fr),document.removeEventListener("touchmove",p,Fr),document.removeEventListener("touchstart",y,Fr)}},[]);var E=n.removeScrollBar,j=n.inert;return v.createElement(v.Fragment,null,j?v.createElement(u,{styles:bD(s)}):null,E?v.createElement(cD,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function SD(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const ED=JA(Ww,wD);var Cc=v.forwardRef(function(n,l){return v.createElement(jc,Xn({},n,{ref:l,sideCar:ED}))});Cc.classNames=jc.classNames;var em=["Enter"," "],jD=["ArrowDown","PageUp","Home"],a1=["ArrowUp","PageDown","End"],CD=[...jD,...a1],ND={ltr:[...em,"ArrowRight"],rtl:[...em,"ArrowLeft"]},_D={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nc="Menu",[Yo,RD,TD]=ji(Nc),[ir,l1]=ft(Nc,[TD,Ri,Ti]),Vm=Ri(),r1=Ti(),[$5,Mi]=ir(Nc),[Z5,es]=ir(Nc),MD="MenuAnchor",Km=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=Vm(r);return d.jsx(Hm,{...s,...i,ref:l})});Km.displayName=MD;var AD="MenuPortal",[F5,i1]=ir(AD,{forceMount:void 0}),wn="MenuContent",[DD,Xm]=ir(wn),o1=v.forwardRef((n,l)=>{const r=i1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=Mi(wn,n.__scopeMenu),h=es(wn,n.__scopeMenu);return d.jsx(Yo.Provider,{scope:n.__scopeMenu,children:d.jsx(vt,{present:i||u.open,children:d.jsx(Yo.Slot,{scope:n.__scopeMenu,children:h.modal?d.jsx(kD,{...s,ref:l}):d.jsx(OD,{...s,ref:l})})})})}),kD=v.forwardRef((n,l)=>{const r=Mi(wn,n.__scopeMenu),i=v.useRef(null),s=we(l,i);return v.useEffect(()=>{const u=i.current;if(u)return Gm(u)},[]),d.jsx($m,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),OD=v.forwardRef((n,l)=>{const r=Mi(wn,n.__scopeMenu);return d.jsx($m,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),zD=tr("MenuContent.ScrollLock"),$m=v.forwardRef((n,l)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:E,disableOutsideScroll:j,...S}=n,N=Mi(wn,r),_=es(wn,r),R=Vm(r),T=r1(r),k=RD(r),[L,X]=v.useState(null),q=v.useRef(null),H=we(l,q,N.onContentChange),G=v.useRef(0),te=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),I=v.useRef("right"),ie=v.useRef(0),re=j?Cc:v.Fragment,U=j?{as:zD,allowPinchZoom:!0}:void 0,W=$=>{var de,A;const Z=te.current+$,ee=k().filter(ge=>!ge.disabled),le=document.activeElement,pe=(de=ee.find(ge=>ge.ref.current===le))==null?void 0:de.textValue,Ee=ee.map(ge=>ge.textValue),ne=$D(Ee,Z,pe),je=(A=ee.find(ge=>ge.textValue===ne))==null?void 0:A.ref.current;(function ge(Ce){te.current=Ce,window.clearTimeout(G.current),Ce!==""&&(G.current=window.setTimeout(()=>ge(""),1e3))})(Z),je&&setTimeout(()=>je.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Mm();const V=v.useCallback($=>{var de,A;return I.current===((de=ce.current)==null?void 0:de.side)&&FD($,(A=ce.current)==null?void 0:A.area)},[]);return d.jsx(DD,{scope:r,searchRef:te,onItemEnter:v.useCallback($=>{V($)&&$.preventDefault()},[V]),onItemLeave:v.useCallback($=>{var de;V($)||((de=q.current)==null||de.focus(),X(null))},[V]),onTriggerLeave:v.useCallback($=>{V($)&&$.preventDefault()},[V]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback($=>{ce.current=$},[]),children:d.jsx(re,{...U,children:d.jsx(yc,{asChild:!0,trapped:s,onMountAutoFocus:ae(u,$=>{var de;$.preventDefault(),(de=q.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:E,children:d.jsx(Qm,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:X,onEntryFocus:ae(p,$=>{_.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(qm,{role:"menu","aria-orientation":"vertical","data-state":E1(N.open),"data-radix-menu-content":"",dir:_.dir,...R,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,$=>{const de=$.target.closest("[data-radix-menu-content]")===$.currentTarget,A=$.ctrlKey||$.altKey||$.metaKey,Z=$.key.length===1;de&&($.key==="Tab"&&$.preventDefault(),!A&&Z&&W($.key));const ee=q.current;if($.target!==ee||!CD.includes($.key))return;$.preventDefault();const le=k().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);a1.includes($.key)&&le.reverse(),KD(le)}),onBlur:ae(n.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,Go($=>{const de=$.target,A=ie.current!==$.clientX;if($.currentTarget.contains(de)&&A){const Z=$.clientX>ie.current?"right":"left";I.current=Z,ie.current=$.clientX}}))})})})})})})});o1.displayName=wn;var LD="MenuGroup",Zm=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"group",...i,ref:l})});Zm.displayName=LD;var UD="MenuLabel",s1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{...i,ref:l})});s1.displayName=UD;var Ju="MenuItem",zb="menu.itemSelect",_c=v.forwardRef((n,l)=>{const{disabled:r=!1,onSelect:i,...s}=n,u=v.useRef(null),h=es(Ju,n.__scopeMenu),m=Xm(Ju,n.__scopeMenu),p=we(l,u),g=v.useRef(!1),y=()=>{const b=u.current;if(!r&&b){const w=new CustomEvent(zb,{bubbles:!0,cancelable:!0});b.addEventListener(zb,E=>i==null?void 0:i(E),{once:!0}),Vu(b,w),w.defaultPrevented?g.current=!1:h.onClose()}};return d.jsx(u1,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:b=>{var w;(w=n.onPointerDown)==null||w.call(n,b),g.current=!0},onPointerUp:ae(n.onPointerUp,b=>{var w;g.current||(w=b.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,b=>{const w=m.searchRef.current!=="";r||w&&b.key===" "||em.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});_c.displayName=Ju;var u1=v.forwardRef((n,l)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...u}=n,h=Xm(Ju,r),m=r1(r),p=v.useRef(null),g=we(l,p),[y,b]=v.useState(!1),[w,E]=v.useState("");return v.useEffect(()=>{const j=p.current;j&&E((j.textContent??"").trim())},[u.children]),d.jsx(Yo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:d.jsx(Ym,{asChild:!0,...m,focusable:!i,children:d.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:g,onPointerMove:ae(n.onPointerMove,Go(j=>{i?h.onItemLeave(j):(h.onItemEnter(j),j.defaultPrevented||j.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,Go(j=>h.onItemLeave(j))),onFocus:ae(n.onFocus,()=>b(!0)),onBlur:ae(n.onBlur,()=>b(!1))})})})}),HD="MenuCheckboxItem",c1=v.forwardRef((n,l)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return d.jsx(p1,{scope:n.__scopeMenu,checked:r,children:d.jsx(_c,{role:"menuitemcheckbox","aria-checked":Wu(r)?"mixed":r,...s,ref:l,"data-state":Pm(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(Wu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});c1.displayName=HD;var d1="MenuRadioGroup",[qD,BD]=ir(d1,{value:void 0,onValueChange:()=>{}}),f1=v.forwardRef((n,l)=>{const{value:r,onValueChange:i,...s}=n,u=We(i);return d.jsx(qD,{scope:n.__scopeMenu,value:r,onValueChange:u,children:d.jsx(Zm,{...s,ref:l})})});f1.displayName=d1;var h1="MenuRadioItem",m1=v.forwardRef((n,l)=>{const{value:r,...i}=n,s=BD(h1,n.__scopeMenu),u=r===s.value;return d.jsx(p1,{scope:n.__scopeMenu,checked:u,children:d.jsx(_c,{role:"menuitemradio","aria-checked":u,...i,ref:l,"data-state":Pm(u),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});m1.displayName=h1;var Fm="MenuItemIndicator",[p1,QD]=ir(Fm,{checked:!1}),v1=v.forwardRef((n,l)=>{const{__scopeMenu:r,forceMount:i,...s}=n,u=QD(Fm,r);return d.jsx(vt,{present:i||Wu(u.checked)||u.checked===!0,children:d.jsx(oe.span,{...s,ref:l,"data-state":Pm(u.checked)})})});v1.displayName=Fm;var YD="MenuSeparator",g1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:l})});g1.displayName=YD;var GD="MenuArrow",y1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=Vm(r);return d.jsx(Bm,{...s,...i,ref:l})});y1.displayName=GD;var VD="MenuSub",[P5,b1]=ir(VD),Do="MenuSubTrigger",x1=v.forwardRef((n,l)=>{const r=Mi(Do,n.__scopeMenu),i=es(Do,n.__scopeMenu),s=b1(Do,n.__scopeMenu),u=Xm(Do,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=u,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const b=m.current;return()=>{window.clearTimeout(b),p(null)}},[m,p]),d.jsx(Km,{asChild:!0,...g,children:d.jsx(u1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":E1(r.open),...n,ref:Jo(l,s.onTriggerChange),onClick:b=>{var w;(w=n.onClick)==null||w.call(n,b),!(n.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,Go(b=>{u.onItemEnter(b),!b.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(u.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,Go(b=>{var w,E;y();const j=(w=r.content)==null?void 0:w.getBoundingClientRect();if(j){const S=(E=r.content)==null?void 0:E.dataset.side,N=S==="right",_=N?-5:5,R=j[N?"left":"right"],T=j[N?"right":"left"];u.onPointerGraceIntentChange({area:[{x:b.clientX+_,y:b.clientY},{x:R,y:j.top},{x:T,y:j.top},{x:T,y:j.bottom},{x:R,y:j.bottom}],side:S}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(b),b.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,b=>{var w;const E=u.searchRef.current!=="";n.disabled||E&&b.key===" "||ND[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});x1.displayName=Do;var w1="MenuSubContent",S1=v.forwardRef((n,l)=>{const r=i1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=Mi(wn,n.__scopeMenu),h=es(wn,n.__scopeMenu),m=b1(w1,n.__scopeMenu),p=v.useRef(null),g=we(l,p);return d.jsx(Yo.Provider,{scope:n.__scopeMenu,children:d.jsx(vt,{present:i||u.open,children:d.jsx(Yo.Slot,{scope:n.__scopeMenu,children:d.jsx($m,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var b;h.isUsingKeyboardRef.current&&((b=p.current)==null||b.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ae(n.onFocusOutside,y=>{y.target!==m.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{var b;const w=y.currentTarget.contains(y.target),E=_D[h.dir].includes(y.key);w&&E&&(u.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});S1.displayName=w1;function E1(n){return n?"open":"closed"}function Wu(n){return n==="indeterminate"}function Pm(n){return Wu(n)?"indeterminate":n?"checked":"unchecked"}function KD(n){const l=document.activeElement;for(const r of n)if(r===l||(r.focus(),document.activeElement!==l))return}function XD(n,l){return n.map((r,i)=>n[(l+i)%n.length])}function $D(n,l,r){const i=l.length>1&&Array.from(l).every(m=>m===l[0])?l[0]:l,s=r?n.indexOf(r):-1;let u=XD(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function ZD(n,l){const{x:r,y:i}=n;let s=!1;for(let u=0,h=l.length-1;u<l.length;h=u++){const m=l[u],p=l[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function FD(n,l){if(!l)return!1;const r={x:n.clientX,y:n.clientY};return ZD(r,l)}function Go(n){return l=>l.pointerType==="mouse"?n(l):void 0}var PD=Km,JD=o1,WD=Zm,ID=s1,ek=_c,tk=c1,nk=f1,ak=m1,lk=v1,rk=g1,ik=y1,ok=x1,sk=S1,j1="DropdownMenu",[uk,J5]=ft(j1,[l1]),rn=l1(),[W5,C1]=uk(j1),N1="DropdownMenuTrigger",ck=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,u=C1(N1,r),h=rn(r);return d.jsx(PD,{asChild:!0,...h,children:d.jsx(oe.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:Jo(l,u.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(u.onOpenToggle(),u.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&u.onOpenToggle(),m.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});ck.displayName=N1;var _1="DropdownMenuContent",R1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=C1(_1,r),u=rn(r),h=v.useRef(!1);return d.jsx(JD,{id:s.contentId,"aria-labelledby":s.triggerId,...u,...i,ref:l,onCloseAutoFocus:ae(n.onCloseAutoFocus,m=>{var p;h.current||(p=s.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ae(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!s.modal||y)&&(h.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R1.displayName=_1;var dk="DropdownMenuGroup",fk=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(WD,{...s,...i,ref:l})});fk.displayName=dk;var hk="DropdownMenuLabel",T1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(ID,{...s,...i,ref:l})});T1.displayName=hk;var mk="DropdownMenuItem",M1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(ek,{...s,...i,ref:l})});M1.displayName=mk;var pk="DropdownMenuCheckboxItem",A1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(tk,{...s,...i,ref:l})});A1.displayName=pk;var vk="DropdownMenuRadioGroup",gk=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(nk,{...s,...i,ref:l})});gk.displayName=vk;var yk="DropdownMenuRadioItem",D1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(ak,{...s,...i,ref:l})});D1.displayName=yk;var bk="DropdownMenuItemIndicator",xk=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(lk,{...s,...i,ref:l})});xk.displayName=bk;var wk="DropdownMenuSeparator",k1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(rk,{...s,...i,ref:l})});k1.displayName=wk;var Sk="DropdownMenuArrow",Ek=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(ik,{...s,...i,ref:l})});Ek.displayName=Sk;var jk="DropdownMenuSubTrigger",O1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(ok,{...s,...i,ref:l})});O1.displayName=jk;var Ck="DropdownMenuSubContent",z1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=rn(r);return d.jsx(sk,{...s,...i,ref:l,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});z1.displayName=Ck;var Nk=R1,_k=T1,Rk=M1,Tk=A1,Mk=D1,Ak=k1,Dk=O1,kk=z1;const L1=ye("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");ye("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",L1,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");ye("z-50 min-w-[8rem] p-1 rounded-xl",L1,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");ye("relative flex items-center gap-3","px-3 py-2 rounded-lg text-sm cursor-pointer","outline-none select-none","transition-colors duration-150","dark:text-gray-200 text-gray-700","dark:hover:bg-white/[0.06] hover:bg-gray-100","dark:focus:bg-white/[0.08] focus:bg-gray-100","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none");ye("dark:text-red-400 text-red-600","dark:hover:bg-red-500/10 hover:bg-red-50","dark:focus:bg-red-500/15 focus:bg-red-100");ye("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");ye("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var U1="Dialog",[H1,q1]=ft(U1),[I5,In]=H1(U1),B1="DialogTrigger",Q1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=In(B1,r),u=we(l,s.triggerRef);return d.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Wm(s.open),...i,ref:u,onClick:ae(n.onClick,s.onOpenToggle)})});Q1.displayName=B1;var Ok="DialogPortal",[ez,Y1]=H1(Ok,{forceMount:void 0}),Iu="DialogOverlay",G1=v.forwardRef((n,l)=>{const r=Y1(Iu,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(Iu,n.__scopeDialog);return u.modal?d.jsx(vt,{present:i||u.open,children:d.jsx(Lk,{...s,ref:l})}):null});G1.displayName=Iu;var zk=tr("DialogOverlay.RemoveScroll"),Lk=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=In(Iu,r);return d.jsx(Cc,{as:zk,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(oe.div,{"data-state":Wm(s.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),ar="DialogContent",V1=v.forwardRef((n,l)=>{const r=Y1(ar,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(ar,n.__scopeDialog);return d.jsx(vt,{present:i||u.open,children:u.modal?d.jsx(Uk,{...s,ref:l}):d.jsx(Hk,{...s,ref:l})})});V1.displayName=ar;var Uk=v.forwardRef((n,l)=>{const r=In(ar,n.__scopeDialog),i=v.useRef(null),s=we(l,r.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return Gm(u)},[]),d.jsx(K1,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,u=>{var h;u.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,u=>{const h=u.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&u.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault())})}),Hk=v.forwardRef((n,l)=>{const r=In(ar,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return d.jsx(K1,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,u),u.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=u.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),K1=v.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...h}=n,m=In(ar,r),p=v.useRef(null),g=we(l,p);return Mm(),d.jsxs(d.Fragment,{children:[d.jsx(yc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:d.jsx(Ci,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Wm(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Bk,{titleId:m.titleId}),d.jsx(Yk,{contentRef:p,descriptionId:m.descriptionId})]})]})}),Jm="DialogTitle",X1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=In(Jm,r);return d.jsx(oe.h2,{id:s.titleId,...i,ref:l})});X1.displayName=Jm;var $1="DialogDescription",Z1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=In($1,r);return d.jsx(oe.p,{id:s.descriptionId,...i,ref:l})});Z1.displayName=$1;var F1="DialogClose",P1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=In(F1,r);return d.jsx(oe.button,{type:"button",...i,ref:l,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});P1.displayName=F1;function Wm(n){return n?"open":"closed"}var J1="DialogTitleWarning",[qk,W1]=NT(J1,{contentName:ar,titleName:Jm,docsSlug:"dialog"}),Bk=({titleId:n})=>{const l=W1(J1),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
297
+
298
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
299
+
300
+ For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},Qk="DialogDescriptionWarning",Yk=({contentRef:n,descriptionId:l})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${W1(Qk).contentName}}.`;return v.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");l&&s&&(document.getElementById(l)||console.warn(r))},[r,n,l]),null},Gk=Q1,Vk=G1,Kk=V1,Xk=X1,$k=Z1,I1=P1,Zk="AlertDialog",[Fk,tz]=ft(Zk,[q1]),or=q1(),Pk="AlertDialogTrigger",Jk=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(Gk,{...s,...i,ref:l})});Jk.displayName=Pk;var Wk="AlertDialogOverlay",Ik=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(Vk,{...s,...i,ref:l})});Ik.displayName=Wk;var ei="AlertDialogContent",[eO,tO]=Fk(ei),nO=nw("AlertDialogContent"),aO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,children:i,...s}=n,u=or(r),h=v.useRef(null),m=we(l,h),p=v.useRef(null);return d.jsx(qk,{contentName:ei,titleName:eS,docsSlug:"alert-dialog",children:d.jsx(eO,{scope:r,cancelRef:p,children:d.jsxs(Kk,{role:"alertdialog",...u,...s,ref:m,onOpenAutoFocus:ae(s.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[d.jsx(nO,{children:i}),d.jsx(uO,{contentRef:h})]})})})});aO.displayName=ei;var eS="AlertDialogTitle",lO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(Xk,{...s,...i,ref:l})});lO.displayName=eS;var tS="AlertDialogDescription",rO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx($k,{...s,...i,ref:l})});rO.displayName=tS;var iO="AlertDialogAction",oO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(I1,{...s,...i,ref:l})});oO.displayName=iO;var nS="AlertDialogCancel",sO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=tO(nS,r),u=or(r),h=we(l,s);return d.jsx(I1,{...u,...i,ref:h})});sO.displayName=nS;var uO=({contentRef:n})=>{const l=`\`${ei}\` requires a description for the component to be accessible for screen reader users.
301
+
302
+ You can add a description to the \`${ei}\` by passing a \`${tS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
303
+
304
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ei}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
305
+
306
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null};function ts(n){const l=v.useRef({value:n,previous:n});return v.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var aS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),cO="VisuallyHidden",lS=v.forwardRef((n,l)=>d.jsx(oe.span,{...n,ref:l,style:{...aS,...n.style}}));lS.displayName=cO;var rS=lS,dO=[" ","Enter","ArrowUp","ArrowDown"],fO=[" ","Enter"],Rc="Select",[Im,Tc,hO]=ji(Rc),[Ai,nz]=ft(Rc,[hO,Ri]),ep=Ri(),[az,Sl]=Ai(Rc),[lz,mO]=Ai(Rc),iS="SelectTrigger",pO=v.forwardRef((n,l)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,u=ep(r),h=Sl(iS,r),m=h.disabled||i,p=we(l,h.onTriggerChange),g=Tc(r),y=v.useRef("touch"),[b,w,E]=gS(S=>{const N=g().filter(T=>!T.disabled),_=N.find(T=>T.value===h.value),R=yS(N,S,_);R!==void 0&&h.onValueChange(R.value)}),j=S=>{m||(h.onOpenChange(!0),E()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(Hm,{asChild:!0,...u,children:d.jsx(oe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":vS(h.value)?"":void 0,...s,ref:p,onClick:ae(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&j(S)}),onPointerDown:ae(s.onPointerDown,S=>{y.current=S.pointerType;const N=S.target;N.hasPointerCapture(S.pointerId)&&N.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(j(S),S.preventDefault())}),onKeyDown:ae(s.onKeyDown,S=>{const N=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(N&&S.key===" ")&&dO.includes(S.key)&&(j(),S.preventDefault())})})})});pO.displayName=iS;var oS="SelectValue",vO=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,children:u,placeholder:h="",...m}=n,p=Sl(oS,r),{onValueNodeHasChildrenChange:g}=p,y=u!==void 0,b=we(l,p.onValueNodeChange);return et(()=>{g(y)},[g,y]),d.jsx(oe.span,{...m,ref:b,style:{pointerEvents:"none"},children:vS(p.value)?d.jsx(d.Fragment,{children:h}):u})});vO.displayName=oS;var gO="SelectIcon",yO=v.forwardRef((n,l)=>{const{__scopeSelect:r,children:i,...s}=n;return d.jsx(oe.span,{"aria-hidden":!0,...s,ref:l,children:i||"▼"})});yO.displayName=gO;var lr="SelectContent",bO=v.forwardRef((n,l)=>{const r=Sl(lr,n.__scopeSelect),[i,s]=v.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const u=i;return u?Po.createPortal(d.jsx(sS,{scope:n.__scopeSelect,children:d.jsx(Im.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),u):null}return d.jsx(uS,{...n,ref:l})});bO.displayName=lr;var Rn=10,[sS,El]=Ai(lr),xO="SelectContentImpl",wO=tr("SelectContent.RemoveScroll"),uS=v.forwardRef((n,l)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:u,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:E,sticky:j,hideWhenDetached:S,avoidCollisions:N,..._}=n,R=Sl(lr,r),[T,k]=v.useState(null),[L,X]=v.useState(null),q=we(l,ne=>k(ne)),[H,G]=v.useState(null),[te,ue]=v.useState(null),ce=Tc(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return Gm(T)},[T]),Mm();const U=v.useCallback(ne=>{const[je,...ge]=ce().map(Ye=>Ye.ref.current),[Ce]=ge.slice(-1),Ue=document.activeElement;for(const Ye of ne)if(Ye===Ue||(Ye==null||Ye.scrollIntoView({block:"nearest"}),Ye===je&&L&&(L.scrollTop=0),Ye===Ce&&L&&(L.scrollTop=L.scrollHeight),Ye==null||Ye.focus(),document.activeElement!==Ue))return},[ce,L]),W=v.useCallback(()=>U([H,T]),[U,H,T]);v.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:V,triggerPointerDownPosRef:$}=R;v.useEffect(()=>{if(T){let ne={x:0,y:0};const je=Ce=>{var Ue,Ye;ne={x:Math.abs(Math.round(Ce.pageX)-(((Ue=$.current)==null?void 0:Ue.x)??0)),y:Math.abs(Math.round(Ce.pageY)-(((Ye=$.current)==null?void 0:Ye.y)??0))}},ge=Ce=>{ne.x<=10&&ne.y<=10?Ce.preventDefault():T.contains(Ce.target)||V(!1),document.removeEventListener("pointermove",je),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",je),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",je),document.removeEventListener("pointerup",ge,{capture:!0})}}},[T,V,$]),v.useEffect(()=>{const ne=()=>V(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[V]);const[de,A]=gS(ne=>{const je=ce().filter(Ue=>!Ue.disabled),ge=je.find(Ue=>Ue.ref.current===document.activeElement),Ce=yS(je,ne,ge);Ce&&setTimeout(()=>Ce.ref.current.focus())}),Z=v.useCallback((ne,je,ge)=>{const Ce=!re.current&&!ge;(R.value!==void 0&&R.value===je||Ce)&&(G(ne),Ce&&(re.current=!0))},[R.value]),ee=v.useCallback(()=>T==null?void 0:T.focus(),[T]),le=v.useCallback((ne,je,ge)=>{const Ce=!re.current&&!ge;(R.value!==void 0&&R.value===je||Ce)&&ue(ne)},[R.value]),pe=i==="popper"?tm:cS,Ee=pe===tm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:E,sticky:j,hideWhenDetached:S,avoidCollisions:N}:{};return d.jsx(sS,{scope:r,content:T,viewport:L,onViewportChange:X,itemRefCallback:Z,selectedItem:H,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:de,children:d.jsx(Cc,{as:wO,allowPinchZoom:!0,children:d.jsx(yc,{asChild:!0,trapped:R.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(s,ne=>{var je;(je=R.trigger)==null||je.focus({preventScroll:!0}),ne.preventDefault()}),children:d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:d.jsx(pe,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ne=>ne.preventDefault(),..._,...Ee,onPlaced:()=>ie(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.onKeyDown,ne=>{const je=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!je&&ne.key.length===1&&A(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let ge=ce().filter(Ce=>!Ce.disabled).map(Ce=>Ce.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ge=ge.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ce=ne.target,Ue=ge.indexOf(Ce);ge=ge.slice(Ue+1)}setTimeout(()=>U(ge)),ne.preventDefault()}})})})})})})});uS.displayName=xO;var SO="SelectItemAlignedPosition",cS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,u=Sl(lr,r),h=El(lr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),b=we(l,q=>y(q)),w=Tc(r),E=v.useRef(!1),j=v.useRef(!0),{viewport:S,selectedItem:N,selectedItemText:_,focusSelectedItem:R}=h,T=v.useCallback(()=>{if(u.trigger&&u.valueNode&&m&&g&&S&&N&&_){const q=u.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),G=u.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(u.dir!=="rtl"){const Ce=te.left-H.left,Ue=G.left-Ce,Ye=q.left-Ue,jt=q.width+Ye,Vt=Math.max(jt,H.width),ea=window.innerWidth-Rn,ta=$h(Ue,[Rn,Math.max(Rn,ea-Vt)]);m.style.minWidth=jt+"px",m.style.left=ta+"px"}else{const Ce=H.right-te.right,Ue=window.innerWidth-G.right-Ce,Ye=window.innerWidth-q.right-Ue,jt=q.width+Ye,Vt=Math.max(jt,H.width),ea=window.innerWidth-Rn,ta=$h(Ue,[Rn,Math.max(Rn,ea-Vt)]);m.style.minWidth=jt+"px",m.style.right=ta+"px"}const ue=w(),ce=window.innerHeight-Rn*2,I=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),V=parseInt(ie.paddingBottom,10),$=re+U+I+V+W,de=Math.min(N.offsetHeight*5,$),A=window.getComputedStyle(S),Z=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=q.top+q.height/2-Rn,pe=ce-le,Ee=N.offsetHeight/2,ne=N.offsetTop+Ee,je=re+U+ne,ge=$-je;if(je<=le){const Ce=ue.length>0&&N===ue[ue.length-1].ref.current;m.style.bottom="0px";const Ue=g.clientHeight-S.offsetTop-S.offsetHeight,Ye=Math.max(pe,Ee+(Ce?ee:0)+Ue+W),jt=je+Ye;m.style.height=jt+"px"}else{const Ce=ue.length>0&&N===ue[0].ref.current;m.style.top="0px";const Ue=Math.max(le,re+S.offsetTop+(Ce?Z:0)+Ee)+ge;m.style.height=Ue+"px",S.scrollTop=je-le+S.offsetTop}m.style.margin=`${Rn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[w,u.trigger,u.valueNode,m,g,S,N,_,u.dir,i]);et(()=>T(),[T]);const[k,L]=v.useState();et(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const X=v.useCallback(q=>{q&&j.current===!0&&(T(),R==null||R(),j.current=!1)},[T,R]);return d.jsx(jO,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:X,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:d.jsx(oe.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});cS.displayName=SO;var EO="SelectPopperPosition",tm=v.forwardRef((n,l)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Rn,...u}=n,h=ep(r);return d.jsx(qm,{...h,...u,ref:l,align:i,collisionPadding:s,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tm.displayName=EO;var[jO,tp]=Ai(lr,{}),nm="SelectViewport",CO=v.forwardRef((n,l)=>{const{__scopeSelect:r,nonce:i,...s}=n,u=El(nm,r),h=tp(nm,r),m=we(l,u.onViewportChange),p=v.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),d.jsx(Im.Slot,{scope:r,children:d.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ae(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&b){const E=Math.abs(p.current-y.scrollTop);if(E>0){const j=window.innerHeight-Rn*2,S=parseFloat(b.style.minHeight),N=parseFloat(b.style.height),_=Math.max(S,N);if(_<j){const R=_+E,T=Math.min(j,R),k=R-T;b.style.height=T+"px",b.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});CO.displayName=nm;var dS="SelectGroup",[NO,_O]=Ai(dS),RO=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=wl();return d.jsx(NO,{scope:r,id:s,children:d.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:l})})});RO.displayName=dS;var fS="SelectLabel",TO=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=_O(fS,r);return d.jsx(oe.div,{id:s.id,...i,ref:l})});TO.displayName=fS;var ec="SelectItem",[MO,hS]=Ai(ec),AO=v.forwardRef((n,l)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:u,...h}=n,m=Sl(ec,r),p=El(ec,r),g=m.value===i,[y,b]=v.useState(u??""),[w,E]=v.useState(!1),j=we(l,R=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,R,i,s)}),S=wl(),N=v.useRef("touch"),_=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(MO,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(R=>{b(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:d.jsx(Im.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:d.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...h,ref:j,onFocus:ae(h.onFocus,()=>E(!0)),onBlur:ae(h.onBlur,()=>E(!1)),onClick:ae(h.onClick,()=>{N.current!=="mouse"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{N.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,R=>{N.current=R.pointerType}),onPointerMove:ae(h.onPointerMove,R=>{var T;N.current=R.pointerType,s?(T=p.onItemLeave)==null||T.call(p):N.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,R=>{var T;R.currentTarget===document.activeElement&&((T=p.onItemLeave)==null||T.call(p))}),onKeyDown:ae(h.onKeyDown,R=>{var T;((T=p.searchRef)==null?void 0:T.current)!==""&&R.key===" "||(fO.includes(R.key)&&_(),R.key===" "&&R.preventDefault())})})})})});AO.displayName=ec;var ko="SelectItemText",DO=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,...u}=n,h=Sl(ko,r),m=El(ko,r),p=hS(ko,r),g=mO(ko,r),[y,b]=v.useState(null),w=we(l,_=>b(_),p.onItemTextChange,_=>{var R;return(R=m.itemTextRefCallback)==null?void 0:R.call(m,_,p.value,p.disabled)}),E=y==null?void 0:y.textContent,j=v.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:N}=g;return et(()=>(S(j),()=>N(j)),[S,N,j]),d.jsxs(d.Fragment,{children:[d.jsx(oe.span,{id:p.textId,...u,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Po.createPortal(u.children,h.valueNode):null]})});DO.displayName=ko;var mS="SelectItemIndicator",kO=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return hS(mS,r).isSelected?d.jsx(oe.span,{"aria-hidden":!0,...i,ref:l}):null});kO.displayName=mS;var am="SelectScrollUpButton",OO=v.forwardRef((n,l)=>{const r=El(am,n.__scopeSelect),i=tp(am,n.__scopeSelect),[s,u]=v.useState(!1),h=we(l,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;u(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(pS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});OO.displayName=am;var lm="SelectScrollDownButton",zO=v.forwardRef((n,l)=>{const r=El(lm,n.__scopeSelect),i=tp(lm,n.__scopeSelect),[s,u]=v.useState(!1),h=we(l,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;u(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(pS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});zO.displayName=lm;var pS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,u=El("SelectScrollButton",r),h=v.useRef(null),m=Tc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),et(()=>{var g;const y=m().find(b=>b.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),d.jsx(oe.div,{"aria-hidden":!0,...s,ref:l,style:{flexShrink:0,...s.style},onPointerDown:ae(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(s.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),LO="SelectSeparator",UO=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return d.jsx(oe.div,{"aria-hidden":!0,...i,ref:l})});UO.displayName=LO;var rm="SelectArrow",HO=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=ep(r),u=Sl(rm,r),h=El(rm,r);return u.open&&h.position==="popper"?d.jsx(Bm,{...s,...i,ref:l}):null});HO.displayName=rm;var qO="SelectBubbleInput",BO=v.forwardRef(({__scopeSelect:n,value:l,...r},i)=>{const s=v.useRef(null),u=we(i,s),h=ts(l);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==l&&g){const y=new Event("change",{bubbles:!0});g.call(m,l),m.dispatchEvent(y)}},[h,l]),d.jsx(oe.select,{...r,style:{...aS,...r.style},ref:u,defaultValue:l})});BO.displayName=qO;function vS(n){return n===""||n===void 0}function gS(n){const l=We(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(h=>{const m=r.current+h;l(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[l]),u=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,u]}function yS(n,l,r){const i=l.length>1&&Array.from(l).every(m=>m===l[0])?l[0]:l,s=r?n.indexOf(r):-1;let u=QO(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function QO(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var[Mc,rz]=ft("Tooltip",[Ri]),np=Ri(),YO="TooltipProvider",Lb="tooltip.open",[iz,bS]=Mc(YO),xS="Tooltip",[oz,Ac]=Mc(xS),im="TooltipTrigger",GO=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=Ac(im,r),u=bS(im,r),h=np(r),m=v.useRef(null),p=we(l,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),b=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),d.jsx(Hm,{asChild:!0,...h,children:d.jsx(oe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:p,onPointerMove:ae(n.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});GO.displayName=im;var VO="TooltipPortal",[sz,KO]=Mc(VO,{forceMount:void 0}),vi="TooltipContent",wS=v.forwardRef((n,l)=>{const r=KO(vi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...u}=n,h=Ac(vi,n.__scopeTooltip);return d.jsx(vt,{present:i||h.open,children:h.disableHoverableContent?d.jsx(SS,{side:s,...u,ref:l}):d.jsx(XO,{side:s,...u,ref:l})})}),XO=v.forwardRef((n,l)=>{const r=Ac(vi,n.__scopeTooltip),i=bS(vi,n.__scopeTooltip),s=v.useRef(null),u=we(l,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:b}=i,w=v.useCallback(()=>{m(null),b(!1)},[b]),E=v.useCallback((j,S)=>{const N=j.currentTarget,_={x:j.clientX,y:j.clientY},R=JO(_,N.getBoundingClientRect()),T=WO(_,R),k=IO(S.getBoundingClientRect()),L=t3([...T,...k]);m(L),b(!0)},[b]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const j=N=>E(N,y),S=N=>E(N,p);return p.addEventListener("pointerleave",j),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",j),y.removeEventListener("pointerleave",S)}}},[p,y,E,w]),v.useEffect(()=>{if(h){const j=S=>{const N=S.target,_={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(N))||(y==null?void 0:y.contains(N)),T=!e3(_,h);R?w():T&&(w(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[p,y,h,g,w]),d.jsx(SS,{...n,ref:u})}),[$O,ZO]=Mc(xS,{isInside:!1}),FO=nw("TooltipContent"),SS=v.forwardRef((n,l)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:h,...m}=n,p=Ac(vi,r),g=np(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Lb,y),()=>document.removeEventListener(Lb,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=w=>{const E=w.target;E!=null&&E.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),d.jsx(Ci,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:d.jsxs(qm,{"data-state":p.stateAttribute,...g,...m,ref:l,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(FO,{children:i}),d.jsx($O,{scope:r,isInside:!0,children:d.jsx(rS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});wS.displayName=vi;var ES="TooltipArrow",PO=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=np(r);return ZO(ES,r).isInside?null:d.jsx(Bm,{...s,...i,ref:l})});PO.displayName=ES;function JO(n,l){const r=Math.abs(l.top-n.y),i=Math.abs(l.bottom-n.y),s=Math.abs(l.right-n.x),u=Math.abs(l.left-n.x);switch(Math.min(r,i,s,u)){case u:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function WO(n,l,r=5){const i=[];switch(l){case"top":i.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":i.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":i.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":i.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return i}function IO(n){const{top:l,right:r,bottom:i,left:s}=n;return[{x:s,y:l},{x:r,y:l},{x:r,y:i},{x:s,y:i}]}function e3(n,l){const{x:r,y:i}=n;let s=!1;for(let u=0,h=l.length-1;u<l.length;h=u++){const m=l[u],p=l[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function t3(n){const l=n.slice();return l.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),n3(l)}function n3(n){if(n.length<=1)return n.slice();const l=[];for(let i=0;i<n.length;i++){const s=n[i];for(;l.length>=2;){const u=l[l.length-1],h=l[l.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))l.pop();else break}l.push(s)}l.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const u=r[r.length-1],h=r[r.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),l.length===1&&r.length===1&&l[0].x===r[0].x&&l[0].y===r[0].y?l:l.concat(r)}var a3=wS;a3.displayName;var Dc="Checkbox",[l3,uz]=ft(Dc),[r3,ap]=l3(Dc);function i3(n){const{__scopeCheckbox:l,checked:r,children:i,defaultChecked:s,disabled:u,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:b}=n,[w,E]=Jn({prop:r,defaultProp:s??!1,onChange:p,caller:Dc}),[j,S]=v.useState(null),[N,_]=v.useState(null),R=v.useRef(!1),T=j?!!h||!!j.closest("form"):!0,k={checked:w,disabled:u,setChecked:E,control:j,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:gl(s)?!1:s,isFormControl:T,bubbleInput:N,setBubbleInput:_};return d.jsx(r3,{scope:l,...k,children:u3(b)?b(k):i})}var jS="CheckboxTrigger",CS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:r,...i},s)=>{const{control:u,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:E,bubbleInput:j}=ap(jS,n),S=we(s,y),N=v.useRef(p);return v.useEffect(()=>{const _=u==null?void 0:u.form;if(_){const R=()=>b(N.current);return _.addEventListener("reset",R),()=>_.removeEventListener("reset",R)}},[u,b]),d.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":gl(p)?"mixed":p,"aria-required":g,"data-state":TS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(l,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{b(R=>gl(R)?!0:!R),j&&E&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});CS.displayName=jS;var o3=v.forwardRef((n,l)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...b}=n;return d.jsx(i3,{__scopeCheckbox:r,checked:s,defaultChecked:u,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>d.jsxs(d.Fragment,{children:[d.jsx(CS,{...b,ref:l,__scopeCheckbox:r}),w&&d.jsx(RS,{__scopeCheckbox:r})]})})});o3.displayName=Dc;var NS="CheckboxIndicator",s3=v.forwardRef((n,l)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,u=ap(NS,r);return d.jsx(vt,{present:i||gl(u.checked)||u.checked===!0,children:d.jsx(oe.span,{"data-state":TS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:l,style:{pointerEvents:"none",...n.style}})})});s3.displayName=NS;var _S="CheckboxBubbleInput",RS=v.forwardRef(({__scopeCheckbox:n,...l},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:b,bubbleInput:w,setBubbleInput:E}=ap(_S,n),j=we(r,E),S=ts(u),N=Ec(i);v.useEffect(()=>{const R=w;if(!R)return;const T=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==u&&k){const X=new Event("click",{bubbles:L});R.indeterminate=gl(u),k.call(R,gl(u)?!1:u),R.dispatchEvent(X)}},[w,S,u,s]);const _=v.useRef(gl(u)?!1:u);return d.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:b,...l,tabIndex:-1,ref:j,style:{...l.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});RS.displayName=_S;function u3(n){return typeof n=="function"}function gl(n){return n==="indeterminate"}function TS(n){return gl(n)?"indeterminate":n?"checked":"unchecked"}var lp="Radio",[c3,MS]=ft(lp),[d3,f3]=c3(lp),AS=v.forwardRef((n,l)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:u,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[b,w]=v.useState(null),E=we(l,N=>w(N)),j=v.useRef(!1),S=b?g||!!b.closest("form"):!0;return d.jsxs(d3,{scope:r,checked:s,disabled:h,children:[d.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":zS(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:E,onClick:ae(n.onClick,N=>{s||p==null||p(),S&&(j.current=N.isPropagationStopped(),j.current||N.stopPropagation())})}),S&&d.jsx(OS,{control:b,bubbles:!j.current,name:i,value:m,checked:s,required:u,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});AS.displayName=lp;var DS="RadioIndicator",kS=v.forwardRef((n,l)=>{const{__scopeRadio:r,forceMount:i,...s}=n,u=f3(DS,r);return d.jsx(vt,{present:i||u.checked,children:d.jsx(oe.span,{"data-state":zS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:l})})});kS.displayName=DS;var h3="RadioBubbleInput",OS=v.forwardRef(({__scopeRadio:n,control:l,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=ts(r),g=Ec(l);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const E=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(E)}},[p,r,i]),d.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});OS.displayName=h3;function zS(n){return n?"checked":"unchecked"}var m3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kc="RadioGroup",[p3,cz]=ft(kc,[Ti,MS]),LS=Ti(),US=MS(),[v3,g3]=p3(kc),HS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:u,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:b,...w}=n,E=LS(r),j=Ei(g),[S,N]=Jn({prop:u,defaultProp:s??null,onChange:b,caller:kc});return d.jsx(v3,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:N,children:d.jsx(Qm,{asChild:!0,...E,orientation:p,dir:j,loop:y,children:d.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:j,...w,ref:l})})})});HS.displayName=kc;var qS="RadioGroupItem",BS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,u=g3(qS,r),h=u.disabled||i,m=LS(r),p=US(r),g=v.useRef(null),y=we(l,g),b=u.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const E=S=>{m3.includes(S.key)&&(w.current=!0)},j=()=>w.current=!1;return document.addEventListener("keydown",E),document.addEventListener("keyup",j),()=>{document.removeEventListener("keydown",E),document.removeEventListener("keyup",j)}},[]),d.jsx(Ym,{asChild:!0,...m,focusable:!h,active:b,children:d.jsx(AS,{disabled:h,required:u.required,checked:b,...p,...s,name:u.name,ref:y,onCheck:()=>u.onValueChange(s.value),onKeyDown:ae(E=>{E.key==="Enter"&&E.preventDefault()}),onFocus:ae(s.onFocus,()=>{var E;w.current&&((E=g.current)==null||E.click())})})})});BS.displayName=qS;var y3="RadioGroupIndicator",b3=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,...i}=n,s=US(r);return d.jsx(kS,{...s,...i,ref:l})});b3.displayName=y3;var x3=HS,w3=BS;x3.displayName;w3.displayName;var Oc="Switch",[S3,dz]=ft(Oc),[E3,j3]=S3(Oc),QS=v.forwardRef((n,l)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...b}=n,[w,E]=v.useState(null),j=we(l,T=>E(T)),S=v.useRef(!1),N=w?y||!!w.closest("form"):!0,[_,R]=Jn({prop:s,defaultProp:u??!1,onChange:g,caller:Oc});return d.jsxs(E3,{scope:r,checked:_,disabled:m,children:[d.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":KS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:j,onClick:ae(n.onClick,T=>{R(k=>!k),N&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),N&&d.jsx(VS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});QS.displayName=Oc;var YS="SwitchThumb",GS=v.forwardRef((n,l)=>{const{__scopeSwitch:r,...i}=n,s=j3(YS,r);return d.jsx(oe.span,{"data-state":KS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:l})});GS.displayName=YS;var C3="SwitchBubbleInput",VS=v.forwardRef(({__scopeSwitch:n,control:l,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=ts(r),g=Ec(l);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const E=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(E)}},[p,r,i]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});VS.displayName=C3;function KS(n){return n?"checked":"unchecked"}var N3=QS,_3=GS;function Ch({className:n,...l}){return d.jsx(N3,{"data-slot":"switch",className:ye("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...l,children:d.jsx(_3,{"data-slot":"switch-thumb",className:ye("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var zc="Tabs",[R3,fz]=ft(zc,[Ti]),XS=Ti(),[T3,rp]=R3(zc),$S=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Ei(m),[b,w]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:zc});return d.jsx(T3,{scope:r,baseId:wl(),value:b,onValueChange:w,orientation:h,dir:y,activationMode:p,children:d.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:l})})});$S.displayName=zc;var ZS="TabsList",FS=v.forwardRef((n,l)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,u=rp(ZS,r),h=XS(r);return d.jsx(Qm,{asChild:!0,...h,orientation:u.orientation,dir:u.dir,loop:i,children:d.jsx(oe.div,{role:"tablist","aria-orientation":u.orientation,...s,ref:l})})});FS.displayName=ZS;var PS="TabsTrigger",JS=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...u}=n,h=rp(PS,r),m=XS(r),p=eE(h.baseId,i),g=tE(h.baseId,i),y=i===h.value;return d.jsx(Ym,{asChild:!0,...m,focusable:!s,active:y,children:d.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...u,ref:l,onMouseDown:ae(n.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?h.onValueChange(i):b.preventDefault()}),onKeyDown:ae(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const b=h.activationMode!=="manual";!y&&!s&&b&&h.onValueChange(i)})})})});JS.displayName=PS;var WS="TabsContent",IS=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,forceMount:s,children:u,...h}=n,m=rp(WS,r),p=eE(m.baseId,i),g=tE(m.baseId,i),y=i===m.value,b=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),d.jsx(vt,{present:s||y,children:({present:w})=>d.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:l,style:{...n.style,animationDuration:b.current?"0s":void 0},children:w&&u})})});IS.displayName=WS;function eE(n,l){return`${n}-trigger-${l}`}function tE(n,l){return`${n}-content-${l}`}var M3=$S,A3=FS,D3=JS,k3=IS;function nE({className:n,...l}){return d.jsx(M3,{"data-slot":"tabs",className:ye("flex flex-col gap-2",n),...l})}function aE({className:n,...l}){return d.jsx(A3,{"data-slot":"tabs-list",className:ye("flex border-b border-border",n),...l})}function Lo({className:n,children:l,...r}){return d.jsx(D3,{asChild:!0,...r,children:d.jsx(rw,{className:n,children:l})})}function Uo({className:n,...l}){return d.jsx(k3,{"data-slot":"tabs-content",className:ye("flex-1 outline-none",n),...l})}function O3(n){const l=z3(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(U3);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(l,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(l,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}function z3(n){const l=v.forwardRef((r,i)=>{const{children:s,...u}=r,h=v.isValidElement(s)?q3(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=H3(u,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var L3=Symbol("radix.slottable");function U3(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===L3}function H3(n,l){const r={...l};for(const i in l){const s=n[i],u=l[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function q3(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var B3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ip=B3.reduce((n,l)=>{const r=O3(`Primitive.${l}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{}),op="Progress",sp=100,[Q3,hz]=ft(op),[Y3,G3]=Q3(op),V3=v.forwardRef((n,l)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:u=X3,...h}=n;(s||s===0)&&!Ub(s)&&console.error($3(`${s}`,"Progress"));const m=Ub(s)?s:sp;i!==null&&!Hb(i,m)&&console.error(Z3(`${i}`,"Progress"));const p=Hb(i,m)?i:null,g=tc(p)?u(p,m):void 0;return d.jsx(Y3,{scope:r,value:p,max:m,children:d.jsx(ip.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":tc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":rE(p,m),"data-value":p??void 0,"data-max":m,...h,ref:l})})});V3.displayName=op;var lE="ProgressIndicator",K3=v.forwardRef((n,l)=>{const{__scopeProgress:r,...i}=n,s=G3(lE,r);return d.jsx(ip.div,{"data-state":rE(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:l})});K3.displayName=lE;function X3(n,l){return`${Math.round(n/l*100)}%`}function rE(n,l){return n==null?"indeterminate":n===l?"complete":"loading"}function tc(n){return typeof n=="number"}function Ub(n){return tc(n)&&!isNaN(n)&&n>0}function Hb(n,l){return tc(n)&&!isNaN(n)&&n<=l&&n>=0}function $3(n,l){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${l}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${sp}\`.`}function Z3(n,l){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${l}\`. The \`value\` prop must be:
307
+ - a positive number
308
+ - less than the value passed to \`max\` (or ${sp} if no \`max\` prop is set)
309
+ - \`null\` or \`undefined\` if the progress is indeterminate.
310
+
311
+ Defaulting to \`null\`.`}var F3="Separator",qb="horizontal",P3=["horizontal","vertical"],J3=v.forwardRef((n,l)=>{const{decorative:r,orientation:i=qb,...s}=n,u=W3(i)?i:qb,h=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return d.jsx(ip.div,{"data-orientation":u,...h,...s,ref:l})});J3.displayName=F3;function W3(n){return P3.includes(n)}var I3="Label",iE=v.forwardRef((n,l)=>d.jsx(oe.label,{...n,ref:l,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));iE.displayName=I3;var oE=iE;const e4=lw("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oo=({ref:n,className:l,...r})=>d.jsx(oE,{ref:n,className:ye(e4(),l),...r});Oo.displayName=oE.displayName;var Lc="Collapsible",[t4,sE]=ft(Lc),[n4,up]=t4(Lc),uE=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:u,onOpenChange:h,...m}=n,[p,g]=Jn({prop:i,defaultProp:s??!1,onChange:h,caller:Lc});return d.jsx(n4,{scope:r,disabled:u,contentId:wl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:d.jsx(oe.div,{"data-state":hp(p),"data-disabled":u?"":void 0,...m,ref:l})})});uE.displayName=Lc;var cE="CollapsibleTrigger",cp=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,...i}=n,s=up(cE,r);return d.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":hp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:l,onClick:ae(n.onClick,s.onOpenToggle)})});cp.displayName=cE;var dp="CollapsibleContent",fp=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=up(dp,n.__scopeCollapsible);return d.jsx(vt,{present:r||s.open,children:({present:u})=>d.jsx(a4,{...i,ref:l,present:u})})});fp.displayName=dp;var a4=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,present:i,children:s,...u}=n,h=up(dp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(l,g),b=v.useRef(0),w=b.current,E=v.useRef(0),j=E.current,S=h.open||m,N=v.useRef(S),_=v.useRef(void 0);return v.useEffect(()=>{const R=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(R)},[]),et(()=>{const R=g.current;if(R){_.current=_.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const T=R.getBoundingClientRect();b.current=T.height,E.current=T.width,N.current||(R.style.transitionDuration=_.current.transitionDuration,R.style.animationName=_.current.animationName),p(i)}},[h.open,i]),d.jsx(oe.div,{"data-state":hp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...u,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...n.style},children:S&&s})});function hp(n){return n?"open":"closed"}var dE=uE,l4=cp,r4=fp,Hn="Accordion",i4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mp,o4,s4]=ji(Hn),[Uc,mz]=ft(Hn,[s4,sE]),pp=sE(),u4=lt.forwardRef((n,l)=>{const{type:r,...i}=n,s=i,u=i;return d.jsx(mp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?d.jsx(h4,{...u,ref:l}):d.jsx(f4,{...s,ref:l})})});u4.displayName=Hn;var[fE,c4]=Uc(Hn),[hE,d4]=Uc(Hn,{collapsible:!1}),f4=lt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:u=!1,...h}=n,[m,p]=Jn({prop:r,defaultProp:i??"",onChange:s,caller:Hn});return d.jsx(fE,{scope:n.__scopeAccordion,value:lt.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:lt.useCallback(()=>u&&p(""),[u,p]),children:d.jsx(hE,{scope:n.__scopeAccordion,collapsible:u,children:d.jsx(mE,{...h,ref:l})})})}),h4=lt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...u}=n,[h,m]=Jn({prop:r,defaultProp:i??[],onChange:s,caller:Hn}),p=lt.useCallback(y=>m((b=[])=>[...b,y]),[m]),g=lt.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return d.jsx(fE,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:d.jsx(hE,{scope:n.__scopeAccordion,collapsible:!0,children:d.jsx(mE,{...u,ref:l})})})}),[m4,Hc]=Uc(Hn),mE=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:u="vertical",...h}=n,m=lt.useRef(null),p=we(m,l),g=o4(r),y=Ei(s)==="ltr",b=ae(n.onKeyDown,w=>{var E;if(!i4.includes(w.key))return;const j=w.target,S=g().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),N=S.findIndex(H=>H.ref.current===j),_=S.length;if(N===-1)return;w.preventDefault();let R=N;const T=0,k=_-1,L=()=>{R=N+1,R>k&&(R=T)},X=()=>{R=N-1,R<T&&(R=k)};switch(w.key){case"Home":R=T;break;case"End":R=k;break;case"ArrowRight":u==="horizontal"&&(y?L():X());break;case"ArrowDown":u==="vertical"&&L();break;case"ArrowLeft":u==="horizontal"&&(y?X():L());break;case"ArrowUp":u==="vertical"&&X();break}const q=R%_;(E=S[q].ref.current)==null||E.focus()});return d.jsx(m4,{scope:r,disabled:i,direction:s,orientation:u,children:d.jsx(mp.Slot,{scope:r,children:d.jsx(oe.div,{...h,"data-orientation":u,ref:p,onKeyDown:i?void 0:b})})})}),nc="AccordionItem",[p4,vp]=Uc(nc),v4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,value:i,...s}=n,u=Hc(nc,r),h=c4(nc,r),m=pp(r),p=wl(),g=i&&h.value.includes(i)||!1,y=u.disabled||n.disabled;return d.jsx(p4,{scope:r,open:g,disabled:y,triggerId:p,children:d.jsx(dE,{"data-orientation":u.orientation,"data-state":gE(g),...m,...s,ref:l,disabled:y,open:g,onOpenChange:b=>{b?h.onItemOpen(i):h.onItemClose(i)}})})});v4.displayName=nc;var pE="AccordionHeader",g4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=vp(pE,r);return d.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":gE(u.open),"data-disabled":u.disabled?"":void 0,...i,ref:l})});g4.displayName=pE;var om="AccordionTrigger",y4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=vp(om,r),h=d4(om,r),m=pp(r);return d.jsx(mp.ItemSlot,{scope:r,children:d.jsx(l4,{"aria-disabled":u.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId,...m,...i,ref:l})})});y4.displayName=om;var vE="AccordionContent",b4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Hc(Hn,r),u=vp(vE,r),h=pp(r);return d.jsx(r4,{role:"region","aria-labelledby":u.triggerId,"data-orientation":s.orientation,...h,...i,ref:l,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});b4.displayName=vE;function gE(n){return n?"open":"closed"}const yE=dE,bE=cp,xE=fp;var sr="NavigationMenu",[gp,wE,x4]=ji(sr),[sm,w4,S4]=ji(sr),[yp,pz]=ft(sr,[x4,S4]),[E4,jn]=yp(sr),[j4,C4]=yp(sr),N4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[b,w]=v.useState(null),E=we(l,G=>w(G)),j=Ei(g),S=v.useRef(0),N=v.useRef(0),_=v.useRef(0),[R,T]=v.useState(!0),[k,L]=Jn({prop:i,onChange:G=>{const te=G!=="",ue=m>0;te?(window.clearTimeout(_.current),ue&&T(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>T(!0),m)),s==null||s(G)},defaultProp:u??"",caller:sr}),X=v.useCallback(()=>{window.clearTimeout(N.current),N.current=window.setTimeout(()=>L(""),150)},[L]),q=v.useCallback(G=>{window.clearTimeout(N.current),L(G)},[L]),H=v.useCallback(G=>{k===G?window.clearTimeout(N.current):S.current=window.setTimeout(()=>{window.clearTimeout(N.current),L(G)},h)},[k,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(N.current),window.clearTimeout(_.current)},[]),d.jsx(SE,{scope:r,isRootMenu:!0,value:k,dir:j,orientation:p,rootNavigationMenu:b,onTriggerEnter:G=>{window.clearTimeout(S.current),R?H(G):q(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),X()},onContentEnter:()=>window.clearTimeout(N.current),onContentLeave:X,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:d.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:j,...y,ref:E})})});N4.displayName=sr;var um="NavigationMenuSub",_4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",...m}=n,p=jn(um,r),[g,y]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:um});return d.jsx(SE,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:b=>y(b),onItemSelect:b=>y(b),onItemDismiss:()=>y(""),children:d.jsx(oe.div,{"data-orientation":h,...m,ref:l})})});_4.displayName=um;var SE=n=>{const{scope:l,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:u,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:b,onContentEnter:w,onContentLeave:E}=n,[j,S]=v.useState(null),[N,_]=v.useState(new Map),[R,T]=v.useState(null);return d.jsx(E4,{scope:l,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:ts(m),baseId:wl(),dir:s,orientation:u,viewport:j,onViewportChange:S,indicatorTrack:R,onIndicatorTrackChange:T,onTriggerEnter:We(y),onTriggerLeave:We(b),onContentEnter:We(w),onContentLeave:We(E),onItemSelect:We(p),onItemDismiss:We(g),onViewportContentChange:v.useCallback((k,L)=>{_(X=>(X.set(k,L),new Map(X)))},[]),onViewportContentRemove:v.useCallback(k=>{_(L=>L.has(k)?(L.delete(k),new Map(L)):L)},[]),children:d.jsx(gp.Provider,{scope:l,children:d.jsx(j4,{scope:l,items:N,children:h})})})},EE="NavigationMenuList",R4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=jn(EE,r),u=d.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:l});return d.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:d.jsx(gp.Slot,{scope:r,children:s.isRootMenu?d.jsx(_E,{asChild:!0,children:u}):u})})});R4.displayName=EE;var jE="NavigationMenuItem",[T4,CE]=yp(jE),M4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,u=wl(),h=i||u||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),b=v.useRef(!1),w=v.useCallback((j="start")=>{if(m.current){y.current();const S=dm(m.current);S.length&&wp(j==="start"?S:S.reverse())}},[]),E=v.useCallback(()=>{if(m.current){const j=dm(m.current);j.length&&(y.current=Y4(j))}},[]);return d.jsx(T4,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:E,onContentFocusOutside:E,children:d.jsx(oe.li,{...s,ref:l})})});M4.displayName=jE;var cm="NavigationMenuTrigger",A4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,u=jn(cm,n.__scopeNavigationMenu),h=CE(cm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,l),g=TE(u.baseId,h.value),y=ME(u.baseId,h.value),b=v.useRef(!1),w=v.useRef(!1),E=h.value===u.value;return d.jsxs(d.Fragment,{children:[d.jsx(gp.ItemSlot,{scope:r,value:h.value,children:d.jsx(RE,{asChild:!0,children:d.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Sp(E),"aria-expanded":E,"aria-controls":y,...s,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,ac(()=>{i||w.current||h.wasEscapeCloseRef.current||b.current||(u.onTriggerEnter(h.value),b.current=!0)})),onPointerLeave:ae(n.onPointerLeave,ac(()=>{i||(u.onTriggerLeave(),b.current=!1)})),onClick:ae(n.onClick,()=>{u.onItemSelect(h.value),w.current=E}),onKeyDown:ae(n.onKeyDown,j=>{const S={horizontal:"ArrowDown",vertical:u.dir==="rtl"?"ArrowLeft":"ArrowRight"}[u.orientation];E&&j.key===S&&(h.onEntryKeyDown(),j.preventDefault())})})})}),E&&d.jsxs(d.Fragment,{children:[d.jsx(rS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:j=>{const S=h.contentRef.current,N=j.relatedTarget,_=N===m.current,R=S==null?void 0:S.contains(N);(_||!R)&&h.onFocusProxyEnter(_?"start":"end")}}),u.viewport&&d.jsx("span",{"aria-owns":y})]})]})});A4.displayName=cm;var D4="NavigationMenuLink",Bb="navigationMenu.linkSelect",k4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...u}=n;return d.jsx(RE,{asChild:!0,children:d.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...u,ref:l,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Bb,{bubbles:!0,cancelable:!0});if(m.addEventListener(Bb,g=>s==null?void 0:s(g),{once:!0}),Vu(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(Hu,{bubbles:!0,cancelable:!0});Vu(m,g)}},{checkForDefaultPrevented:!1})})})});k4.displayName=D4;var bp="NavigationMenuIndicator",O4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=jn(bp,n.__scopeNavigationMenu),u=!!s.value;return s.indicatorTrack?kx.createPortal(d.jsx(vt,{present:r||u,children:d.jsx(z4,{...i,ref:l})}),s.indicatorTrack):null});O4.displayName=bp;var z4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=jn(bp,r),u=wE(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",b=!!s.value;v.useEffect(()=>{var E;const j=(E=u().find(S=>S.value===s.value))==null?void 0:E.ref.current;j&&m(j)},[u,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return fm(h,w),fm(s.indicatorTrack,w),p?d.jsx(oe.div,{"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":s.orientation,...i,ref:l,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),gi="NavigationMenuContent",L4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=jn(gi,n.__scopeNavigationMenu),u=CE(gi,n.__scopeNavigationMenu),h=we(u.contentRef,l),m=u.value===s.value,p={value:u.value,triggerRef:u.triggerRef,focusProxyRef:u.focusProxyRef,wasEscapeCloseRef:u.wasEscapeCloseRef,onContentFocusOutside:u.onContentFocusOutside,onRootContentClose:u.onRootContentClose,...i};return s.viewport?d.jsx(U4,{forceMount:r,...p,ref:h}):d.jsx(vt,{present:r||m,children:d.jsx(NE,{"data-state":Sp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,ac(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});L4.displayName=gi;var U4=v.forwardRef((n,l)=>{const r=jn(gi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return et(()=>{i(n.value,{ref:l,...n})},[n,l,i]),et(()=>()=>s(n.value),[n.value,s]),null}),Hu="navigationMenu.rootContentDismiss",NE=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:u,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=jn(gi,r),b=v.useRef(null),w=we(b,l),E=TE(y.baseId,i),j=ME(y.baseId,i),S=wE(r),N=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const T=b.current;if(y.isRootMenu&&T){const k=()=>{var L;_(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(Hu,k),()=>T.removeEventListener(Hu,k)}},[y.isRootMenu,n.value,s,_,m]);const R=v.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const k=T.indexOf(y.value),L=T.indexOf(y.previousValue),X=i===y.value,q=L===T.indexOf(i);if(!X&&!q)return N.current;const H=(()=>{if(k!==L){if(X&&L!==-1)return k>L?"from-end":"from-start";if(q&&k!==-1)return k>L?"to-start":"to-end"}return null})();return N.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return d.jsx(_E,{asChild:!0,children:d.jsx(Ci,{id:j,"aria-labelledby":E,"data-motion":R,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const k=new Event(Hu,{bubbles:!0,cancelable:!0});(T=b.current)==null||T.dispatchEvent(k)},onFocusOutside:ae(n.onFocusOutside,T=>{var k;p();const L=T.target;(k=y.rootNavigationMenu)!=null&&k.contains(L)&&T.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,T=>{var k;const L=T.target,X=S().some(H=>{var G;return(G=H.ref.current)==null?void 0:G.contains(L)}),q=y.isRootMenu&&((k=y.viewport)==null?void 0:k.contains(L));(X||q||!y.isRootMenu)&&T.preventDefault()}),onKeyDown:ae(n.onKeyDown,T=>{var k;const L=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!L){const X=dm(T.currentTarget),q=document.activeElement,H=X.findIndex(te=>te===q),G=T.shiftKey?X.slice(0,H).reverse():X.slice(H+1,X.length);wp(G)?T.preventDefault():(k=u.current)==null||k.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),xp="NavigationMenuViewport",H4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=!!jn(xp,n.__scopeNavigationMenu).value;return d.jsx(vt,{present:r||s,children:d.jsx(q4,{...i,ref:l})})});H4.displayName=xp;var q4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,u=jn(xp,r),h=we(l,u.onViewportChange),m=C4(gi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,b]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,E=p?(p==null?void 0:p.height)+"px":void 0,j=!!u.value,S=j?u.value:u.previousValue;return fm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),d.jsx(oe.div,{"data-state":Sp(j),"data-orientation":u.orientation,...s,ref:h,style:{pointerEvents:!j&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":E,...s.style},onPointerEnter:ae(n.onPointerEnter,u.onContentEnter),onPointerLeave:ae(n.onPointerLeave,ac(u.onContentLeave)),children:Array.from(m.items).map(([N,{ref:_,forceMount:R,...T}])=>{const k=S===N;return d.jsx(vt,{present:R||k,children:d.jsx(NE,{...T,ref:Jo(_,L=>{k&&L&&b(L)})})},N)})})}),B4="FocusGroup",_E=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=jn(B4,r);return d.jsx(sm.Provider,{scope:r,children:d.jsx(sm.Slot,{scope:r,children:d.jsx(oe.div,{dir:s.dir,...i,ref:l})})})}),Qb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Q4="FocusGroupItem",RE=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=w4(r),u=jn(Q4,r);return d.jsx(sm.ItemSlot,{scope:r,children:d.jsx(oe.button,{...i,ref:l,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Qb].includes(h.key)){let m=s().map(p=>p.ref.current);if([u.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Qb.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>wp(m)),h.preventDefault()}})})})});function dm(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function wp(n){const l=document.activeElement;return n.some(r=>r===l?!0:(r.focus(),document.activeElement!==l))}function Y4(n){return n.forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")}),()=>{n.forEach(l=>{const r=l.dataset.tabindex;l.setAttribute("tabindex",r)})}}function fm(n,l){const r=We(l);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function Sp(n){return n?"open":"closed"}function TE(n,l){return`${n}-trigger-${l}`}function ME(n,l){return`${n}-content-${l}`}function ac(n){return l=>l.pointerType==="mouse"?n(l):void 0}var Yb={exports:{}},Nh={};/**
312
+ * @license React
313
+ * use-sync-external-store-shim.production.js
314
+ *
315
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
316
+ *
317
+ * This source code is licensed under the MIT license found in the
318
+ * LICENSE file in the root directory of this source tree.
319
+ */var Gb;function G4(){if(Gb)return Nh;Gb=1;var n=lt;function l(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var r=typeof Object.is=="function"?Object.is:l,i=n.useState,s=n.useEffect,u=n.useLayoutEffect,h=n.useDebugValue;function m(b,w){var E=w(),j=i({inst:{value:E,getSnapshot:w}}),S=j[0].inst,N=j[1];return u(function(){S.value=E,S.getSnapshot=w,p(S)&&N({inst:S})},[b,E,w]),s(function(){return p(S)&&N({inst:S}),b(function(){p(S)&&N({inst:S})})},[b]),h(E),E}function p(b){var w=b.getSnapshot;b=b.value;try{var E=w();return!r(b,E)}catch{return!0}}function g(b,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Nh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Nh}var Vb;function V4(){return Vb||(Vb=1,Yb.exports=G4()),Yb.exports}var K4=V4();function X4(){return K4.useSyncExternalStore($4,()=>!0,()=>!1)}function $4(){return()=>{}}var Ep="Avatar",[Z4,vz]=ft(Ep),[F4,AE]=Z4(Ep),DE=v.forwardRef((n,l)=>{const{__scopeAvatar:r,...i}=n,[s,u]=v.useState("idle");return d.jsx(F4,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:u,children:d.jsx(oe.span,{...i,ref:l})})});DE.displayName=Ep;var kE="AvatarImage",OE=v.forwardRef((n,l)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...u}=n,h=AE(kE,r),m=P4(i,u),p=We(g=>{s(g),h.onImageLoadingStatusChange(g)});return et(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?d.jsx(oe.img,{...u,ref:l,src:i}):null});OE.displayName=kE;var zE="AvatarFallback",LE=v.forwardRef((n,l)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,u=AE(zE,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&u.imageLoadingStatus!=="loaded"?d.jsx(oe.span,{...s,ref:l}):null});LE.displayName=zE;function Kb(n,l){return n?l?(n.src!==l&&(n.src=l),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function P4(n,{referrerPolicy:l,crossOrigin:r}){const i=X4(),s=v.useRef(null),u=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>Kb(u,n));return et(()=>{m(Kb(u,n))},[u,n]),et(()=>{const p=b=>()=>{m(b)};if(!u)return;const g=p("loaded"),y=p("error");return u.addEventListener("load",g),u.addEventListener("error",y),l&&(u.referrerPolicy=l),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",g),u.removeEventListener("error",y)}},[u,r,l]),h}var J4=DE,W4=OE,I4=LE;J4.displayName;W4.displayName;I4.displayName;Dk.displayName;kk.displayName;Nk.displayName;Rk.displayName;Tk.displayName;Mk.displayName;_k.displayName;Ak.displayName;ye("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const e5="";async function At(n,l){const r=await fetch(`${e5}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return r.json()}async function jp(){return At("/api/config")}async function t5(n,l){return At(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:l})})}async function n5(n){return At(`/api/db/${n}/tables`)}async function a5(n,l,r,i){return At(`/api/db/${n}/tables/${l}?limit=${r}&offset=${i}`)}async function l5(n){return At(`/api/db/${n}/schema`)}async function r5(n){return At(`/api/queue/${n}/metrics`)}async function i5(n,l=10){return At(`/api/queue/${n}/messages?limit=${l}`)}async function o5(n,l=20){return At(`/api/workflow/${n}/executions?limit=${l}`)}async function s5(n,l){return At(`/api/workflow/${n}/executions/${l}`)}async function u5(){return At("/api/auth/tables")}async function c5(n,l,r){return At(`/api/auth/tables/${n}?limit=${l}&offset=${r}`)}async function d5(){return At("/api/auth/schema")}async function f5(n){return At("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function h5(){return At("/api/auth/settings")}async function m5(n){return At("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}function p5({column:n,onInsertText:l}){return d.jsxs("button",{onClick:()=>l==null?void 0:l(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?d.jsx(qx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(Ux,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function v5({table:n,onInsertText:l}){const[r,i]=v.useState(!1);return d.jsxs(yE,{open:r,onOpenChange:i,children:[d.jsxs(bE,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(zx,{className:"h-4 w-4 shrink-0"}):d.jsx(oc,{className:"h-4 w-4 shrink-0"}),d.jsx(fc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),l==null||l(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(xE,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(p5,{column:s,onInsertText:l},s.name))})})]})}function g5({onInsertText:n}){const{data:l,isLoading:r,refetch:i}=Gt({queryKey:["auth-schema"],queryFn:d5,staleTime:3e4}),s=(l==null?void 0:l.tables)||[];return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),d.jsx(_t,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:d.jsx(dc,{className:ye("h-4 w-4",r&&"animate-spin")})})]}),d.jsx(bw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:r?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:s.map(u=>d.jsx(v5,{table:u,onInsertText:n},u.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function y5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function b5(n){if(n<60)return`${n} seconds`;if(n<3600)return`${Math.floor(n/60)} minutes`;if(n<86400){const r=Math.floor(n/3600);return`${r} hour${r>1?"s":""}`}const l=Math.floor(n/86400);return`${l} day${l>1?"s":""}`}function x5({settings:n,onUpdate:l,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[u,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),b=()=>{l({sessionTokenExpiry:parseInt(i,10),allowSignups:u,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||u!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(Oo,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),d.jsx(wT,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:E=>s(E.target.value)}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",b5(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Allow Signups"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),d.jsx(Ch,{checked:u,onCheckedChange:h})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Require Email Verification"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),d.jsx(Ch,{checked:m,onCheckedChange:p})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(Oo,{children:"Require Name"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),d.jsx(Ch,{checked:g,onCheckedChange:y})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsx(_t,{onClick:b,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function w5(){var I,ie,re,U,W,V;const n=ym(),[l,r]=v.useState("settings"),[i,s]=v.useState(""),[u,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(0),E=50,S=((ie=(I=Gt({queryKey:["config"],queryFn:jp,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",N=Gt({queryKey:["auth-settings"],queryFn:h5,staleTime:0}),_=Qh({mutationFn:m5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),R=$=>{_.mutate($)},T=v.useCallback($=>{s(de=>de+$)},[]),k=Qh({mutationFn:$=>f5($),onSuccess:$=>{h($),p(null)},onError:$=>{p($ instanceof Error?$.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&k.mutate(i)},X=Gt({queryKey:["auth-tables"],queryFn:u5,staleTime:0,gcTime:0}),q=Gt({queryKey:["auth-tableData",g,E,b],queryFn:()=>c5(g,E,b),staleTime:0,gcTime:0,enabled:!!g}),H=((re=X.data)==null?void 0:re.tables)||[],G=((U=q.data)==null?void 0:U.data)||[],te=((W=q.data)==null?void 0:W.columns)||[],ue=((V=q.data)==null?void 0:V.total)||0,ce=$=>{y($),w(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),d.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[d.jsx(Hx,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),d.jsxs(nE,{value:l,onValueChange:r,children:[d.jsxs(aE,{children:[d.jsxs(Lo,{value:"settings",children:[d.jsx(J_,{className:"mr-2 h-4 w-4"}),"Settings"]}),d.jsx(Lo,{value:"query",children:"SQL Editor"}),d.jsx(Lo,{value:"tables",children:"Tables"})]}),d.jsx(Uo,{value:"settings",className:"mt-4",children:d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Auth Settings"}),d.jsx(Na,{children:"Configure authentication settings for local development."})]}),d.jsx(Yt,{children:N.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):N.data?d.jsx(x5,{settings:N.data,onUpdate:R,isUpdating:_.isPending}):d.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),d.jsx(Uo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"SQL Query"}),d.jsx(Na,{children:"Execute read-only SELECT queries against auth tables"})]}),d.jsxs(Yt,{className:"space-y-4",children:[d.jsx("textarea",{value:i,onChange:$=>s($.target.value),onKeyDown:$=>{($.metaKey||$.ctrlKey)&&$.key==="Enter"&&L()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),d.jsxs(_t,{onClick:L,disabled:k.isPending||!i.trim(),children:[d.jsx(Bx,{className:"mr-2 h-4 w-4"}),k.isPending?"Executing...":"Execute"]})]})]})]}),m&&d.jsx(Qt,{className:"border-destructive/50",children:d.jsx(Yt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),u&&d.jsx(ew,{results:u.results,meta:u.meta,error:u.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(g5,{onInsertText:T})})]})}),d.jsx(Uo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Qt,{className:"md:col-span-1",children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-base",children:"Tables"}),d.jsx(_t,{variant:"ghost",size:"icon",onClick:()=>X.refetch(),className:"h-8 w-8",children:d.jsx(dc,{className:"h-4 w-4"})})]}),d.jsx(Yt,{children:X.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):H.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:H.map($=>d.jsxs("button",{onClick:()=>ce($.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===$.name?"bg-muted font-medium":""}`,children:[d.jsx(fc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:$.name})]},$.name))})})]}),d.jsxs(Qt,{className:"md:col-span-3",children:[d.jsxs(bn,{children:[d.jsx(xn,{children:g||"Select a Table"}),g&&d.jsxs(Na,{children:[ue," total rows"]})]}),d.jsx(Yt,{children:g?q.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(hc,{children:[d.jsx(mc,{children:d.jsx(yl,{children:te.map($=>d.jsx(tn,{className:"font-mono",children:$},$))})}),d.jsx(pc,{children:G.map(($,de)=>d.jsx(yl,{children:te.map(A=>d.jsx(nn,{className:"font-mono text-sm",children:y5($[A])},A))},de))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," - ",Math.min(b+E,ue)," of ",ue]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(_t,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>w(Math.max(0,b-E)),children:[d.jsx(Lx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(_t,{variant:"outline",size:"sm",disabled:b+E>=ue,onClick:()=>w(b+E),children:["Next",d.jsx(oc,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function S5({column:n,onInsertText:l}){return d.jsxs("button",{onClick:()=>l==null?void 0:l(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?d.jsx(qx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(Ux,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function E5({table:n,onInsertText:l}){const[r,i]=v.useState(!1);return d.jsxs(yE,{open:r,onOpenChange:i,children:[d.jsxs(bE,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(zx,{className:"h-4 w-4 shrink-0"}):d.jsx(oc,{className:"h-4 w-4 shrink-0"}),d.jsx(fc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),l==null||l(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(xE,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(S5,{column:s,onInsertText:l},s.name))})})]})}function j5({bindingName:n,onInsertText:l}){const{data:r,isLoading:i,refetch:s}=Gt({queryKey:["schema",n],queryFn:()=>l5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),d.jsx(_t,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:d.jsx(dc,{className:ye("h-4 w-4",i&&"animate-spin")})})]}),d.jsx(bw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:i?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:h.map(m=>d.jsx(E5,{table:m,onInsertText:l},m.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function C5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function N5(){var G,te,ue,ce;const{binding:n}=rc(),l=n||"",[r,i]=v.useState("query"),[s,u]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,b]=v.useState(null),[w,E]=v.useState(0),j=50,S=v.useCallback(I=>{u(ie=>ie+I)},[]),N=Qh({mutationFn:I=>t5(l,I),onSuccess:I=>{m(I),g(null)},onError:I=>{g(I instanceof Error?I.message:"Failed to execute query"),m(null)}}),_=()=>{s.trim()&&N.mutate(s)},R=Gt({queryKey:["tables",l],queryFn:()=>n5(l),staleTime:0,gcTime:0,enabled:!!l}),T=Gt({queryKey:["tableData",l,y,j,w],queryFn:()=>a5(l,y,j,w),staleTime:0,gcTime:0,enabled:!!l&&!!y}),k=((G=R.data)==null?void 0:G.tables)||[],L=((te=T.data)==null?void 0:te.data)||[],X=((ue=T.data)==null?void 0:ue.columns)||[],q=((ce=T.data)==null?void 0:ce.total)||0,H=I=>{b(I),E(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",l]}),d.jsxs(nE,{value:r,onValueChange:i,children:[d.jsxs(aE,{children:[d.jsx(Lo,{value:"query",children:"SQL Editor"}),d.jsx(Lo,{value:"tables",children:"Tables"})]}),d.jsx(Uo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"SQL Query"}),d.jsx(Na,{children:"Execute SQL queries against your database"})]}),d.jsxs(Yt,{className:"space-y-4",children:[d.jsx("textarea",{value:s,onChange:I=>u(I.target.value),onKeyDown:I=>{(I.metaKey||I.ctrlKey)&&I.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),d.jsxs(_t,{onClick:_,disabled:N.isPending||!s.trim(),children:[d.jsx(Bx,{className:"mr-2 h-4 w-4"}),N.isPending?"Executing...":"Execute"]})]})]})]}),p&&d.jsx(Qt,{className:"border-destructive/50",children:d.jsx(Yt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&d.jsx(ew,{results:h.results,meta:h.meta,error:h.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(j5,{bindingName:l,onInsertText:S})})]})}),d.jsx(Uo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Qt,{className:"md:col-span-1",children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-base",children:"Tables"}),d.jsx(_t,{variant:"ghost",size:"icon",onClick:()=>R.refetch(),className:"h-8 w-8",children:d.jsx(dc,{className:"h-4 w-4"})})]}),d.jsx(Yt,{children:R.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):k.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:k.map(I=>d.jsxs("button",{onClick:()=>H(I.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${y===I.name?"bg-muted font-medium":""}`,children:[d.jsx(fc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),d.jsxs(Qt,{className:"md:col-span-3",children:[d.jsxs(bn,{children:[d.jsx(xn,{children:y||"Select a Table"}),y&&d.jsxs(Na,{children:[q," total rows"]})]}),d.jsx(Yt,{children:y?T.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(hc,{children:[d.jsx(mc,{children:d.jsx(yl,{children:X.map(I=>d.jsx(tn,{className:"font-mono",children:I},I))})}),d.jsx(pc,{children:L.map((I,ie)=>d.jsx(yl,{children:X.map(re=>d.jsx(nn,{className:"font-mono text-sm",children:C5(I[re])},re))},ie))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," - ",Math.min(w+j,q)," of ",q]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(_t,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>E(Math.max(0,w-j)),children:[d.jsx(Lx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(_t,{variant:"outline",size:"sm",disabled:w+j>=q,onClick:()=>E(w+j),children:["Next",d.jsx(oc,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Cp(){return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function qc({children:n}){return d.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Np({id:n}){return d.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Mo({title:n,value:l,icon:r,isLoading:i}){return d.jsxs(Qt,{children:[d.jsxs(bn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(xn,{className:"text-sm font-medium",children:n}),r]}),d.jsx(Yt,{children:d.jsx("div",{className:"text-2xl font-bold",children:i?d.jsx(Dn,{className:"h-5 w-5 animate-spin"}):l})})]})}function UE({title:n,children:l}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),l]})}const _5={PENDING:{variant:"default",icon:d.jsx(cc,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:d.jsx(Dn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:d.jsx(sc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:d.jsx(__,{className:"h-3 w-3"}),label:"Cancelled"}},R5={PENDING:{variant:"default",icon:d.jsx(cc,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:d.jsx(Dn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:d.jsx(sc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:d.jsx(D_,{className:"h-3 w-3"}),label:"Dead Letter"}};function HE({status:n}){const l=_5[n];return l?d.jsx(Gu,{variant:l.variant,icon:l.icon,children:l.label}):d.jsx(Gu,{children:n})}function T5({status:n}){const l=R5[n];return l?d.jsx(Gu,{variant:l.variant,icon:l.icon,children:l.label}):d.jsx(Gu,{children:n})}function M5({metrics:n,isLoading:l}){return d.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[d.jsx(Mo,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:d.jsx(cc,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),d.jsx(Mo,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:d.jsx(Dn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),d.jsx(Mo,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:d.jsx(sc,{className:"h-4 w-4 text-green-500"}),isLoading:l}),d.jsx(Mo,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:d.jsx(uc,{className:"h-4 w-4 text-red-500"}),isLoading:l}),d.jsx(Mo,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:d.jsx($_,{className:"h-4 w-4 text-orange-500"}),isLoading:l})]})}function A5({messages:n,isLoading:l}){return d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Recent Messages"}),d.jsx(Na,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),d.jsx(Yt,{children:l?d.jsx(Cp,{}):n!=null&&n.length?d.jsxs(hc,{children:[d.jsx(mc,{children:d.jsxs(yl,{children:[d.jsx(tn,{children:"ID"}),d.jsx(tn,{children:"Status"}),d.jsx(tn,{children:"Payload"}),d.jsx(tn,{children:"Attempt"}),d.jsx(tn,{children:"Created"})]})}),d.jsx(pc,{children:n.map(r=>d.jsxs(yl,{children:[d.jsx(nn,{children:d.jsx(Np,{id:r.id})}),d.jsx(nn,{children:d.jsx(T5,{status:r.status})}),d.jsx(nn,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),d.jsx(nn,{children:r.attempt}),d.jsx(nn,{children:d.jsx(Wl,{timestamp:r.createdAt})})]},r.id))})]}):d.jsx(qc,{children:"No messages in this queue"})})]})}function D5(){const{binding:n}=rc(),l=n||"",{data:r,isLoading:i}=Gt({queryKey:["queueMetrics",l],queryFn:()=>r5(l),enabled:!!l,refetchInterval:5e3}),{data:s,isLoading:u}=Gt({queryKey:["queueMessages",l],queryFn:()=>i5(l,10),enabled:!!l,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsx(UE,{title:`Queue: ${l}`}),d.jsx(M5,{metrics:r==null?void 0:r.metrics,isLoading:i}),d.jsx(A5,{messages:s==null?void 0:s.messages,isLoading:u})]})})}function k5({status:n}){switch(n){case"COMPLETED":return d.jsx(sc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return d.jsx(Dn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return d.jsx(uc,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return d.jsx(cc,{className:"h-5 w-5 text-gray-400"})}}function O5(n){switch(n){case"COMPLETED":return"bg-green-500";case"RUNNING":return"bg-blue-500";case"FAILED":return"bg-red-500";case"PENDING":default:return"bg-gray-300 dark:bg-gray-600"}}function z5({steps:n}){if(n.length===0)return d.jsx(qc,{children:"No steps recorded for this execution"});const l=n.reduce((r,i)=>r+(i.durationMs||0),0);return d.jsxs("div",{className:"space-y-4",children:[l>0&&d.jsxs("div",{className:"mb-6",children:[d.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[d.jsx("span",{children:"Total Duration"}),d.jsx("span",{children:zo(l)})]}),d.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const s=r.durationMs?r.durationMs/l*100:0;return d.jsx("div",{className:ye(O5(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${zo(r.durationMs)}`},r.id)})})]}),d.jsx("div",{className:"relative",children:n.map((r,i)=>d.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&d.jsx("div",{className:ye("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:d.jsx(k5,{status:r.status})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-medium",children:r.stepName}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),d.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:zo(r.durationMs)})]}),r.errorMessage&&d.jsx("div",{className:"mt-2 p-2 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:r.errorMessage}),r.output&&r.status==="COMPLETED"&&d.jsxs("details",{className:"mt-2",children:[d.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),d.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),d.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:d.jsx(Wl,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function L5(){const{binding:n,executionId:l}=rc(),r=n||"",i=l||"",{data:s,isLoading:u}=Gt({queryKey:["workflowExecution",r,i],queryFn:()=>s5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(ja,{to:`/workflows/${r}`,children:d.jsxs(_t,{variant:"ghost",size:"sm",children:[d.jsx(C_,{className:"mr-2 h-4 w-4"}),"Back"]})}),d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",d.jsx(Np,{id:i})]})]}),u?d.jsx(Cp,{}):h?d.jsxs(d.Fragment,{children:[d.jsxs(Qt,{children:[d.jsx(bn,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(xn,{children:"Execution Details"}),d.jsx(Na,{children:h.startedAt?d.jsxs(d.Fragment,{children:["Started ",d.jsx(Wl,{timestamp:h.startedAt})]}):"Not started yet"})]}),d.jsx(HE,{status:h.status})]})}),d.jsxs(Yt,{children:[d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),d.jsx("p",{className:"font-mono",children:zo(h.durationMs)})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),d.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),d.jsx("p",{className:"font-mono text-sm",children:d.jsx(Wl,{timestamp:h.createdAt})})]}),h.completedAt&&d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),d.jsx("p",{className:"font-mono text-sm",children:d.jsx(Wl,{timestamp:h.completedAt})})]})]}),h.errorMessage&&d.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage})]})]}),d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Steps"}),d.jsx(Na,{children:"Workflow step execution timeline"})]}),d.jsx(Yt,{children:d.jsx(z5,{steps:m})})]})]}):d.jsx(qc,{children:"Execution not found"})]})})}function U5({executions:n,isLoading:l,bindingName:r}){return d.jsxs(Qt,{children:[d.jsxs(bn,{children:[d.jsx(xn,{children:"Recent Executions"}),d.jsx(Na,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),d.jsx(Yt,{children:l?d.jsx(Cp,{}):n!=null&&n.length?d.jsxs(hc,{children:[d.jsx(mc,{children:d.jsxs(yl,{children:[d.jsx(tn,{children:"ID"}),d.jsx(tn,{children:"Status"}),d.jsx(tn,{children:"Steps"}),d.jsx(tn,{children:"Duration"}),d.jsx(tn,{children:"Started"}),d.jsx(tn,{})]})}),d.jsx(pc,{children:n.map(i=>d.jsxs(yl,{children:[d.jsx(nn,{children:d.jsx(Np,{id:i.id})}),d.jsx(nn,{children:d.jsx(HE,{status:i.status})}),d.jsx(nn,{children:d.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),d.jsx(nn,{className:"text-sm",children:zo(i.durationMs)}),d.jsx(nn,{children:i.startedAt?d.jsx(Wl,{timestamp:i.startedAt}):"-"}),d.jsx(nn,{children:d.jsx(ja,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):d.jsx(qc,{children:"No executions for this workflow"})})]})}function H5(){const{binding:n}=rc(),l=n||"",{data:r,isLoading:i}=Gt({queryKey:["workflowExecutions",l],queryFn:()=>o5(l,20),enabled:!!l,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsx(UE,{title:`Workflow: ${l}`}),d.jsx(U5,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:l})]})})}function q5(){const n=Aa(),{data:l,isLoading:r}=Gt({queryKey:["config"],queryFn:jp,staleTime:6e4}),i=l!=null&&l.db?Object.keys(l.db):[],s=l!=null&&l.queue?Object.keys(l.queue):[],u=l!=null&&l.workflow?Object.keys(l.workflow):[];return d.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[d.jsx("div",{className:"flex h-14 items-center border-b px-4",children:d.jsxs(ja,{to:"/",className:"flex items-center gap-2 font-semibold",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),d.jsx("span",{children:"Ploy Dev"})]})}),d.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Dn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):d.jsxs("div",{className:"space-y-6",children:[i.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),d.jsx("div",{className:"space-y-1",children:i.map(h=>{const m=n.pathname===`/db/${h}`;return d.jsx(ja,{to:`/db/${h}`,children:d.jsxs(_t,{variant:m?"secondary":"ghost",className:ye("w-full justify-start",m&&"bg-muted"),children:[d.jsx(H_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),(l==null?void 0:l.auth)&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),d.jsx("div",{className:"space-y-1",children:d.jsx(ja,{to:"/auth",children:d.jsxs(_t,{variant:n.pathname==="/auth"?"secondary":"ghost",className:ye("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[d.jsx(I_,{className:"mr-2 h-4 w-4"}),d.jsx("span",{className:"flex-1 text-left",children:l.auth.binding}),d.jsx(Hx,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),d.jsx("div",{className:"space-y-1",children:s.map(h=>{const m=n.pathname===`/queues/${h}`;return d.jsx(ja,{to:`/queues/${h}`,children:d.jsxs(_t,{variant:m?"secondary":"ghost",className:ye("w-full justify-start",m&&"bg-muted"),children:[d.jsx(Y_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),u.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),d.jsx("div",{className:"space-y-1",children:u.map(h=>{const m=n.pathname.startsWith(`/workflows/${h}`);return d.jsx(ja,{to:`/workflows/${h}`,children:d.jsxs(_t,{variant:m?"secondary":"ghost",className:ye("w-full justify-start",m&&"bg-muted"),children:[d.jsx(B_,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),i.length===0&&s.length===0&&u.length===0&&!(l!=null&&l.auth)&&d.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function B5(){const{data:n,isLoading:l}=Gt({queryKey:["config"],queryFn:jp,staleTime:6e4});if(!l&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return d.jsx(Su,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return d.jsx(Su,{to:"/auth",replace:!0});if(i.length>0)return d.jsx(Su,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return d.jsx(Su,{to:`/workflows/${s[0]}`,replace:!0})}return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[d.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),l?d.jsx(Dn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):d.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function Q5(){return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(q5,{}),d.jsx("main",{className:"pl-64",children:d.jsx("div",{className:"container mx-auto px-6 py-4",children:d.jsxs(BN,{children:[d.jsx(Gl,{path:"/",element:d.jsx(B5,{})}),d.jsx(Gl,{path:"/db/:binding",element:d.jsx(N5,{})}),d.jsx(Gl,{path:"/auth",element:d.jsx(w5,{})}),d.jsx(Gl,{path:"/queues/:binding",element:d.jsx(D5,{})}),d.jsx(Gl,{path:"/workflows/:binding",element:d.jsx(H5,{})}),d.jsx(Gl,{path:"/workflows/:binding/:executionId",element:d.jsx(L5,{})})]})})})]})}function qE(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}qE();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qE);const Y5=new NC({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});FC.createRoot(document.getElementById("root")).render(d.jsx(v.StrictMode,{children:d.jsx(DC,{client:Y5,children:d.jsx(c_,{children:d.jsx(Q5,{})})})}));