@meetploy/cli 1.12.1 → 1.13.0

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,324 @@
1
+ var T0=n=>{throw TypeError(n)};var lh=(n,l,r)=>l.has(n)||T0("Cannot "+r);var k=(n,l,r)=>(lh(n,l,"read from private field"),r?r.call(n):l.get(n)),xe=(n,l,r)=>l.has(n)?T0("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),se=(n,l,r,i)=>(lh(n,l,"write to private field"),i?i.call(n,r):l.set(n,r),r),Te=(n,l,r)=>(lh(n,l,"access private method"),r);var Tu=(n,l,r,i)=>({set _(s){se(n,l,s,r)},get _(){return k(n,l,i)}});function uC(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 rx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rh={exports:{}},_o={};/**
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 M0;function cC(){if(M0)return _o;M0=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 _o.Fragment=l,_o.jsx=r,_o.jsxs=r,_o}var A0;function dC(){return A0||(A0=1,rh.exports=cC()),rh.exports}var d=dC(),xi=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(){}},er=typeof window>"u"||"Deno"in globalThis;function xn(){}function fC(n,l){return typeof n=="function"?n(l):n}function Th(n){return typeof n=="number"&&n>=0&&n!==1/0}function ix(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Ir(n,l){return typeof n=="function"?n(l):n}function An(n,l){return typeof n=="function"?n(l):n}function k0(n,l){const{type:r="all",exact:i,fetchStatus:s,predicate:u,queryKey:h,stale:m}=n;if(h){if(i){if(l.queryHash!==pm(h,l.options))return!1}else if(!Bo(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 D0(n,l){const{exact:r,status:i,predicate:s,mutationKey:u}=n;if(u){if(!l.options.mutationKey)return!1;if(r){if(tr(l.options.mutationKey)!==tr(u))return!1}else if(!Bo(l.options.mutationKey,u))return!1}return!(i&&l.state.status!==i||s&&!s(l))}function pm(n,l){return((l==null?void 0:l.queryKeyHashFn)||tr)(n)}function tr(n){return JSON.stringify(n,(l,r)=>Mh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Bo(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>Bo(n[r],l[r])):!1}function ox(n,l){if(n===l)return n;const r=O0(n)&&O0(l);if(r||Mh(n)&&Mh(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]=ox(n[y],l[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return l}function $u(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 O0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Mh(n){if(!z0(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!z0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function z0(n){return Object.prototype.toString.call(n)==="[object Object]"}function hC(n){return new Promise(l=>{setTimeout(l,n)})}function Ah(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?ox(n,l):l}function mC(n,l,r=0){const i=[...n,l];return r&&i.length>r?i.slice(1):i}function pC(n,l,r=0){const i=[l,...n];return r&&i.length>r?i.slice(0,-1):i}var vm=Symbol();function sx(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===vm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Kl,ul,ai,Fb,vC=(Fb=class extends xi{constructor(){super();xe(this,Kl);xe(this,ul);xe(this,ai);se(this,ai,l=>{if(!er&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,ul)||this.setEventListener(k(this,ai))}onUnsubscribe(){var l;this.hasListeners()||((l=k(this,ul))==null||l.call(this),se(this,ul,void 0))}setEventListener(l){var r;se(this,ai,l),(r=k(this,ul))==null||r.call(this),se(this,ul,l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(l){k(this,Kl)!==l&&(se(this,Kl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof k(this,Kl)=="boolean"?k(this,Kl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Kl=new WeakMap,ul=new WeakMap,ai=new WeakMap,Fb),gm=new vC,li,cl,ri,Pb,gC=(Pb=class extends xi{constructor(){super();xe(this,li,!0);xe(this,cl);xe(this,ri);se(this,ri,l=>{if(!er&&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(){k(this,cl)||this.setEventListener(k(this,ri))}onUnsubscribe(){var l;this.hasListeners()||((l=k(this,cl))==null||l.call(this),se(this,cl,void 0))}setEventListener(l){var r;se(this,ri,l),(r=k(this,cl))==null||r.call(this),se(this,cl,l(this.setOnline.bind(this)))}setOnline(l){k(this,li)!==l&&(se(this,li,l),this.listeners.forEach(i=>{i(l)}))}isOnline(){return k(this,li)}},li=new WeakMap,cl=new WeakMap,ri=new WeakMap,Pb),Zu=new gC;function kh(){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 yC(n){return Math.min(1e3*2**n,3e4)}function ux(n){return(n??"online")==="online"?Zu.isOnline():!0}var cx=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function ih(n){return n instanceof cx}function dx(n){let l=!1,r=0,i=!1,s;const u=kh(),h=S=>{var N;i||(w(new cx(S)),(N=n.abort)==null||N.call(n))},m=()=>{l=!0},p=()=>{l=!1},g=()=>gm.isFocused()&&(n.networkMode==="always"||Zu.isOnline())&&n.canRun(),y=()=>ux(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))},j=()=>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)}),E=()=>{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??(er?0:3),T=n.retryDelay??yC,D=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,_),hC(D).then(()=>g()?void 0:j()).then(()=>{l?w(_):E()})})};return{promise:u,cancel:h,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),u)}}var bC=n=>setTimeout(n,0);function xC(){let n=[],l=0,r=m=>{m()},i=m=>{m()},s=bC;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=xC(),Xl,Jb,fx=(Jb=class{constructor(){xe(this,Xl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Th(this.gcTime)&&se(this,Xl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(er?1/0:300*1e3))}clearGcTimeout(){k(this,Xl)&&(clearTimeout(k(this,Xl)),se(this,Xl,void 0))}},Xl=new WeakMap,Jb),ii,oi,bn,$l,Tt,Xo,Zl,Tn,Ea,Wb,wC=(Wb=class extends fx{constructor(l){super();xe(this,Tn);xe(this,ii);xe(this,oi);xe(this,bn);xe(this,$l);xe(this,Tt);xe(this,Xo);xe(this,Zl);se(this,Zl,!1),se(this,Xo,l.defaultOptions),this.setOptions(l.options),this.observers=[],se(this,$l,l.client),se(this,bn,k(this,$l).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,se(this,ii,SC(this.options)),this.state=l.state??k(this,ii),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=k(this,Tt))==null?void 0:l.promise}setOptions(l){this.options={...k(this,Xo),...l},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,bn).remove(this)}setData(l,r){const i=Ah(this.state.data,l,this.options);return Te(this,Tn,Ea).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,Ea).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var i,s;const r=(i=k(this,Tt))==null?void 0:i.promise;return(s=k(this,Tt))==null||s.cancel(l),r?r.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,ii))}isActive(){return this.observers.some(l=>An(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vm||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||!ix(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(i=>i.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=k(this,Tt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(i=>i.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=k(this,Tt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),k(this,bn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(k(this,Tt)&&(k(this,Zl)?k(this,Tt).cancel({revert:!0}):k(this,Tt).cancelRetry()),this.scheduleGc()),k(this,bn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Tn,Ea).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(k(this,Tt))return k(this,Tt).continueRetry(),k(this,Tt).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,Zl,!0),i.signal)})},u=()=>{const b=sx(this.options,r),w={client:k(this,$l),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,Zl,!1),this.options.persister?this.options.persister(b,w,this):b(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,$l),state:this.state,fetchFn:u};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,oi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Te(this,Tn,Ea).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,j,E,S;ih(b)&&b.silent||Te(this,Tn,Ea).call(this,{type:"error",error:b}),ih(b)||((j=(w=k(this,bn).config).onError)==null||j.call(w,b,this),(S=(E=k(this,bn).config).onSettled)==null||S.call(E,this.state.data,b,this)),this.scheduleGc()};return se(this,Tt,dx({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var w,j,E,S;if(b===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){m(N);return}(j=(w=k(this,bn).config).onSuccess)==null||j.call(w,b,this),(S=(E=k(this,bn).config).onSettled)==null||S.call(E,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,Tn,Ea).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,Tn,Ea).call(this,{type:"pause"})},onContinue:()=>{Te(this,Tn,Ea).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Tt).start()}},ii=new WeakMap,oi=new WeakMap,bn=new WeakMap,$l=new WeakMap,Tt=new WeakMap,Xo=new WeakMap,Zl=new WeakMap,Tn=new WeakSet,Ea=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,...hx(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 ih(s)&&s.revert&&k(this,oi)?{...k(this,oi),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()}),k(this,bn).notify({query:this,type:"updated",action:l})})},Wb);function hx(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ux(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function SC(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,Ib,jC=(Ib=class extends xi{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??pm(s,r);let h=this.get(u);return h||(h=new wC({client:l,queryKey:s,queryHash:u,options:l.defaultQueryOptions(r),state:i,defaultOptions:l.getQueryDefaults(s)}),this.add(h)),h}add(l){k(this,Gn).has(l.queryHash)||(k(this,Gn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=k(this,Gn).get(l.queryHash);r&&(l.destroy(),r===l&&k(this,Gn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return k(this,Gn).get(l)}getAll(){return[...k(this,Gn).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(i=>k0(r,i))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(i=>k0(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,Ib),Vn,kt,Fl,Kn,il,ex,EC=(ex=class extends fx{constructor(l){super();xe(this,Kn);xe(this,Vn);xe(this,kt);xe(this,Fl);this.mutationId=l.mutationId,se(this,kt,l.mutationCache),se(this,Vn,[]),this.state=l.state||mx(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){k(this,Vn).includes(l)||(k(this,Vn).push(l),this.clearGcTimeout(),k(this,kt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){se(this,Vn,k(this,Vn).filter(r=>r!==l)),this.scheduleGc(),k(this,kt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){k(this,Vn).length||(this.state.status==="pending"?this.scheduleGc():k(this,kt).remove(this))}continue(){var l;return((l=k(this,Fl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var u,h,m,p,g,y,b,w,j,E,S,N,_,R,T,D,L,X,q,H;const r=()=>{Te(this,Kn,il).call(this,{type:"continue"})};se(this,Fl,dx({fn:()=>this.options.mutationFn?this.options.mutationFn(l):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Kn,il).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Kn,il).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,kt).canRun(this)}));const i=this.state.status==="pending",s=!k(this,Fl).canStart();try{if(i)r();else{Te(this,Kn,il).call(this,{type:"pending",variables:l,isPaused:s}),await((h=(u=k(this,kt).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,il).call(this,{type:"pending",context:te,variables:l,isPaused:s})}const G=await k(this,Fl).start();return await((y=(g=k(this,kt).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((E=(j=k(this,kt).config).onSettled)==null?void 0:E.call(j,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,il).call(this,{type:"success",data:G}),G}catch(G){try{throw await((R=(_=k(this,kt).config).onError)==null?void 0:R.call(_,G,l,this.state.context,this)),await((D=(T=this.options).onError)==null?void 0:D.call(T,G,l,this.state.context)),await((X=(L=k(this,kt).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,il).call(this,{type:"error",error:G})}}finally{k(this,kt).runNext(this)}}},Vn=new WeakMap,kt=new WeakMap,Fl=new WeakMap,Kn=new WeakSet,il=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(()=>{k(this,Vn).forEach(i=>{i.onMutationUpdate(l)}),k(this,kt).notify({mutation:this,type:"updated",action:l})})},ex);function mx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ca,Mn,$o,tx,CC=(tx=class extends xi{constructor(l={}){super();xe(this,Ca);xe(this,Mn);xe(this,$o);this.config=l,se(this,Ca,new Set),se(this,Mn,new Map),se(this,$o,0)}build(l,r,i){const s=new EC({mutationCache:this,mutationId:++Tu(this,$o)._,options:l.defaultMutationOptions(r),state:i});return this.add(s),s}add(l){k(this,Ca).add(l);const r=Mu(l);if(typeof r=="string"){const i=k(this,Mn).get(r);i?i.push(l):k(this,Mn).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(k(this,Ca).delete(l)){const r=Mu(l);if(typeof r=="string"){const i=k(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&&k(this,Mn).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=Mu(l);if(typeof r=="string"){const i=k(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=Mu(l);if(typeof r=="string"){const s=(i=k(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(()=>{k(this,Ca).forEach(l=>{this.notify({type:"removed",mutation:l})}),k(this,Ca).clear(),k(this,Mn).clear()})}getAll(){return Array.from(k(this,Ca))}find(l){const r={exact:!0,...l};return this.getAll().find(i=>D0(r,i))}findAll(l={}){return this.getAll().filter(r=>D0(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(xn))))}},Ca=new WeakMap,Mn=new WeakMap,$o=new WeakMap,tx);function Mu(n){var l;return(l=n.options.scope)==null?void 0:l.id}function L0(n){return{onFetch:(l,r)=>{var y,b,w,j,E;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=((j=l.state.data)==null?void 0:j.pages)||[],h=((E=l.state.data)==null?void 0:E.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)})},_=sx(l.options,l.fetchOptions),R=async(T,D,L)=>{if(S)return Promise.reject();if(D==null&&T.pages.length)return Promise.resolve(T);const X={client:l.client,queryKey:l.queryKey,pageParam:D,direction:L?"backward":"forward",meta:l.options.meta};N(X);const q=await _(X),{maxPages:H}=l.options,G=L?pC:mC;return{pages:G(T.pages,q,H),pageParams:G(T.pageParams,D,H)}};if(s&&u.length){const T=s==="backward",D=T?NC:U0,L={pages:u,pageParams:h},X=D(i,L);m=await R(L,X,T)}else{const T=n??u.length;do{const D=p===0?h[0]??i.initialPageParam:U0(i,m);if(p>0&&D==null)break;m=await R(m,D),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 U0(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 NC(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 lt,dl,fl,si,ui,hl,ci,di,nx,_C=(nx=class{constructor(n={}){xe(this,lt);xe(this,dl);xe(this,fl);xe(this,si);xe(this,ui);xe(this,hl);xe(this,ci);xe(this,di);se(this,lt,n.queryCache||new jC),se(this,dl,n.mutationCache||new CC),se(this,fl,n.defaultOptions||{}),se(this,si,new Map),se(this,ui,new Map),se(this,hl,0)}mount(){Tu(this,hl)._++,k(this,hl)===1&&(se(this,ci,gm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,lt).onFocus())})),se(this,di,Zu.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,lt).onOnline())})))}unmount(){var n,l;Tu(this,hl)._--,k(this,hl)===0&&((n=k(this,ci))==null||n.call(this),se(this,ci,void 0),(l=k(this,di))==null||l.call(this),se(this,di,void 0))}isFetching(n){return k(this,lt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,dl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=k(this,lt).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=k(this,lt).build(this,l),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Ir(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(i))}getQueriesData(n){return k(this,lt).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=k(this,lt).get(i.queryHash),u=s==null?void 0:s.state.data,h=fC(l,u);if(h!==void 0)return k(this,lt).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,l,r){return pt.batch(()=>k(this,lt).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,l,r)]))}getQueryState(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=k(this,lt).get(l.queryHash))==null?void 0:r.state}removeQueries(n){const l=k(this,lt);pt.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=k(this,lt);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(()=>k(this,lt).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(xn).catch(xn)}invalidateQueries(n,l={}){return pt.batch(()=>(k(this,lt).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(()=>k(this,lt).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let u=s.fetch(void 0,r);return r.throwOnError||(u=u.catch(xn)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(xn)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=k(this,lt).build(this,l);return r.isStaleByTime(Ir(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(xn).catch(xn)}fetchInfiniteQuery(n){return n.behavior=L0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(xn).catch(xn)}ensureInfiniteQueryData(n){return n.behavior=L0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Zu.isOnline()?k(this,dl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,lt)}getMutationCache(){return k(this,dl)}getDefaultOptions(){return k(this,fl)}setDefaultOptions(n){se(this,fl,n)}setQueryDefaults(n,l){k(this,si).set(tr(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...k(this,si).values()],r={};return l.forEach(i=>{Bo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,l){k(this,ui).set(tr(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...k(this,ui).values()],r={};return l.forEach(i=>{Bo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={...k(this,fl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=pm(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===vm&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,fl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,lt).clear(),k(this,dl).clear()}},lt=new WeakMap,dl=new WeakMap,fl=new WeakMap,si=new WeakMap,ui=new WeakMap,hl=new WeakMap,ci=new WeakMap,di=new WeakMap,nx),Vt,Le,Zo,Dt,Pl,fi,ml,pl,Fo,hi,mi,Jl,Wl,vl,pi,Qe,Do,Dh,Oh,zh,Lh,Uh,Hh,qh,px,ax,RC=(ax=class extends xi{constructor(l,r){super();xe(this,Qe);xe(this,Vt);xe(this,Le);xe(this,Zo);xe(this,Dt);xe(this,Pl);xe(this,fi);xe(this,ml);xe(this,pl);xe(this,Fo);xe(this,hi);xe(this,mi);xe(this,Jl);xe(this,Wl);xe(this,vl);xe(this,pi,new Set);this.options=r,se(this,Vt,l),se(this,pl,null),se(this,ml,kh()),this.options.experimental_prefetchInRender||k(this,ml).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&&(k(this,Le).addObserver(this),H0(k(this,Le),this.options)?Te(this,Qe,Do).call(this):this.updateResult(),Te(this,Qe,Lh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bh(k(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bh(k(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,Uh).call(this),Te(this,Qe,Hh).call(this),k(this,Le).removeObserver(this)}setOptions(l){const r=this.options,i=k(this,Le);if(this.options=k(this,Vt).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof An(this.options.enabled,k(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Qe,qh).call(this),k(this,Le).setOptions(this.options),r._defaulted&&!$u(this.options,r)&&k(this,Vt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Le),observer:this});const s=this.hasListeners();s&&q0(k(this,Le),i,this.options,r)&&Te(this,Qe,Do).call(this),this.updateResult(),s&&(k(this,Le)!==i||An(this.options.enabled,k(this,Le))!==An(r.enabled,k(this,Le))||Ir(this.options.staleTime,k(this,Le))!==Ir(r.staleTime,k(this,Le)))&&Te(this,Qe,Dh).call(this);const u=Te(this,Qe,Oh).call(this);s&&(k(this,Le)!==i||An(this.options.enabled,k(this,Le))!==An(r.enabled,k(this,Le))||u!==k(this,vl))&&Te(this,Qe,zh).call(this,u)}getOptimisticResult(l){const r=k(this,Vt).getQueryCache().build(k(this,Vt),l),i=this.createResult(r,l);return MC(this,i)&&(se(this,Dt,i),se(this,fi,this.options),se(this,Pl,k(this,Le).state)),i}getCurrentResult(){return k(this,Dt)}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){k(this,pi).add(l)}getCurrentQuery(){return k(this,Le)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=k(this,Vt).defaultQueryOptions(l),i=k(this,Vt).getQueryCache().build(k(this,Vt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(l){return Te(this,Qe,Do).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Dt)))}createResult(l,r){var G;const i=k(this,Le),s=this.options,u=k(this,Dt),h=k(this,Pl),m=k(this,fi),g=l!==i?l.state:k(this,Zo),{state:y}=l;let b={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&H0(l,r),ce=te&&q0(l,i,r,s);(ue||ce)&&(b={...b,...hx(y.data,l.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:N}=b;j=b.data;let _=!1;if(r.placeholderData!==void 0&&j===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=k(this,mi))==null?void 0:G.state.data,k(this,mi)):r.placeholderData,te!==void 0&&(N="success",j=Ah(u==null?void 0:u.data,te,r),w=!0)}if(r.select&&j!==void 0&&!_)if(u&&j===(h==null?void 0:h.data)&&r.select===k(this,Fo))j=k(this,hi);else try{se(this,Fo,r.select),j=r.select(j),j=Ah(u==null?void 0:u.data,j,r),se(this,hi,j),se(this,pl,null)}catch(te){se(this,pl,te)}k(this,pl)&&(E=k(this,pl),j=k(this,hi),S=Date.now(),N="error");const R=b.fetchStatus==="fetching",T=N==="pending",D=N==="error",L=T&&R,X=j!==void 0,H={status:N,fetchStatus:b.fetchStatus,isPending:T,isSuccess:N==="success",isError:D,isInitialLoading:L,isLoading:L,data:j,dataUpdatedAt:b.dataUpdatedAt,error:E,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:D&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&X,isStale:ym(l,r),refetch:this.refetch,promise:k(this,ml)};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,ml,H.promise=kh());te(I)},ce=k(this,ml);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=k(this,Dt),r=this.createResult(k(this,Le),this.options);if(se(this,Pl,k(this,Le).state),se(this,fi,this.options),k(this,Pl).data!==void 0&&se(this,mi,k(this,Le)),$u(r,l))return;se(this,Dt,r);const i=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!k(this,pi).size)return!0;const h=new Set(u??k(this,pi));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Dt)).some(m=>{const p=m;return k(this,Dt)[p]!==l[p]&&h.has(p)})};Te(this,Qe,px).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,Lh).call(this)}},Vt=new WeakMap,Le=new WeakMap,Zo=new WeakMap,Dt=new WeakMap,Pl=new WeakMap,fi=new WeakMap,ml=new WeakMap,pl=new WeakMap,Fo=new WeakMap,hi=new WeakMap,mi=new WeakMap,Jl=new WeakMap,Wl=new WeakMap,vl=new WeakMap,pi=new WeakMap,Qe=new WeakSet,Do=function(l){Te(this,Qe,qh).call(this);let r=k(this,Le).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(xn)),r},Dh=function(){Te(this,Qe,Uh).call(this);const l=Ir(this.options.staleTime,k(this,Le));if(er||k(this,Dt).isStale||!Th(l))return;const i=ix(k(this,Dt).dataUpdatedAt,l)+1;se(this,Jl,setTimeout(()=>{k(this,Dt).isStale||this.updateResult()},i))},Oh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Le)):this.options.refetchInterval)??!1},zh=function(l){Te(this,Qe,Hh).call(this),se(this,vl,l),!(er||An(this.options.enabled,k(this,Le))===!1||!Th(k(this,vl))||k(this,vl)===0)&&se(this,Wl,setInterval(()=>{(this.options.refetchIntervalInBackground||gm.isFocused())&&Te(this,Qe,Do).call(this)},k(this,vl)))},Lh=function(){Te(this,Qe,Dh).call(this),Te(this,Qe,zh).call(this,Te(this,Qe,Oh).call(this))},Uh=function(){k(this,Jl)&&(clearTimeout(k(this,Jl)),se(this,Jl,void 0))},Hh=function(){k(this,Wl)&&(clearInterval(k(this,Wl)),se(this,Wl,void 0))},qh=function(){const l=k(this,Vt).getQueryCache().build(k(this,Vt),this.options);if(l===k(this,Le))return;const r=k(this,Le);se(this,Le,l),se(this,Zo,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},px=function(l){pt.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(k(this,Dt))}),k(this,Vt).getQueryCache().notify({query:k(this,Le),type:"observerResultsUpdated"})})},ax);function TC(n,l){return An(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function H0(n,l){return TC(n,l)||n.state.data!==void 0&&Bh(n,l,l.refetchOnMount)}function Bh(n,l,r){if(An(l.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&ym(n,l)}return!1}function q0(n,l,r,i){return(n!==l||An(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&ym(n,r)}function ym(n,l){return An(l.enabled,n)!==!1&&n.isStaleByTime(Ir(l.staleTime,n))}function MC(n,l){return!$u(n.getCurrentResult(),l)}var gl,yl,Kt,Na,Ra,Bu,Qh,lx,AC=(lx=class extends xi{constructor(r,i){super();xe(this,Ra);xe(this,gl);xe(this,yl);xe(this,Kt);xe(this,Na);se(this,gl,r),this.setOptions(i),this.bindMethods(),Te(this,Ra,Bu).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=k(this,gl).defaultMutationOptions(r),$u(this.options,i)||k(this,gl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Kt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&tr(i.mutationKey)!==tr(this.options.mutationKey)?this.reset():((s=k(this,Kt))==null?void 0:s.state.status)==="pending"&&k(this,Kt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Kt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Ra,Bu).call(this),Te(this,Ra,Qh).call(this,r)}getCurrentResult(){return k(this,yl)}reset(){var r;(r=k(this,Kt))==null||r.removeObserver(this),se(this,Kt,void 0),Te(this,Ra,Bu).call(this),Te(this,Ra,Qh).call(this)}mutate(r,i){var s;return se(this,Na,i),(s=k(this,Kt))==null||s.removeObserver(this),se(this,Kt,k(this,gl).getMutationCache().build(k(this,gl),this.options)),k(this,Kt).addObserver(this),k(this,Kt).execute(r)}},gl=new WeakMap,yl=new WeakMap,Kt=new WeakMap,Na=new WeakMap,Ra=new WeakSet,Bu=function(){var i;const r=((i=k(this,Kt))==null?void 0:i.state)??mx();se(this,yl,{...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(k(this,Na)&&this.hasListeners()){const b=k(this,yl).variables,w=k(this,yl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,Na)).onSuccess)==null||s.call(i,r.data,b,w),(h=(u=k(this,Na)).onSettled)==null||h.call(u,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Na)).onError)==null||p.call(m,r.error,b,w),(y=(g=k(this,Na)).onSettled)==null||y.call(g,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(k(this,yl))})})},lx),oh={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 B0;function kC(){if(B0)return Ne;B0=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 j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={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||E}_.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||E}var D=T.prototype=new R;D.constructor=T,S(D,_.prototype),D.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 je=typeof A;(je==="undefined"||je==="boolean")&&(A=null);var ne=!1;if(A===null)ne=!0;else switch(je){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 Ee=le===""?".":le+":";if(L(A))for(var ye=0;ye<A.length;ye++)le=A[ye],je=Ee+ie(le,ye),ne+=U(le,Z,ee,je,pe);else if(ye=j(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,je=Ee+ie(le,ye++),ne+=U(le,Z,ee,je,pe);else if(je==="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(je){return Z.call(ee,je,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(je in Z.key!==void 0&&(pe=""+Z.key),Z)!H.call(Z,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&Z.ref===void 0||(le[je]=Z[je]);var je=arguments.length-2;if(je===1)le.children=ee;else if(1<je){for(var ne=Array(je),Ee=0;Ee<je;Ee++)ne[Ee]=arguments[Ee+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={},je=null;if(Z!=null)for(le in Z.key!==void 0&&(je=""+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 Ee=Array(ne),ye=0;ye<ne;ye++)Ee[ye]=arguments[ye+2];pe.children=Ee}if(A&&A.defaultProps)for(le in ne=A.defaultProps,ne)pe[le]===void 0&&(pe[le]=ne[le]);return G(A,je,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(je){$(je)}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 Q0;function bm(){return Q0||(Q0=1,oh.exports=kC()),oh.exports}var v=bm();const rt=rx(v),vx=uC({__proto__:null,default:rt},[v]);var gx=v.createContext(void 0),xm=n=>{const l=v.useContext(gx);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(gx.Provider,{value:n,children:l})),yx=v.createContext(!1),OC=()=>v.useContext(yx);yx.Provider;function zC(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var LC=v.createContext(zC()),UC=()=>v.useContext(LC);function bx(n,l){return typeof n=="function"?n(...l):!!n}function Yh(){}var HC=(n,l)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(l.isReset()||(n.retryOnMount=!1))},qC=n=>{v.useEffect(()=>{n.clearReset()},[n])},BC=({result:n,errorResetBoundary:l,throwOnError:r,query:i,suspense:s})=>n.isError&&!l.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||bx(r,[n.error,i])),QC=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)))},YC=(n,l)=>n.isLoading&&n.isFetching&&!l,GC=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,Y0=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function VC(n,l,r){var b,w,j,E,S;const i=xm(),s=OC(),u=UC(),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",QC(h),HC(h,u),qC(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)):Yh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),GC(h,g))throw Y0(h,p,u);if(BC({result:g,errorResetBoundary:u,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,g),h.experimental_prefetchInRender&&!er&&YC(g,s)){const N=m?Y0(h,p,u):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;N==null||N.catch(Yh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Lt(n,l){return VC(n,RC)}function Gh(n,l){const r=xm(),[i]=v.useState(()=>new AC(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(Yh)},[i]);if(s.error&&bx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}var sh={exports:{}},Ro={},uh={exports:{}},ch={};/**
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 G0;function KC(){return G0||(G0=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,j=!1,E=!1,S=!1,N=!1,_=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function D(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,D(U),!E)if(r(p)!==null)E=!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:{E=!1,S&&(S=!1,R(q),q=-1),j=!0;var V=w;try{t:{for(D(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,D(U),W=!0;break t}b===r(p)&&i(p),D(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,j=!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),E||j||(E=!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}}}})(ch)),ch}var V0;function XC(){return V0||(V0=1,uh.exports=KC()),uh.exports}var dh={exports:{}},Rt={};/**
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 K0;function $C(){if(K0)return Rt;K0=1;var n=bm();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 Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rt.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)},Rt.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()}},Rt.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))},Rt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Rt.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,j=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:j}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Rt.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)},Rt.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})}},Rt.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)},Rt.requestFormReset=function(p){i.d.r(p)},Rt.unstable_batchedUpdates=function(p,g){return p(g)},Rt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},Rt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Rt.version="19.2.3",Rt}var X0;function xx(){if(X0)return dh.exports;X0=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(),dh.exports=$C(),dh.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 $0;function ZC(){if($0)return Ro;$0=1;var n=XC(),l=bm(),r=xx();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"),j=Symbol.for("react.transitional.element"),E=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"),D=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 E:return"Portal";case T:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case D: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),je=A(null),ne=A(null);function Ee(e,t){switch(ee(je,t),ee(pe,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wy(t),e=Iy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(le),ee(le,e)}function ye(){Z(le),Z(pe),Z(je)}function Ce(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,a=Iy(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),jo._currentValue=V)}var Ye,_t;function Xt(e){if(Ye===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",_t=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ye+e+_t}var aa=!1;function la(e,t){if(!e||aa)return"";aa=!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{aa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Xt(a):""}function Yc(e,t){switch(e.tag){case 26:case 27:case 5:return Xt(e.type);case 16:return Xt("Lazy");case 13:return e.child!==t&&t!==null?Xt("Suspense Fallback"):Xt("Suspense");case 19:return Xt("SuspenseList");case 0:case 15:return la(e.type,!1);case 11:return la(e.type.render,!1);case 1:return la(e.type,!0);case 31:return Xt("Activity");default:return""}}function ds(e){try{var t="",a=null;do t+=Yc(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,Gc=n.unstable_scheduleCallback,Vc=n.unstable_cancelCallback,Qj=n.unstable_shouldYield,Yj=n.unstable_requestPaint,$t=n.unstable_now,Gj=n.unstable_getCurrentPriorityLevel,Mp=n.unstable_ImmediatePriority,Ap=n.unstable_UserBlockingPriority,fs=n.unstable_NormalPriority,Vj=n.unstable_LowPriority,kp=n.unstable_IdlePriority,Kj=n.log,Xj=n.unstable_setDisableYieldValue,Oi=null,Zt=null;function Oa(e){if(typeof Kj=="function"&&Xj(e),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(Oi,e)}catch{}}var Ft=Math.clz32?Math.clz32:Fj,$j=Math.log,Zj=Math.LN2;function Fj(e){return e>>>=0,e===0?32:31-($j(e)/Zj|0)|0}var hs=256,ms=262144,ps=4194304;function Cl(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 vs(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=Cl(o):(x&=C,x!==0?c=Cl(x):a||(a=C&~e,a!==0&&(c=Cl(a))))):(C=o&~f,C!==0?c=Cl(C):x!==0?c=Cl(x):a||(a=o&~e,a!==0&&(c=Cl(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 zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pj(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 Dp(){var e=ps;return ps<<=1,(ps&62914560)===0&&(ps=4194304),e}function Kc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Li(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jj(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-Ft(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&&Op(e,o,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Op(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Ft(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function zp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Ft(a),c=1<<o;c&t|e[o]&t&&(e[o]|=t),a&=~c}}function Lp(e,t){var a=t&-t;return a=(a&42)!==0?1:Xc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Xc(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 $c(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Up(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:S0(e.type))}function Hp(e,t){var a=W.p;try{return W.p=e,t()}finally{W.p=a}}var za=Math.random().toString(36).slice(2),xt="__reactFiber$"+za,Ut="__reactProps$"+za,cr="__reactContainer$"+za,Zc="__reactEvents$"+za,Wj="__reactListeners$"+za,Ij="__reactHandles$"+za,qp="__reactResources$"+za,Ui="__reactMarker$"+za;function Fc(e){delete e[xt],delete e[Ut],delete e[Zc],delete e[Wj],delete e[Ij]}function dr(e){var t=e[xt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[cr]||a[xt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=i0(e);e!==null;){if(a=e[xt])return a;e=i0(e)}return t}e=a,a=e.parentNode}return null}function fr(e){if(e=e[xt]||e[cr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function hr(e){var t=e[qp];return t||(t=e[qp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function yt(e){e[Ui]=!0}var Bp=new Set,Qp={};function Nl(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(Qp[e]=t,e=0;e<t.length;e++)Bp.add(t[e])}var e2=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]*$"),Yp={},Gp={};function t2(e){return Da.call(Gp,e)?!0:Da.call(Yp,e)?!1:e2.test(e)?Gp[e]=!0:(Yp[e]=!0,!1)}function gs(e,t,a){if(t2(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 ys(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 ra(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 un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function n2(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 Pc(e){if(!e._valueTracker){var t=Vp(e)?"checked":"value";e._valueTracker=n2(e,t,""+e[t])}}function Kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Vp(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function bs(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 a2=/[\n"\\]/g;function cn(e){return e.replace(a2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jc(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=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Wc(e,x,un(t)):a!=null?Wc(e,x,un(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=""+un(C):e.removeAttribute("name")}function Xp(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)){Pc(e);return}a=a!=null?""+un(a):"",t=t!=null?""+un(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),Pc(e)}function Wc(e,t,a){t==="number"&&bs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function pr(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=""+un(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 $p(e,t,a){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+un(a):""}function Zp(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=un(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Pc(e)}function vr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var l2=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 Fp(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||l2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Pp(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&&Fp(e,c,o)}else for(var f in t)t.hasOwnProperty(f)&&Fp(e,f,t[f])}function Ic(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 r2=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"]]),i2=/^[\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 xs(e){return i2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var ed=null;function td(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,yr=null;function Jp(e){var t=fr(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jc(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="'+cn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var c=o[Ut]||null;if(!c)throw Error(i(90));Jc(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&&Kp(o)}break e;case"textarea":$p(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&pr(e,!!a.multiple,t,!1)}}}var nd=!1;function Wp(e,t,a){if(nd)return e(t,a);nd=!0;try{var o=e(t);return o}finally{if(nd=!1,(gr!==null||yr!==null)&&(ou(),gr&&(t=gr,e=yr,yr=gr=null,Jp(t),e)))for(t=0;t<e.length;t++)Jp(e[t])}}function qi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Ut]||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 oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ad=!1;if(oa)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){ad=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{ad=!1}var La=null,ld=null,ws=null;function Ip(){if(ws)return ws;var e,t=ld,a=t.length,o,c="value"in La?La.value:La.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 ws=c.slice(e,1<o?1-o:void 0)}function Ss(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 js(){return!0}function ev(){return!1}function Ht(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)?js:ev,this.isPropagationStopped=ev,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=js)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=Ht(_l),Qi=b({},_l,{view:0,detail:0}),o2=Ht(Qi),rd,id,Yi,Cs=b({},Qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sd,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!==Yi&&(Yi&&e.type==="mousemove"?(rd=e.screenX-Yi.screenX,id=e.screenY-Yi.screenY):id=rd=0,Yi=e),rd)},movementY:function(e){return"movementY"in e?e.movementY:id}}),tv=Ht(Cs),s2=b({},Cs,{dataTransfer:0}),u2=Ht(s2),c2=b({},Qi,{relatedTarget:0}),od=Ht(c2),d2=b({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),f2=Ht(d2),h2=b({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m2=Ht(h2),p2=b({},_l,{data:0}),nv=Ht(p2),v2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g2={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"},y2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=y2[e])?!!t[e]:!1}function sd(){return b2}var x2=b({},Qi,{key:function(e){if(e.key){var t=v2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?g2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sd,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),w2=Ht(x2),S2=b({},Cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),av=Ht(S2),j2=b({},Qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sd}),E2=Ht(j2),C2=b({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),N2=Ht(C2),_2=b({},Cs,{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}),R2=Ht(_2),T2=b({},_l,{newState:0,oldState:0}),M2=Ht(T2),A2=[9,13,27,32],ud=oa&&"CompositionEvent"in window,Gi=null;oa&&"documentMode"in document&&(Gi=document.documentMode);var k2=oa&&"TextEvent"in window&&!Gi,lv=oa&&(!ud||Gi&&8<Gi&&11>=Gi),rv=" ",iv=!1;function ov(e,t){switch(e){case"keyup":return A2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function D2(e,t){switch(e){case"compositionend":return sv(t);case"keypress":return t.which!==32?null:(iv=!0,rv);case"textInput":return e=t.data,e===rv&&iv?null:e;default:return null}}function O2(e,t){if(br)return e==="compositionend"||!ud&&ov(e,t)?(e=Ip(),ws=ld=La=null,br=!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 lv&&t.locale!=="ko"?null:t.data;default:return null}}var z2={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 uv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z2[e.type]:t==="textarea"}function cv(e,t,a,o){gr?yr?yr.push(o):yr=[o]:gr=o,t=mu(t,"onChange"),0<t.length&&(a=new Es("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Vi=null,Ki=null;function L2(e){Xy(e,0)}function Ns(e){var t=Hi(e);if(Kp(t))return e}function dv(e,t){if(e==="change")return t}var fv=!1;if(oa){var cd;if(oa){var dd="oninput"in document;if(!dd){var hv=document.createElement("div");hv.setAttribute("oninput","return;"),dd=typeof hv.oninput=="function"}cd=dd}else cd=!1;fv=cd&&(!document.documentMode||9<document.documentMode)}function mv(){Vi&&(Vi.detachEvent("onpropertychange",pv),Ki=Vi=null)}function pv(e){if(e.propertyName==="value"&&Ns(Ki)){var t=[];cv(t,Ki,e,td(e)),Wp(L2,t)}}function U2(e,t,a){e==="focusin"?(mv(),Vi=t,Ki=a,Vi.attachEvent("onpropertychange",pv)):e==="focusout"&&mv()}function H2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ns(Ki)}function q2(e,t){if(e==="click")return Ns(t)}function B2(e,t){if(e==="input"||e==="change")return Ns(t)}function Q2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:Q2;function Xi(e,t){if(Pt(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)||!Pt(e[c],t[c]))return!1}return!0}function vv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gv(e,t){var a=vv(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=vv(a)}}function yv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bs(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=bs(e.document)}return t}function fd(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 Y2=oa&&"documentMode"in document&&11>=document.documentMode,xr=null,hd=null,$i=null,md=!1;function xv(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;md||xr==null||xr!==bs(o)||(o=xr,"selectionStart"in o&&fd(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}),$i&&Xi($i,o)||($i=o,o=mu(hd,"onSelect"),0<o.length&&(t=new Es("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=xr)))}function Rl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var wr={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},pd={},wv={};oa&&(wv=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function Tl(e){if(pd[e])return pd[e];if(!wr[e])return e;var t=wr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in wv)return pd[e]=t[a];return e}var Sv=Tl("animationend"),jv=Tl("animationiteration"),Ev=Tl("animationstart"),G2=Tl("transitionrun"),V2=Tl("transitionstart"),K2=Tl("transitioncancel"),Cv=Tl("transitionend"),Nv=new Map,vd="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(" ");vd.push("scrollEnd");function Cn(e,t){Nv.set(e,t),Nl(t,[e])}var _s=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)},dn=[],Sr=0,gd=0;function Rs(){for(var e=Sr,t=gd=Sr=0;t<e;){var a=dn[t];dn[t++]=null;var o=dn[t];dn[t++]=null;var c=dn[t];dn[t++]=null;var f=dn[t];if(dn[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&&_v(a,c,f)}}function Ts(e,t,a,o){dn[Sr++]=e,dn[Sr++]=t,dn[Sr++]=a,dn[Sr++]=o,gd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function yd(e,t,a,o){return Ts(e,t,a,o),Ms(e)}function Ml(e,t){return Ts(e,null,null,t),Ms(e)}function _v(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-Ft(a),e=f.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=a|536870912),f):null}function Ms(e){if(50<vo)throw vo=0,Rf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var jr={};function X2(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 Jt(e,t,a,o){return new X2(e,t,a,o)}function bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=Jt(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 Rv(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 As(e,t,a,o,c,f){var x=0;if(o=e,typeof e=="function")bd(e)&&(x=1);else if(typeof e=="string")x=JE(e,a,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Jt(31,a,t,c),e.elementType=G,e.lanes=f,e;case S:return Al(a.children,c,f,t);case N:x=8,c|=24;break;case _:return e=Jt(12,a,t,c|2),e.elementType=_,e.lanes=f,e;case L:return e=Jt(13,a,t,c),e.elementType=L,e.lanes=f,e;case X:return e=Jt(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 D: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=Jt(x,a,t,c),t.elementType=e,t.type=o,t.lanes=f,t}function Al(e,t,a,o){return e=Jt(7,e,o,t),e.lanes=a,e}function xd(e,t,a){return e=Jt(6,e,null,t),e.lanes=a,e}function Tv(e){var t=Jt(18,null,null,0);return t.stateNode=e,t}function wd(e,t,a){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Mv=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var a=Mv.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ds(t)},Mv.set(e,t),t)}return{value:e,source:t,stack:ds(t)}}var Er=[],Cr=0,ks=null,Zi=0,hn=[],mn=0,Ua=null,qn=1,Bn="";function ua(e,t){Er[Cr++]=Zi,Er[Cr++]=ks,ks=e,Zi=t}function Av(e,t,a){hn[mn++]=qn,hn[mn++]=Bn,hn[mn++]=Ua,Ua=e;var o=qn;e=Bn;var c=32-Ft(o)-1;o&=~(1<<c),a+=1;var f=32-Ft(t)+c;if(30<f){var x=c-c%5;f=(o&(1<<x)-1).toString(32),o>>=x,c-=x,qn=1<<32-Ft(t)+c|a<<c|o,Bn=f+e}else qn=1<<f|a<<c|o,Bn=e}function Sd(e){e.return!==null&&(ua(e,1),Av(e,1,0))}function jd(e){for(;e===ks;)ks=Er[--Cr],Er[Cr]=null,Zi=Er[--Cr],Er[Cr]=null;for(;e===Ua;)Ua=hn[--mn],hn[mn]=null,Bn=hn[--mn],hn[mn]=null,qn=hn[--mn],hn[mn]=null}function kv(e,t){hn[mn++]=qn,hn[mn++]=Bn,hn[mn++]=Ua,qn=t.id,Bn=t.overflow,Ua=e}var wt=null,Fe=null,ze=!1,Ha=null,pn=!1,Ed=Error(i(519));function qa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fi(fn(t,e)),Ed}function Dv(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[xt]=e,t[Ut]=o,a){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(a=0;a<yo.length;a++)ke(yo[a],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),Xp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),Zp(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||Py(t.textContent,a)?(o.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),o.onScroll!=null&&ke("scroll",t),o.onScrollEnd!=null&&ke("scrollend",t),o.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||qa(e,!0)}function Ov(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:pn=!1;return;case 27:case 3:pn=!0;return;default:wt=wt.return}}function Nr(e){if(e!==wt)return!1;if(!ze)return Ov(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")||Gf(e.type,e.memoizedProps)),a=!a),a&&Fe&&qa(e),Ov(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=r0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=r0(e)}else t===27?(t=Fe,Ia(e.type)?(e=Zf,Zf=null,Fe=e):Fe=t):Fe=wt?gn(e.stateNode.nextSibling):null;return!0}function kl(){Fe=wt=null,ze=!1}function Cd(){var e=Ha;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),Ha=null),e}function Fi(e){Ha===null?Ha=[e]:Ha.push(e)}var Nd=A(null),Dl=null,ca=null;function Ba(e,t,a){ee(Nd,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Nd.current,Z(Nd)}function _d(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 Rd(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),_d(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),_d(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 _r(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;Pt(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(jo):e=[jo])}c=c.return}e!==null&&Rd(t,e,a,o),t.flags|=262144}function Ds(e){for(e=e.firstContext;e!==null;){if(!Pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Dl=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function St(e){return zv(Dl,e)}function Os(e,t){return Dl===null&&Ol(e),zv(e,t)}function zv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ca===null){if(e===null)throw Error(i(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return a}var $2=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()})}},Z2=n.unstable_scheduleCallback,F2=n.unstable_NormalPriority,st={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Td(){return{controller:new $2,data:new Map,refCount:0}}function Pi(e){e.refCount--,e.refCount===0&&Z2(F2,function(){e.controller.abort()})}var Ji=null,Md=0,Rr=0,Tr=null;function P2(e,t){if(Ji===null){var a=Ji=[];Md=0,Rr=Of(),Tr={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Md++,t.then(Lv,Lv),t}function Lv(){if(--Md===0&&Ji!==null){Tr!==null&&(Tr.status="fulfilled");var e=Ji;Ji=null,Rr=0,Tr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function J2(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 Uv=U.S;U.S=function(e,t){xy=$t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&P2(e,t),Uv!==null&&Uv(e,t)};var zl=A(null);function Ad(){var e=zl.current;return e!==null?e:Ze.pooledCache}function zs(e,t){t===null?ee(zl,zl.current):ee(zl,t.pool)}function Hv(){var e=Ad();return e===null?null:{parent:st._currentValue,pool:e}}var Mr=Error(i(460)),kd=Error(i(474)),Ls=Error(i(542)),Us={then:function(){}};function qv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bv(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yv(e),e;default:if(typeof t.status=="string")t.then(ia,ia);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,Yv(e),e}throw Ul=t,Mr}}function Ll(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ul=a,Mr):a}}var Ul=null;function Qv(){if(Ul===null)throw Error(i(459));var e=Ul;return Ul=null,e}function Yv(e){if(e===Mr||e===Ls)throw Error(i(483))}var Ar=null,Wi=0;function Hs(e){var t=Wi;return Wi+=1,Ar===null&&(Ar=[]),Bv(Ar,e,t)}function Ii(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qs(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 Gv(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=sa(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=xd(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&&Ll(be)===O.type)?(O=c(O,B.props),Ii(O,B),O.return=z,O):(O=As(B.type,B.key,B.props,null,z.mode,P),Ii(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=wd(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=Al(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=xd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=As(O.type,O.key,O.props,null,z.mode,B),Ii(B,O),B.return=z,B;case E:return O=wd(O,z.mode,B),O.return=z,O;case H:return O=Ll(O),J(z,O,B)}if(re(O)||ce(O))return O=Al(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Hs(O),B);if(O.$$typeof===T)return J(z,Os(z,O),B);qs(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 j:return B.key===be?M(z,O,B,P):null;case E:return B.key===be?Q(z,O,B,P):null;case H:return B=Ll(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,Hs(B),P);if(B.$$typeof===T)return Y(z,O,Os(z,B),P);qs(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 j:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,be);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,be);case H:return P=Ll(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,Hs(P),be);if(P.$$typeof===T)return K(z,O,B,Os(O,P),be);qs(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&&ua(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&&ua(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(ll){return t(z,ll)}),ze&&ua(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 ll=Y(z,ve,qe.value,P);if(ll===null){ve===null&&(ve=Oe);break}e&&ve&&ll.alternate===null&&t(z,ve),O=f(ll,O,Re),He===null?be=ll:He.sibling=ll,He=ll,ve=Oe}if(qe.done)return a(z,ve),ze&&ua(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&&ua(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(sC){return t(z,sC)}),ze&&ua(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 j: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&&Ll(be)===O.type){a(z,O.sibling),P=c(O,B.props),Ii(P,B),P.return=z,z=P;break e}a(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Al(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=As(B.type,B.key,B.props,null,z.mode,P),Ii(P,B),P.return=z,z=P)}return x(z);case E: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=wd(B,z.mode,P),P.return=z,z=P}return x(z);case H:return B=Ll(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,Hs(B),P);if(B.$$typeof===T)return $e(z,O,Os(z,B),P);qs(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=xd(B,z.mode,P),P.return=z,z=P),x(z)):a(z,O)}return function(z,O,B,P){try{Wi=0;var be=$e(z,O,B,P);return Ar=null,be}catch(ve){if(ve===Mr||ve===Ls)throw ve;var He=Jt(29,ve,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Hl=Gv(!0),Vv=Gv(!1),Qa=!1;function Dd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Od(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 Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(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=Ms(e),_v(e,null,a),t}return Ts(e,o,t,a),Ms(e)}function eo(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,zp(e,a)}}function zd(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 Ld=!1;function to(){if(Ld){var e=Tr;if(e!==null)throw e}}function no(e,t,a,o){Ld=!1;var c=e.updateQueue;Qa=!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?(De&Y)===Y:(o&Y)===Y){Y!==0&&Y===Rr&&(Ld=!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:Qa=!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),Za|=x,e.lanes=x,e.memoizedState=J}}function Kv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Xv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Kv(a[e],t)}var kr=A(null),Bs=A(0);function $v(e,t){e=xa,ee(Bs,e),ee(kr,t),xa=e|t.baseLanes}function Ud(){ee(Bs,xa),ee(kr,kr.current)}function Hd(){xa=Bs.current,Z(kr),Z(Bs)}var Wt=A(null),vn=null;function Va(e){var t=e.alternate;ee(it,it.current&1),ee(Wt,e),vn===null&&(t===null||kr.current!==null||t.memoizedState!==null)&&(vn=e)}function qd(e){ee(it,it.current),ee(Wt,e),vn===null&&(vn=e)}function Zv(e){e.tag===22?(ee(it,it.current),ee(Wt,e),vn===null&&(vn=e)):Ka()}function Ka(){ee(it,it.current),ee(Wt,Wt.current)}function It(e){Z(Wt),vn===e&&(vn=null),Z(it)}var it=A(0);function Qs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Xf(a)||$f(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 fa=0,_e=null,Ke=null,ut=null,Ys=!1,Dr=!1,ql=!1,Gs=0,ao=0,Or=null,W2=0;function nt(){throw Error(i(321))}function Bd(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Pt(e[a],t[a]))return!1;return!0}function Qd(e,t,a,o,c,f){return fa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Ag:nf,ql=!1,f=a(o,c),ql=!1,Dr&&(f=Pv(t,a,o,c)),Fv(e),f}function Fv(e){U.H=io;var t=Ke!==null&&Ke.next!==null;if(fa=0,ut=Ke=_e=null,Ys=!1,ao=0,Or=null,t)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&Ds(e)&&(ct=!0))}function Pv(e,t,a,o){_e=e;var c=0;do{if(Dr&&(Or=null),ao=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=kg,f=t(a,o)}while(Dr);return f}function I2(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?lo(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(_e.flags|=1024),t}function Yd(){var e=Gs!==0;return Gs=0,e}function Gd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Vd(e){if(Ys){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ys=!1}fa=0,ut=Ke=_e=null,Dr=!1,ao=Gs=0,Or=null}function At(){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 Vs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lo(e){var t=ao;return ao+=1,Or===null&&(Or=[]),e=Bv(Or,e,t),t=_e,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Ag:nf),e}function Ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return lo(e);if(e.$$typeof===T)return St(e)}throw Error(i(438,String(e)))}function Kd(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=Vs(),_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 ha(e,t){return typeof t=="function"?t(e):t}function Xs(e){var t=ot();return Xd(t,Ke,e)}function Xd(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?(De&J)===J:(fa&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===Rr&&(F=!0);else if((fa&Y)===Y){Q=Q.next,Y===Rr&&(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,Za|=Y;J=Q.action,ql&&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,Za|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?x=f:M.next=C,!Pt(f,e.memoizedState)&&(ct=!0,F&&(a=Tr,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 $d(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);Pt(f,t.memoizedState)||(ct=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,o]}function Jv(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=!Pt((Ke||c).memoizedState,a);if(x&&(c.memoizedState=a,ct=!0),c=c.queue,Pd(eg.bind(null,o,c,e),[e]),c.getSnapshot!==t||x||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,zr(9,{destroy:void 0},Iv.bind(null,o,c,a,t),null),Ze===null)throw Error(i(349));f||(fa&127)!==0||Wv(o,t,a)}return a}function Wv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=Vs(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Iv(e,t,a,o){t.value=a,t.getSnapshot=o,tg(t)&&ng(e)}function eg(e,t,a){return a(function(){tg(t)&&ng(e)})}function tg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Pt(e,a)}catch{return!0}}function ng(e){var t=Ml(e,2);t!==null&&Gt(t,e,2)}function Zd(e){var t=At();if(typeof e=="function"){var a=e;if(e=a(),ql){Oa(!0);try{a()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function ag(e,t,a,o){return e.baseState=a,Xd(e,Ke,typeof o=="function"?o:ha)}function eE(e,t,a,o,c){if(Fs(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,lg(t,f)):(f.next=a.next,t.pending=a.next=f)}}function lg(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),rg(e,t,C)}catch(Q){Fd(e,t,Q)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=a(c,o),rg(e,t,f)}catch(Q){Fd(e,t,Q)}}function rg(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){ig(e,t,o)},function(o){return Fd(e,t,o)}):ig(e,t,a)}function ig(e,t,a){t.status="fulfilled",t.value=a,og(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,lg(e,a)))}function Fd(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,og(t),t=t.next;while(t!==o)}e.action=null}function og(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sg(e,t){return t}function ug(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=pn;c.nodeType!==8;){if(!f){c=null;break t}if(c=gn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Fe=gn(c.nextSibling),o=c.data==="F!";break e}}qa(o)}o=!1}o&&(t=a[0])}}return a=At(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sg,lastRenderedState:t},a.queue=o,a=Rg.bind(null,_e,o),o.dispatch=a,o=Zd(!1),f=tf.bind(null,_e,!1,o.queue),o=At(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,a=eE.bind(null,_e,c,f,a),c.dispatch=a,o.memoizedState=e,[t,a,!1]}function cg(e){var t=ot();return dg(t,Ke,e)}function dg(e,t,a){if(t=Xd(e,t,sg)[0],e=Xs(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=lo(t)}catch(x){throw x===Mr?Ls:x}else o=t;t=ot();var c=t.queue,f=c.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,zr(9,{destroy:void 0},tE.bind(null,c,a),null)),[o,f,e]}function tE(e,t){e.action=t}function fg(e){var t=ot(),a=Ke;if(a!==null)return dg(t,a,e);ot(),t=t.memoizedState,a=ot();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function zr(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Vs(),_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 hg(){return ot().memoizedState}function $s(e,t,a,o){var c=At();_e.flags|=e,c.memoizedState=zr(1|t,{destroy:void 0},a,o===void 0?null:o)}function Zs(e,t,a,o){var c=ot();o=o===void 0?null:o;var f=c.memoizedState.inst;Ke!==null&&o!==null&&Bd(o,Ke.memoizedState.deps)?c.memoizedState=zr(t,f,a,o):(_e.flags|=e,c.memoizedState=zr(1|t,f,a,o))}function mg(e,t){$s(8390656,8,e,t)}function Pd(e,t){Zs(2048,8,e,t)}function nE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Vs(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function pg(e){var t=ot().memoizedState;return nE({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function vg(e,t){return Zs(4,2,e,t)}function gg(e,t){return Zs(4,4,e,t)}function yg(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 bg(e,t,a){a=a!=null?a.concat([e]):null,Zs(4,4,yg.bind(null,t,e),a)}function Jd(){}function xg(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Bd(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function wg(e,t){var a=ot();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Bd(t,o[1]))return o[0];if(o=e(),ql){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[o,t],o}function Wd(e,t,a){return a===void 0||(fa&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Sy(),_e.lanes|=e,Za|=e,a)}function Sg(e,t,a,o){return Pt(a,t)?a:kr.current!==null?(e=Wd(e,a,o),Pt(e,t)||(ct=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(De&261930)===0?(ct=!0,e.memoizedState=a):(e=Sy(),_e.lanes|=e,Za|=e,t)}function jg(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,tf(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=J2(M,o);ro(e,t,F,nn(e))}else ro(e,t,o,nn(e))}catch(J){ro(e,t,{then:function(){},status:"rejected",reason:J},nn())}finally{W.p=f,x!==null&&C.types!==null&&(x.types=C.types),U.T=x}}function aE(){}function Id(e,t,a,o){if(e.tag!==5)throw Error(i(476));var c=Eg(e).queue;jg(e,c,t,V,a===null?aE:function(){return Cg(e),a(o)})}function Eg(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:ha,lastRenderedState:V},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cg(e){var t=Eg(e);t.next===null&&(t=e.alternate.memoizedState),ro(e,t.next.queue,{},nn())}function ef(){return St(jo)}function Ng(){return ot().memoizedState}function _g(){return ot().memoizedState}function lE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=Ya(a);var o=Ga(t,e,a);o!==null&&(Gt(o,t,a),eo(o,t,a)),t={cache:Td()},e.payload=t;return}t=t.return}}function rE(e,t,a){var o=nn();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Tg(t,a):(a=yd(e,t,a,o),a!==null&&(Gt(a,e,o),Mg(a,t,o)))}function Rg(e,t,a){var o=nn();ro(e,t,a,o)}function ro(e,t,a,o){var c={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Tg(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,Pt(C,x))return Ts(e,t,c,0),Ze===null&&Rs(),!1}catch{}finally{}if(a=yd(e,t,c,o),a!==null)return Gt(a,e,o),Mg(a,t,o),!0}return!1}function tf(e,t,a,o){if(o={lane:2,revertLane:Of(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=yd(e,a,o,2),t!==null&&Gt(t,e,2)}function Fs(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Tg(e,t){Dr=Ys=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Mg(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,zp(e,a)}}var io={readContext:St,use:Ks,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};io.useEffectEvent=nt;var Ag={readContext:St,use:Ks,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:mg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$s(4194308,4,yg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $s(4194308,4,e,t)},useInsertionEffect:function(e,t){$s(4,2,e,t)},useMemo:function(e,t){var a=At();t=t===void 0?null:t;var o=e();if(ql){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=At();if(a!==void 0){var c=a(t);if(ql){Oa(!0);try{a(t)}finally{Oa(!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=rE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=Zd(e);var t=e.queue,a=Rg.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Jd,useDeferredValue:function(e,t){var a=At();return Wd(a,e,t)},useTransition:function(){var e=Zd(!1);return e=jg.bind(null,_e,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=_e,c=At();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ze===null)throw Error(i(349));(De&127)!==0||Wv(o,t,a)}c.memoizedState=a;var f={value:a,getSnapshot:t};return c.queue=f,mg(eg.bind(null,o,f,e),[e]),o.flags|=2048,zr(9,{destroy:void 0},Iv.bind(null,o,f,a,t),null),a},useId:function(){var e=At(),t=Ze.identifierPrefix;if(ze){var a=Bn,o=qn;a=(o&~(1<<32-Ft(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Gs++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=W2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ef,useFormState:ug,useActionState:ug,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=tf.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Kd,useCacheRefresh:function(){return At().memoizedState=lE.bind(null,_e)},useEffectEvent:function(e){var t=At(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},nf={readContext:St,use:Ks,useCallback:xg,useContext:St,useEffect:Pd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:gg,useMemo:wg,useReducer:Xs,useRef:hg,useState:function(){return Xs(ha)},useDebugValue:Jd,useDeferredValue:function(e,t){var a=ot();return Sg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Xs(ha)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:lo(e),t]},useSyncExternalStore:Jv,useId:Ng,useHostTransitionStatus:ef,useFormState:cg,useActionState:cg,useOptimistic:function(e,t){var a=ot();return ag(a,Ke,e,t)},useMemoCache:Kd,useCacheRefresh:_g};nf.useEffectEvent=pg;var kg={readContext:St,use:Ks,useCallback:xg,useContext:St,useEffect:Pd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:gg,useMemo:wg,useReducer:$d,useRef:hg,useState:function(){return $d(ha)},useDebugValue:Jd,useDeferredValue:function(e,t){var a=ot();return Ke===null?Wd(a,e,t):Sg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=$d(ha)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:lo(e),t]},useSyncExternalStore:Jv,useId:Ng,useHostTransitionStatus:ef,useFormState:fg,useActionState:fg,useOptimistic:function(e,t){var a=ot();return Ke!==null?ag(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Kd,useCacheRefresh:_g};kg.useEffectEvent=pg;function af(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 lf={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=nn(),c=Ya(o);c.payload=t,a!=null&&(c.callback=a),t=Ga(e,c,o),t!==null&&(Gt(t,e,o),eo(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=nn(),c=Ya(o);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Ga(e,c,o),t!==null&&(Gt(t,e,o),eo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=nn(),o=Ya(a);o.tag=2,t!=null&&(o.callback=t),t=Ga(e,o,a),t!==null&&(Gt(t,e,a),eo(t,e,a))}};function Dg(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?!Xi(a,o)||!Xi(c,f):!0}function Og(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&&lf.enqueueReplaceState(t,t.state,null)}function Bl(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 zg(e){_s(e)}function Lg(e){console.error(e)}function Ug(e){_s(e)}function Ps(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Hg(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 rf(e,t,a){return a=Ya(a),a.tag=3,a.payload={element:null},a.callback=function(){Ps(e,t)},a}function qg(e){return e=Ya(e),e.tag=3,e}function Bg(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(){Hg(t,a,o)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Hg(t,a,o),typeof c!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function iE(e,t,a,o,c){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&_r(t,a,c,!0),a=Wt.current,a!==null){switch(a.tag){case 31:case 13:return vn===null?su():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=c,o===Us?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Af(e,o,c)),!1;case 22:return a.flags|=65536,o===Us?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)),Af(e,o,c)),!1}throw Error(i(435,a.tag))}return Af(e,o,c),su(),!1}if(ze)return t=Wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==Ed&&(e=Error(i(422),{cause:o}),Fi(fn(e,a)))):(o!==Ed&&(t=Error(i(423),{cause:o}),Fi(fn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=fn(o,a),c=rf(e.stateNode,o,c),zd(e,c),at!==4&&(at=2)),!1;var f=Error(i(520),{cause:o});if(f=fn(f,a),po===null?po=[f]:po.push(f),at!==4&&(at=2),t===null)return!0;o=fn(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=rf(a.stateNode,o,e),zd(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"&&(Fa===null||!Fa.has(f))))return a.flags|=65536,c&=-c,a.lanes|=c,c=qg(c),Bg(c,e,a,o),zd(a,c),!1}a=a.return}while(a!==null);return!1}var of=Error(i(461)),ct=!1;function jt(e,t,a,o){t.child=e===null?Vv(t,null,a,o):Hl(t,e.child,a,o)}function Qg(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 Ol(t),o=Qd(e,t,a,x,f,c),C=Yd(),e!==null&&!ct?(Gd(e,t,c),ma(e,t,c)):(ze&&C&&Sd(t),t.flags|=1,jt(e,t,o,c),t.child)}function Yg(e,t,a,o,c){if(e===null){var f=a.type;return typeof f=="function"&&!bd(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Gg(e,t,f,o,c)):(e=As(a.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!pf(e,c)){var x=f.memoizedProps;if(a=a.compare,a=a!==null?a:Xi,a(x,o)&&e.ref===t.ref)return ma(e,t,c)}return t.flags|=1,e=sa(f,o),e.ref=t.ref,e.return=t,t.child=e}function Gg(e,t,a,o,c){if(e!==null){var f=e.memoizedProps;if(Xi(f,o)&&e.ref===t.ref)if(ct=!1,t.pendingProps=o=f,pf(e,c))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,ma(e,t,c)}return sf(e,t,a,o,c)}function Vg(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 Kg(e,t,f,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zs(t,f!==null?f.cachePool:null),f!==null?$v(t,f):Ud(),Zv(t);else return o=t.lanes=536870912,Kg(e,t,f!==null?f.baseLanes|a:a,a,o)}else f!==null?(zs(t,f.cachePool),$v(t,f),Ka(),t.memoizedState=null):(e!==null&&zs(t,null),Ud(),Ka());return jt(e,t,c,a),t.child}function oo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Kg(e,t,a,o,c){var f=Ad();return f=f===null?null:{parent:st._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&zs(t,null),Ud(),Zv(t),e!==null&&_r(e,t,o,!0),t.childLanes=c,null}function Js(e,t){return t=Is({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xg(e,t,a){return Hl(t,e.child,null,a),e=Js(t,t.pendingProps),e.flags|=2,It(t),t.memoizedState=null,e}function oE(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=Js(t,o),t.lanes=536870912,oo(null,e);if(qd(t),(e=Fe)?(e=l0(e,pn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Tv(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw qa(t);return t.lanes=536870912,null}return Js(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(qd(t),c)if(t.flags&256)t.flags&=-257,t=Xg(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||_r(e,t,a,!1),c=(a&e.childLanes)!==0,ct||c){if(o=Ze,o!==null&&(x=Lp(o,a),x!==0&&x!==f.retryLane))throw f.retryLane=x,Ml(e,x),Gt(o,e,x),of;su(),t=Xg(e,t,a)}else e=f.treeContext,Fe=gn(x.nextSibling),wt=t,ze=!0,Ha=null,pn=!1,e!==null&&kv(t,e),t=Js(t,o),t.flags|=4096;return t}return e=sa(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ws(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 sf(e,t,a,o,c){return Ol(t),a=Qd(e,t,a,o,void 0,c),o=Yd(),e!==null&&!ct?(Gd(e,t,c),ma(e,t,c)):(ze&&o&&Sd(t),t.flags|=1,jt(e,t,a,c),t.child)}function $g(e,t,a,o,c,f){return Ol(t),t.updateQueue=null,a=Pv(t,o,a,c),Fv(e),o=Yd(),e!==null&&!ct?(Gd(e,t,f),ma(e,t,f)):(ze&&o&&Sd(t),t.flags|=1,jt(e,t,a,f),t.child)}function Zg(e,t,a,o,c){if(Ol(t),t.stateNode===null){var f=jr,x=a.contextType;typeof x=="object"&&x!==null&&(f=St(x)),f=new a(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=lf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Dd(t),x=a.contextType,f.context=typeof x=="object"&&x!==null?St(x):jr,f.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(af(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&&lf.enqueueReplaceState(f,f.state,null),no(t,o,f,c),to(),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=Bl(a,C);f.props=M;var Q=f.context,F=a.contextType;x=jr,typeof F=="object"&&F!==null&&(x=St(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)&&Og(t,f,o,x),Qa=!1;var Y=t.memoizedState;f.state=Y,no(t,o,f,c),to(),Q=t.memoizedState,C||Y!==Q||Qa?(typeof J=="function"&&(af(t,a,J,o),Q=t.memoizedState),(M=Qa||Dg(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,Od(e,t),x=t.memoizedProps,F=Bl(a,x),f.props=F,J=t.pendingProps,Y=f.context,Q=a.contextType,M=jr,typeof Q=="object"&&Q!==null&&(M=St(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)&&Og(t,f,o,M),Qa=!1,Y=t.memoizedState,f.state=Y,no(t,o,f,c),to();var K=t.memoizedState;x!==J||Y!==K||Qa||e!==null&&e.dependencies!==null&&Ds(e.dependencies)?(typeof C=="function"&&(af(t,a,C,o),K=t.memoizedState),(F=Qa||Dg(t,a,F,o,Y,K,M)||e!==null&&e.dependencies!==null&&Ds(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,Ws(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=Hl(t,e.child,null,c),t.child=Hl(t,null,a,c)):jt(e,t,a,c),t.memoizedState=f.state,e=t.child):e=ma(e,t,c),e}function Fg(e,t,a,o){return kl(),t.flags|=256,jt(e,t,a,o),t.child}var uf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cf(e){return{baseLanes:e,cachePool:Hv()}}function df(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=tn),e}function Pg(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?Va(t):Ka(),(e=Fe)?(e=l0(e,pn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Tv(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw qa(t);return $f(e)?t.lanes=32:t.lanes=536870912,null}var C=o.children;return o=o.fallback,c?(Ka(),c=t.mode,C=Is({mode:"hidden",children:C},c),o=Al(o,c,a,null),C.return=t,o.return=t,C.sibling=o,t.child=C,o=t.child,o.memoizedState=cf(a),o.childLanes=df(e,x,a),t.memoizedState=uf,oo(null,o)):(Va(t),ff(t,C))}var M=e.memoizedState;if(M!==null&&(C=M.dehydrated,C!==null)){if(f)t.flags&256?(Va(t),t.flags&=-257,t=hf(e,t,a)):t.memoizedState!==null?(Ka(),t.child=e.child,t.flags|=128,t=null):(Ka(),C=o.fallback,c=t.mode,o=Is({mode:"visible",children:o.children},c),C=Al(C,c,a,null),C.flags|=2,o.return=t,C.return=t,o.sibling=C,t.child=o,Hl(t,e.child,null,a),o=t.child,o.memoizedState=cf(a),o.childLanes=df(e,x,a),t.memoizedState=uf,t=oo(null,o));else if(Va(t),$f(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var Q=x.dgst;x=Q,o=Error(i(419)),o.stack="",o.digest=x,Fi({value:o,source:null,stack:null}),t=hf(e,t,a)}else if(ct||_r(e,t,a,!1),x=(a&e.childLanes)!==0,ct||x){if(x=Ze,x!==null&&(o=Lp(x,a),o!==0&&o!==M.retryLane))throw M.retryLane=o,Ml(e,o),Gt(x,e,o),of;Xf(C)||su(),t=hf(e,t,a)}else Xf(C)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Fe=gn(C.nextSibling),wt=t,ze=!0,Ha=null,pn=!1,e!==null&&kv(t,e),t=ff(t,o.children),t.flags|=4096);return t}return c?(Ka(),C=o.fallback,c=t.mode,M=e.child,Q=M.sibling,o=sa(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?C=sa(Q,C):(C=Al(C,c,a,null),C.flags|=2),C.return=t,o.return=t,o.sibling=C,t.child=o,oo(null,o),o=t.child,C=e.child.memoizedState,C===null?C=cf(a):(c=C.cachePool,c!==null?(M=st._currentValue,c=c.parent!==M?{parent:M,pool:M}:c):c=Hv(),C={baseLanes:C.baseLanes|a,cachePool:c}),o.memoizedState=C,o.childLanes=df(e,x,a),t.memoizedState=uf,oo(e.child,o)):(Va(t),a=e.child,e=a.sibling,a=sa(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 ff(e,t){return t=Is({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Is(e,t){return e=Jt(22,e,null,t),e.lanes=0,e}function hf(e,t,a){return Hl(t,e.child,null,a),e=ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),_d(e.return,t,a)}function mf(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 Wg(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),jt(e,t,o,a),o=ze?Zi:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jg(e,a,t);else if(e.tag===19)Jg(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&&Qs(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),mf(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&&Qs(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}mf(t,!0,a,null,f,o);break;case"together":mf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(_r(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=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function pf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ds(e)))}function sE(e,t,a){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Ba(t,st,e.memoizedState.cache),kl();break;case 27:case 5:Ce(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qd(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Va(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Pg(e,t,a):(Va(t),e=ma(e,t,a),e!==null?e.sibling:null);Va(t);break;case 19:var c=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(_r(e,t,a,!1),o=(a&t.childLanes)!==0),c){if(o)return Wg(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,Vg(e,t,a,t.pendingProps);case 24:Ba(t,st,e.memoizedState.cache)}return ma(e,t,a)}function Ig(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!pf(e,a)&&(t.flags&128)===0)return ct=!1,sE(e,t,a);ct=(e.flags&131072)!==0}else ct=!1,ze&&(t.flags&1048576)!==0&&Av(t,Zi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Ll(t.elementType),t.type=e,typeof e=="function")bd(e)?(o=Bl(e,o),t.tag=1,t=Zg(null,t,e,o,a)):(t.tag=0,t=sf(null,t,e,o,a));else{if(e!=null){var c=e.$$typeof;if(c===D){t.tag=11,t=Qg(null,t,e,o,a);break e}else if(c===q){t.tag=14,t=Yg(null,t,e,o,a);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return sf(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,c=Bl(o,t.pendingProps),Zg(e,t,o,c,a);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;c=f.element,Od(e,t),no(t,o,null,a);var x=t.memoizedState;if(o=x.cache,Ba(t,st,o),o!==f.cache&&Rd(t,[st],a,!0),to(),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=Fg(e,t,o,a);break e}else if(o!==c){c=fn(Error(i(424)),t),Fi(c),t=Fg(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=gn(e.firstChild),wt=t,ze=!0,Ha=null,pn=!0,a=Vv(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(kl(),o===c){t=ma(e,t,a);break e}jt(e,t,o,a)}t=t.child}return t;case 26:return Ws(e,t),e===null?(a=c0(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,o=pu(je.current).createElement(a),o[xt]=t,o[Ut]=e,Et(o,a,e),yt(o),t.stateNode=o):t.memoizedState=c0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&ze&&(o=t.stateNode=o0(t.type,t.pendingProps,je.current),wt=t,pn=!0,c=Fe,Ia(t.type)?(Zf=c,Fe=gn(o.firstChild)):Fe=c),jt(e,t,t.pendingProps.children,a),Ws(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((c=o=Fe)&&(o=HE(o,t.type,t.pendingProps,pn),o!==null?(t.stateNode=o,wt=t,Fe=gn(o.firstChild),pn=!1,c=!0):c=!1),c||qa(t)),Ce(t),c=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,Gf(c,f)?o=null:x!==null&&Gf(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=Qd(e,t,I2,null,null,a),jo._currentValue=c),Ws(e,t),jt(e,t,o,a),t.child;case 6:return e===null&&ze&&((e=a=Fe)&&(a=qE(a,t.pendingProps,pn),a!==null?(t.stateNode=a,wt=t,Fe=null,e=!0):e=!1),e||qa(t)),null;case 13:return Pg(e,t,a);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Hl(t,null,o,a):jt(e,t,o,a),t.child;case 11:return Qg(e,t,t.type,t.pendingProps,a);case 7:return jt(e,t,t.pendingProps,a),t.child;case 8:return jt(e,t,t.pendingProps.children,a),t.child;case 12:return jt(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Ba(t,t.type,o.value),jt(e,t,o.children,a),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,Ol(t),c=St(c),o=o(c),t.flags|=1,jt(e,t,o,a),t.child;case 14:return Yg(e,t,t.type,t.pendingProps,a);case 15:return Gg(e,t,t.type,t.pendingProps,a);case 19:return Wg(e,t,a);case 31:return oE(e,t,a);case 22:return Vg(e,t,a,t.pendingProps);case 24:return Ol(t),o=St(st),e===null?(c=Ad(),c===null&&(c=Ze,f=Td(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=a),c=f),t.memoizedState={parent:o,cache:c},Dd(t),Ba(t,st,c)):((e.lanes&a)!==0&&(Od(e,t),no(t,null,null,a),to()),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),Ba(t,st,o)):(o=f.cache,Ba(t,st,o),o!==c.cache&&Rd(t,[st],a,!0))),jt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function pa(e){e.flags|=4}function vf(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(Ny())e.flags|=8192;else throw Ul=Us,kd}else e.flags&=-16777217}function ey(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!p0(t))if(Ny())e.flags|=8192;else throw Ul=Us,kd}function eu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dp():536870912,e.lanes|=t,qr|=t)}function so(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 uE(e,t,a){var o=t.pendingProps;switch(jd(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),da(st),ye(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?pa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cd())),Pe(t),null;case 26:var c=t.type,f=t.memoizedState;return e===null?(pa(t),f!==null?(Pe(t),ey(t,f)):(Pe(t),vf(t,c,null,o,a))):f?f!==e.memoizedState?(pa(t),Pe(t),ey(t,f)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&pa(t),Pe(t),vf(t,c,e,o,a)),null;case 27:if(Ue(t),a=je.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&pa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}e=le.current,Nr(t)?Dv(t):(e=o0(c,o,a),t.stateNode=e,pa(t))}return Pe(t),null;case 5:if(Ue(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&pa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}if(f=le.current,Nr(t))Dv(t);else{var x=pu(je.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[xt]=t,f[Ut]=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&&pa(t)}}return Pe(t),vf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&pa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,Nr(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,c=wt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[xt]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Py(e.nodeValue,a)),e||qa(t,!0)}else e=pu(e).createTextNode(o),e[xt]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Nr(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[xt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=Cd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(It(t),t):(It(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=Nr(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[xt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=Cd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(It(t),t):(It(t),null)}return It(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),eu(t,t.updateQueue),Pe(t),null);case 4:return ye(),e===null&&Hf(t.stateNode.containerInfo),Pe(t),null;case 10:return da(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)so(o,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Qs(e),f!==null){for(t.flags|=128,so(o,!1),e=f.updateQueue,t.updateQueue=e,eu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Rv(a,e),a=a.sibling;return ee(it,it.current&1|2),ze&&ua(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&$t()>ru&&(t.flags|=128,c=!0,so(o,!1),t.lanes=4194304)}else{if(!c)if(e=Qs(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,eu(t,e),so(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return Pe(t),null}else 2*$t()-o.renderingStartTime>ru&&a!==536870912&&(t.flags|=128,c=!0,so(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=$t(),e.sibling=null,a=it.current,ee(it,c?a&1|2:a&1),ze&&ua(t,o.treeForkCount),e):(Pe(t),null);case 22:case 23:return It(t),Hd(),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&&eu(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(zl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da(st),Pe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function cE(e,t){switch(jd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da(st),ye(),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(It(t),t.alternate===null)throw Error(i(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(It(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(it),null;case 4:return ye(),null;case 10:return da(t.type),null;case 22:case 23:return It(t),Hd(),e!==null&&Z(zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da(st),null;case 25:return null;default:return null}}function ty(e,t){switch(jd(t),t.tag){case 3:da(st),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&It(t);break;case 13:It(t);break;case 19:Z(it);break;case 10:da(t.type);break;case 22:case 23:It(t),Hd(),e!==null&&Z(zl);break;case 24:da(st)}}function uo(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 Xa(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 ny(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Xv(t,a)}catch(o){Ve(e,e.return,o)}}}function ay(e,t,a){a.props=Bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ve(e,t,o)}}function co(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 ly(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 gf(e,t,a){try{var o=e.stateNode;kE(o,e.type,a,t),o[Ut]=t}catch(c){Ve(e,e.return,c)}}function ry(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ia(e.type)||e.tag===4}function yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ry(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&&Ia(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 bf(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=ia));else if(o!==4&&(o===27&&Ia(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(bf(e,t,a),e=e.sibling;e!==null;)bf(e,t,a),e=e.sibling}function tu(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&&Ia(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function iy(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[xt]=e,t[Ut]=a}catch(f){Ve(e,e.return,f)}}var va=!1,dt=!1,xf=!1,oy=typeof WeakSet=="function"?WeakSet:Set,bt=null;function dE(e,t){if(e=e.containerInfo,Qf=Su,e=bv(e),fd(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(Yf={focusedElem:e,selectionRange:a},Su=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,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=Bl(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)Kf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kf(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,bt=e;break}bt=t.return}}function sy(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:ya(e,a),o&4&&uo(5,a);break;case 1:if(ya(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(a,a.return,x)}else{var c=Bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(a,a.return,x)}}o&64&&ny(a),o&512&&co(a,a.return);break;case 3:if(ya(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{Xv(e,t)}catch(x){Ve(a,a.return,x)}}break;case 27:t===null&&o&4&&iy(a);case 26:case 5:ya(e,a),t===null&&o&4&&ly(a),o&512&&co(a,a.return);break;case 12:ya(e,a);break;case 31:ya(e,a),o&4&&dy(e,a);break;case 13:ya(e,a),o&4&&fy(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=xE.bind(null,a),BE(e,a))));break;case 22:if(o=a.memoizedState!==null||va,!o){t=t!==null&&t.memoizedState!==null||dt,c=va;var f=dt;va=o,(dt=t)&&!f?ba(e,a,(a.subtreeFlags&8772)!==0):ya(e,a),va=c,dt=f}break;case 30:break;default:ya(e,a)}}function uy(e){var t=e.alternate;t!==null&&(e.alternate=null,uy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fc(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,qt=!1;function ga(e,t,a){for(a=a.child;a!==null;)cy(e,t,a),a=a.sibling}function cy(e,t,a){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(Oi,a)}catch{}switch(a.tag){case 26:dt||Qn(a,t),ga(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=qt;Ia(a.type)&&(Je=a.stateNode,qt=!1),ga(e,t,a),xo(a.stateNode),Je=o,qt=c;break;case 5:dt||Qn(a,t);case 6:if(o=Je,c=qt,Je=null,ga(e,t,a),Je=o,qt=c,Je!==null)if(qt)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&&(qt?(e=Je,n0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),$r(e)):n0(Je,a.stateNode));break;case 4:o=Je,c=qt,Je=a.stateNode.containerInfo,qt=!0,ga(e,t,a),Je=o,qt=c;break;case 0:case 11:case 14:case 15:Xa(2,a,t),dt||Xa(4,a,t),ga(e,t,a);break;case 1:dt||(Qn(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&ay(a,t,o)),ga(e,t,a);break;case 21:ga(e,t,a);break;case 22:dt=(o=dt)||a.memoizedState!==null,ga(e,t,a),dt=o;break;default:ga(e,t,a)}}function dy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$r(e)}catch(a){Ve(t,t.return,a)}}}function fy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$r(e)}catch(a){Ve(t,t.return,a)}}function fE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new oy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new oy),t;default:throw Error(i(435,e.tag))}}function nu(e,t){var a=fE(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var c=wE.bind(null,e,o);o.then(c,c)}})}function Bt(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(Ia(C.type)){Je=C.stateNode,qt=!1;break e}break;case 5:Je=C.stateNode,qt=!1;break e;case 3:case 4:Je=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(Je===null)throw Error(i(160));cy(f,x,c),Je=null,qt=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hy(t,e),t=t.sibling}var Nn=null;function hy(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),Qt(e),o&4&&(Xa(3,e,e.return),uo(3,e),Xa(5,e,e.return));break;case 1:Bt(t,e),Qt(e),o&512&&(dt||a===null||Qn(a,a.return)),o&64&&va&&(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(Bt(t,e),Qt(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[Ui]||f[xt]||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[xt]=e,yt(f),o=f;break e;case"link":var x=h0("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=h0("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[xt]=e,yt(f),o=f}e.stateNode=o}else m0(c,e.type,e.stateNode);else e.stateNode=f0(c,o,e.memoizedProps);else f!==o?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,o===null?m0(c,e.type,e.stateNode):f0(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&gf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Bt(t,e),Qt(e),o&512&&(dt||a===null||Qn(a,a.return)),a!==null&&o&4&&gf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Bt(t,e),Qt(e),o&512&&(dt||a===null||Qn(a,a.return)),e.flags&32){c=e.stateNode;try{vr(c,"")}catch(fe){Ve(e,e.return,fe)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,gf(e,c,a!==null?a.memoizedProps:c)),o&1024&&(xf=!0);break;case 6:if(Bt(t,e),Qt(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(yu=null,c=Nn,Nn=vu(t.containerInfo),Bt(t,e),Nn=c,Qt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{$r(t.containerInfo)}catch(fe){Ve(e,e.return,fe)}xf&&(xf=!1,my(e));break;case 4:o=Nn,Nn=vu(e.stateNode.containerInfo),Bt(t,e),Qt(e),Nn=o;break;case 12:Bt(t,e),Qt(e);break;case 31:Bt(t,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,nu(e,o)));break;case 13:Bt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lu=$t()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,nu(e,o)));break;case 22:c=e.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,Q=va,F=dt;if(va=Q||c,dt=F||M,Bt(t,e),dt=F,va=Q,Qt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||M||va||dt||Ql(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?a0(K,!0):a0(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,nu(e,a))));break;case 19:Bt(t,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,nu(e,o)));break;case 30:break;case 21:break;default:Bt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(ry(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var c=a.stateNode,f=yf(e);tu(e,f,c);break;case 5:var x=a.stateNode;a.flags&32&&(vr(x,""),a.flags&=-33);var C=yf(e);tu(e,C,x);break;case 3:case 4:var M=a.stateNode.containerInfo,Q=yf(e);bf(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 my(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;my(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sy(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),Ql(t);break;case 1:Qn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ay(t,t.return,a),Ql(t);break;case 27:xo(t.stateNode);case 26:case 5:Qn(t,t.return),Ql(t);break;case 22:t.memoizedState===null&&Ql(t);break;case 30:Ql(t);break;default:Ql(t)}e=e.sibling}}function ba(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:ba(c,f,a),uo(4,f);break;case 1:if(ba(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++)Kv(M[c],C)}catch(Q){Ve(o,o.return,Q)}}a&&x&64&&ny(f),co(f,f.return);break;case 27:iy(f);case 26:case 5:ba(c,f,a),a&&o===null&&x&4&&ly(f),co(f,f.return);break;case 12:ba(c,f,a);break;case 31:ba(c,f,a),a&&x&4&&dy(c,f);break;case 13:ba(c,f,a),a&&x&4&&fy(c,f);break;case 22:f.memoizedState===null&&ba(c,f,a),co(f,f.return);break;case 30:break;default:ba(c,f,a)}t=t.sibling}}function wf(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&&Pi(a))}function Sf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pi(e))}function _n(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)py(e,t,a,o),t=t.sibling}function py(e,t,a,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:_n(e,t,a,o),c&2048&&uo(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&&Pi(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):fo(e,t):f._visibility&2?_n(e,t,a,o):(f._visibility|=2,Lr(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),c&2048&&wf(x,t);break;case 24:_n(e,t,a,o),c&2048&&Sf(t.alternate,t);break;default:_n(e,t,a,o)}}function Lr(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:Lr(f,x,C,M,c),uo(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?Lr(f,x,C,M,c):fo(f,x):(F._visibility|=2,Lr(f,x,C,M,c)),c&&Q&2048&&wf(x.alternate,x);break;case 24:Lr(f,x,C,M,c),c&&Q&2048&&Sf(x.alternate,x);break;default:Lr(f,x,C,M,c)}t=t.sibling}}function fo(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:fo(a,o),c&2048&&wf(o.alternate,o);break;case 24:fo(a,o),c&2048&&Sf(o.alternate,o);break;default:fo(a,o)}t=t.sibling}}var ho=8192;function Ur(e,t,a){if(e.subtreeFlags&ho)for(e=e.child;e!==null;)vy(e,t,a),e=e.sibling}function vy(e,t,a){switch(e.tag){case 26:Ur(e,t,a),e.flags&ho&&e.memoizedState!==null&&WE(a,Nn,e.memoizedState,e.memoizedProps);break;case 5:Ur(e,t,a);break;case 3:case 4:var o=Nn;Nn=vu(e.stateNode.containerInfo),Ur(e,t,a),Nn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ho,ho=16777216,Ur(e,t,a),ho=o):Ur(e,t,a));break;default:Ur(e,t,a)}}function gy(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 mo(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];bt=o,by(o,e)}gy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yy(e),e=e.sibling}function yy(e){switch(e.tag){case 0:case 11:case 15:mo(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:mo(e);break;case 12:mo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,au(e)):mo(e);break;default:mo(e)}}function au(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];bt=o,by(o,e)}gy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),au(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,au(t));break;default:au(t)}e=e.sibling}}function by(e,t){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Xa(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:Pi(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,bt=o;else e:for(a=e;bt!==null;){o=bt;var c=o.sibling,f=o.return;if(uy(o),o===a){bt=null;break e}if(c!==null){c.return=f,bt=c;break e}bt=f}}}var hE={getCacheForType:function(e){var t=St(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return St(st).controller.signal}},mE=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ze=null,Ae=null,De=0,Ge=0,en=null,$a=!1,Hr=!1,jf=!1,xa=0,at=0,Za=0,Yl=0,Ef=0,tn=0,qr=0,po=null,Yt=null,Cf=!1,lu=0,xy=0,ru=1/0,iu=null,Fa=null,ht=0,Pa=null,Br=null,wa=0,Nf=0,_f=null,wy=null,vo=0,Rf=null;function nn(){return(Be&2)!==0&&De!==0?De&-De:U.T!==null?Of():Up()}function Sy(){if(tn===0)if((De&536870912)===0||ze){var e=ms;ms<<=1,(ms&3932160)===0&&(ms=262144),tn=e}else tn=536870912;return e=Wt.current,e!==null&&(e.flags|=32),tn}function Gt(e,t,a){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Qr(e,0),Ja(e,De,tn,!1)),Li(e,a),((Be&2)===0||e!==Ze)&&(e===Ze&&((Be&2)===0&&(Yl|=a),at===4&&Ja(e,De,tn,!1)),Yn(e))}function jy(e,t,a){if((Be&6)!==0)throw Error(i(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||zi(e,t),c=o?gE(e,t):Mf(e,t,!0),f=o;do{if(c===0){Hr&&!o&&Ja(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!pE(a)){c=Mf(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=po;var M=C.current.memoizedState.isDehydrated;if(M&&(Qr(C,x).flags|=256),x=Mf(C,x,!1),x!==2){if(jf&&!M){C.errorRecoveryDisabledLanes|=f,Yl|=f,c=4;break e}f=Yt,Yt=c,f!==null&&(Yt===null?Yt=f:Yt.push.apply(Yt,f))}c=x}if(f=!1,c!==2)continue}}if(c===1){Qr(e,0),Ja(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:Ja(o,t,tn,!$a);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=lu+300-$t(),10<c)){if(Ja(o,t,tn,!$a),vs(o,0,!0)!==0)break e;wa=t,o.timeoutHandle=e0(Ey.bind(null,o,a,Yt,iu,Cf,t,tn,Yl,qr,$a,f,"Throttled",-0,0),c);break e}Ey(o,a,Yt,iu,Cf,t,tn,Yl,qr,$a,f,null,-0,0)}}break}while(!0);Yn(e)}function Ey(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:ia},vy(t,f,J);var fe=(f&62914560)===f?lu-$t():(f&4194048)===f?xy-$t():0;if(fe=IE(J,fe),fe!==null){wa=f,e.cancelPendingCommit=fe(ky.bind(null,e,t,f,a,o,c,x,C,M,F,J,null,Y,K)),Ja(e,f,x,!Q);return}}ky(e,t,f,a,o,c,x,C,M)}function pE(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(!Pt(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 Ja(e,t,a,o){t&=~Ef,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var f=31-Ft(c),x=1<<f;o[f]=-1,c&=~x}a!==0&&Op(e,a,t)}function ou(){return(Be&6)===0?(go(0),!1):!0}function Tf(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,ca=Dl=null,Vd(e),Ar=null,Wi=0,e=Ae;for(;e!==null;)ty(e.alternate,e),e=e.return;Ae=null}}function Qr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,zE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),wa=0,Tf(),Ze=e,Ae=a=sa(e.current,null),De=t,Ge=0,en=null,$a=!1,Hr=zi(e,t),jf=!1,qr=tn=Ef=Yl=Za=at=0,Yt=po=null,Cf=!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-Ft(o),f=1<<c;t|=e[c],o&=~f}return xa=t,Rs(),a}function Cy(e,t){_e=null,U.H=io,t===Mr||t===Ls?(t=Qv(),Ge=3):t===kd?(t=Qv(),Ge=4):Ge=t===of?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,en=t,Ae===null&&(at=1,Ps(e,fn(t,e.current)))}function Ny(){var e=Wt.current;return e===null?!0:(De&4194048)===De?vn===null:(De&62914560)===De||(De&536870912)!==0?e===vn:!1}function _y(){var e=U.H;return U.H=io,e===null?io:e}function Ry(){var e=U.A;return U.A=hE,e}function su(){at=4,$a||(De&4194048)!==De&&Wt.current!==null||(Hr=!0),(Za&134217727)===0&&(Yl&134217727)===0||Ze===null||Ja(Ze,De,tn,!1)}function Mf(e,t,a){var o=Be;Be|=2;var c=_y(),f=Ry();(Ze!==e||De!==t)&&(iu=null,Qr(e,t)),t=!1;var x=at;e:do try{if(Ge!==0&&Ae!==null){var C=Ae,M=en;switch(Ge){case 8:Tf(),x=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(t=!0);var Q=Ge;if(Ge=0,en=null,Yr(e,C,M,Q),a&&Hr){x=0;break e}break;default:Q=Ge,Ge=0,en=null,Yr(e,C,M,Q)}}vE(),x=at;break}catch(F){Cy(e,F)}while(!0);return t&&e.shellSuspendCounter++,ca=Dl=null,Be=o,U.H=c,U.A=f,Ae===null&&(Ze=null,De=0,Rs()),x}function vE(){for(;Ae!==null;)Ty(Ae)}function gE(e,t){var a=Be;Be|=2;var o=_y(),c=Ry();Ze!==e||De!==t?(iu=null,ru=$t()+500,Qr(e,t)):Hr=zi(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=en;t:switch(Ge){case 1:Ge=0,en=null,Yr(e,t,f,1);break;case 2:case 9:if(qv(f)){Ge=0,en=null,My(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:qv(f)?(Ge=0,en=null,My(t)):(Ge=0,en=null,Yr(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?p0(x):C.stateNode.complete){Ge=0,en=null;var M=C.sibling;if(M!==null)Ae=M;else{var Q=C.return;Q!==null?(Ae=Q,uu(Q)):Ae=null}break t}}Ge=0,en=null,Yr(e,t,f,5);break;case 6:Ge=0,en=null,Yr(e,t,f,6);break;case 8:Tf(),at=6;break e;default:throw Error(i(462))}}yE();break}catch(F){Cy(e,F)}while(!0);return ca=Dl=null,U.H=o,U.A=c,Be=a,Ae!==null?0:(Ze=null,De=0,Rs(),at)}function yE(){for(;Ae!==null&&!Qj();)Ty(Ae)}function Ty(e){var t=Ig(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?uu(e):Ae=t}function My(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=$g(a,t,t.pendingProps,t.type,void 0,De);break;case 11:t=$g(a,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Vd(t);default:ty(a,t),t=Ae=Rv(t,xa),t=Ig(a,t,xa)}e.memoizedProps=e.pendingProps,t===null?uu(e):Ae=t}function Yr(e,t,a,o){ca=Dl=null,Vd(t),Ar=null,Wi=0;var c=t.return;try{if(iE(e,c,t,a,De)){at=1,Ps(e,fn(a,e.current)),Ae=null;return}}catch(f){if(c!==null)throw Ae=c,f;at=1,Ps(e,fn(a,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Hr||(De&536870912)!==0?e=!1:($a=e=!0,(o===2||o===9||o===3||o===6)&&(o=Wt.current,o!==null&&o.tag===13&&(o.flags|=16384))),Ay(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){Ay(t,$a);return}e=t.return;var a=uE(t.alternate,t,xa);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);at===0&&(at=5)}function Ay(e,t){do{var a=cE(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);at=6,Ae=null}function ky(e,t,a,o,c,f,x,C,M){e.cancelPendingCommit=null;do cu();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|=gd,Jj(e,a,f,x,C,M),e===Ze&&(Ae=Ze=null,De=0),Br=t,Pa=e,wa=a,Nf=f,_f=c,wy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,SE(fs,function(){return Uy(),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{dE(e,t,a)}finally{Be=x,W.p=c,U.T=o}}ht=1,Dy(),Oy(),zy()}}function Dy(){if(ht===1){ht=0;var e=Pa,t=Br,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{hy(t,e);var f=Yf,x=bv(e.containerInfo),C=f.focusedElem,M=f.selectionRange;if(x!==C&&C&&C.ownerDocument&&yv(C.ownerDocument.documentElement,C)){if(M!==null&&fd(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=gv(C,Se),O=gv(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}}Su=!!Qf,Yf=Qf=null}finally{Be=c,W.p=o,U.T=a}}e.current=t,ht=2}}function Oy(){if(ht===2){ht=0;var e=Pa,t=Br,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{sy(e,t.alternate,t)}finally{Be=c,W.p=o,U.T=a}}ht=3}}function zy(){if(ht===4||ht===3){ht=0,Yj();var e=Pa,t=Br,a=wa,o=wy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,Br=Pa=null,Ly(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Fa=null),$c(a),t=t.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(Oi,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}}(wa&3)!==0&&cu(),Yn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===Rf?vo++:(vo=0,Rf=e):vo=0,go(0)}}function Ly(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pi(t)))}function cu(){return Dy(),Oy(),zy(),Uy()}function Uy(){if(ht!==5)return!1;var e=Pa,t=Nf;Nf=0;var a=$c(wa),o=U.T,c=W.p;try{W.p=32>a?32:a,U.T=null,a=_f,_f=null;var f=Pa,x=wa;if(ht=0,Br=Pa=null,wa=0,(Be&6)!==0)throw Error(i(331));var C=Be;if(Be|=4,yy(f.current),py(f,f.current,x,a),Be=C,go(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(Oi,f)}catch{}return!0}finally{W.p=c,U.T=o,Ly(e,t)}}function Hy(e,t,a){t=fn(a,t),t=rf(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(Li(e,2),Yn(e))}function Ve(e,t,a){if(e.tag===3)Hy(e,e,a);else for(;t!==null;){if(t.tag===3){Hy(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Fa===null||!Fa.has(o))){e=fn(a,e),a=qg(2),o=Ga(t,a,2),o!==null&&(Bg(a,o,t,e),Li(o,2),Yn(o));break}}t=t.return}}function Af(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new mE;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)||(jf=!0,c.add(a),e=bE.bind(null,e,t,a),t.then(e,e))}function bE(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(De&a)===a&&(at===4||at===3&&(De&62914560)===De&&300>$t()-lu?(Be&2)===0&&Qr(e,0):Ef|=a,qr===De&&(qr=0)),Yn(e)}function qy(e,t){t===0&&(t=Dp()),e=Ml(e,t),e!==null&&(Li(e,t),Yn(e))}function xE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qy(e,a)}function wE(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),qy(e,a)}function SE(e,t){return Gc(e,t)}var du=null,Gr=null,kf=!1,fu=!1,Df=!1,Wa=0;function Yn(e){e!==Gr&&e.next===null&&(Gr===null?du=Gr=e:Gr=Gr.next=e),fu=!0,kf||(kf=!0,EE())}function go(e,t){if(!Df&&fu){Df=!0;do for(var a=!1,o=du;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-Ft(42|e)+1)-1,f&=c&~(x&~C),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Gy(o,f))}else f=De,f=vs(o,o===Ze?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||zi(o,f)||(a=!0,Gy(o,f));o=o.next}while(a);Df=!1}}function jE(){By()}function By(){fu=kf=!1;var e=0;Wa!==0&&OE()&&(e=Wa);for(var t=$t(),a=null,o=du;o!==null;){var c=o.next,f=Qy(o,t);f===0?(o.next=null,a===null?du=c:a.next=c,c===null&&(Gr=a)):(a=o,(e!==0||(f&3)!==0)&&(fu=!0)),o=c}ht!==0&&ht!==5||go(e),Wa!==0&&(Wa=0)}function Qy(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-Ft(f),C=1<<x,M=c[x];M===-1?((C&a)===0||(C&o)!==0)&&(c[x]=Pj(C,t)):M<=t&&(e.expiredLanes|=C),f&=~C}if(t=Ze,a=De,a=vs(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&&Vc(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||zi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Vc(o),$c(a)){case 2:case 8:a=Ap;break;case 32:a=fs;break;case 268435456:a=kp;break;default:a=fs}return o=Yy.bind(null,e),a=Gc(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Vc(o),e.callbackPriority=2,e.callbackNode=null,2}function Yy(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cu()&&e.callbackNode!==a)return null;var o=De;return o=vs(e,e===Ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(jy(e,o,t),Qy(e,$t()),e.callbackNode!=null&&e.callbackNode===a?Yy.bind(null,e):null)}function Gy(e,t){if(cu())return null;jy(e,t,!0)}function EE(){LE(function(){(Be&6)!==0?Gc(Mp,jE):By()})}function Of(){if(Wa===0){var e=Rr;e===0&&(e=hs,hs<<=1,(hs&261888)===0&&(hs=256)),Wa=e}return Wa}function Vy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xs(""+e)}function Ky(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 CE(e,t,a,o,c){if(t==="submit"&&a&&a.stateNode===c){var f=Vy((c[Ut]||null).action),x=o.submitter;x&&(t=(t=x[Ut]||null)?Vy(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var C=new Es("action","action",null,o,c);e.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Wa!==0){var M=x?Ky(c,x):new FormData(c);Id(a,{pending:!0,data:M,method:c.method,action:f},null,M)}}else typeof f=="function"&&(C.preventDefault(),M=x?Ky(c,x):new FormData(c),Id(a,{pending:!0,data:M,method:c.method,action:f},f,M))},currentTarget:c}]})}}for(var zf=0;zf<vd.length;zf++){var Lf=vd[zf],NE=Lf.toLowerCase(),_E=Lf[0].toUpperCase()+Lf.slice(1);Cn(NE,"on"+_E)}Cn(Sv,"onAnimationEnd"),Cn(jv,"onAnimationIteration"),Cn(Ev,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(G2,"onTransitionRun"),Cn(V2,"onTransitionStart"),Cn(K2,"onTransitionCancel"),Cn(Cv,"onTransitionEnd"),mr("onMouseEnter",["mouseout","mouseover"]),mr("onMouseLeave",["mouseout","mouseover"]),mr("onPointerEnter",["pointerout","pointerover"]),mr("onPointerLeave",["pointerout","pointerover"]),Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),RE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yo));function Xy(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){_s(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){_s(F)}c.currentTarget=null,f=M}}}}function ke(e,t){var a=t[Zc];a===void 0&&(a=t[Zc]=new Set);var o=e+"__bubble";a.has(o)||($y(t,e,2,!1),a.add(o))}function Uf(e,t,a){var o=0;t&&(o|=4),$y(a,e,o,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Hf(e){if(!e[hu]){e[hu]=!0,Bp.forEach(function(a){a!=="selectionchange"&&(RE.has(a)||Uf(a,!1,e),Uf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,Uf("selectionchange",!1,t))}}function $y(e,t,a,o){switch(S0(t)){case 2:var c=nC;break;case 8:c=aC;break;default:c=If}a=c.bind(null,t,a,e),c=void 0,!ad||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 qf(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=dr(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}Wp(function(){var Q=f,F=td(a),J=[];e:{var Y=Nv.get(e);if(Y!==void 0){var K=Es,fe=e;switch(e){case"keypress":if(Ss(a)===0)break e;case"keydown":case"keyup":K=w2;break;case"focusin":fe="focus",K=od;break;case"focusout":fe="blur",K=od;break;case"beforeblur":case"afterblur":K=od;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=tv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=u2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=E2;break;case Sv:case jv:case Ev:K=f2;break;case Cv:K=N2;break;case"scroll":case"scrollend":K=o2;break;case"wheel":K=R2;break;case"copy":case"cut":case"paste":K=m2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=av;break;case"toggle":case"beforetoggle":K=M2}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=qi(O,z),P!=null&&Se.push(bo(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!==ed&&(fe=a.relatedTarget||a.fromElement)&&(dr(fe)||fe[cr]))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?dr(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=tv,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=av,P="onPointerLeave",z="onPointerEnter",O="pointer"),$e=K==null?Y:Hi(K),B=fe==null?Y:Hi(fe),Y=new Se(P,O+"leave",K,a,F),Y.target=$e,Y.relatedTarget=B,P=null,dr(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=TE,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&&Zy(J,Y,K,Se,!1),fe!==null&&$e!==null&&Zy(J,$e,fe,Se,!0)}}e:{if(Y=Q?Hi(Q):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var He=dv;else if(uv(Y))if(fv)He=B2;else{He=H2;var ve=U2}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&Ic(Q.elementType)&&(He=dv):He=q2;if(He&&(He=He(e,Q))){cv(J,He,a,F);break e}ve&&ve(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&Wc(Y,"number",Y.value)}switch(ve=Q?Hi(Q):window,e){case"focusin":(uv(ve)||ve.contentEditable==="true")&&(xr=ve,hd=Q,$i=null);break;case"focusout":$i=hd=xr=null;break;case"mousedown":md=!0;break;case"contextmenu":case"mouseup":case"dragend":md=!1,xv(J,a,F);break;case"selectionchange":if(Y2)break;case"keydown":case"keyup":xv(J,a,F)}var Re;if(ud)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 br?ov(e,a)&&(Oe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Oe="onCompositionStart");Oe&&(lv&&a.locale!=="ko"&&(br||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&br&&(Re=Ip()):(La=F,ld="value"in La?La.value:La.textContent,br=!0)),ve=mu(Q,Oe),0<ve.length&&(Oe=new nv(Oe,e,null,a,F),J.push({event:Oe,listeners:ve}),Re?Oe.data=Re:(Re=sv(a),Re!==null&&(Oe.data=Re)))),(Re=k2?D2(e,a):O2(e,a))&&(Oe=mu(Q,"onBeforeInput"),0<Oe.length&&(ve=new nv("onBeforeInput","beforeinput",null,a,F),J.push({event:ve,listeners:Oe}),ve.data=Re)),CE(J,e,Q,a,F)}Xy(J,t)})}function bo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function mu(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=qi(e,a),c!=null&&o.unshift(bo(e,c,f)),c=qi(e,t),c!=null&&o.push(bo(e,c,f))),e.tag===3)return o;e=e.return}return[]}function TE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zy(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=qi(a,f),Q!=null&&x.unshift(bo(a,Q,M))):c||(Q=qi(a,f),Q!=null&&x.push(bo(a,Q,M)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var ME=/\r\n?/g,AE=/\u0000|\uFFFD/g;function Fy(e){return(typeof e=="string"?e:""+e).replace(ME,`
49
+ `).replace(AE,"")}function Py(e,t){return t=Fy(t),Fy(e)===t}function Xe(e,t,a,o,c,f){switch(a){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||vr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&vr(e,""+o);break;case"className":ys(e,"class",o);break;case"tabIndex":ys(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ys(e,a,o);break;case"style":Pp(e,o,f);break;case"data":if(t!=="object"){ys(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=xs(""+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=xs(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=ia);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("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=xs(""+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":ke("beforetoggle",e),ke("toggle",e),gs(e,"popover",o);break;case"xlinkActuate":ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ra(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ra(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ra(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ra(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":gs(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=r2.get(a)||a,gs(e,a,o))}}function Bf(e,t,a,o,c,f){switch(a){case"style":Pp(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"?vr(e,o):(typeof o=="number"||typeof o=="bigint")&&vr(e,""+o);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"onClick":o!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qp.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[Ut]||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,""):gs(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":ke("error",e),ke("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":ke("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)}}Xp(e,f,C,M,Q,x,c,!1);return;case"select":ke("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?pr(e,!!o,t,!1):a!=null&&pr(e,!!o,a,!0);return;case"textarea":ke("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)}Zp(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":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(o=0;o<yo.length;o++)ke(yo[o],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("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(Ic(t)){for(F in a)a.hasOwnProperty(F)&&(o=a[F],o!==void 0&&Bf(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 kE(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)}}Jc(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?pr(e,!!a,Y,!1):!!o!=!!a&&(t!=null?pr(e,!!a,t,!0):pr(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)}$p(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(Ic(t)){for(var $e in a)Y=a[$e],a.hasOwnProperty($e)&&Y!==void 0&&!o.hasOwnProperty($e)&&Bf(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||Bf(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 Jy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function DE(){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&&Jy(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&&Jy(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,Yf=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function Wy(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 Iy(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 Gf(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 Vf=null;function OE(){var e=window.event;return e&&e.type==="popstate"?e===Vf?!1:(Vf=e,!0):(Vf=null,!1)}var e0=typeof setTimeout=="function"?setTimeout:void 0,zE=typeof clearTimeout=="function"?clearTimeout:void 0,t0=typeof Promise=="function"?Promise:void 0,LE=typeof queueMicrotask=="function"?queueMicrotask:typeof t0<"u"?function(e){return t0.resolve(null).then(e).catch(UE)}:e0;function UE(e){setTimeout(function(){throw e})}function Ia(e){return e==="head"}function n0(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),$r(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")xo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,xo(a);for(var f=a.firstChild;f;){var x=f.nextSibling,C=f.nodeName;f[Ui]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=x}}else a==="body"&&xo(e.ownerDocument.body);a=c}while(a);$r(t)}function a0(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 Kf(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":Kf(a),Fc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function HE(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[Ui])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=gn(e.nextSibling),e===null)break}return null}function qE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=gn(e.nextSibling),e===null))return null;return e}function l0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gn(e.nextSibling),e===null))return null;return e}function Xf(e){return e.data==="$?"||e.data==="$~"}function $f(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function BE(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 gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zf=null;function r0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return gn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function i0(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 o0(e,t,a){switch(t=pu(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 xo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fc(e)}var yn=new Map,s0=new Set;function vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=W.d;W.d={f:QE,r:YE,D:GE,C:VE,L:KE,m:XE,X:ZE,S:$E,M:FE};function QE(){var e=Sa.f(),t=ou();return e||t}function YE(e){var t=fr(e);t!==null&&t.tag===5&&t.type==="form"?Cg(t):Sa.r(e)}var Vr=typeof document>"u"?null:document;function u0(e,t,a){var o=Vr;if(o&&typeof t=="string"&&t){var c=cn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),s0.has(c)||(s0.add(c),e={rel:e,crossOrigin:a,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),Et(t,"link",e),yt(t),o.head.appendChild(t)))}}function GE(e){Sa.D(e),u0("dns-prefetch",e,null)}function VE(e,t){Sa.C(e,t),u0("preconnect",e,t)}function KE(e,t,a){Sa.L(e,t,a);var o=Vr;if(o&&e&&t){var c='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+cn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+cn(a.imageSizes)+'"]')):c+='[href="'+cn(e)+'"]';var f=c;switch(t){case"style":f=Kr(e);break;case"script":f=Xr(e)}yn.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),yn.set(f,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(wo(f))||t==="script"&&o.querySelector(So(f))||(t=o.createElement("link"),Et(t,"link",e),yt(t),o.head.appendChild(t)))}}function XE(e,t){Sa.m(e,t);var a=Vr;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+cn(o)+'"][href="'+cn(e)+'"]',f=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Xr(e)}if(!yn.has(f)&&(e=b({rel:"modulepreload",href:e},t),yn.set(f,e),a.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(So(f)))return}o=a.createElement("link"),Et(o,"link",e),yt(o),a.head.appendChild(o)}}}function $E(e,t,a){Sa.S(e,t,a);var o=Vr;if(o&&e){var c=hr(o).hoistableStyles,f=Kr(e);t=t||"default";var x=c.get(f);if(!x){var C={loading:0,preload:null};if(x=o.querySelector(wo(f)))C.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=yn.get(f))&&Ff(e,a);var M=x=o.createElement("link");yt(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,gu(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:C},c.set(f,x)}}}function ZE(e,t){Sa.X(e,t);var a=Vr;if(a&&e){var o=hr(a).hoistableScripts,c=Xr(e),f=o.get(c);f||(f=a.querySelector(So(c)),f||(e=b({src:e,async:!0},t),(t=yn.get(c))&&Pf(e,t),f=a.createElement("script"),yt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function FE(e,t){Sa.M(e,t);var a=Vr;if(a&&e){var o=hr(a).hoistableScripts,c=Xr(e),f=o.get(c);f||(f=a.querySelector(So(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=yn.get(c))&&Pf(e,t),f=a.createElement("script"),yt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function c0(e,t,a,o){var c=(c=je.current)?vu(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=Kr(a.href),a=hr(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=Kr(a.href);var f=hr(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(wo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),yn.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},yn.set(e,a),f||PE(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=Xr(a),a=hr(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 Kr(e){return'href="'+cn(e)+'"'}function wo(e){return'link[rel="stylesheet"]['+e+"]"}function d0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function PE(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),yt(t),e.head.appendChild(t))}function Xr(e){return'[src="'+cn(e)+'"]'}function So(e){return"script[async]"+e}function f0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+cn(a.href)+'"]');if(o)return t.instance=o,yt(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"),yt(o),Et(o,"style",c),gu(o,a.precedence,e),t.instance=o;case"stylesheet":c=Kr(a.href);var f=e.querySelector(wo(c));if(f)return t.state.loading|=4,t.instance=f,yt(f),f;o=d0(a),(c=yn.get(c))&&Ff(o,c),f=(e.ownerDocument||e).createElement("link"),yt(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,gu(f,a.precedence,e),t.instance=f;case"script":return f=Xr(a.src),(c=e.querySelector(So(f)))?(t.instance=c,yt(c),c):(o=a,(c=yn.get(f))&&(o=b({},a),Pf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),yt(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,gu(o,a.precedence,e));return t.instance}function gu(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 Ff(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Pf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yu=null;function h0(e,t,a){if(yu===null){var o=new Map,c=yu=new Map;c.set(a,o)}else c=yu,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[Ui]||f[xt]||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 m0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function JE(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 p0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function WE(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=Kr(o.href),f=t.querySelector(wo(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,yt(f);return}f=t.ownerDocument||t,o=d0(o),(c=yn.get(c))&&Ff(o,c),f=f.createElement("link"),yt(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=bu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Jf=0;function IE(e,t){return e.stylesheets&&e.count===0&&wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*DE());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach(eC,e),xu=null,bu.call(e))}function eC(e,t){if(!(t.state.loading&4)){var a=xu.get(e);if(a)var o=a.get(null);else{a=new Map,xu.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=bu.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 jo={$$typeof:T,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function tC(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=Kc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kc(0),this.hiddenUpdates=Kc(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 v0(e,t,a,o,c,f,x,C,M,Q,F,J){return e=new tC(e,t,a,x,M,Q,F,J,C),t=1,f===!0&&(t|=24),f=Jt(3,null,null,t),e.current=f,f.stateNode=e,t=Td(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:a,cache:t},Dd(f),e}function g0(e){return e?(e=jr,e):jr}function y0(e,t,a,o,c,f){c=g0(c),o.context===null?o.context=c:o.pendingContext=c,o=Ya(t),o.payload={element:a},f=f===void 0?null:f,f!==null&&(o.callback=f),a=Ga(e,o,t),a!==null&&(Gt(a,e,t),eo(a,e,t))}function b0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Wf(e,t){b0(e,t),(e=e.alternate)&&b0(e,t)}function x0(e){if(e.tag===13||e.tag===31){var t=Ml(e,67108864);t!==null&&Gt(t,e,67108864),Wf(e,67108864)}}function w0(e){if(e.tag===13||e.tag===31){var t=nn();t=Xc(t);var a=Ml(e,t);a!==null&&Gt(a,e,t),Wf(e,t)}}var Su=!0;function nC(e,t,a,o){var c=U.T;U.T=null;var f=W.p;try{W.p=2,If(e,t,a,o)}finally{W.p=f,U.T=c}}function aC(e,t,a,o){var c=U.T;U.T=null;var f=W.p;try{W.p=8,If(e,t,a,o)}finally{W.p=f,U.T=c}}function If(e,t,a,o){if(Su){var c=eh(o);if(c===null)qf(e,t,o,ju,a),j0(e,o);else if(rC(c,e,t,a,o))o.stopPropagation();else if(j0(e,o),t&4&&-1<lC.indexOf(e)){for(;c!==null;){var f=fr(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=Cl(f.pendingLanes);if(x!==0){var C=f;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var M=1<<31-Ft(x);C.entanglements[1]|=M,x&=~M}Yn(f),(Be&6)===0&&(ru=$t()+500,go(0))}}break;case 31:case 13:C=Ml(f,2),C!==null&&Gt(C,f,2),ou(),Wf(f,2)}if(f=eh(o),f===null&&qf(e,t,o,ju,a),f===c)break;c=f}c!==null&&o.stopPropagation()}else qf(e,t,o,null,a)}}function eh(e){return e=td(e),th(e)}var ju=null;function th(e){if(ju=null,e=dr(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 ju=e,null}function S0(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(Gj()){case Mp:return 2;case Ap:return 8;case fs:case Vj:return 32;case kp:return 268435456;default:return 32}default:return 32}}var nh=!1,el=null,tl=null,nl=null,Eo=new Map,Co=new Map,al=[],lC="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 j0(e,t){switch(e){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":Eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(t.pointerId)}}function No(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=fr(t),t!==null&&x0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function rC(e,t,a,o,c){switch(t){case"focusin":return el=No(el,e,t,a,o,c),!0;case"dragenter":return tl=No(tl,e,t,a,o,c),!0;case"mouseover":return nl=No(nl,e,t,a,o,c),!0;case"pointerover":var f=c.pointerId;return Eo.set(f,No(Eo.get(f)||null,e,t,a,o,c)),!0;case"gotpointercapture":return f=c.pointerId,Co.set(f,No(Co.get(f)||null,e,t,a,o,c)),!0}return!1}function E0(e){var t=dr(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,Hp(e.priority,function(){w0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Hp(e.priority,function(){w0(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 Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=eh(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);ed=o,a.target.dispatchEvent(o),ed=null}else return t=fr(a),t!==null&&x0(t),e.blockedOn=a,!1;t.shift()}return!0}function C0(e,t,a){Eu(e)&&a.delete(t)}function iC(){nh=!1,el!==null&&Eu(el)&&(el=null),tl!==null&&Eu(tl)&&(tl=null),nl!==null&&Eu(nl)&&(nl=null),Eo.forEach(C0),Co.forEach(C0)}function Cu(e,t){e.blockedOn===t&&(e.blockedOn=null,nh||(nh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,iC)))}var Nu=null;function N0(e){Nu!==e&&(Nu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Nu===e&&(Nu=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(th(o||a)===null)continue;break}var f=fr(a);f!==null&&(e.splice(t,3),t-=3,Id(f,{pending:!0,data:c,method:a.method,action:o},o,c))}}))}function $r(e){function t(M){return Cu(M,e)}el!==null&&Cu(el,e),tl!==null&&Cu(tl,e),nl!==null&&Cu(nl,e),Eo.forEach(t),Co.forEach(t);for(var a=0;a<al.length;a++){var o=al[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<al.length&&(a=al[0],a.blockedOn===null);)E0(a),a.blockedOn===null&&al.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[Ut]||null;if(typeof f=="function")x||N0(a);else if(x){var C=null;if(f&&f.hasAttribute("formAction")){if(c=f,x=f[Ut]||null)C=x.formAction;else if(th(c)!==null)continue}else C=x.action;typeof C=="function"?a[o+1]=C:(a.splice(o,3),o-=3),N0(a)}}}function _0(){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 ah(e){this._internalRoot=e}_u.prototype.render=ah.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,o=nn();y0(a,o,e,t,null,null)},_u.prototype.unmount=ah.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;y0(e.current,2,null,e,null,null),ou(),t[cr]=null}};function _u(e){this._internalRoot=e}_u.prototype.unstable_scheduleHydration=function(e){if(e){var t=Up();e={blockedOn:null,target:e,priority:t};for(var a=0;a<al.length&&t!==0&&t<al[a].priority;a++);al.splice(a,0,e),a===0&&E0(e)}};var R0=l.version;if(R0!=="19.2.3")throw Error(i(527,R0,"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 oC={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{Oi=Ru.inject(oC),Zt=Ru}catch{}}return Ro.createRoot=function(e,t){if(!s(e))throw Error(i(299));var a=!1,o="",c=zg,f=Lg,x=Ug;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=v0(e,1,!1,null,null,a,o,null,c,f,x,_0),e[cr]=t.current,Hf(e),new ah(t)},Ro.hydrateRoot=function(e,t,a){if(!s(e))throw Error(i(299));var o=!1,c="",f=zg,x=Lg,C=Ug,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=v0(e,1,!0,t,a??null,o,c,M,f,x,C,_0),t.context=g0(null),a=t.current,o=nn(),o=Xc(o),c=Ya(o),c.callback=null,Ga(a,c,o),a=o,t.current.lanes=a,Li(t,a),Yn(t),e[cr]=t.current,Hf(e),new _u(t)},Ro.version="19.2.3",Ro}var Z0;function FC(){if(Z0)return sh.exports;Z0=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(),sh.exports=ZC(),sh.exports}var PC=FC(),To={},F0;function JC(){if(F0)return To;F0=1,Object.defineProperty(To,"__esModule",{value:!0}),To.parse=h,To.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,j){const E=new u,S=w.length;if(S<2)return E;const N=(j==null?void 0:j.decode)||y;let _=0;do{const R=w.indexOf("=",_);if(R===-1)break;const T=w.indexOf(";",_),D=T===-1?S:T;if(R>D){_=w.lastIndexOf(";",R-1)+1;continue}const L=m(w,_,R),X=p(w,R,L),q=w.slice(L,X);if(E[q]===void 0){let H=m(w,R+1,D),G=p(w,D,H);const te=N(w.slice(H,G));E[q]=te}_=D+1}while(_<S);return E}function m(w,j,E){do{const S=w.charCodeAt(j);if(S!==32&&S!==9)return j}while(++j<E);return E}function p(w,j,E){for(;j>E;){const S=w.charCodeAt(--j);if(S!==32&&S!==9)return j+1}return E}function g(w,j,E){const S=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const N=S(j);if(!l.test(N))throw new TypeError(`argument val is invalid: ${j}`);let _=w+"="+N;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!b(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.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: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.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: ${E.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 To}JC();var P0="popstate";function WC(n={}){function l(s,u){let{pathname:h="/",search:m="",hash:p=""}=ir(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Vh("",{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 eN(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 IC(){return Math.random().toString(36).substring(2,10)}function J0(n,l){return{usr:n.state,key:n.key,idx:l}}function Vh(n,l,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?ir(l):l,state:r,key:l&&l.key||i||IC()}}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 ir(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 eN(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=Vh(S.location,N,_);r&&r(R,N),g=y()+1;let T=J0(R,g),D=S.createHref(R);try{h.pushState(T,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(D)}u&&p&&p({action:m,location:S.location,delta:1})}function j(N,_){m="REPLACE";let R=Vh(S.location,N,_);r&&r(R,N),g=y();let T=J0(R,g),D=S.createHref(R);h.replaceState(T,"",D),u&&p&&p({action:m,location:S.location,delta:0})}function E(N){return tN(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(P0,b),p=N,()=>{s.removeEventListener(P0,b),p=null}},createHref(N){return l(s,N)},createURL:E,encodeLocation(N){let _=E(N);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(N){return h.go(N)}};return S}function tN(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 wx(n,l,r="/"){return nN(n,l,r,!1)}function nN(n,l,r,i){let s=typeof l=="string"?ir(l):l,u=Ta(s.pathname||"/",r);if(u==null)return null;let h=Sx(n);aN(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=mN(u);m=fN(h[p],g,i)}return m}function Sx(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=_a([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}".`),Sx(u.children,l,y,g)),!(u.path==null&&!u.index)&&l.push({path:g,score:cN(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 jx(u.path))s(u,h,p)}),l}function jx(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=jx(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 aN(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:dN(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var lN=/^:[\w-]+$/,rN=3,iN=2,oN=1,sN=10,uN=-2,W0=n=>n==="*";function cN(n,l){let r=n.split("/"),i=r.length;return r.some(W0)&&(i+=uN),l&&(i+=iN),r.filter(s=>!W0(s)).reduce((s,u)=>s+(lN.test(u)?rN:u===""?oN:sN),i)}function dN(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 fN(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=Fu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!b&&g&&r&&!i[i.length-1].route.index&&(b=Fu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),h.push({params:s,pathname:_a([u,b.pathname]),pathnameBase:yN(_a([u,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(u=_a([u,b.pathnameBase]))}return h}function Fu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=hN(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 E=m[w]||"";h=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return b&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:h,pattern:n}}function hN(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 mN(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 Ta(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 pN(n,l="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?ir(n):n;return{pathname:r?r.startsWith("/")?r:vN(r,l):l,search:bN(i),hash:xN(s)}}function vN(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 fh(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 gN(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function wm(n){let l=gN(n);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function Sm(n,l,r,i=!1){let s;typeof n=="string"?s=ir(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),fh("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),fh("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),fh("#","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=pN(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(u||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var _a=n=>n.join("/").replace(/\/\/+/g,"/"),yN=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),bN=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,xN=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function wN(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Ex=["POST","PUT","PATCH","DELETE"];new Set(Ex);var SN=["GET",...Ex];new Set(SN);var wi=v.createContext(null);wi.displayName="DataRouter";var fc=v.createContext(null);fc.displayName="DataRouterState";var Cx=v.createContext({isTransitioning:!1});Cx.displayName="ViewTransition";var jN=v.createContext(new Map);jN.displayName="Fetchers";var EN=v.createContext(null);EN.displayName="Await";var zn=v.createContext(null);zn.displayName="Navigation";var Po=v.createContext(null);Po.displayName="Location";var Ln=v.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var jm=v.createContext(null);jm.displayName="RouteError";function CN(n,{relative:l}={}){Ie(Si(),"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}=Wo(n,{relative:l}),m=u;return r!=="/"&&(m=u==="/"?r:_a([r,u])),i.createHref({pathname:m,search:h,hash:s})}function Si(){return v.useContext(Po)!=null}function ka(){return Ie(Si(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Po).location}var Nx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _x(n){v.useContext(zn).static||v.useLayoutEffect(n)}function Rx(){let{isDataRoute:n}=v.useContext(Ln);return n?HN():NN()}function NN(){Ie(Si(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(wi),{basename:l,navigator:r}=v.useContext(zn),{matches:i}=v.useContext(Ln),{pathname:s}=ka(),u=JSON.stringify(wm(i)),h=v.useRef(!1);return _x(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Sn(h.current,Nx),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=Sm(p,JSON.parse(u),s,g.relative==="path");n==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:_a([l,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[l,r,u,s,n])}v.createContext(null);function Jo(){let{matches:n}=v.useContext(Ln),l=n[n.length-1];return l?l.params:{}}function Wo(n,{relative:l}={}){let{matches:r}=v.useContext(Ln),{pathname:i}=ka(),s=JSON.stringify(wm(r));return v.useMemo(()=>Sm(n,JSON.parse(s),i,l==="path"),[n,s,i,l])}function _N(n,l){return Tx(n,l)}function Tx(n,l,r,i){var _;Ie(Si(),"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||"";Mx(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=ka(),w;if(l){let R=typeof l=="string"?ir(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 j=w.pathname||"/",E=j;if(g!=="/"){let R=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=wx(n,{pathname:E});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=kN(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:_a([g,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:_a([g,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),u,r,i);return l&&N?v.createElement(Po.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function RN(){let n=UN(),l=wN(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 TN=v.createElement(RN,null),MN=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(jm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AN({routeContext:n,match:l,children:r}){let i=v.useContext(wi);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 kN(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,j=null,E=null;r&&(b=u&&g.route.id?u[g.route.id]:void 0,j=g.route.errorElement||TN,h&&(m<0&&y===0?(Mx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=g.route.hydrateFallbackElement||null)));let S=l.concat(s.slice(0,y+1)),N=()=>{let _;return b?_=j:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(AN,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(MN,{location:r.location,revalidation:r.revalidation,component:j,error:b,children:N(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):N()},null)}function Em(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(wi);return Ie(l,Em(n)),l}function ON(n){let l=v.useContext(fc);return Ie(l,Em(n)),l}function zN(n){let l=v.useContext(Ln);return Ie(l,Em(n)),l}function Cm(n){let l=zN(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 LN(){return Cm("useRouteId")}function UN(){var i;let n=v.useContext(jm),l=ON("useRouteError"),r=Cm("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[r]}function HN(){let{router:n}=DN("useNavigate"),l=Cm("useNavigate"),r=v.useRef(!1);return _x(()=>{r.current=!0}),v.useCallback(async(s,u={})=>{Sn(r.current,Nx),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:l,...u}))},[n,l])}var I0={};function Mx(n,l,r){!l&&!I0[n]&&(I0[n]=!0,Sn(!1,r))}v.memo(qN);function qN({routes:n,future:l,state:r}){return Tx(n,void 0,r,l)}function Mo({to:n,replace:l,state:r,relative:i}){Ie(Si(),"<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}=ka(),m=Rx(),p=Sm(n,wm(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 ol(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 BN({basename:n="/",children:l=null,location:r,navigationType:i="POP",navigator:s,static:u=!1}){Ie(!Si(),"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=ir(r));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,j=v.useMemo(()=>{let E=Ta(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:b,key:w},navigationType:i}},[h,p,g,y,b,w,i]);return Sn(j!=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.`),j==null?null:v.createElement(zn.Provider,{value:m},v.createElement(Po.Provider,{children:l,value:j}))}function QN({children:n,location:l}){return _N(Kh(n),l)}function Kh(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,Kh(i.props.children,u));return}Ie(i.type===ol,`[${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=Kh(i.props.children,u)),r.push(h)}),r}var Qu="get",Yu="application/x-www-form-urlencoded";function hc(n){return n!=null&&typeof n.tagName=="string"}function YN(n){return hc(n)&&n.tagName.toLowerCase()==="button"}function GN(n){return hc(n)&&n.tagName.toLowerCase()==="form"}function VN(n){return hc(n)&&n.tagName.toLowerCase()==="input"}function KN(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function XN(n,l){return n.button===0&&(!l||l==="_self")&&!KN(n)}var Au=null;function $N(){if(Au===null)try{new FormData(document.createElement("form"),0),Au=!1}catch{Au=!0}return Au}var ZN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hh(n){return n!=null&&!ZN.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yu}"`),null):n}function FN(n,l){let r,i,s,u,h;if(GN(n)){let m=n.getAttribute("action");i=m?Ta(m,l):null,r=n.getAttribute("method")||Qu,s=hh(n.getAttribute("enctype"))||Yu,u=new FormData(n)}else if(YN(n)||VN(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?Ta(p,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Qu,s=hh(n.getAttribute("formenctype"))||hh(m.getAttribute("enctype"))||Yu,u=new FormData(m,n),!$N()){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(hc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Qu,i=null,s=Yu,h=n}return u&&s==="text/plain"&&(h=u,u=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:u,body:h}}function Nm(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function PN(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 JN(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 WN(n,l,r){let i=await Promise.all(n.map(async s=>{let u=l.routes[s.route.id];if(u){let h=await PN(u,r);return h.links?h.links():[]}return[]}));return n_(i.flat(1).filter(JN).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function eb(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 IN(n,l,{includeHydrateFallback:r}={}){return e_(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 e_(n){return[...new Set(n)]}function t_(n){let l={},r=Object.keys(n).sort();for(let i of r)l[i]=n[i];return l}function n_(n,l){let r=new Set;return new Set(l),n.reduce((i,s)=>{let u=JSON.stringify(t_(s));return r.has(u)||(r.add(u),i.push({key:u,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var a_=new Set([100,101,204,205]);function l_(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&&Ta(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Ax(){let n=v.useContext(wi);return Nm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function r_(){let n=v.useContext(fc);return Nm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var _m=v.createContext(void 0);_m.displayName="FrameworkContext";function kx(){let n=v.useContext(_m);return Nm(n,"You must render this element inside a <HydratedRouter> element"),n}function i_(n,l){let r=v.useContext(_m),[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 j=()=>{s(!0)},E=()=>{s(!1),h(!1)};return r?n!=="intent"?[u,w,{}]:[u,w,{onFocus:Ao(m,j),onBlur:Ao(p,E),onMouseEnter:Ao(g,j),onMouseLeave:Ao(y,E),onTouchStart:Ao(b,j)}]:[!1,w,{}]}function Ao(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function o_({page:n,...l}){let{router:r}=Ax(),i=v.useMemo(()=>wx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(u_,{page:n,matches:i,...l}):null}function s_(n){let{manifest:l,routeModules:r}=kx(),[i,s]=v.useState([]);return v.useEffect(()=>{let u=!1;return WN(n,l,r).then(h=>{u||s(h)}),()=>{u=!0}},[n,l,r]),i}function u_({page:n,matches:l,...r}){let i=ka(),{manifest:s,routeModules:u}=kx(),{basename:h}=Ax(),{loaderData:m,matches:p}=r_(),g=v.useMemo(()=>eb(n,l,p,s,i,"data"),[n,l,p,s,i]),y=v.useMemo(()=>eb(n,l,p,s,i,"assets"),[n,l,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(l.forEach(_=>{var T;let R=s.routes[_.route.id];!R||!R.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((T=u[_.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let N=l_(n,h);return S&&E.size>0&&N.searchParams.set("_routes",l.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[N.pathname+N.search]},[h,m,i,s,g,l,n,u]),w=v.useMemo(()=>IN(y,s),[y,s]),j=s_(y);return v.createElement(v.Fragment,null,b.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>v.createElement("link",{key:E,...S})))}function c_(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var Dx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dx&&(window.__reactRouterVersion="7.6.1")}catch{}function d_({basename:n,children:l,window:r}){let i=v.useRef();i.current==null&&(i.current=WC({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(BN,{basename:n,children:l,location:u.location,navigationType:u.action,navigator:s})}var Ox=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xn=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},j){let{basename:E}=v.useContext(zn),S=typeof g=="string"&&Ox.test(g),N,_=!1;if(typeof g=="string"&&S&&(N=g,Dx))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=Ta(te.pathname,E);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=CN(g,{relative:s}),[T,D,L]=i_(i,w),X=p_(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:c_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,H,v.createElement(o_,{page:R})):H});Xn.displayName="Link";var f_=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=Wo(h,{relative:g.relative}),w=ka(),j=v.useContext(fc),{navigator:E,basename:S}=v.useContext(zn),N=j!=null&&x_(b)&&m===!0,_=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,R=w.pathname,T=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(R=R.toLowerCase(),T=T?T.toLowerCase():null,_=_.toLowerCase()),T&&S&&(T=Ta(T,S)||T);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=R===_||!s&&R.startsWith(_)&&R.charAt(D)==="/",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(Xn,{...g,"aria-current":H,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(q):p)});f_.displayName="NavLink";var h_=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:s,state:u,method:h=Qu,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,...w},j)=>{let E=y_(),S=b_(m,{relative:g}),N=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Ox.test(m),R=T=>{if(p&&p(T),T.defaultPrevented)return;T.preventDefault();let D=T.nativeEvent.submitter,L=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||T.currentTarget,{fetcherKey:l,method:L,navigate:r,replace:s,state:u,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:j,method:N,action:S,onSubmit:i?p:R,...w,"data-discover":!_&&n==="render"?"true":void 0})});h_.displayName="Form";function m_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zx(n){let l=v.useContext(wi);return Ie(l,m_(n)),l}function p_(n,{target:l,replace:r,state:i,preventScrollReset:s,relative:u,viewTransition:h}={}){let m=Rx(),p=ka(),g=Wo(n,{relative:u});return v.useCallback(y=>{if(XN(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 v_=0,g_=()=>`__${String(++v_)}__`;function y_(){let{router:n}=zx("useSubmit"),{basename:l}=v.useContext(zn),r=LN();return v.useCallback(async(i,s={})=>{let{action:u,method:h,encType:m,formData:p,body:g}=FN(i,l);if(s.navigate===!1){let y=s.fetcherKey||g_();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 b_(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={...Wo(n||".",{relative:l})},h=ka();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:_a([r,u.pathname])),Qo(u)}function x_(n,l={}){let r=v.useContext(Cx);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=zx("useViewTransitionState"),s=Wo(n,{relative:l.relative});if(!r.isTransitioning)return!1;let u=Ta(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ta(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Fu(s.pathname,h)!=null||Fu(s.pathname,u)!=null}[...a_];var Io=xx();const Lx=rx(Io);/**
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 w_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),tb=n=>{const l=S_(n);return l.charAt(0).toUpperCase()+l.slice(1)},Ux=(...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 j_={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,...j_,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:Ux("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 tt=(n,l)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(E_,{ref:u,iconNode:l,className:Ux(`lucide-${w_(tb(n))}`,`lucide-${n}`,i),...s}));return r.displayName=tb(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 C_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],N_=tt("arrow-left",C_);/**
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 __=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],R_=tt("ban",__);/**
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 T_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hx=tt("chevron-down",T_);/**
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 M_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Rm=tt("chevron-left",M_);/**
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 A_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],es=tt("chevron-right",A_);/**
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 k_=[["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_=tt("circle-alert",k_);/**
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 O_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mc=tt("circle-check",O_);/**
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 z_=[["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"}]],pc=tt("circle-x",z_);/**
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 L_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ts=tt("clock",L_);/**
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 U_=[["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"}]],qx=tt("columns-3",U_);/**
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 H_=[["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"}]],q_=tt("database",H_);/**
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 B_=[["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"}]],Q_=tt("git-branch",B_);/**
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 Y_=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],G_=tt("hard-drive",Y_);/**
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 V_=[["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"}]],K_=tt("inbox",V_);/**
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 X_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Bx=tt("info",X_);/**
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 $_=[["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=tt("key",$_);/**
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 Z_=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kn=tt("loader-circle",Z_);/**
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 F_=[["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"}]],P_=tt("mail-warning",F_);/**
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 J_=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Yx=tt("play",J_);/**
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 W_=[["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"}]],vc=tt("refresh-cw",W_);/**
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 I_=[["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"}]],eR=tt("settings",I_);/**
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 tR=[["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"}]],nR=tt("shield",tR);/**
182
+ * @license lucide-react v0.488.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 aR=[["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"}]],gc=tt("table",aR);function Gx(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=Gx(n[l]))&&(i&&(i+=" "),i+=r);else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function lR(){for(var n,l,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(l=Gx(n))&&(i&&(i+=" "),i+=l);return i}const Tm="-",rR=n=>{const l=oR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const u=s.split(Tm);return u[0]===""&&u.length!==1&&u.shift(),Vx(u,l)||iR(s)},getConflictingClassGroupIds:(s,u)=>{const h=r[s]||[];return u&&i[s]?[...h,...i[s]]:h}}},Vx=(n,l)=>{var r;if(n.length===0)return l.classGroupId;const i=n[0],s=l.nextPart.get(i),u=s?Vx(n.slice(1),s):void 0;if(u)return u;if(l.validators.length===0)return;const h=n.join(Tm);return(r=l.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},nb=/^\[(.+)\]$/,iR=n=>{if(nb.test(n)){const l=nb.exec(n)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},oR=n=>{const{theme:l,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Xh(r[s],i,s,l);return i},Xh=(n,l,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?l:ab(l,s);u.classGroupId=r;return}if(typeof s=="function"){if(sR(s)){Xh(s(i),l,r,i);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([u,h])=>{Xh(h,ab(l,u),r,i)})})},ab=(n,l)=>{let r=n;return l.split(Tm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},sR=n=>n.isThemeGetter,uR=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)}}},$h="!",Zh=":",cR=Zh.length,dR=n=>{const{prefix:l,experimentalParseClassName:r}=n;let i=s=>{const u=[];let h=0,m=0,p=0,g;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===Zh){u.push(s.slice(p,E)),p=E+cR;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=u.length===0?s:s.substring(p),b=fR(y),w=b!==y,j=g&&g>p?g-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:j}};if(l){const s=l+Zh,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},fR=n=>n.endsWith($h)?n.substring(0,n.length-1):n.startsWith($h)?n.substring(1):n,hR=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}},mR=n=>({cache:uR(n.cacheSize),parseClassName:dR(n),sortModifiers:hR(n),...rR(n)}),pR=/\s+/,vR=(n,l)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=l,h=[],m=n.trim().split(pR);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let N=!!S,_=i(N?E.substring(0,S):E);if(!_){if(!N){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}N=!1}const R=u(w).join(":"),T=j?R+$h:R,D=T+_;if(h.includes(D))continue;h.push(D);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 gR(){let n=0,l,r,i="";for(;n<arguments.length;)(l=arguments[n++])&&(r=Kx(l))&&(i&&(i+=" "),i+=r);return i}const Kx=n=>{if(typeof n=="string")return n;let l,r="";for(let i=0;i<n.length;i++)n[i]&&(l=Kx(n[i]))&&(r&&(r+=" "),r+=l);return r};function yR(n,...l){let r,i,s,u=h;function h(p){const g=l.reduce((y,b)=>b(y),n());return r=mR(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=vR(p,r);return s(p,y),y}return function(){return u(gR.apply(null,arguments))}}const mt=n=>{const l=r=>r[n]||[];return l.isThemeGetter=!0,l},Xx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bR=/^\d+\/\d+$/,xR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wR=/\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$/,SR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ER=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zr=n=>bR.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),rl=n=>!!n&&Number.isInteger(Number(n)),mh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),ja=n=>xR.test(n),CR=()=>!0,NR=n=>wR.test(n)&&!SR.test(n),Zx=()=>!1,_R=n=>jR.test(n),RR=n=>ER.test(n),TR=n=>!he(n)&&!me(n),MR=n=>ji(n,Jx,Zx),he=n=>Xx.test(n),Gl=n=>ji(n,Wx,NR),ph=n=>ji(n,zR,Me),lb=n=>ji(n,Fx,Zx),AR=n=>ji(n,Px,RR),ku=n=>ji(n,Ix,_R),me=n=>$x.test(n),ko=n=>Ei(n,Wx),kR=n=>Ei(n,LR),rb=n=>Ei(n,Fx),DR=n=>Ei(n,Jx),OR=n=>Ei(n,Px),Du=n=>Ei(n,Ix,!0),ji=(n,l,r)=>{const i=Xx.exec(n);return i?i[1]?l(i[1]):r(i[2]):!1},Ei=(n,l,r=!1)=>{const i=$x.exec(n);return i?i[1]?l(i[1]):r:!1},Fx=n=>n==="position"||n==="percentage",Px=n=>n==="image"||n==="url",Jx=n=>n==="length"||n==="size"||n==="bg-size",Wx=n=>n==="length",zR=n=>n==="number",LR=n=>n==="family-name",Ix=n=>n==="shadow",UR=()=>{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"),j=mt("drop-shadow"),E=mt("blur"),S=mt("perspective"),N=mt("aspect"),_=mt("ease"),R=mt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...D(),me,he],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[me,he,p],G=()=>[Zr,"full","auto",...H()],te=()=>[rl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",rl,me,he]},rl,me,he],ce=()=>[rl,"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=()=>[Zr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],V=()=>[n,me,he],$=()=>[...D(),rb,lb,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",DR,MR,{size:[me,he]}],Z=()=>[mh,ko,Gl],ee=()=>["","none","full",g,me,he],le=()=>["",Me,ko,Gl],pe=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,mh,rb,lb],Ee=()=>["","none",E,me,he],ye=()=>["none",Me,me,he],Ce=()=>["none",Me,me,he],Ue=()=>[Me,me,he],Ye=()=>[Zr,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ja],breakpoint:[ja],color:[CR],container:[ja],"drop-shadow":[ja],ease:["in","out","in-out"],font:[TR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ja],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ja],shadow:[ja],spacing:["px",Me],text:[ja],"text-shadow":[ja],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zr,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:[rl,"auto",me,he]}],basis:[{basis:[Zr,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Zr,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[rl,"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,ko,Gl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,ph]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mh,he]}],"font-family":[{font:[kR,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,ph]}],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,Gl]}],"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"]},rl,me,he],radial:["",me,he],conic:[rl,me,he]},OR,AR]}],"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,ko,Gl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",y,Du,ku]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Du,ku]}],"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,Gl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Du,ku]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Me,me,he]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":D()}],"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:Ee()}],brightness:[{brightness:[Me,me,he]}],contrast:[{contrast:[Me,me,he]}],"drop-shadow":[{"drop-shadow":["","none",j,Du,ku]}],"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":Ee()}],"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:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],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,ko,Gl,ph]}],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"]}},HR=yR(UR);function ge(...n){return HR(lR(n))}function Uo(n){return n===null?"-":n<1e3?`${n}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const qR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},BR={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 Pu({children:n,className:l,rounded:r="lg",shadow:i="md",...s}){return d.jsxs("div",{"data-slot":"glass-container",className:ge("relative","bg-card","backdrop-blur-xl","border border-border",qR[r],BR[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 Ot({className:n,rounded:l="2xl",shadow:r="lg",children:i,...s}){return d.jsx(Pu,{"data-slot":"card",rounded:l,shadow:r,className:ge("p-6",n),...s,children:i})}function ln({className:n,...l}){return d.jsx("div",{"data-slot":"card-header",className:ge("flex flex-row items-center justify-between space-y-0 pb-2",n),...l})}function rn({className:n,...l}){return d.jsx("h3",{"data-slot":"card-title",className:ge("font-semibold text-sm leading-none text-card-foreground",n),...l})}function Fn({className:n,...l}){return d.jsx("p",{"data-slot":"card-description",className:ge("text-muted-foreground text-sm",n),...l})}function zt({className:n,...l}){return d.jsx("div",{"data-slot":"card-content",className:ge(n),...l})}/**
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
+ */const QR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),YR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),ib=n=>{const l=YR(n);return l.charAt(0).toUpperCase()+l.slice(1)},ew=(...n)=>n.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim(),GR=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
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
+ */var VR={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"};/**
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 KR=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,...VR,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:ew("lucide",s),...!u&&!GR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
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 Un=(n,l)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(KR,{ref:u,iconNode:l,className:ew(`lucide-${QR(ib(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ib(n),r};/**
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 XR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],tw=Un("check",XR);/**
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 $R=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ZR=Un("chevron-down",$R);/**
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 FR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ob=Un("chevron-left",FR);/**
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 PR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sb=Un("chevron-right",PR);/**
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 JR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],WR=Un("chevron-up",JR);/**
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 IR=[["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"}]],eT=Un("clipboard",IR);/**
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 tT=[["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"}]],nT=Un("file-json",tT);/**
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 aT=[["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"}]],lT=Un("file-spreadsheet",aT);/**
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 rT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],iT=Un("loader-circle",rT);/**
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 oT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sT=Un("search",oT);/**
257
+ * @license lucide-react v0.511.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const uT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cT=Un("x",uT);function dT(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 vh({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:ge("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(tw,{className:"w-3 h-3"}):d.jsx(eT,{className:"w-3 h-3"})})}function Il({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(j=>j+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=dT(p);return d.jsxs("div",{className:ge("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:ge("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(Pu,{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(vh,{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(vh,{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(vh,{value:y})]})]})]})})})]})}function fT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function hT(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 mT(n){const l=n.toLowerCase();return!!(l.includes("created")||l.includes("date")||l.includes("updated")||n.endsWith("At")||l.endsWith("_at"))}function pT(n,l){for(const r of l){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&mT(n)?"date":typeof i=="number"?"number":hT(i)?"date":"string"}return"string"}function nw({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),[j,E]=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,D=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(I=>({key:I,label:I,type:pT(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=()=>{j.size===H.length?E(new Set):E(new Set(H.map((I,ie)=>ie)))},ue=I=>{const ie=new Set(j);ie.has(I)?ie.delete(I):ie.add(I),E(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(tw,{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(cT,{className:"w-3.5 h-3.5"})});case"date":return d.jsx(Il,{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(Pu,{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(Pu,{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:fT(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(sT,{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(lT,{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(nT,{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:j.size===H.length&&H.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.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:ge("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===I.key&&"opacity-100"),children:[d.jsx(WR,{className:ge("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="asc"&&"text-blue-500")}),d.jsx(ZR,{className:ge("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:ge("group transition-colors",j.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:j.has(ie),onChange:()=>ue(ie),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.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:D.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"]}),j.size>0&&d.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.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(ob,{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:ge("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(sb,{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(ob,{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:ge("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(sb,{className:"w-4 h-4"})})]})]})]})}function ns({className:n,...l}){return d.jsx("table",{"data-slot":"table",className:ge("w-full caption-bottom text-sm",n),...l})}function as({className:n,...l}){return d.jsx("thead",{"data-slot":"table-header",className:ge("[&_tr]:border-b",n),...l})}function ls({className:n,...l}){return d.jsx("tbody",{"data-slot":"table-body",className:ge("[&_tr:last-child]:border-0",n),...l})}function Jn({className:n,...l}){return d.jsx("tr",{"data-slot":"table-row",className:ge("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...l})}function Ct({className:n,...l}){return d.jsx("th",{"data-slot":"table-head",className:ge("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 Nt({className:n,...l}){return d.jsx("td",{"data-slot":"table-cell",className:ge("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...l})}function ub(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function rs(...n){return l=>{let r=!1;const i=n.map(s=>{const u=ub(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():ub(n[s],null)}}}}function we(...n){return v.useCallback(rs(...n),n)}function nr(n){const l=vT(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(gT);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 cb=nr("Slot");function vT(n){const l=v.forwardRef((r,i)=>{const{children:s,...u}=r;if(v.isValidElement(s)){const h=bT(s),m=yT(u,s.props);return s.type!==v.Fragment&&(m.ref=i?rs(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 aw=Symbol("radix.slottable");function lw(n){const l=({children:r})=>d.jsx(d.Fragment,{children:r});return l.displayName=`${n}.Slottable`,l.__radixId=aw,l}function gT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===aw}function yT(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 bT(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 rw(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=rw(n[l]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function xT(){for(var n,l,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=rw(n))&&(i&&(i+=" "),i+=l);return i}const db=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,fb=xT,iw=(n,l)=>r=>{var i;if((l==null?void 0:l.variants)==null)return fb(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=db(y)||db(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,...j}=y;return Object.entries(j).every(E=>{let[S,N]=E;return Array.isArray(N)?N.includes({...u,...m}[S]):{...u,...m}[S]===N})?[...g,b,w]:g},[]);return fb(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},wT={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 Ju({className:n,icon:l,variant:r="default",children:i,...s}){return d.jsxs("div",{className:ge("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",wT[r],n),...s,children:[l&&d.jsx("span",{className:"flex-shrink-0",children:l}),d.jsx("span",{className:"leading-none",children:i})]})}const hb=iw("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:ge("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:ge("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:ge("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:ge("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:ge("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:ge("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"}}),ST=["primary","secondary","danger","success","icon"];function vt({className:n,variant:l,size:r,asChild:i=!1,isLoading:s=!1,children:u,disabled:h,...m}){const p=i?cb:"button",g=l&&ST.includes(l);return i?d.jsx(cb,{"data-slot":"button",className:ge(hb({variant:l,size:r,className:n})),...m,children:u}):d.jsxs(p,{"data-slot":"button",className:ge(hb({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(iT,{className:"size-4 animate-spin"}),u]})]})}const ow=({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:ge("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:ge("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")})]})};ow.displayName="TabButton";const jT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function ET({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:ge("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:ge("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",jT[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 CT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=CT.reduce((n,l)=>{const r=nr(`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 Wu(n,l){n&&Io.flushSync(()=>n.dispatchEvent(l))}var et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function NT(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var gt=n=>{const{present:l,children:r}=n,i=_T(l),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),u=we(i.ref,RT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:u}):null};gt.displayName="Presence";function _T(n){const[l,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),u=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=NT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Ou(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=Ou(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=j=>{const E=Ou(i.current).includes(CSS.escape(j.animationName));if(j.target===l&&E&&(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=j=>{j.target===l&&(u.current=Ou(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 Ou(n){return(n==null?void 0:n.animationName)||"none"}function RT(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 TT(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:j,children:E,...S}=b,N=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return d.jsx(N.Provider,{value:_,children:E})};g.displayName=u+"Provider";function y(b,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=v.useContext(E);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,MT(s,...l)]}function MT(...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 AT=v.createContext(void 0);function Ci(n){const l=v.useContext(AT);return n||l||"ltr"}function Fh(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 kT(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var Mm="ScrollArea",[sw,W5]=ft(Mm),[DT,jn]=sw(Mm),uw=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),[j,E]=v.useState(null),[S,N]=v.useState(null),[_,R]=v.useState(0),[T,D]=v.useState(0),[L,X]=v.useState(!1),[q,H]=v.useState(!1),G=we(l,ue=>p(ue)),te=Ci(s);return d.jsx(DT,{scope:r,type:i,dir:te,scrollHideDelay:u,scrollArea:m,viewport:g,onViewportChange:y,content:b,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:X,scrollbarY:S,onScrollbarYChange:N,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:R,onCornerHeightChange:D,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}})})});uw.displayName=Mm;var cw="ScrollAreaViewport",dw=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,children:i,nonce:s,...u}=n,h=jn(cw,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})})]})});dw.displayName=cw;var In="ScrollAreaScrollbar",fw=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=jn(In,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(OT,{...i,ref:l,forceMount:r}):s.type==="scroll"?d.jsx(zT,{...i,ref:l,forceMount:r}):s.type==="auto"?d.jsx(hw,{...i,ref:l,forceMount:r}):s.type==="always"?d.jsx(Am,{...i,ref:l}):null});fw.displayName=In;var OT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=jn(In,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(gt,{present:r||u,children:d.jsx(hw,{"data-state":u?"visible":"hidden",...i,ref:l})})}),zT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=jn(In,n.__scopeScrollArea),u=n.orientation==="horizontal",h=bc(()=>p("SCROLL_END"),100),[m,p]=kT("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 j=g[y];b!==j&&(p("SCROLL"),h()),b=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,u,p,h]),d.jsx(gt,{present:r||m!=="hidden",children:d.jsx(Am,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:l,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),hw=v.forwardRef((n,l)=>{const r=jn(In,n.__scopeScrollArea),{forceMount:i,...s}=n,[u,h]=v.useState(!1),m=n.orientation==="horizontal",p=bc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return vi(r.viewport,p),vi(r.content,p),d.jsx(gt,{present:i||u,children:d.jsx(Am,{"data-state":u?"visible":"hidden",...s,ref:l})})}),Am=v.forwardRef((n,l)=>{const{orientation:r="vertical",...i}=n,s=jn(In,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=yw(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,j){return QT(w,h.current,m,j)}return r==="horizontal"?d.jsx(LT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollLeft,j=mb(w,m,s.dir);u.current.style.transform=`translate3d(${j}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(UT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollTop,j=mb(w,m);u.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=b(w))}}):null}),LT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,u=jn(In,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(pw,{"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":yc(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),xw(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:ec(h.paddingLeft),paddingEnd:ec(h.paddingRight)}})}})}),UT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,u=jn(In,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(pw,{"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":yc(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),xw(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:ec(h.paddingTop),paddingEnd:ec(h.paddingBottom)}})}})}),[HT,mw]=sw(In),pw=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,j=jn(In,r),[E,S]=v.useState(null),N=we(l,G=>S(G)),_=v.useRef(null),R=v.useRef(""),T=j.viewport,D=i.content-i.viewport,L=We(y),X=We(p),q=bc(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;E!=null&&E.contains(ue)&&L(te,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,E,D,L]),v.useEffect(X,[i,X]),vi(E,q),vi(j.content,q),d.jsx(HT,{scope:r,scrollbar:E,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=E.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.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,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),Iu="ScrollAreaThumb",vw=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=mw(Iu,n.__scopeScrollArea);return d.jsx(gt,{present:r||s.hasThumb,children:d.jsx(qT,{ref:l,...i})})}),qT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,style:i,...s}=n,u=jn(Iu,r),h=mw(Iu,r),{onThumbPositionChange:m}=h,p=we(l,b=>h.onThumbChange(b)),g=v.useRef(void 0),y=bc(()=>{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 j=YT(b,m);g.current=j,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(),j=b.clientX-w.left,E=b.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});vw.displayName=Iu;var km="ScrollAreaCorner",gw=v.forwardRef((n,l)=>{const r=jn(km,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?d.jsx(BT,{...n,ref:l}):null});gw.displayName=km;var BT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,...i}=n,s=jn(km,r),[u,h]=v.useState(0),[m,p]=v.useState(0),g=!!(u&&m);return vi(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),vi(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 ec(n){return n?parseInt(n,10):0}function yw(n,l){const r=n/l;return isNaN(r)?0:r}function yc(n){const l=yw(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*l;return Math.max(i,18)}function QT(n,l,r,i="ltr"){const s=yc(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 bw([p,g],b)(n)}function mb(n,l,r="ltr"){const i=yc(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=Fh(n,p);return bw([0,h],[0,m])(g)}function bw(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 xw(n,l){return n>0&&n<l}var YT=(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 bc(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 vi(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 GT=uw,VT=dw,KT=gw;function ww({className:n,children:l,...r}){return d.jsxs(GT,{"data-slot":"scroll-area",className:ge("relative",n),...r,children:[d.jsx(VT,{"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(XT,{}),d.jsx(KT,{})]})}function XT({className:n,orientation:l="vertical",...r}){return d.jsx(fw,{"data-slot":"scroll-area-scrollbar",orientation:l,className:ge("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(vw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var $T=vx[" useInsertionEffect ".trim().toString()]||et;function ea({prop:n,defaultProp:l,onChange:r=()=>{},caller:i}){const[s,u,h]=ZT({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=FT(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 ZT({defaultProp:n,onChange:l}){const[r,i]=v.useState(n),s=v.useRef(r),u=v.useRef(l);return $T(()=>{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 FT(n){return typeof n=="function"}function Ni(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=rt.useRef(null),T=rt.useRef(new Map).current;return d.jsx(s,{scope:N,itemMap:T,collectionRef:R,children:_})};h.displayName=l;const m=n+"CollectionSlot",p=nr(m),g=rt.forwardRef((S,N)=>{const{scope:_,children:R}=S,T=u(m,_),D=we(N,T.collectionRef);return d.jsx(p,{ref:D,children:R})});g.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=nr(y),j=rt.forwardRef((S,N)=>{const{scope:_,children:R,...T}=S,D=rt.useRef(null),L=we(N,D),X=u(y,_);return rt.useEffect(()=>(X.itemMap.set(D,{ref:D,...T}),()=>void X.itemMap.delete(D))),d.jsx(w,{[b]:"",ref:L,children:R})});j.displayName=y;function E(S){const N=u(n+"CollectionConsumer",S);return rt.useCallback(()=>{const _=N.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((T,D)=>R.indexOf(T.ref.current)-R.indexOf(D.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},E,i]}function PT(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 JT="DismissableLayer",Ph="dismissableLayer.update",WT="dismissableLayer.pointerDownOutside",IT="dismissableLayer.focusOutside",pb,Sw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_i=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(Sw),[y,b]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=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,D=R>=_,L=nM(q=>{const H=q.target,G=[...g.branches].some(te=>te.contains(H));!D||G||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),X=aM(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 PT(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&&(pb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),vb(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=pb)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),vb())},[y,g]),v.useEffect(()=>{const q=()=>j({});return document.addEventListener(Ph,q),()=>document.removeEventListener(Ph,q)},[]),d.jsx(oe.div,{...p,ref:E,style:{pointerEvents:T?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,X.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});_i.displayName=JT;var eM="DismissableLayerBranch",tM=v.forwardRef((n,l)=>{const r=v.useContext(Sw),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})});tM.displayName=eM;function nM(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(){jw(WT,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 aM(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&&jw(IT,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 vb(){const n=new CustomEvent(Ph);document.dispatchEvent(n)}function jw(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?Wu(s,u):s.dispatchEvent(u)}var gh=0;function Dm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??gb()),document.body.insertAdjacentElement("beforeend",n[1]??gb()),gh++,()=>{gh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),gh--}},[])}function gb(){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 yh="focusScope.autoFocusOnMount",bh="focusScope.autoFocusOnUnmount",yb={bubbles:!1,cancelable:!0},lM="FocusScope",xc=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)),j=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const D=T.target;m.contains(D)?b.current=D:sl(b.current,{select:!0})},N=function(T){if(j.paused||!m)return;const D=T.relatedTarget;D!==null&&(m.contains(D)||sl(b.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const D of T)D.removedNodes.length>0&&sl(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,j.paused]),v.useEffect(()=>{if(m){xb.add(j);const S=document.activeElement;if(!m.contains(S)){const N=new CustomEvent(yh,yb);m.addEventListener(yh,g),m.dispatchEvent(N),N.defaultPrevented||(rM(cM(Ew(m)),{select:!0}),document.activeElement===S&&sl(m))}return()=>{m.removeEventListener(yh,g),setTimeout(()=>{const N=new CustomEvent(bh,yb);m.addEventListener(bh,y),m.dispatchEvent(N),N.defaultPrevented||sl(S??document.body,{select:!0}),m.removeEventListener(bh,y),xb.remove(j)},0)}}},[m,g,y,j]);const E=v.useCallback(S=>{if(!r&&!i||j.paused)return;const N=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(N&&_){const R=S.currentTarget,[T,D]=iM(R);T&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&sl(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&sl(D,{select:!0})):_===R&&S.preventDefault()}},[r,i,j.paused]);return d.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});xc.displayName=lM;function rM(n,{select:l=!1}={}){const r=document.activeElement;for(const i of n)if(sl(i,{select:l}),document.activeElement!==r)return}function iM(n){const l=Ew(n),r=bb(l,n),i=bb(l.reverse(),n);return[r,i]}function Ew(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 bb(n,l){for(const r of n)if(!oM(r,{upTo:l}))return r}function oM(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 sM(n){return n instanceof HTMLInputElement&&"select"in n}function sl(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&sM(n)&&l&&n.select()}}var xb=uM();function uM(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=wb(n,l),n.unshift(l)},remove(l){var r;n=wb(n,l),(r=n[0])==null||r.resume()}}}function wb(n,l){const r=[...n],i=r.indexOf(l);return i!==-1&&r.splice(i,1),r}function cM(n){return n.filter(l=>l.tagName!=="A")}var dM=vx[" useId ".trim().toString()]||(()=>{}),fM=0;function Sl(n){const[l,r]=v.useState(dM());return et(()=>{r(i=>i??String(fM++))},[n]),l?`radix-${l}`:""}const hM=["top","right","bottom","left"],xl=Math.min,an=Math.max,tc=Math.round,zu=Math.floor,Pn=n=>({x:n,y:n}),mM={left:"right",right:"left",bottom:"top",top:"bottom"},pM={start:"end",end:"start"};function Jh(n,l,r){return an(n,xl(l,r))}function Ma(n,l){return typeof n=="function"?n(l):n}function Aa(n){return n.split("-")[0]}function Ri(n){return n.split("-")[1]}function Om(n){return n==="x"?"y":"x"}function zm(n){return n==="y"?"height":"width"}const vM=new Set(["top","bottom"]);function Zn(n){return vM.has(Aa(n))?"y":"x"}function Lm(n){return Om(Zn(n))}function gM(n,l,r){r===void 0&&(r=!1);const i=Ri(n),s=Lm(n),u=zm(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[u]>l.floating[u]&&(h=nc(h)),[h,nc(h)]}function yM(n){const l=nc(n);return[Wh(n),l,Wh(l)]}function Wh(n){return n.replace(/start|end/g,l=>pM[l])}const Sb=["left","right"],jb=["right","left"],bM=["top","bottom"],xM=["bottom","top"];function wM(n,l,r){switch(n){case"top":case"bottom":return r?l?jb:Sb:l?Sb:jb;case"left":case"right":return l?bM:xM;default:return[]}}function SM(n,l,r,i){const s=Ri(n);let u=wM(Aa(n),r==="start",i);return s&&(u=u.map(h=>h+"-"+s),l&&(u=u.concat(u.map(Wh)))),u}function nc(n){return n.replace(/left|right|bottom|top/g,l=>mM[l])}function jM(n){return{top:0,right:0,bottom:0,left:0,...n}}function Cw(n){return typeof n!="number"?jM(n):{top:n,right:n,bottom:n,left:n}}function ac(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 Eb(n,l,r){let{reference:i,floating:s}=n;const u=Zn(l),h=Lm(l),m=zm(h),p=Aa(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 j;switch(p){case"top":j={x:y,y:i.y-s.height};break;case"bottom":j={x:y,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y:b};break;case"left":j={x:i.x-s.width,y:b};break;default:j={x:i.x,y:i.y}}switch(Ri(l)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const EM=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}=Eb(g,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:N,fn:_}=m[S],{x:R,y:T,data:D,reset:L}=await _({x:y,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:l}});y=R??y,b=T??b,j={...j,[N]:{...j[N],...D}},L&&E<=50&&(E++,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}=Eb(g,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:j}};async function Yo(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:j=0}=Ma(l,n),E=Cw(j),S=m[w?b==="floating"?"reference":"floating":b],N=ac(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},D=ac(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:R,strategy:p}):_);return{top:(N.top-D.top+E.top)/T.y,bottom:(D.bottom-N.bottom+E.bottom)/T.y,left:(N.left-D.left+E.left)/T.x,right:(D.right-N.right+E.right)/T.x}}const CM=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}=Ma(n,l)||{};if(g==null)return{};const b=Cw(y),w={x:r,y:i},j=Lm(s),E=zm(j),S=await h.getDimensions(g),N=j==="y",_=N?"top":"left",R=N?"bottom":"right",T=N?"clientHeight":"clientWidth",D=u.reference[E]+u.reference[j]-w[j]-u.floating[E],L=w[j]-u.reference[j],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[E]);const H=D/2-L/2,G=q/2-S[E]/2-1,te=xl(b[_],G),ue=xl(b[R],G),ce=te,I=q-S[E]-ue,ie=q/2-S[E]/2+H,re=Jh(ce,ie,I),U=!p.arrow&&Ri(s)!=null&&ie!==re&&u.reference[E]/2-(ie<ce?te:ue)-S[E]/2<0,W=U?ie<ce?ie-ce:ie-I:0;return{[j]:w[j]+W,data:{[j]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),NM=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:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...N}=Ma(n,l);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Aa(s),R=Zn(m),T=Aa(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[nc(m)]:yM(m)),X=E!=="none";!w&&X&&L.push(...SM(m,S,E,D));const q=[m,...L],H=await Yo(l,N),G=[];let te=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[_]),b){const ie=gM(s,h,D);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!==Zn(re))||te.every(W=>Zn(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(j){case"bestFit":{var I;const W=(I=te.filter(V=>{if(X){const $=Zn(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 Cb(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Nb(n){return hM.some(l=>n[l]>=0)}const _M=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r}=l,{strategy:i="referenceHidden",...s}=Ma(n,l);switch(i){case"referenceHidden":{const u=await Yo(l,{...s,elementContext:"reference"}),h=Cb(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Nb(h)}}}case"escaped":{const u=await Yo(l,{...s,altBoundary:!0}),h=Cb(u,r.floating);return{data:{escapedOffsets:h,escaped:Nb(h)}}}default:return{}}}}},Nw=new Set(["left","top"]);async function RM(n,l){const{placement:r,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Aa(r),m=Ri(r),p=Zn(r)==="y",g=Nw.has(h)?-1:1,y=u&&p?-1:1,b=Ma(l,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof E=="number"&&(j=m==="end"?E*-1:E),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const TM=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 RM(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}}}}},MM=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}=Ma(n,l),g={x:r,y:i},y=await Yo(l,p),b=Zn(Aa(s)),w=Om(b);let j=g[w],E=g[b];if(u){const N=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=j+y[N],T=j-y[_];j=Jh(R,j,T)}if(h){const N=b==="y"?"top":"left",_=b==="y"?"bottom":"right",R=E+y[N],T=E-y[_];E=Jh(R,E,T)}const S=m.fn({...l,[w]:j,[b]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:u,[b]:h}}}}}},AM=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}=Ma(n,l),y={x:r,y:i},b=Zn(s),w=Om(b);let j=y[w],E=y[b];const S=Ma(m,l),N=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",D=u.reference[w]-u.floating[T]+N.mainAxis,L=u.reference[w]+u.reference[T]-N.mainAxis;j<D?j=D:j>L&&(j=L)}if(g){var _,R;const T=w==="y"?"width":"height",D=Nw.has(Aa(s)),L=u.reference[b]-u.floating[T]+(D&&((_=h.offset)==null?void 0:_[b])||0)+(D?0:N.crossAxis),X=u.reference[b]+u.reference[T]+(D?0:((R=h.offset)==null?void 0:R[b])||0)-(D?N.crossAxis:0);E<L?E=L:E>X&&(E=X)}return{[w]:j,[b]:E}}}},kM=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}=Ma(n,l),y=await Yo(l,g),b=Aa(s),w=Ri(s),j=Zn(s)==="y",{width:E,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=E-y.left-y.right,D=xl(S-y[N],R),L=xl(E-y[_],T),X=!l.middlewareData.shift;let q=D,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);j?H=E-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 E!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function wc(){return typeof window<"u"}function Ti(n){return _w(n)?(n.nodeName||"").toLowerCase():"#document"}function on(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function ta(n){var l;return(l=(_w(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function _w(n){return wc()?n instanceof Node||n instanceof on(n).Node:!1}function Dn(n){return wc()?n instanceof Element||n instanceof on(n).Element:!1}function Wn(n){return wc()?n instanceof HTMLElement||n instanceof on(n).HTMLElement:!1}function _b(n){return!wc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof on(n).ShadowRoot}const DM=new Set(["inline","contents"]);function is(n){const{overflow:l,overflowX:r,overflowY:i,display:s}=On(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+r)&&!DM.has(s)}const OM=new Set(["table","td","th"]);function zM(n){return OM.has(Ti(n))}const LM=[":popover-open",":modal"];function Sc(n){return LM.some(l=>{try{return n.matches(l)}catch{return!1}})}const UM=["transform","translate","scale","rotate","perspective"],HM=["transform","translate","scale","rotate","perspective","filter"],qM=["paint","layout","strict","content"];function Um(n){const l=Hm(),r=Dn(n)?On(n):n;return UM.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)||HM.some(i=>(r.willChange||"").includes(i))||qM.some(i=>(r.contain||"").includes(i))}function BM(n){let l=wl(n);for(;Wn(l)&&!gi(l);){if(Um(l))return l;if(Sc(l))return null;l=wl(l)}return null}function Hm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QM=new Set(["html","body","#document"]);function gi(n){return QM.has(Ti(n))}function On(n){return on(n).getComputedStyle(n)}function jc(n){return Dn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function wl(n){if(Ti(n)==="html")return n;const l=n.assignedSlot||n.parentNode||_b(n)&&n.host||ta(n);return _b(l)?l.host:l}function Rw(n){const l=wl(n);return gi(l)?n.ownerDocument?n.ownerDocument.body:n.body:Wn(l)&&is(l)?l:Rw(l)}function Go(n,l,r){var i;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=Rw(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),h=on(s);if(u){const m=Ih(h);return l.concat(h,h.visualViewport||[],is(s)?s:[],m&&r?Go(m):[])}return l.concat(s,Go(s,[],r))}function Ih(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Tw(n){const l=On(n);let r=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const s=Wn(n),u=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=tc(r)!==u||tc(i)!==h;return m&&(r=u,i=h),{width:r,height:i,$:m}}function qm(n){return Dn(n)?n:n.contextElement}function ei(n){const l=qm(n);if(!Wn(l))return Pn(1);const r=l.getBoundingClientRect(),{width:i,height:s,$:u}=Tw(l);let h=(u?tc(r.width):r.width)/i,m=(u?tc(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const YM=Pn(0);function Mw(n){const l=on(n);return!Hm()||!l.visualViewport?YM:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function GM(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==on(n)?!1:l}function ar(n,l,r,i){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=qm(n);let h=Pn(1);l&&(i?Dn(i)&&(h=ei(i)):h=ei(n));const m=GM(u,r,i)?Mw(u):Pn(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=on(u),j=i&&Dn(i)?on(i):i;let E=w,S=Ih(E);for(;S&&i&&j!==E;){const N=ei(S),_=S.getBoundingClientRect(),R=On(S),T=_.left+(S.clientLeft+parseFloat(R.paddingLeft))*N.x,D=_.top+(S.clientTop+parseFloat(R.paddingTop))*N.y;p*=N.x,g*=N.y,y*=N.x,b*=N.y,p+=T,g+=D,E=on(S),S=Ih(E)}}return ac({width:y,height:b,x:p,y:g})}function Ec(n,l){const r=jc(n).scrollLeft;return l?l.left+r:ar(ta(n)).left+r}function Aw(n,l){const r=n.getBoundingClientRect(),i=r.left+l.scrollLeft-Ec(n,r),s=r.top+l.scrollTop;return{x:i,y:s}}function VM(n){let{elements:l,rect:r,offsetParent:i,strategy:s}=n;const u=s==="fixed",h=ta(i),m=l?Sc(l.floating):!1;if(i===h||m&&u)return r;let p={scrollLeft:0,scrollTop:0},g=Pn(1);const y=Pn(0),b=Wn(i);if((b||!b&&!u)&&((Ti(i)!=="body"||is(h))&&(p=jc(i)),Wn(i))){const j=ar(i);g=ei(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!b&&!u?Aw(h,p):Pn(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 KM(n){return Array.from(n.getClientRects())}function XM(n){const l=ta(n),r=jc(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+Ec(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 Rb=25;function $M(n,l){const r=on(n),i=ta(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=Hm();(!y||y&&l==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=Ec(i);if(g<=0){const y=i.ownerDocument,b=y.body,w=getComputedStyle(b),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-b.clientWidth-j);E<=Rb&&(u-=E)}else g<=Rb&&(u+=g);return{width:u,height:h,x:m,y:p}}const ZM=new Set(["absolute","fixed"]);function FM(n,l){const r=ar(n,!0,l==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,u=Wn(n)?ei(n):Pn(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 Tb(n,l,r){let i;if(l==="viewport")i=$M(n,r);else if(l==="document")i=XM(ta(n));else if(Dn(l))i=FM(l,r);else{const s=Mw(n);i={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return ac(i)}function kw(n,l){const r=wl(n);return r===l||!Dn(r)||gi(r)?!1:On(r).position==="fixed"||kw(r,l)}function PM(n,l){const r=l.get(n);if(r)return r;let i=Go(n,[],!1).filter(m=>Dn(m)&&Ti(m)!=="body"),s=null;const u=On(n).position==="fixed";let h=u?wl(n):n;for(;Dn(h)&&!gi(h);){const m=On(h),p=Um(h);!p&&m.position==="fixed"&&(s=null),(u?!p&&!s:!p&&m.position==="static"&&s&&ZM.has(s.position)||is(h)&&!p&&kw(n,h))?i=i.filter(g=>g!==h):s=m,h=wl(h)}return l.set(n,i),i}function JM(n){let{element:l,boundary:r,rootBoundary:i,strategy:s}=n;const u=[...r==="clippingAncestors"?Sc(l)?[]:PM(l,this._c):[].concat(r),i],h=u[0],m=u.reduce((p,g)=>{const y=Tb(l,g,s);return p.top=an(y.top,p.top),p.right=xl(y.right,p.right),p.bottom=xl(y.bottom,p.bottom),p.left=an(y.left,p.left),p},Tb(l,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function WM(n){const{width:l,height:r}=Tw(n);return{width:l,height:r}}function IM(n,l,r){const i=Wn(l),s=ta(l),u=r==="fixed",h=ar(n,!0,u,l);let m={scrollLeft:0,scrollTop:0};const p=Pn(0);function g(){p.x=Ec(s)}if(i||!i&&!u)if((Ti(l)!=="body"||is(s))&&(m=jc(l)),i){const j=ar(l,!0,u,l);p.x=j.x+l.clientLeft,p.y=j.y+l.clientTop}else s&&g();u&&!i&&s&&g();const y=s&&!i&&!u?Aw(s,m):Pn(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 xh(n){return On(n).position==="static"}function Mb(n,l){if(!Wn(n)||On(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return ta(n)===r&&(r=r.ownerDocument.body),r}function Dw(n,l){const r=on(n);if(Sc(n))return r;if(!Wn(n)){let s=wl(n);for(;s&&!gi(s);){if(Dn(s)&&!xh(s))return s;s=wl(s)}return r}let i=Mb(n,l);for(;i&&zM(i)&&xh(i);)i=Mb(i,l);return i&&gi(i)&&xh(i)&&!Um(i)?r:i||BM(n)||r}const eA=async function(n){const l=this.getOffsetParent||Dw,r=this.getDimensions,i=await r(n.floating);return{reference:IM(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tA(n){return On(n).direction==="rtl"}const nA={convertOffsetParentRelativeRectToViewportRelativeRect:VM,getDocumentElement:ta,getClippingRect:JM,getOffsetParent:Dw,getElementRects:eA,getClientRects:KM,getDimensions:WM,getScale:ei,isElement:Dn,isRTL:tA};function Ow(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function aA(n,l){let r=null,i;const s=ta(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:j}=g;if(m||l(),!w||!j)return;const E=zu(b),S=zu(s.clientWidth-(y+w)),N=zu(s.clientHeight-(b+j)),_=zu(y),R={rootMargin:-E+"px "+-S+"px "+-N+"px "+-_+"px",threshold:an(0,xl(1,p))||1};let T=!0;function D(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&&!Ow(g,n.getBoundingClientRect())&&h(),T=!1}try{r=new IntersectionObserver(D,{...R,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,R)}r.observe(n)}return h(!0),u}function lA(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=qm(n),y=s||u?[...g?Go(g):[],...Go(l)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const b=g&&m?aA(g,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(_=>{let[R]=_;R&&R.target===g&&j&&(j.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(l)})),r()}),g&&!p&&j.observe(g),j.observe(l));let E,S=p?ar(n):null;p&&N();function N(){const _=ar(n);S&&!Ow(S,_)&&r(),S=_,E=requestAnimationFrame(N)}return r(),()=>{var _;y.forEach(R=>{s&&R.removeEventListener("scroll",r),u&&R.removeEventListener("resize",r)}),b==null||b(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const rA=TM,iA=MM,oA=NM,sA=kM,uA=_M,Ab=CM,cA=AM,dA=(n,l,r)=>{const i=new Map,s={platform:nA,...r},u={...s.platform,_c:i};return EM(n,l,{...s,platform:u})};var fA=typeof document<"u",hA=function(){},Gu=fA?v.useLayoutEffect:hA;function lc(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(!lc(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)&&!lc(n[u],l[u]))return!1}return!0}return n!==n&&l!==l}function zw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function kb(n,l){const r=zw(n);return Math.round(l*r)/r}function wh(n){const l=v.useRef(n);return Gu(()=>{l.current=n}),l}function mA(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,j]=v.useState(i);lc(w,i)||j(i);const[E,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))},[]),D=u||E,L=h||N,X=v.useRef(null),q=v.useRef(null),H=v.useRef(y),G=p!=null,te=wh(p),ue=wh(s),ce=wh(g),I=v.useCallback(()=>{if(!X.current||!q.current)return;const V={placement:l,strategy:r,middleware:w};ue.current&&(V.platform=ue.current),dA(X.current,q.current,V).then($=>{const de={...$,isPositioned:ce.current!==!1};ie.current&&!lc(H.current,de)&&(H.current=de,Io.flushSync(()=>{b(de)}))})},[w,l,r,ue,ce]);Gu(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Gu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Gu(()=>{if(D&&(X.current=D),L&&(q.current=L),D&&L){if(te.current)return te.current(D,L,I);I()}},[D,L,I,te,G]);const re=v.useMemo(()=>({reference:X,floating:q,setReference:R,setFloating:T}),[R,T]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),W=v.useMemo(()=>{const V={position:r,left:0,top:0};if(!U.floating)return V;const $=kb(U.floating,y.x),de=kb(U.floating,y.y);return m?{...V,transform:"translate("+$+"px, "+de+"px)",...zw(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 pA=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?Ab({element:i.current,padding:s}).fn(r):{}:i?Ab({element:i,padding:s}).fn(r):{}}}},vA=(n,l)=>({...rA(n),options:[n,l]}),gA=(n,l)=>({...iA(n),options:[n,l]}),yA=(n,l)=>({...cA(n),options:[n,l]}),bA=(n,l)=>({...oA(n),options:[n,l]}),xA=(n,l)=>({...sA(n),options:[n,l]}),wA=(n,l)=>({...uA(n),options:[n,l]}),SA=(n,l)=>({...pA(n),options:[n,l]});var jA="Arrow",Lw=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"})})});Lw.displayName=jA;var EA=Lw;function Cc(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 Uw="Popper",[Hw,Mi]=ft(Uw),[I5,qw]=Hw(Uw),Bw="PopperAnchor",Qw=v.forwardRef((n,l)=>{const{__scopePopper:r,virtualRef:i,...s}=n,u=qw(Bw,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=Bw;var Bm="PopperContent",[CA,NA]=Hw(Bm),Yw=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:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:N=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:D,...L}=n,X=qw(Bm,p),[q,H]=v.useState(null),G=we(l,_t=>H(_t)),[te,ue]=v.useState(null),ce=Cc(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(RA),altBoundary:V},{refs:de,floatingStyles:A,placement:Z,isPositioned:ee,middlewareData:le}=mA({strategy:"fixed",placement:re,whileElementsMounted:(..._t)=>lA(..._t,{animationFrame:T==="always"}),elements:{reference:X.anchor},middleware:[vA({mainAxis:y+ie,alignmentAxis:w}),E&&gA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?yA():void 0,...$}),E&&bA({...$}),xA({...$,apply:({elements:_t,rects:Xt,availableWidth:aa,availableHeight:la})=>{const{width:Yc,height:ds}=Xt.reference,Da=_t.floating.style;Da.setProperty("--radix-popper-available-width",`${aa}px`),Da.setProperty("--radix-popper-available-height",`${la}px`),Da.setProperty("--radix-popper-anchor-width",`${Yc}px`),Da.setProperty("--radix-popper-anchor-height",`${ds}px`)}}),te&&SA({element:te,padding:j}),TA({arrowWidth:I,arrowHeight:ie}),R&&wA({strategy:"referenceHidden",...$})]}),[pe,je]=Kw(Z),ne=We(D);et(()=>{ee&&(ne==null||ne())},[ee,ne]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(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(CA,{scope:p,placedSide:pe,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ce,children:d.jsx(oe.div,{"data-side":pe,"data-align":je,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});Yw.displayName=Bm;var Gw="PopperArrow",_A={top:"bottom",right:"left",bottom:"top",left:"right"},Vw=v.forwardRef(function(n,l){const{__scopePopper:r,...i}=n,s=NA(Gw,r),u=_A[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(EA,{...i,ref:l,style:{...i.style,display:"block"}})})});Vw.displayName=Gw;function RA(n){return n!==null}var TA=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]=Kw(u),j={start:"0%",center:"50%",end:"100%"}[w],E=(((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?j:`${E}px`,_=`${-y}px`):b==="top"?(N=p?j:`${E}px`,_=`${h.floating.height+y}px`):b==="right"?(N=`${-y}px`,_=p?j:`${S}px`):b==="left"&&(N=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:N,y:_}}}});function Kw(n){const[l,r="center"]=n.split("-");return[l,r]}var Qm=Qw,Ym=Yw,Gm=Vw,MA="Portal",AA=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?Lx.createPortal(d.jsx(oe.div,{...s,ref:l}),m):null});AA.displayName=MA;var Sh="rovingFocusGroup.onEntryFocus",kA={bubbles:!1,cancelable:!0},os="RovingFocusGroup",[em,Xw,DA]=Ni(os),[OA,Ai]=ft(os,[DA]),[zA,LA]=OA(os),$w=v.forwardRef((n,l)=>d.jsx(em.Provider,{scope:n.__scopeRovingFocusGroup,children:d.jsx(em.Slot,{scope:n.__scopeRovingFocusGroup,children:d.jsx(UA,{...n,ref:l})})}));$w.displayName=os;var UA=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),j=we(l,w),E=Ci(u),[S,N]=ea({prop:h,defaultProp:m??null,onChange:p,caller:os}),[_,R]=v.useState(!1),T=We(g),D=Xw(r),L=v.useRef(!1),[X,q]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Sh,T),()=>H.removeEventListener(Sh,T)},[T]),d.jsx(zA,{scope:r,orientation:i,dir:E,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:j,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(Sh,kA);if(H.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=D().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);Pw(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>R(!1))})})}),Zw="RovingFocusGroupItem",Fw=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:u,children:h,...m}=n,p=Sl(),g=u||p,y=LA(Zw,r),b=y.currentTabStopId===g,w=Xw(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),d.jsx(em.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 _=BA(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?QA(R,T+1):R.slice(T+1)}setTimeout(()=>Pw(R))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:S!=null}):h})})});Fw.displayName=Zw;var HA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function BA(n,l,r){const i=qA(n.key,r);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return HA[i]}function Pw(n,l=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:l}),document.activeElement!==r))return}function QA(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var Vm=$w,Km=Fw,YA=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Fr=new WeakMap,Lu=new WeakMap,Uu={},jh=0,Jw=function(n){return n&&(n.host||Jw(n.parentNode))},GA=function(n,l){return l.map(function(r){if(n.contains(r))return r;var i=Jw(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})},VA=function(n,l,r,i){var s=GA(l,Array.isArray(n)?n:[n]);Uu[r]||(Uu[r]=new WeakMap);var u=Uu[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 j=w.getAttribute(i),E=j!==null&&j!=="false",S=(Fr.get(w)||0)+1,N=(u.get(w)||0)+1;Fr.set(w,S),u.set(w,N),h.push(w),S===1&&E&&Lu.set(w,!0),N===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(l),m.clear(),jh++,function(){h.forEach(function(b){var w=Fr.get(b)-1,j=u.get(b)-1;Fr.set(b,w),u.set(b,j),w||(Lu.has(b)||b.removeAttribute(i),Lu.delete(b)),j||b.removeAttribute(r)}),jh--,jh||(Fr=new WeakMap,Fr=new WeakMap,Lu=new WeakMap,Uu={})}},Xm=function(n,l,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=YA(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),VA(i,s,r,"aria-hidden")):function(){return null}},$n=function(){return $n=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},$n.apply(this,arguments)};function Ww(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 KA(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 Vu="right-scroll-bar-position",Ku="width-before-scroll-bar",XA="with-scroll-bars-hidden",$A="--removed-body-scroll-bar-size";function Eh(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function ZA(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 FA=typeof window<"u"?v.useLayoutEffect:v.useEffect,Db=new WeakMap;function PA(n,l){var r=ZA(null,function(i){return n.forEach(function(s){return Eh(s,i)})});return FA(function(){var i=Db.get(r);if(i){var s=new Set(i),u=new Set(n),h=r.current;s.forEach(function(m){u.has(m)||Eh(m,null)}),u.forEach(function(m){s.has(m)||Eh(m,h)})}Db.set(r,n)},[n]),r}function JA(n){return n}function WA(n,l){l===void 0&&(l=JA);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 IA(n){n===void 0&&(n={});var l=WA(null);return l.options=$n({async:!0,ssr:!1},n),l}var Iw=function(n){var l=n.sideCar,r=Ww(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,$n({},r))};Iw.isSideCarExport=!0;function ek(n,l){return n.useMedium(l),Iw}var e1=IA(),Ch=function(){},Nc=v.forwardRef(function(n,l){var r=v.useRef(null),i=v.useState({onScrollCapture:Ch,onWheelCapture:Ch,onTouchMoveCapture:Ch}),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,j=n.noRelative,E=n.noIsolation,S=n.inert,N=n.allowPinchZoom,_=n.as,R=_===void 0?"div":_,T=n.gapMode,D=Ww(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,X=PA([r,l]),q=$n($n({},D),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:e1,removeScrollBar:g,shards:b,noRelative:j,noIsolation:E,inert:S,setCallbacks:u,allowPinchZoom:!!N,lockRef:r,gapMode:T}),h?v.cloneElement(v.Children.only(m),$n($n({},q),{ref:X})):v.createElement(R,$n({},q,{className:p,ref:X}),m))});Nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nc.classNames={fullWidth:Ku,zeroRight:Vu};var tk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function nk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=tk();return l&&n.setAttribute("nonce",l),n}function ak(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function lk(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var rk=function(){var n=0,l=null;return{add:function(r){n==0&&(l=nk())&&(ak(l,r),lk(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},ik=function(){var n=rk();return function(l,r){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},t1=function(){var n=ik(),l=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return l},ok={left:0,top:0,right:0,gap:0},Nh=function(n){return parseInt(n||"",10)||0},sk=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[Nh(r),Nh(i),Nh(s)]},uk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ok;var l=sk(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])}},ck=t1(),ti="data-scroll-locked",dk=function(n,l,r,i){var s=n.left,u=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
262
+ .`.concat(XA,` {
263
+ overflow: hidden `).concat(i,`;
264
+ padding-right: `).concat(m,"px ").concat(i,`;
265
+ }
266
+ body[`).concat(ti,`] {
267
+ overflow: hidden `).concat(i,`;
268
+ overscroll-behavior: contain;
269
+ `).concat([l&&"position: relative ".concat(i,";"),r==="margin"&&`
270
+ padding-left: `.concat(s,`px;
271
+ padding-top: `).concat(u,`px;
272
+ padding-right: `).concat(h,`px;
273
+ margin-left:0;
274
+ margin-top:0;
275
+ margin-right: `).concat(m,"px ").concat(i,`;
276
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
277
+ }
278
+
279
+ .`).concat(Vu,` {
280
+ right: `).concat(m,"px ").concat(i,`;
281
+ }
282
+
283
+ .`).concat(Ku,` {
284
+ margin-right: `).concat(m,"px ").concat(i,`;
285
+ }
286
+
287
+ .`).concat(Vu," .").concat(Vu,` {
288
+ right: 0 `).concat(i,`;
289
+ }
290
+
291
+ .`).concat(Ku," .").concat(Ku,` {
292
+ margin-right: 0 `).concat(i,`;
293
+ }
294
+
295
+ body[`).concat(ti,`] {
296
+ `).concat($A,": ").concat(m,`px;
297
+ }
298
+ `)},Ob=function(){var n=parseInt(document.body.getAttribute(ti)||"0",10);return isFinite(n)?n:0},fk=function(){v.useEffect(function(){return document.body.setAttribute(ti,(Ob()+1).toString()),function(){var n=Ob()-1;n<=0?document.body.removeAttribute(ti):document.body.setAttribute(ti,n.toString())}},[])},hk=function(n){var l=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;fk();var u=v.useMemo(function(){return uk(s)},[s]);return v.createElement(ck,{styles:dk(u,!l,s,r?"":"!important")})},tm=!1;if(typeof window<"u")try{var Hu=Object.defineProperty({},"passive",{get:function(){return tm=!0,!0}});window.addEventListener("test",Hu,Hu),window.removeEventListener("test",Hu,Hu)}catch{tm=!1}var Pr=tm?{passive:!1}:!1,mk=function(n){return n.tagName==="TEXTAREA"},n1=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!mk(n)&&r[l]==="visible")},pk=function(n){return n1(n,"overflowY")},vk=function(n){return n1(n,"overflowX")},zb=function(n,l){var r=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=a1(n,i);if(s){var u=l1(n,i),h=u[1],m=u[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},gk=function(n){var l=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[l,r,i]},yk=function(n){var l=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[l,r,i]},a1=function(n,l){return n==="v"?pk(l):vk(l)},l1=function(n,l){return n==="v"?gk(l):yk(l)},bk=function(n,l){return n==="h"&&l==="rtl"?-1:1},xk=function(n,l,r,i,s){var u=bk(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 j=l1(n,m),E=j[0],S=j[1],N=j[2],_=S-N-u*E;(E||_)&&a1(n,m)&&(b+=_,w+=E);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},qu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Lb=function(n){return[n.deltaX,n.deltaY]},Ub=function(n){return n&&"current"in n?n.current:n},wk=function(n,l){return n[0]===l[0]&&n[1]===l[1]},Sk=function(n){return`
299
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
300
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
301
+ `)},jk=0,Jr=[];function Ek(n){var l=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(jk++)[0],u=v.useState(t1)[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=KA([n.lockRef.current],(n.shards||[]).map(Ub)).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 _=qu(S),R=r.current,T="deltaX"in S?S.deltaX:R[0]-_[0],D="deltaY"in S?S.deltaY:R[1]-_[1],L,X=S.target,q=Math.abs(T)>Math.abs(D)?"h":"v";if("touches"in S&&q==="h"&&X.type==="range")return!1;var H=zb(q,X);if(!H)return!0;if(H?L=q:(L=q==="v"?"h":"v",H=zb(q,X)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||D)&&(i.current=L),!L)return!0;var G=i.current||L;return xk(G,N,S,G==="h"?T:D)},[]),p=v.useCallback(function(S){var N=S;if(!(!Jr.length||Jr[Jr.length-1]!==u)){var _="deltaY"in N?Lb(N):qu(N),R=l.current.filter(function(L){return L.name===N.type&&(L.target===N.target||N.target===L.shadowParent)&&wk(L.delta,_)})[0];if(R&&R.should){N.cancelable&&N.preventDefault();return}if(!R){var T=(h.current.shards||[]).map(Ub).filter(Boolean).filter(function(L){return L.contains(N.target)}),D=T.length>0?m(N,T[0]):!h.current.noIsolation;D&&N.cancelable&&N.preventDefault()}}},[]),g=v.useCallback(function(S,N,_,R){var T={name:S,delta:N,target:_,should:R,shadowParent:Ck(_)};l.current.push(T),setTimeout(function(){l.current=l.current.filter(function(D){return D!==T})},1)},[]),y=v.useCallback(function(S){r.current=qu(S),i.current=void 0},[]),b=v.useCallback(function(S){g(S.type,Lb(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,qu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return Jr.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Pr),document.addEventListener("touchmove",p,Pr),document.addEventListener("touchstart",y,Pr),function(){Jr=Jr.filter(function(S){return S!==u}),document.removeEventListener("wheel",p,Pr),document.removeEventListener("touchmove",p,Pr),document.removeEventListener("touchstart",y,Pr)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:Sk(s)}):null,j?v.createElement(hk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Ck(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const Nk=ek(e1,Ek);var _c=v.forwardRef(function(n,l){return v.createElement(Nc,$n({},n,{ref:l,sideCar:Nk}))});_c.classNames=Nc.classNames;var nm=["Enter"," "],_k=["ArrowDown","PageUp","Home"],r1=["ArrowUp","PageDown","End"],Rk=[..._k,...r1],Tk={ltr:[...nm,"ArrowRight"],rtl:[...nm,"ArrowLeft"]},Mk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rc="Menu",[Vo,Ak,kk]=Ni(Rc),[or,i1]=ft(Rc,[kk,Mi,Ai]),$m=Mi(),o1=Ai(),[ez,ki]=or(Rc),[tz,ss]=or(Rc),Dk="MenuAnchor",Zm=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=$m(r);return d.jsx(Qm,{...s,...i,ref:l})});Zm.displayName=Dk;var Ok="MenuPortal",[nz,s1]=or(Ok,{forceMount:void 0}),wn="MenuContent",[zk,Fm]=or(wn),u1=v.forwardRef((n,l)=>{const r=s1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=ki(wn,n.__scopeMenu),h=ss(wn,n.__scopeMenu);return d.jsx(Vo.Provider,{scope:n.__scopeMenu,children:d.jsx(gt,{present:i||u.open,children:d.jsx(Vo.Slot,{scope:n.__scopeMenu,children:h.modal?d.jsx(Lk,{...s,ref:l}):d.jsx(Uk,{...s,ref:l})})})})}),Lk=v.forwardRef((n,l)=>{const r=ki(wn,n.__scopeMenu),i=v.useRef(null),s=we(l,i);return v.useEffect(()=>{const u=i.current;if(u)return Xm(u)},[]),d.jsx(Pm,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Uk=v.forwardRef((n,l)=>{const r=ki(wn,n.__scopeMenu);return d.jsx(Pm,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Hk=nr("MenuContent.ScrollLock"),Pm=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:j,disableOutsideScroll:E,...S}=n,N=ki(wn,r),_=ss(wn,r),R=$m(r),T=o1(r),D=Ak(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=E?_c:v.Fragment,U=E?{as:Hk,allowPinchZoom:!0}:void 0,W=$=>{var de,A;const Z=te.current+$,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,pe=(de=ee.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,je=ee.map(ye=>ye.textValue),ne=Pk(je,Z,pe),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ce){te.current=Ce,window.clearTimeout(G.current),Ce!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(Z),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Dm();const V=v.useCallback($=>{var de,A;return I.current===((de=ce.current)==null?void 0:de.side)&&Wk($,(A=ce.current)==null?void 0:A.area)},[]);return d.jsx(zk,{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(xc,{asChild:!0,trapped:s,onMountAutoFocus:ae(u,$=>{var de;$.preventDefault(),(de=q.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:d.jsx(_i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,children:d.jsx(Vm,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:X,onEntryFocus:ae(p,$=>{_.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(Ym,{role:"menu","aria-orientation":"vertical","data-state":C1(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||!Rk.includes($.key))return;$.preventDefault();const le=D().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);r1.includes($.key)&&le.reverse(),Zk(le)}),onBlur:ae(n.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,Ko($=>{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}}))})})})})})})});u1.displayName=wn;var qk="MenuGroup",Jm=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"group",...i,ref:l})});Jm.displayName=qk;var Bk="MenuLabel",c1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{...i,ref:l})});c1.displayName=Bk;var rc="MenuItem",Hb="menu.itemSelect",Tc=v.forwardRef((n,l)=>{const{disabled:r=!1,onSelect:i,...s}=n,u=v.useRef(null),h=ss(rc,n.__scopeMenu),m=Fm(rc,n.__scopeMenu),p=we(l,u),g=v.useRef(!1),y=()=>{const b=u.current;if(!r&&b){const w=new CustomEvent(Hb,{bubbles:!0,cancelable:!0});b.addEventListener(Hb,j=>i==null?void 0:i(j),{once:!0}),Wu(b,w),w.defaultPrevented?g.current=!1:h.onClose()}};return d.jsx(d1,{...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===" "||nm.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});Tc.displayName=rc;var d1=v.forwardRef((n,l)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...u}=n,h=Fm(rc,r),m=o1(r),p=v.useRef(null),g=we(l,p),[y,b]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[u.children]),d.jsx(Vo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:d.jsx(Km,{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,Ko(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,Ko(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>b(!0)),onBlur:ae(n.onBlur,()=>b(!1))})})})}),Qk="MenuCheckboxItem",f1=v.forwardRef((n,l)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return d.jsx(g1,{scope:n.__scopeMenu,checked:r,children:d.jsx(Tc,{role:"menuitemcheckbox","aria-checked":ic(r)?"mixed":r,...s,ref:l,"data-state":Im(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(ic(r)?!0:!r),{checkForDefaultPrevented:!1})})})});f1.displayName=Qk;var h1="MenuRadioGroup",[Yk,Gk]=or(h1,{value:void 0,onValueChange:()=>{}}),m1=v.forwardRef((n,l)=>{const{value:r,onValueChange:i,...s}=n,u=We(i);return d.jsx(Yk,{scope:n.__scopeMenu,value:r,onValueChange:u,children:d.jsx(Jm,{...s,ref:l})})});m1.displayName=h1;var p1="MenuRadioItem",v1=v.forwardRef((n,l)=>{const{value:r,...i}=n,s=Gk(p1,n.__scopeMenu),u=r===s.value;return d.jsx(g1,{scope:n.__scopeMenu,checked:u,children:d.jsx(Tc,{role:"menuitemradio","aria-checked":u,...i,ref:l,"data-state":Im(u),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});v1.displayName=p1;var Wm="MenuItemIndicator",[g1,Vk]=or(Wm,{checked:!1}),y1=v.forwardRef((n,l)=>{const{__scopeMenu:r,forceMount:i,...s}=n,u=Vk(Wm,r);return d.jsx(gt,{present:i||ic(u.checked)||u.checked===!0,children:d.jsx(oe.span,{...s,ref:l,"data-state":Im(u.checked)})})});y1.displayName=Wm;var Kk="MenuSeparator",b1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return d.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:l})});b1.displayName=Kk;var Xk="MenuArrow",x1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=$m(r);return d.jsx(Gm,{...s,...i,ref:l})});x1.displayName=Xk;var $k="MenuSub",[az,w1]=or($k),Oo="MenuSubTrigger",S1=v.forwardRef((n,l)=>{const r=ki(Oo,n.__scopeMenu),i=ss(Oo,n.__scopeMenu),s=w1(Oo,n.__scopeMenu),u=Fm(Oo,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(Zm,{asChild:!0,...g,children:d.jsx(d1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":C1(r.open),...n,ref:rs(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,Ko(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,Ko(b=>{var w,j;y();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const S=(j=r.content)==null?void 0:j.dataset.side,N=S==="right",_=N?-5:5,R=E[N?"left":"right"],T=E[N?"right":"left"];u.onPointerGraceIntentChange({area:[{x:b.clientX+_,y:b.clientY},{x:R,y:E.top},{x:T,y:E.top},{x:T,y:E.bottom},{x:R,y:E.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 j=u.searchRef.current!=="";n.disabled||j&&b.key===" "||Tk[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});S1.displayName=Oo;var j1="MenuSubContent",E1=v.forwardRef((n,l)=>{const r=s1(wn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=ki(wn,n.__scopeMenu),h=ss(wn,n.__scopeMenu),m=w1(j1,n.__scopeMenu),p=v.useRef(null),g=we(l,p);return d.jsx(Vo.Provider,{scope:n.__scopeMenu,children:d.jsx(gt,{present:i||u.open,children:d.jsx(Vo.Slot,{scope:n.__scopeMenu,children:d.jsx(Pm,{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),j=Mk[h.dir].includes(y.key);w&&j&&(u.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});E1.displayName=j1;function C1(n){return n?"open":"closed"}function ic(n){return n==="indeterminate"}function Im(n){return ic(n)?"indeterminate":n?"checked":"unchecked"}function Zk(n){const l=document.activeElement;for(const r of n)if(r===l||(r.focus(),document.activeElement!==l))return}function Fk(n,l){return n.map((r,i)=>n[(l+i)%n.length])}function Pk(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=Fk(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 Jk(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 Wk(n,l){if(!l)return!1;const r={x:n.clientX,y:n.clientY};return Jk(r,l)}function Ko(n){return l=>l.pointerType==="mouse"?n(l):void 0}var Ik=Zm,eD=u1,tD=Jm,nD=c1,aD=Tc,lD=f1,rD=m1,iD=v1,oD=y1,sD=b1,uD=x1,cD=S1,dD=E1,N1="DropdownMenu",[fD,lz]=ft(N1,[i1]),sn=i1(),[rz,_1]=fD(N1),R1="DropdownMenuTrigger",hD=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,u=_1(R1,r),h=sn(r);return d.jsx(Ik,{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:rs(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())})})})});hD.displayName=R1;var T1="DropdownMenuContent",M1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=_1(T1,r),u=sn(r),h=v.useRef(!1);return d.jsx(eD,{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)"}})});M1.displayName=T1;var mD="DropdownMenuGroup",pD=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(tD,{...s,...i,ref:l})});pD.displayName=mD;var vD="DropdownMenuLabel",A1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(nD,{...s,...i,ref:l})});A1.displayName=vD;var gD="DropdownMenuItem",k1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(aD,{...s,...i,ref:l})});k1.displayName=gD;var yD="DropdownMenuCheckboxItem",D1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(lD,{...s,...i,ref:l})});D1.displayName=yD;var bD="DropdownMenuRadioGroup",xD=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(rD,{...s,...i,ref:l})});xD.displayName=bD;var wD="DropdownMenuRadioItem",O1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(iD,{...s,...i,ref:l})});O1.displayName=wD;var SD="DropdownMenuItemIndicator",jD=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(oD,{...s,...i,ref:l})});jD.displayName=SD;var ED="DropdownMenuSeparator",z1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(sD,{...s,...i,ref:l})});z1.displayName=ED;var CD="DropdownMenuArrow",ND=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(uD,{...s,...i,ref:l})});ND.displayName=CD;var _D="DropdownMenuSubTrigger",L1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(cD,{...s,...i,ref:l})});L1.displayName=_D;var RD="DropdownMenuSubContent",U1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=sn(r);return d.jsx(dD,{...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)"}})});U1.displayName=RD;var TD=M1,MD=A1,AD=k1,kD=D1,DD=O1,OD=z1,zD=L1,LD=U1;const H1=ge("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)]");ge("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",H1,"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");ge("z-50 min-w-[8rem] p-1 rounded-xl",H1,"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");ge("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");ge("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");ge("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");ge("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var q1="Dialog",[B1,Q1]=ft(q1),[iz,na]=B1(q1),Y1="DialogTrigger",G1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=na(Y1,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":tp(s.open),...i,ref:u,onClick:ae(n.onClick,s.onOpenToggle)})});G1.displayName=Y1;var UD="DialogPortal",[oz,V1]=B1(UD,{forceMount:void 0}),oc="DialogOverlay",K1=v.forwardRef((n,l)=>{const r=V1(oc,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=na(oc,n.__scopeDialog);return u.modal?d.jsx(gt,{present:i||u.open,children:d.jsx(qD,{...s,ref:l})}):null});K1.displayName=oc;var HD=nr("DialogOverlay.RemoveScroll"),qD=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=na(oc,r);return d.jsx(_c,{as:HD,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(oe.div,{"data-state":tp(s.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),lr="DialogContent",X1=v.forwardRef((n,l)=>{const r=V1(lr,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=na(lr,n.__scopeDialog);return d.jsx(gt,{present:i||u.open,children:u.modal?d.jsx(BD,{...s,ref:l}):d.jsx(QD,{...s,ref:l})})});X1.displayName=lr;var BD=v.forwardRef((n,l)=>{const r=na(lr,n.__scopeDialog),i=v.useRef(null),s=we(l,r.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return Xm(u)},[]),d.jsx($1,{...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())})}),QD=v.forwardRef((n,l)=>{const r=na(lr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return d.jsx($1,{...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()}})}),$1=v.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...h}=n,m=na(lr,r),p=v.useRef(null),g=we(l,p);return Dm(),d.jsxs(d.Fragment,{children:[d.jsx(xc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:d.jsx(_i,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":tp(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(GD,{titleId:m.titleId}),d.jsx(KD,{contentRef:p,descriptionId:m.descriptionId})]})]})}),ep="DialogTitle",Z1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=na(ep,r);return d.jsx(oe.h2,{id:s.titleId,...i,ref:l})});Z1.displayName=ep;var F1="DialogDescription",P1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=na(F1,r);return d.jsx(oe.p,{id:s.descriptionId,...i,ref:l})});P1.displayName=F1;var J1="DialogClose",W1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=na(J1,r);return d.jsx(oe.button,{type:"button",...i,ref:l,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});W1.displayName=J1;function tp(n){return n?"open":"closed"}var I1="DialogTitleWarning",[YD,eS]=TT(I1,{contentName:lr,titleName:ep,docsSlug:"dialog"}),GD=({titleId:n})=>{const l=eS(I1),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
302
+
303
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
304
+
305
+ 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},VD="DialogDescriptionWarning",KD=({contentRef:n,descriptionId:l})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eS(VD).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},XD=G1,$D=K1,ZD=X1,FD=Z1,PD=P1,tS=W1,JD="AlertDialog",[WD,sz]=ft(JD,[Q1]),sr=Q1(),ID="AlertDialogTrigger",e3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(XD,{...s,...i,ref:l})});e3.displayName=ID;var t3="AlertDialogOverlay",n3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx($D,{...s,...i,ref:l})});n3.displayName=t3;var ni="AlertDialogContent",[a3,l3]=WD(ni),r3=lw("AlertDialogContent"),i3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,children:i,...s}=n,u=sr(r),h=v.useRef(null),m=we(l,h),p=v.useRef(null);return d.jsx(YD,{contentName:ni,titleName:nS,docsSlug:"alert-dialog",children:d.jsx(a3,{scope:r,cancelRef:p,children:d.jsxs(ZD,{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(r3,{children:i}),d.jsx(f3,{contentRef:h})]})})})});i3.displayName=ni;var nS="AlertDialogTitle",o3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(FD,{...s,...i,ref:l})});o3.displayName=nS;var aS="AlertDialogDescription",s3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(PD,{...s,...i,ref:l})});s3.displayName=aS;var u3="AlertDialogAction",c3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=sr(r);return d.jsx(tS,{...s,...i,ref:l})});c3.displayName=u3;var lS="AlertDialogCancel",d3=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=l3(lS,r),u=sr(r),h=we(l,s);return d.jsx(tS,{...u,...i,ref:h})});d3.displayName=lS;var f3=({contentRef:n})=>{const l=`\`${ni}\` requires a description for the component to be accessible for screen reader users.
306
+
307
+ You can add a description to the \`${ni}\` by passing a \`${aS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
308
+
309
+ 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 \`${ni}\`. 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.
310
+
311
+ 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 us(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 rS=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"}),h3="VisuallyHidden",iS=v.forwardRef((n,l)=>d.jsx(oe.span,{...n,ref:l,style:{...rS,...n.style}}));iS.displayName=h3;var oS=iS,m3=[" ","Enter","ArrowUp","ArrowDown"],p3=[" ","Enter"],Mc="Select",[np,Ac,v3]=Ni(Mc),[Di,uz]=ft(Mc,[v3,Mi]),ap=Mi(),[cz,jl]=Di(Mc),[dz,g3]=Di(Mc),sS="SelectTrigger",y3=v.forwardRef((n,l)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,u=ap(r),h=jl(sS,r),m=h.disabled||i,p=we(l,h.onTriggerChange),g=Ac(r),y=v.useRef("touch"),[b,w,j]=bS(S=>{const N=g().filter(T=>!T.disabled),_=N.find(T=>T.value===h.value),R=xS(N,S,_);R!==void 0&&h.onValueChange(R.value)}),E=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(Qm,{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":yS(h.value)?"":void 0,...s,ref:p,onClick:ae(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&E(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"&&(E(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===" ")&&m3.includes(S.key)&&(E(),S.preventDefault())})})})});y3.displayName=sS;var uS="SelectValue",b3=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,children:u,placeholder:h="",...m}=n,p=jl(uS,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:yS(p.value)?d.jsx(d.Fragment,{children:h}):u})});b3.displayName=uS;var x3="SelectIcon",w3=v.forwardRef((n,l)=>{const{__scopeSelect:r,children:i,...s}=n;return d.jsx(oe.span,{"aria-hidden":!0,...s,ref:l,children:i||"▼"})});w3.displayName=x3;var rr="SelectContent",S3=v.forwardRef((n,l)=>{const r=jl(rr,n.__scopeSelect),[i,s]=v.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const u=i;return u?Io.createPortal(d.jsx(cS,{scope:n.__scopeSelect,children:d.jsx(np.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),u):null}return d.jsx(dS,{...n,ref:l})});S3.displayName=rr;var Rn=10,[cS,El]=Di(rr),j3="SelectContentImpl",E3=nr("SelectContent.RemoveScroll"),dS=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:j,sticky:E,hideWhenDetached:S,avoidCollisions:N,..._}=n,R=jl(rr,r),[T,D]=v.useState(null),[L,X]=v.useState(null),q=we(l,ne=>D(ne)),[H,G]=v.useState(null),[te,ue]=v.useState(null),ce=Ac(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return Xm(T)},[T]),Dm();const U=v.useCallback(ne=>{const[Ee,...ye]=ce().map(Ye=>Ye.ref.current),[Ce]=ye.slice(-1),Ue=document.activeElement;for(const Ye of ne)if(Ye===Ue||(Ye==null||Ye.scrollIntoView({block:"nearest"}),Ye===Ee&&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 Ee=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))}},ye=Ce=>{ne.x<=10&&ne.y<=10?Ce.preventDefault():T.contains(Ce.target)||V(!1),document.removeEventListener("pointermove",Ee),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{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]=bS(ne=>{const Ee=ce().filter(Ue=>!Ue.disabled),ye=Ee.find(Ue=>Ue.ref.current===document.activeElement),Ce=xS(Ee,ne,ye);Ce&&setTimeout(()=>Ce.ref.current.focus())}),Z=v.useCallback((ne,Ee,ye)=>{const Ce=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ce)&&(G(ne),Ce&&(re.current=!0))},[R.value]),ee=v.useCallback(()=>T==null?void 0:T.focus(),[T]),le=v.useCallback((ne,Ee,ye)=>{const Ce=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ce)&&ue(ne)},[R.value]),pe=i==="popper"?am:fS,je=pe===am?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:N}:{};return d.jsx(cS,{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(_c,{as:E3,allowPinchZoom:!0,children:d.jsx(xc,{asChild:!0,trapped:R.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(s,ne=>{var Ee;(Ee=R.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:d.jsx(_i,{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(),..._,...je,onPlaced:()=>ie(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.onKeyDown,ne=>{const Ee=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!Ee&&ne.key.length===1&&A(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let ye=ce().filter(Ce=>!Ce.disabled).map(Ce=>Ce.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ce=ne.target,Ue=ye.indexOf(Ce);ye=ye.slice(Ue+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});dS.displayName=j3;var C3="SelectItemAlignedPosition",fS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,u=jl(rr,r),h=El(rr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),b=we(l,q=>y(q)),w=Ac(r),j=v.useRef(!1),E=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,_t=q.width+Ye,Xt=Math.max(_t,H.width),aa=window.innerWidth-Rn,la=Fh(Ue,[Rn,Math.max(Rn,aa-Xt)]);m.style.minWidth=_t+"px",m.style.left=la+"px"}else{const Ce=H.right-te.right,Ue=window.innerWidth-G.right-Ce,Ye=window.innerWidth-q.right-Ue,_t=q.width+Ye,Xt=Math.max(_t,H.width),aa=window.innerWidth-Rn,la=Fh(Ue,[Rn,Math.max(Rn,aa-Xt)]);m.style.minWidth=_t+"px",m.style.right=la+"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,je=N.offsetHeight/2,ne=N.offsetTop+je,Ee=re+U+ne,ye=$-Ee;if(Ee<=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,je+(Ce?ee:0)+Ue+W),_t=Ee+Ye;m.style.height=_t+"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)+je)+ye;m.style.height=Ue+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${Rn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,u.trigger,u.valueNode,m,g,S,N,_,u.dir,i]);et(()=>T(),[T]);const[D,L]=v.useState();et(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const X=v.useCallback(q=>{q&&E.current===!0&&(T(),R==null||R(),E.current=!1)},[T,R]);return d.jsx(_3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:X,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:d.jsx(oe.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});fS.displayName=C3;var N3="SelectPopperPosition",am=v.forwardRef((n,l)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Rn,...u}=n,h=ap(r);return d.jsx(Ym,{...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)"}})});am.displayName=N3;var[_3,lp]=Di(rr,{}),lm="SelectViewport",R3=v.forwardRef((n,l)=>{const{__scopeSelect:r,nonce:i,...s}=n,u=El(lm,r),h=lp(lm,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(np.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 j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-Rn*2,S=parseFloat(b.style.minHeight),N=parseFloat(b.style.height),_=Math.max(S,N);if(_<E){const R=_+j,T=Math.min(E,R),D=R-T;b.style.height=T+"px",b.style.bottom==="0px"&&(y.scrollTop=D>0?D:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});R3.displayName=lm;var hS="SelectGroup",[T3,M3]=Di(hS),A3=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=Sl();return d.jsx(T3,{scope:r,id:s,children:d.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:l})})});A3.displayName=hS;var mS="SelectLabel",k3=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=M3(mS,r);return d.jsx(oe.div,{id:s.id,...i,ref:l})});k3.displayName=mS;var sc="SelectItem",[D3,pS]=Di(sc),O3=v.forwardRef((n,l)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:u,...h}=n,m=jl(sc,r),p=El(sc,r),g=m.value===i,[y,b]=v.useState(u??""),[w,j]=v.useState(!1),E=we(l,R=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,R,i,s)}),S=Sl(),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(D3,{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(np.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:E,onFocus:ae(h.onFocus,()=>j(!0)),onBlur:ae(h.onBlur,()=>j(!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===" "||(p3.includes(R.key)&&_(),R.key===" "&&R.preventDefault())})})})})});O3.displayName=sc;var zo="SelectItemText",z3=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,...u}=n,h=jl(zo,r),m=El(zo,r),p=pS(zo,r),g=g3(zo,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)}),j=y==null?void 0:y.textContent,E=v.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:N}=g;return et(()=>(S(E),()=>N(E)),[S,N,E]),d.jsxs(d.Fragment,{children:[d.jsx(oe.span,{id:p.textId,...u,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Io.createPortal(u.children,h.valueNode):null]})});z3.displayName=zo;var vS="SelectItemIndicator",L3=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return pS(vS,r).isSelected?d.jsx(oe.span,{"aria-hidden":!0,...i,ref:l}):null});L3.displayName=vS;var rm="SelectScrollUpButton",U3=v.forwardRef((n,l)=>{const r=El(rm,n.__scopeSelect),i=lp(rm,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(gS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});U3.displayName=rm;var im="SelectScrollDownButton",H3=v.forwardRef((n,l)=>{const r=El(im,n.__scopeSelect),i=lp(im,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(gS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});H3.displayName=im;var gS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,u=El("SelectScrollButton",r),h=v.useRef(null),m=Ac(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()})})}),q3="SelectSeparator",B3=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return d.jsx(oe.div,{"aria-hidden":!0,...i,ref:l})});B3.displayName=q3;var om="SelectArrow",Q3=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=ap(r),u=jl(om,r),h=El(om,r);return u.open&&h.position==="popper"?d.jsx(Gm,{...s,...i,ref:l}):null});Q3.displayName=om;var Y3="SelectBubbleInput",G3=v.forwardRef(({__scopeSelect:n,value:l,...r},i)=>{const s=v.useRef(null),u=we(i,s),h=us(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:{...rS,...r.style},ref:u,defaultValue:l})});G3.displayName=Y3;function yS(n){return n===""||n===void 0}function bS(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 xS(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=V3(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 V3(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var[kc,fz]=ft("Tooltip",[Mi]),rp=Mi(),K3="TooltipProvider",qb="tooltip.open",[hz,wS]=kc(K3),SS="Tooltip",[mz,Dc]=kc(SS),sm="TooltipTrigger",X3=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=Dc(sm,r),u=wS(sm,r),h=rp(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(Qm,{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)})})});X3.displayName=sm;var $3="TooltipPortal",[pz,Z3]=kc($3,{forceMount:void 0}),yi="TooltipContent",jS=v.forwardRef((n,l)=>{const r=Z3(yi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...u}=n,h=Dc(yi,n.__scopeTooltip);return d.jsx(gt,{present:i||h.open,children:h.disableHoverableContent?d.jsx(ES,{side:s,...u,ref:l}):d.jsx(F3,{side:s,...u,ref:l})})}),F3=v.forwardRef((n,l)=>{const r=Dc(yi,n.__scopeTooltip),i=wS(yi,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]),j=v.useCallback((E,S)=>{const N=E.currentTarget,_={x:E.clientX,y:E.clientY},R=eO(_,N.getBoundingClientRect()),T=tO(_,R),D=nO(S.getBoundingClientRect()),L=lO([...T,...D]);m(L),b(!0)},[b]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const E=N=>j(N,y),S=N=>j(N,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),v.useEffect(()=>{if(h){const E=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=!aO(_,h);R?w():T&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),d.jsx(ES,{...n,ref:u})}),[P3,J3]=kc(SS,{isInside:!1}),W3=lw("TooltipContent"),ES=v.forwardRef((n,l)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:h,...m}=n,p=Dc(yi,r),g=rp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(qb,y),()=>document.removeEventListener(qb,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),d.jsx(_i,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:d.jsxs(Ym,{"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(W3,{children:i}),d.jsx(P3,{scope:r,isInside:!0,children:d.jsx(oS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});jS.displayName=yi;var CS="TooltipArrow",I3=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=rp(r);return J3(CS,r).isInside?null:d.jsx(Gm,{...s,...i,ref:l})});I3.displayName=CS;function eO(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 tO(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 nO(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 aO(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 lO(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),rO(l)}function rO(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 iO=jS;iO.displayName;var Oc="Checkbox",[oO,vz]=ft(Oc),[sO,ip]=oO(Oc);function uO(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,j]=ea({prop:r,defaultProp:s??!1,onChange:p,caller:Oc}),[E,S]=v.useState(null),[N,_]=v.useState(null),R=v.useRef(!1),T=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:u,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:bl(s)?!1:s,isFormControl:T,bubbleInput:N,setBubbleInput:_};return d.jsx(sO,{scope:l,...D,children:fO(b)?b(D):i})}var NS="CheckboxTrigger",_S=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:j,bubbleInput:E}=ip(NS,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":bl(p)?"mixed":p,"aria-required":g,"data-state":AS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(l,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{b(R=>bl(R)?!0:!R),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});_S.displayName=NS;var cO=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(uO,{__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(_S,{...b,ref:l,__scopeCheckbox:r}),w&&d.jsx(MS,{__scopeCheckbox:r})]})})});cO.displayName=Oc;var RS="CheckboxIndicator",dO=v.forwardRef((n,l)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,u=ip(RS,r);return d.jsx(gt,{present:i||bl(u.checked)||u.checked===!0,children:d.jsx(oe.span,{"data-state":AS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:l,style:{pointerEvents:"none",...n.style}})})});dO.displayName=RS;var TS="CheckboxBubbleInput",MS=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:j}=ip(TS,n),E=we(r,j),S=us(u),N=Cc(i);v.useEffect(()=>{const R=w;if(!R)return;const T=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==u&&D){const X=new Event("click",{bubbles:L});R.indeterminate=bl(u),D.call(R,bl(u)?!1:u),R.dispatchEvent(X)}},[w,S,u,s]);const _=v.useRef(bl(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:E,style:{...l.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});MS.displayName=TS;function fO(n){return typeof n=="function"}function bl(n){return n==="indeterminate"}function AS(n){return bl(n)?"indeterminate":n?"checked":"unchecked"}var op="Radio",[hO,kS]=ft(op),[mO,pO]=hO(op),DS=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),j=we(l,N=>w(N)),E=v.useRef(!1),S=b?g||!!b.closest("form"):!0;return d.jsxs(mO,{scope:r,checked:s,disabled:h,children:[d.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":US(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ae(n.onClick,N=>{s||p==null||p(),S&&(E.current=N.isPropagationStopped(),E.current||N.stopPropagation())})}),S&&d.jsx(LS,{control:b,bubbles:!E.current,name:i,value:m,checked:s,required:u,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});DS.displayName=op;var OS="RadioIndicator",zS=v.forwardRef((n,l)=>{const{__scopeRadio:r,forceMount:i,...s}=n,u=pO(OS,r);return d.jsx(gt,{present:i||u.checked,children:d.jsx(oe.span,{"data-state":US(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:l})})});zS.displayName=OS;var vO="RadioBubbleInput",LS=v.forwardRef(({__scopeRadio:n,control:l,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=us(r),g=Cc(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 j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[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}})});LS.displayName=vO;function US(n){return n?"checked":"unchecked"}var gO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],zc="RadioGroup",[yO,gz]=ft(zc,[Ai,kS]),HS=Ai(),qS=kS(),[bO,xO]=yO(zc),BS=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,j=HS(r),E=Ci(g),[S,N]=ea({prop:u,defaultProp:s??null,onChange:b,caller:zc});return d.jsx(bO,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:N,children:d.jsx(Vm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:d.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:l})})})});BS.displayName=zc;var QS="RadioGroupItem",YS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,u=xO(QS,r),h=u.disabled||i,m=HS(r),p=qS(r),g=v.useRef(null),y=we(l,g),b=u.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{gO.includes(S.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",E)}},[]),d.jsx(Km,{asChild:!0,...m,focusable:!h,active:b,children:d.jsx(DS,{disabled:h,required:u.required,checked:b,...p,...s,name:u.name,ref:y,onCheck:()=>u.onValueChange(s.value),onKeyDown:ae(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ae(s.onFocus,()=>{var j;w.current&&((j=g.current)==null||j.click())})})})});YS.displayName=QS;var wO="RadioGroupIndicator",SO=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,...i}=n,s=qS(r);return d.jsx(zS,{...s,...i,ref:l})});SO.displayName=wO;var jO=BS,EO=YS;jO.displayName;EO.displayName;var Lc="Switch",[CO,yz]=ft(Lc),[NO,_O]=CO(Lc),GS=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,j]=v.useState(null),E=we(l,T=>j(T)),S=v.useRef(!1),N=w?y||!!w.closest("form"):!0,[_,R]=ea({prop:s,defaultProp:u??!1,onChange:g,caller:Lc});return d.jsxs(NO,{scope:r,checked:_,disabled:m,children:[d.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":$S(_),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:E,onClick:ae(n.onClick,T=>{R(D=>!D),N&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),N&&d.jsx(XS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});GS.displayName=Lc;var VS="SwitchThumb",KS=v.forwardRef((n,l)=>{const{__scopeSwitch:r,...i}=n,s=_O(VS,r);return d.jsx(oe.span,{"data-state":$S(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:l})});KS.displayName=VS;var RO="SwitchBubbleInput",XS=v.forwardRef(({__scopeSwitch:n,control:l,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=us(r),g=Cc(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 j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[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}})});XS.displayName=RO;function $S(n){return n?"checked":"unchecked"}var TO=GS,MO=KS;function _h({className:n,...l}){return d.jsx(TO,{"data-slot":"switch",className:ge("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(MO,{"data-slot":"switch-thumb",className:ge("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 Uc="Tabs",[AO,bz]=ft(Uc,[Ai]),ZS=Ai(),[kO,sp]=AO(Uc),FS=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Ci(m),[b,w]=ea({prop:i,onChange:s,defaultProp:u??"",caller:Uc});return d.jsx(kO,{scope:r,baseId:Sl(),value:b,onValueChange:w,orientation:h,dir:y,activationMode:p,children:d.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:l})})});FS.displayName=Uc;var PS="TabsList",JS=v.forwardRef((n,l)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,u=sp(PS,r),h=ZS(r);return d.jsx(Vm,{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})})});JS.displayName=PS;var WS="TabsTrigger",IS=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...u}=n,h=sp(WS,r),m=ZS(r),p=nj(h.baseId,i),g=aj(h.baseId,i),y=i===h.value;return d.jsx(Km,{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)})})})});IS.displayName=WS;var ej="TabsContent",tj=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,forceMount:s,children:u,...h}=n,m=sp(ej,r),p=nj(m.baseId,i),g=aj(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(gt,{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})})});tj.displayName=ej;function nj(n,l){return`${n}-trigger-${l}`}function aj(n,l){return`${n}-content-${l}`}var DO=FS,OO=JS,zO=IS,LO=tj;function lj({className:n,...l}){return d.jsx(DO,{"data-slot":"tabs",className:ge("flex flex-col gap-2",n),...l})}function rj({className:n,...l}){return d.jsx(OO,{"data-slot":"tabs-list",className:ge("flex border-b border-border",n),...l})}function Ho({className:n,children:l,...r}){return d.jsx(zO,{asChild:!0,...r,children:d.jsx(ow,{className:n,children:l})})}function qo({className:n,...l}){return d.jsx(LO,{"data-slot":"tabs-content",className:ge("flex-1 outline-none",n),...l})}function UO(n){const l=HO(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(BO);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 HO(n){const l=v.forwardRef((r,i)=>{const{children:s,...u}=r,h=v.isValidElement(s)?YO(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=QO(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 qO=Symbol("radix.slottable");function BO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===qO}function QO(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 YO(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 GO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],up=GO.reduce((n,l)=>{const r=UO(`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}},{}),cp="Progress",dp=100,[VO,xz]=ft(cp),[KO,XO]=VO(cp),$O=v.forwardRef((n,l)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:u=FO,...h}=n;(s||s===0)&&!Bb(s)&&console.error(PO(`${s}`,"Progress"));const m=Bb(s)?s:dp;i!==null&&!Qb(i,m)&&console.error(JO(`${i}`,"Progress"));const p=Qb(i,m)?i:null,g=uc(p)?u(p,m):void 0;return d.jsx(KO,{scope:r,value:p,max:m,children:d.jsx(up.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":uc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":oj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:l})})});$O.displayName=cp;var ij="ProgressIndicator",ZO=v.forwardRef((n,l)=>{const{__scopeProgress:r,...i}=n,s=XO(ij,r);return d.jsx(up.div,{"data-state":oj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:l})});ZO.displayName=ij;function FO(n,l){return`${Math.round(n/l*100)}%`}function oj(n,l){return n==null?"indeterminate":n===l?"complete":"loading"}function uc(n){return typeof n=="number"}function Bb(n){return uc(n)&&!isNaN(n)&&n>0}function Qb(n,l){return uc(n)&&!isNaN(n)&&n<=l&&n>=0}function PO(n,l){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${l}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${dp}\`.`}function JO(n,l){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${l}\`. The \`value\` prop must be:
312
+ - a positive number
313
+ - less than the value passed to \`max\` (or ${dp} if no \`max\` prop is set)
314
+ - \`null\` or \`undefined\` if the progress is indeterminate.
315
+
316
+ Defaulting to \`null\`.`}var WO="Separator",Yb="horizontal",IO=["horizontal","vertical"],e4=v.forwardRef((n,l)=>{const{decorative:r,orientation:i=Yb,...s}=n,u=t4(i)?i:Yb,h=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return d.jsx(up.div,{"data-orientation":u,...h,...s,ref:l})});e4.displayName=WO;function t4(n){return IO.includes(n)}var n4="Label",sj=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())}}));sj.displayName=n4;var uj=sj;const a4=iw("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Lo=({ref:n,className:l,...r})=>d.jsx(uj,{ref:n,className:ge(a4(),l),...r});Lo.displayName=uj.displayName;var Hc="Collapsible",[l4,cj]=ft(Hc),[r4,fp]=l4(Hc),dj=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:u,onOpenChange:h,...m}=n,[p,g]=ea({prop:i,defaultProp:s??!1,onChange:h,caller:Hc});return d.jsx(r4,{scope:r,disabled:u,contentId:Sl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:d.jsx(oe.div,{"data-state":vp(p),"data-disabled":u?"":void 0,...m,ref:l})})});dj.displayName=Hc;var fj="CollapsibleTrigger",hp=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,...i}=n,s=fp(fj,r);return d.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":vp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:l,onClick:ae(n.onClick,s.onOpenToggle)})});hp.displayName=fj;var mp="CollapsibleContent",pp=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=fp(mp,n.__scopeCollapsible);return d.jsx(gt,{present:r||s.open,children:({present:u})=>d.jsx(i4,{...i,ref:l,present:u})})});pp.displayName=mp;var i4=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,present:i,children:s,...u}=n,h=fp(mp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(l,g),b=v.useRef(0),w=b.current,j=v.useRef(0),E=j.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,j.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":vp(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":E?`${E}px`:void 0,...n.style},children:S&&s})});function vp(n){return n?"open":"closed"}var hj=dj,o4=hp,s4=pp,Hn="Accordion",u4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[gp,c4,d4]=Ni(Hn),[qc,wz]=ft(Hn,[d4,cj]),yp=cj(),f4=rt.forwardRef((n,l)=>{const{type:r,...i}=n,s=i,u=i;return d.jsx(gp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?d.jsx(v4,{...u,ref:l}):d.jsx(p4,{...s,ref:l})})});f4.displayName=Hn;var[mj,h4]=qc(Hn),[pj,m4]=qc(Hn,{collapsible:!1}),p4=rt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:u=!1,...h}=n,[m,p]=ea({prop:r,defaultProp:i??"",onChange:s,caller:Hn});return d.jsx(mj,{scope:n.__scopeAccordion,value:rt.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:rt.useCallback(()=>u&&p(""),[u,p]),children:d.jsx(pj,{scope:n.__scopeAccordion,collapsible:u,children:d.jsx(vj,{...h,ref:l})})})}),v4=rt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...u}=n,[h,m]=ea({prop:r,defaultProp:i??[],onChange:s,caller:Hn}),p=rt.useCallback(y=>m((b=[])=>[...b,y]),[m]),g=rt.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return d.jsx(mj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:d.jsx(pj,{scope:n.__scopeAccordion,collapsible:!0,children:d.jsx(vj,{...u,ref:l})})})}),[g4,Bc]=qc(Hn),vj=rt.forwardRef((n,l)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:u="vertical",...h}=n,m=rt.useRef(null),p=we(m,l),g=c4(r),y=Ci(s)==="ltr",b=ae(n.onKeyDown,w=>{var j;if(!u4.includes(w.key))return;const E=w.target,S=g().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),N=S.findIndex(H=>H.ref.current===E),_=S.length;if(N===-1)return;w.preventDefault();let R=N;const T=0,D=_-1,L=()=>{R=N+1,R>D&&(R=T)},X=()=>{R=N-1,R<T&&(R=D)};switch(w.key){case"Home":R=T;break;case"End":R=D;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%_;(j=S[q].ref.current)==null||j.focus()});return d.jsx(g4,{scope:r,disabled:i,direction:s,orientation:u,children:d.jsx(gp.Slot,{scope:r,children:d.jsx(oe.div,{...h,"data-orientation":u,ref:p,onKeyDown:i?void 0:b})})})}),cc="AccordionItem",[y4,bp]=qc(cc),b4=rt.forwardRef((n,l)=>{const{__scopeAccordion:r,value:i,...s}=n,u=Bc(cc,r),h=h4(cc,r),m=yp(r),p=Sl(),g=i&&h.value.includes(i)||!1,y=u.disabled||n.disabled;return d.jsx(y4,{scope:r,open:g,disabled:y,triggerId:p,children:d.jsx(hj,{"data-orientation":u.orientation,"data-state":bj(g),...m,...s,ref:l,disabled:y,open:g,onOpenChange:b=>{b?h.onItemOpen(i):h.onItemClose(i)}})})});b4.displayName=cc;var gj="AccordionHeader",x4=rt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Bc(Hn,r),u=bp(gj,r);return d.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":bj(u.open),"data-disabled":u.disabled?"":void 0,...i,ref:l})});x4.displayName=gj;var um="AccordionTrigger",w4=rt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Bc(Hn,r),u=bp(um,r),h=m4(um,r),m=yp(r);return d.jsx(gp.ItemSlot,{scope:r,children:d.jsx(o4,{"aria-disabled":u.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId,...m,...i,ref:l})})});w4.displayName=um;var yj="AccordionContent",S4=rt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Bc(Hn,r),u=bp(yj,r),h=yp(r);return d.jsx(s4,{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}})});S4.displayName=yj;function bj(n){return n?"open":"closed"}const xj=hj,wj=hp,Sj=pp;var ur="NavigationMenu",[xp,jj,j4]=Ni(ur),[cm,E4,C4]=Ni(ur),[wp,Sz]=ft(ur,[j4,C4]),[N4,En]=wp(ur),[_4,R4]=wp(ur),T4=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),j=we(l,G=>w(G)),E=Ci(g),S=v.useRef(0),N=v.useRef(0),_=v.useRef(0),[R,T]=v.useState(!0),[D,L]=ea({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:ur}),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=>{D===G?window.clearTimeout(N.current):S.current=window.setTimeout(()=>{window.clearTimeout(N.current),L(G)},h)},[D,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(N.current),window.clearTimeout(_.current)},[]),d.jsx(Ej,{scope:r,isRootMenu:!0,value:D,dir:E,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:E,...y,ref:j})})});T4.displayName=ur;var dm="NavigationMenuSub",M4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",...m}=n,p=En(dm,r),[g,y]=ea({prop:i,onChange:s,defaultProp:u??"",caller:dm});return d.jsx(Ej,{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})})});M4.displayName=dm;var Ej=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:j}=n,[E,S]=v.useState(null),[N,_]=v.useState(new Map),[R,T]=v.useState(null);return d.jsx(N4,{scope:l,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:us(m),baseId:Sl(),dir:s,orientation:u,viewport:E,onViewportChange:S,indicatorTrack:R,onIndicatorTrackChange:T,onTriggerEnter:We(y),onTriggerLeave:We(b),onContentEnter:We(w),onContentLeave:We(j),onItemSelect:We(p),onItemDismiss:We(g),onViewportContentChange:v.useCallback((D,L)=>{_(X=>(X.set(D,L),new Map(X)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:d.jsx(xp.Provider,{scope:l,children:d.jsx(_4,{scope:l,items:N,children:h})})})},Cj="NavigationMenuList",A4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(Cj,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(xp.Slot,{scope:r,children:s.isRootMenu?d.jsx(Tj,{asChild:!0,children:u}):u})})});A4.displayName=Cj;var Nj="NavigationMenuItem",[k4,_j]=wp(Nj),D4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,u=Sl(),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((E="start")=>{if(m.current){y.current();const S=hm(m.current);S.length&&Ep(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=hm(m.current);E.length&&(y.current=K4(E))}},[]);return d.jsx(k4,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:d.jsx(oe.li,{...s,ref:l})})});D4.displayName=Nj;var fm="NavigationMenuTrigger",O4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,u=En(fm,n.__scopeNavigationMenu),h=_j(fm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,l),g=Aj(u.baseId,h.value),y=kj(u.baseId,h.value),b=v.useRef(!1),w=v.useRef(!1),j=h.value===u.value;return d.jsxs(d.Fragment,{children:[d.jsx(xp.ItemSlot,{scope:r,value:h.value,children:d.jsx(Mj,{asChild:!0,children:d.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Cp(j),"aria-expanded":j,"aria-controls":y,...s,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,dc(()=>{i||w.current||h.wasEscapeCloseRef.current||b.current||(u.onTriggerEnter(h.value),b.current=!0)})),onPointerLeave:ae(n.onPointerLeave,dc(()=>{i||(u.onTriggerLeave(),b.current=!1)})),onClick:ae(n.onClick,()=>{u.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:u.dir==="rtl"?"ArrowLeft":"ArrowRight"}[u.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&d.jsxs(d.Fragment,{children:[d.jsx(oS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,N=E.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})]})]})});O4.displayName=fm;var z4="NavigationMenuLink",Gb="navigationMenu.linkSelect",L4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...u}=n;return d.jsx(Mj,{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(Gb,{bubbles:!0,cancelable:!0});if(m.addEventListener(Gb,g=>s==null?void 0:s(g),{once:!0}),Wu(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(Xu,{bubbles:!0,cancelable:!0});Wu(m,g)}},{checkForDefaultPrevented:!1})})})});L4.displayName=z4;var Sp="NavigationMenuIndicator",U4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=En(Sp,n.__scopeNavigationMenu),u=!!s.value;return s.indicatorTrack?Lx.createPortal(d.jsx(gt,{present:r||u,children:d.jsx(H4,{...i,ref:l})}),s.indicatorTrack):null});U4.displayName=Sp;var H4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(Sp,r),u=jj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",b=!!s.value;v.useEffect(()=>{var j;const E=(j=u().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[u,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return mm(h,w),mm(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}),bi="NavigationMenuContent",q4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=En(bi,n.__scopeNavigationMenu),u=_j(bi,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(B4,{forceMount:r,...p,ref:h}):d.jsx(gt,{present:r||m,children:d.jsx(Rj,{"data-state":Cp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,dc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});q4.displayName=bi;var B4=v.forwardRef((n,l)=>{const r=En(bi,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}),Xu="navigationMenu.rootContentDismiss",Rj=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:u,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=En(bi,r),b=v.useRef(null),w=we(b,l),j=Aj(y.baseId,i),E=kj(y.baseId,i),S=jj(r),N=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const T=b.current;if(y.isRootMenu&&T){const D=()=>{var L;_(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(Xu,D),()=>T.removeEventListener(Xu,D)}},[y.isRootMenu,n.value,s,_,m]);const R=v.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const D=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(D!==L){if(X&&L!==-1)return D>L?"from-end":"from-start";if(q&&D!==-1)return D>L?"to-start":"to-end"}return null})();return N.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return d.jsx(Tj,{asChild:!0,children:d.jsx(_i,{id:E,"aria-labelledby":j,"data-motion":R,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const D=new Event(Xu,{bubbles:!0,cancelable:!0});(T=b.current)==null||T.dispatchEvent(D)},onFocusOutside:ae(n.onFocusOutside,T=>{var D;p();const L=T.target;(D=y.rootNavigationMenu)!=null&&D.contains(L)&&T.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,T=>{var D;const L=T.target,X=S().some(H=>{var G;return(G=H.ref.current)==null?void 0:G.contains(L)}),q=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(L));(X||q||!y.isRootMenu)&&T.preventDefault()}),onKeyDown:ae(n.onKeyDown,T=>{var D;const L=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!L){const X=hm(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);Ep(G)?T.preventDefault():(D=u.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),jp="NavigationMenuViewport",Q4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=!!En(jp,n.__scopeNavigationMenu).value;return d.jsx(gt,{present:r||s,children:d.jsx(Y4,{...i,ref:l})})});Q4.displayName=jp;var Y4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,u=En(jp,r),h=we(l,u.onViewportChange),m=R4(bi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,b]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,E=!!u.value,S=E?u.value:u.previousValue;return mm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),d.jsx(oe.div,{"data-state":Cp(E),"data-orientation":u.orientation,...s,ref:h,style:{pointerEvents:!E&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,u.onContentEnter),onPointerLeave:ae(n.onPointerLeave,dc(u.onContentLeave)),children:Array.from(m.items).map(([N,{ref:_,forceMount:R,...T}])=>{const D=S===N;return d.jsx(gt,{present:R||D,children:d.jsx(Rj,{...T,ref:rs(_,L=>{D&&L&&b(L)})})},N)})})}),G4="FocusGroup",Tj=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=En(G4,r);return d.jsx(cm.Provider,{scope:r,children:d.jsx(cm.Slot,{scope:r,children:d.jsx(oe.div,{dir:s.dir,...i,ref:l})})})}),Vb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],V4="FocusGroupItem",Mj=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=E4(r),u=En(V4,r);return d.jsx(cm.ItemSlot,{scope:r,children:d.jsx(oe.button,{...i,ref:l,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Vb].includes(h.key)){let m=s().map(p=>p.ref.current);if([u.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Vb.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Ep(m)),h.preventDefault()}})})})});function hm(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 Ep(n){const l=document.activeElement;return n.some(r=>r===l?!0:(r.focus(),document.activeElement!==l))}function K4(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 mm(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 Cp(n){return n?"open":"closed"}function Aj(n,l){return`${n}-trigger-${l}`}function kj(n,l){return`${n}-content-${l}`}function dc(n){return l=>l.pointerType==="mouse"?n(l):void 0}var Kb={exports:{}},Rh={};/**
317
+ * @license React
318
+ * use-sync-external-store-shim.production.js
319
+ *
320
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
321
+ *
322
+ * This source code is licensed under the MIT license found in the
323
+ * LICENSE file in the root directory of this source tree.
324
+ */var Xb;function X4(){if(Xb)return Rh;Xb=1;var n=rt;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 j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,N=E[1];return u(function(){S.value=j,S.getSnapshot=w,p(S)&&N({inst:S})},[b,j,w]),s(function(){return p(S)&&N({inst:S}),b(function(){p(S)&&N({inst:S})})},[b]),h(j),j}function p(b){var w=b.getSnapshot;b=b.value;try{var j=w();return!r(b,j)}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 Rh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Rh}var $b;function $4(){return $b||($b=1,Kb.exports=X4()),Kb.exports}var Z4=$4();function F4(){return Z4.useSyncExternalStore(P4,()=>!0,()=>!1)}function P4(){return()=>{}}var Np="Avatar",[J4,jz]=ft(Np),[W4,Dj]=J4(Np),Oj=v.forwardRef((n,l)=>{const{__scopeAvatar:r,...i}=n,[s,u]=v.useState("idle");return d.jsx(W4,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:u,children:d.jsx(oe.span,{...i,ref:l})})});Oj.displayName=Np;var zj="AvatarImage",Lj=v.forwardRef((n,l)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...u}=n,h=Dj(zj,r),m=I4(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});Lj.displayName=zj;var Uj="AvatarFallback",Hj=v.forwardRef((n,l)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,u=Dj(Uj,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});Hj.displayName=Uj;function Zb(n,l){return n?l?(n.src!==l&&(n.src=l),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function I4(n,{referrerPolicy:l,crossOrigin:r}){const i=F4(),s=v.useRef(null),u=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>Zb(u,n));return et(()=>{m(Zb(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 e5=Oj,t5=Lj,n5=Hj;e5.displayName;t5.displayName;n5.displayName;zD.displayName;LD.displayName;TD.displayName;AD.displayName;kD.displayName;DD.displayName;MD.displayName;OD.displayName;ge("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 a5="";async function Mt(n,l){const r=await fetch(`${a5}${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 _p(){return Mt("/api/config")}async function l5(n,l){return Mt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:l})})}async function r5(n){return Mt(`/api/db/${n}/tables`)}async function i5(n,l,r,i){return Mt(`/api/db/${n}/tables/${l}?limit=${r}&offset=${i}`)}async function o5(n){return Mt(`/api/db/${n}/schema`)}async function s5(n,l=20,r=0){return Mt(`/api/cache/${n}/entries?limit=${l}&offset=${r}`)}async function u5(n){return Mt(`/api/queue/${n}/metrics`)}async function c5(n,l=10){return Mt(`/api/queue/${n}/messages?limit=${l}`)}async function d5(n,l=20){return Mt(`/api/workflow/${n}/executions?limit=${l}`)}async function f5(n,l){return Mt(`/api/workflow/${n}/executions/${l}`)}async function h5(){return Mt("/api/auth/tables")}async function m5(n,l,r){return Mt(`/api/auth/tables/${n}?limit=${l}&offset=${r}`)}async function p5(){return Mt("/api/auth/schema")}async function v5(n){return Mt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function g5(){return Mt("/api/auth/settings")}async function y5(n){return Mt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}function b5({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(qx,{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 x5({table:n,onInsertText:l}){const[r,i]=v.useState(!1);return d.jsxs(xj,{open:r,onOpenChange:i,children:[d.jsxs(wj,{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(Hx,{className:"h-4 w-4 shrink-0"}):d.jsx(es,{className:"h-4 w-4 shrink-0"}),d.jsx(gc,{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(Sj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(b5,{column:s,onInsertText:l},s.name))})})]})}function w5({onInsertText:n}){const{data:l,isLoading:r,refetch:i}=Lt({queryKey:["auth-schema"],queryFn:p5,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(vt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:d.jsx(vc,{className:ge("h-4 w-4",r&&"animate-spin")})})]}),d.jsx(ww,{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(x5,{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 S5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function j5(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 E5({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(Lo,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),d.jsx(ET,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",j5(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(Lo,{children:"Allow Signups"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),d.jsx(_h,{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(Lo,{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(_h,{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(Lo,{children:"Require Name"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),d.jsx(_h,{checked:g,onCheckedChange:y})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsx(vt,{onClick:b,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function C5(){var I,ie,re,U,W,V;const n=xm(),[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),j=50,S=((ie=(I=Lt({queryKey:["config"],queryFn:_p,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",N=Lt({queryKey:["auth-settings"],queryFn:g5,staleTime:0}),_=Gh({mutationFn:y5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),R=$=>{_.mutate($)},T=v.useCallback($=>{s(de=>de+$)},[]),D=Gh({mutationFn:$=>v5($),onSuccess:$=>{h($),p(null)},onError:$=>{p($ instanceof Error?$.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},X=Lt({queryKey:["auth-tables"],queryFn:h5,staleTime:0,gcTime:0}),q=Lt({queryKey:["auth-tableData",g,j,b],queryFn:()=>m5(g,j,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(Bx,{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(lj,{value:l,onValueChange:r,children:[d.jsxs(rj,{children:[d.jsxs(Ho,{value:"settings",children:[d.jsx(eR,{className:"mr-2 h-4 w-4"}),"Settings"]}),d.jsx(Ho,{value:"query",children:"SQL Editor"}),d.jsx(Ho,{value:"tables",children:"Tables"})]}),d.jsx(qo,{value:"settings",className:"mt-4",children:d.jsxs(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"Auth Settings"}),d.jsx(Fn,{children:"Configure authentication settings for local development."})]}),d.jsx(zt,{children:N.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(kn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):N.data?d.jsx(E5,{settings:N.data,onUpdate:R,isUpdating:_.isPending}):d.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),d.jsx(qo,{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(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"SQL Query"}),d.jsx(Fn,{children:"Execute read-only SELECT queries against auth tables"})]}),d.jsxs(zt,{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(vt,{onClick:L,disabled:D.isPending||!i.trim(),children:[d.jsx(Yx,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&d.jsx(Ot,{className:"border-destructive/50",children:d.jsx(zt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),u&&d.jsx(nw,{results:u.results,meta:u.meta,error:u.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(w5,{onInsertText:T})})]})}),d.jsx(qo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Ot,{className:"md:col-span-1",children:[d.jsxs(ln,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(rn,{className:"text-base",children:"Tables"}),d.jsx(vt,{variant:"ghost",size:"icon",onClick:()=>X.refetch(),className:"h-8 w-8",children:d.jsx(vc,{className:"h-4 w-4"})})]}),d.jsx(zt,{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(gc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:$.name})]},$.name))})})]}),d.jsxs(Ot,{className:"md:col-span-3",children:[d.jsxs(ln,{children:[d.jsx(rn,{children:g||"Select a Table"}),g&&d.jsxs(Fn,{children:[ue," total rows"]})]}),d.jsx(zt,{children:g?q.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(kn,{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(ns,{children:[d.jsx(as,{children:d.jsx(Jn,{children:te.map($=>d.jsx(Ct,{className:"font-mono",children:$},$))})}),d.jsx(ls,{children:G.map(($,de)=>d.jsx(Jn,{children:te.map(A=>d.jsx(Nt,{className:"font-mono text-sm",children:S5($[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+j,ue)," of ",ue]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(vt,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>w(Math.max(0,b-j)),children:[d.jsx(Rm,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(vt,{variant:"outline",size:"sm",disabled:b+j>=ue,onClick:()=>w(b+j),children:["Next",d.jsx(es,{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 Qc(){return d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(kn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function cs({children:n}){return d.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Rp({id:n}){return d.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Wr({title:n,value:l,icon:r,isLoading:i}){return d.jsxs(Ot,{children:[d.jsxs(ln,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(rn,{className:"text-sm font-medium",children:n}),r]}),d.jsx(zt,{children:d.jsx("div",{className:"text-2xl font-bold",children:i?d.jsx(kn,{className:"h-5 w-5 animate-spin"}):l})})]})}function Tp({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 Vl=20;function N5(n){if(n<=0)return"expired";if(n<60)return`${n}s`;if(n<3600)return`${Math.floor(n/60)}m ${n%60}s`;const l=Math.floor(n/3600),r=Math.floor(n%3600/60);return`${l}h ${r}m`}function _5({entries:n,isLoading:l}){return d.jsxs(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"Cache Entries"}),d.jsx(Fn,{children:"Active (non-expired) entries in this cache (auto-refreshes every 5 seconds)"})]}),d.jsx(zt,{children:l?d.jsx(Qc,{}):n!=null&&n.length?d.jsxs(ns,{children:[d.jsx(as,{children:d.jsxs(Jn,{children:[d.jsx(Ct,{children:"Key"}),d.jsx(Ct,{children:"Value"}),d.jsx(Ct,{children:"TTL"}),d.jsx(Ct,{children:"Expires At"})]})}),d.jsx(ls,{children:n.map(r=>d.jsxs(Jn,{children:[d.jsx(Nt,{className:"font-mono text-sm",children:r.key}),d.jsx(Nt,{className:"max-w-[300px] truncate font-mono text-xs text-muted-foreground",children:r.value}),d.jsx(Nt,{children:d.jsx("span",{className:"font-mono text-sm",children:N5(r.ttlSeconds)})}),d.jsx(Nt,{className:"text-sm text-muted-foreground",children:new Date(r.expiresAt).toLocaleString()})]},r.key))})]}):d.jsx(cs,{children:"No active entries in this cache"})})]})}function R5(){const{binding:n}=Jo(),l=n||"",[r,i]=v.useState(0),{data:s,isLoading:u}=Lt({queryKey:["cacheEntries",l,r],queryFn:()=>s5(l,Vl,r),enabled:!!l,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/Vl)+1,p=Math.max(1,Math.ceil(h/Vl));return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsx(Tp,{title:`Cache: ${l}`}),d.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:d.jsx(Wr,{title:"Active Entries",value:h,icon:d.jsx(ts,{className:"h-4 w-4 text-muted-foreground"}),isLoading:u})}),d.jsx(_5,{entries:s==null?void 0:s.entries,isLoading:u}),h>Vl&&d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p," (",h," total entries)"]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(vt,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Vl)),disabled:r===0,children:[d.jsx(Rm,{className:"h-4 w-4"}),"Previous"]}),d.jsxs(vt,{variant:"outline",size:"sm",onClick:()=>i(r+Vl),disabled:r+Vl>=h,children:["Next",d.jsx(es,{className:"h-4 w-4"})]})]})]})]})})}function T5({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(qx,{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 M5({table:n,onInsertText:l}){const[r,i]=v.useState(!1);return d.jsxs(xj,{open:r,onOpenChange:i,children:[d.jsxs(wj,{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(Hx,{className:"h-4 w-4 shrink-0"}):d.jsx(es,{className:"h-4 w-4 shrink-0"}),d.jsx(gc,{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(Sj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(T5,{column:s,onInsertText:l},s.name))})})]})}function A5({bindingName:n,onInsertText:l}){const{data:r,isLoading:i,refetch:s}=Lt({queryKey:["schema",n],queryFn:()=>o5(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(vt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:d.jsx(vc,{className:ge("h-4 w-4",i&&"animate-spin")})})]}),d.jsx(ww,{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(M5,{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 k5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function D5(){var G,te,ue,ce;const{binding:n}=Jo(),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,j]=v.useState(0),E=50,S=v.useCallback(I=>{u(ie=>ie+I)},[]),N=Gh({mutationFn:I=>l5(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=Lt({queryKey:["tables",l],queryFn:()=>r5(l),staleTime:0,gcTime:0,enabled:!!l}),T=Lt({queryKey:["tableData",l,y,E,w],queryFn:()=>i5(l,y,E,w),staleTime:0,gcTime:0,enabled:!!l&&!!y}),D=((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),j(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(lj,{value:r,onValueChange:i,children:[d.jsxs(rj,{children:[d.jsx(Ho,{value:"query",children:"SQL Editor"}),d.jsx(Ho,{value:"tables",children:"Tables"})]}),d.jsx(qo,{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(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"SQL Query"}),d.jsx(Fn,{children:"Execute SQL queries against your database"})]}),d.jsxs(zt,{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(vt,{onClick:_,disabled:N.isPending||!s.trim(),children:[d.jsx(Yx,{className:"mr-2 h-4 w-4"}),N.isPending?"Executing...":"Execute"]})]})]})]}),p&&d.jsx(Ot,{className:"border-destructive/50",children:d.jsx(zt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&d.jsx(nw,{results:h.results,meta:h.meta,error:h.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(A5,{bindingName:l,onInsertText:S})})]})}),d.jsx(qo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(Ot,{className:"md:col-span-1",children:[d.jsxs(ln,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(rn,{className:"text-base",children:"Tables"}),d.jsx(vt,{variant:"ghost",size:"icon",onClick:()=>R.refetch(),className:"h-8 w-8",children:d.jsx(vc,{className:"h-4 w-4"})})]}),d.jsx(zt,{children:R.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:D.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(gc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),d.jsxs(Ot,{className:"md:col-span-3",children:[d.jsxs(ln,{children:[d.jsx(rn,{children:y||"Select a Table"}),y&&d.jsxs(Fn,{children:[q," total rows"]})]}),d.jsx(zt,{children:y?T.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(kn,{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(ns,{children:[d.jsx(as,{children:d.jsx(Jn,{children:X.map(I=>d.jsx(Ct,{className:"font-mono",children:I},I))})}),d.jsx(ls,{children:L.map((I,ie)=>d.jsx(Jn,{children:X.map(re=>d.jsx(Nt,{className:"font-mono text-sm",children:k5(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+E,q)," of ",q]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(vt,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[d.jsx(Rm,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(vt,{variant:"outline",size:"sm",disabled:w+E>=q,onClick:()=>j(w+E),children:["Next",d.jsx(es,{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"})})]})]})})]})]})})}const O5={PENDING:{variant:"default",icon:d.jsx(ts,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:d.jsx(kn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:d.jsx(mc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:d.jsx(pc,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:d.jsx(R_,{className:"h-3 w-3"}),label:"Cancelled"}},z5={PENDING:{variant:"default",icon:d.jsx(ts,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:d.jsx(kn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:d.jsx(mc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:d.jsx(pc,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:d.jsx(D_,{className:"h-3 w-3"}),label:"Dead Letter"}};function qj({status:n}){const l=O5[n];return l?d.jsx(Ju,{variant:l.variant,icon:l.icon,children:l.label}):d.jsx(Ju,{children:n})}function L5({status:n}){const l=z5[n];return l?d.jsx(Ju,{variant:l.variant,icon:l.icon,children:l.label}):d.jsx(Ju,{children:n})}function U5({metrics:n,isLoading:l}){return d.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[d.jsx(Wr,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:d.jsx(ts,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),d.jsx(Wr,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:d.jsx(kn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:l}),d.jsx(Wr,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:d.jsx(mc,{className:"h-4 w-4 text-green-500"}),isLoading:l}),d.jsx(Wr,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:d.jsx(pc,{className:"h-4 w-4 text-red-500"}),isLoading:l}),d.jsx(Wr,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:d.jsx(P_,{className:"h-4 w-4 text-orange-500"}),isLoading:l})]})}function H5({messages:n,isLoading:l}){return d.jsxs(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"Recent Messages"}),d.jsx(Fn,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),d.jsx(zt,{children:l?d.jsx(Qc,{}):n!=null&&n.length?d.jsxs(ns,{children:[d.jsx(as,{children:d.jsxs(Jn,{children:[d.jsx(Ct,{children:"ID"}),d.jsx(Ct,{children:"Status"}),d.jsx(Ct,{children:"Payload"}),d.jsx(Ct,{children:"Attempt"}),d.jsx(Ct,{children:"Created"})]})}),d.jsx(ls,{children:n.map(r=>d.jsxs(Jn,{children:[d.jsx(Nt,{children:d.jsx(Rp,{id:r.id})}),d.jsx(Nt,{children:d.jsx(L5,{status:r.status})}),d.jsx(Nt,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),d.jsx(Nt,{children:r.attempt}),d.jsx(Nt,{children:d.jsx(Il,{timestamp:r.createdAt})})]},r.id))})]}):d.jsx(cs,{children:"No messages in this queue"})})]})}function q5(){const{binding:n}=Jo(),l=n||"",{data:r,isLoading:i}=Lt({queryKey:["queueMetrics",l],queryFn:()=>u5(l),enabled:!!l,refetchInterval:5e3}),{data:s,isLoading:u}=Lt({queryKey:["queueMessages",l],queryFn:()=>c5(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(Tp,{title:`Queue: ${l}`}),d.jsx(U5,{metrics:r==null?void 0:r.metrics,isLoading:i}),d.jsx(H5,{messages:s==null?void 0:s.messages,isLoading:u})]})})}function B5({status:n}){switch(n){case"COMPLETED":return d.jsx(mc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return d.jsx(kn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return d.jsx(pc,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return d.jsx(ts,{className:"h-5 w-5 text-gray-400"})}}function Q5(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 Y5({steps:n}){if(n.length===0)return d.jsx(cs,{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:Uo(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:ge(Q5(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${Uo(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:ge("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(B5,{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:Uo(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(Il,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function G5(){const{binding:n,executionId:l}=Jo(),r=n||"",i=l||"",{data:s,isLoading:u}=Lt({queryKey:["workflowExecution",r,i],queryFn:()=>f5(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(Xn,{to:`/workflows/${r}`,children:d.jsxs(vt,{variant:"ghost",size:"sm",children:[d.jsx(N_,{className:"mr-2 h-4 w-4"}),"Back"]})}),d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",d.jsx(Rp,{id:i})]})]}),u?d.jsx(Qc,{}):h?d.jsxs(d.Fragment,{children:[d.jsxs(Ot,{children:[d.jsx(ln,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(rn,{children:"Execution Details"}),d.jsx(Fn,{children:h.startedAt?d.jsxs(d.Fragment,{children:["Started ",d.jsx(Il,{timestamp:h.startedAt})]}):"Not started yet"})]}),d.jsx(qj,{status:h.status})]})}),d.jsxs(zt,{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:Uo(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(Il,{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(Il,{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(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"Steps"}),d.jsx(Fn,{children:"Workflow step execution timeline"})]}),d.jsx(zt,{children:d.jsx(Y5,{steps:m})})]})]}):d.jsx(cs,{children:"Execution not found"})]})})}function V5({executions:n,isLoading:l,bindingName:r}){return d.jsxs(Ot,{children:[d.jsxs(ln,{children:[d.jsx(rn,{children:"Recent Executions"}),d.jsx(Fn,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),d.jsx(zt,{children:l?d.jsx(Qc,{}):n!=null&&n.length?d.jsxs(ns,{children:[d.jsx(as,{children:d.jsxs(Jn,{children:[d.jsx(Ct,{children:"ID"}),d.jsx(Ct,{children:"Status"}),d.jsx(Ct,{children:"Steps"}),d.jsx(Ct,{children:"Duration"}),d.jsx(Ct,{children:"Started"}),d.jsx(Ct,{})]})}),d.jsx(ls,{children:n.map(i=>d.jsxs(Jn,{children:[d.jsx(Nt,{children:d.jsx(Rp,{id:i.id})}),d.jsx(Nt,{children:d.jsx(qj,{status:i.status})}),d.jsx(Nt,{children:d.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),d.jsx(Nt,{className:"text-sm",children:Uo(i.durationMs)}),d.jsx(Nt,{children:i.startedAt?d.jsx(Il,{timestamp:i.startedAt}):"-"}),d.jsx(Nt,{children:d.jsx(Xn,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):d.jsx(cs,{children:"No executions for this workflow"})})]})}function K5(){const{binding:n}=Jo(),l=n||"",{data:r,isLoading:i}=Lt({queryKey:["workflowExecutions",l],queryFn:()=>d5(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(Tp,{title:`Workflow: ${l}`}),d.jsx(V5,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:l})]})})}function X5(){const n=ka(),{data:l,isLoading:r}=Lt({queryKey:["config"],queryFn:_p,staleTime:6e4}),i=l!=null&&l.db?Object.keys(l.db):[],s=l!=null&&l.queue?Object.keys(l.queue):[],u=l!=null&&l.cache?Object.keys(l.cache):[],h=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(Xn,{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(kn,{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(m=>{const p=n.pathname===`/db/${m}`;return d.jsx(Xn,{to:`/db/${m}`,children:d.jsxs(vt,{variant:p?"secondary":"ghost",className:ge("w-full justify-start",p&&"bg-muted"),children:[d.jsx(q_,{className:"mr-2 h-4 w-4"}),m]})},m)})})]}),(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(Xn,{to:"/auth",children:d.jsxs(vt,{variant:n.pathname==="/auth"?"secondary":"ghost",className:ge("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[d.jsx(nR,{className:"mr-2 h-4 w-4"}),d.jsx("span",{className:"flex-1 text-left",children:l.auth.binding}),d.jsx(Bx,{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(m=>{const p=n.pathname===`/queues/${m}`;return d.jsx(Xn,{to:`/queues/${m}`,children:d.jsxs(vt,{variant:p?"secondary":"ghost",className:ge("w-full justify-start",p&&"bg-muted"),children:[d.jsx(K_,{className:"mr-2 h-4 w-4"}),m]})},m)})})]}),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:"Cache"}),d.jsx("div",{className:"space-y-1",children:u.map(m=>{const p=n.pathname===`/cache/${m}`;return d.jsx(Xn,{to:`/cache/${m}`,children:d.jsxs(vt,{variant:p?"secondary":"ghost",className:ge("w-full justify-start",p&&"bg-muted"),children:[d.jsx(G_,{className:"mr-2 h-4 w-4"}),m]})},m)})})]}),h.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:h.map(m=>{const p=n.pathname.startsWith(`/workflows/${m}`);return d.jsx(Xn,{to:`/workflows/${m}`,children:d.jsxs(vt,{variant:p?"secondary":"ghost",className:ge("w-full justify-start",p&&"bg-muted"),children:[d.jsx(Q_,{className:"mr-2 h-4 w-4"}),m]})},m)})})]}),i.length===0&&s.length===0&&u.length===0&&h.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 $5(){const{data:n,isLoading:l}=Lt({queryKey:["config"],queryFn:_p,staleTime:6e4});if(!l&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.cache?Object.keys(n.cache):[],u=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return d.jsx(Mo,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return d.jsx(Mo,{to:"/auth",replace:!0});if(i.length>0)return d.jsx(Mo,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return d.jsx(Mo,{to:`/cache/${s[0]}`,replace:!0});if(u.length>0)return d.jsx(Mo,{to:`/workflows/${u[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(kn,{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 Z5(){return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(X5,{}),d.jsx("main",{className:"pl-64",children:d.jsx("div",{className:"container mx-auto px-6 py-4",children:d.jsxs(QN,{children:[d.jsx(ol,{path:"/",element:d.jsx($5,{})}),d.jsx(ol,{path:"/db/:binding",element:d.jsx(D5,{})}),d.jsx(ol,{path:"/auth",element:d.jsx(C5,{})}),d.jsx(ol,{path:"/queues/:binding",element:d.jsx(q5,{})}),d.jsx(ol,{path:"/cache/:binding",element:d.jsx(R5,{})}),d.jsx(ol,{path:"/workflows/:binding",element:d.jsx(K5,{})}),d.jsx(ol,{path:"/workflows/:binding/:executionId",element:d.jsx(G5,{})})]})})})]})}function Bj(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}Bj();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Bj);const F5=new _C({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});PC.createRoot(document.getElementById("root")).render(d.jsx(v.StrictMode,{children:d.jsx(DC,{client:F5,children:d.jsx(d_,{children:d.jsx(Z5,{})})})}));