@meetploy/cli 1.17.0 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,339 +0,0 @@
1
- var A0=n=>{throw TypeError(n)};var sh=(n,a,r)=>a.has(n)||A0("Cannot "+r);var k=(n,a,r)=>(sh(n,a,"read from private field"),r?r.call(n):a.get(n)),xe=(n,a,r)=>a.has(n)?A0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),se=(n,a,r,i)=>(sh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Te=(n,a,r)=>(sh(n,a,"access private method"),r);var Du=(n,a,r,i)=>({set _(s){se(n,a,s,r)},get _(){return k(n,a,i)}});function fN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function ox(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var uh={exports:{}},Lo={};/**
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 k0;function hN(){if(k0)return Lo;k0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,c){var h=null;if(c!==void 0&&(h=""+c),s.key!==void 0&&(h=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:c}}return Lo.Fragment=a,Lo.jsx=r,Lo.jsxs=r,Lo}var D0;function mN(){return D0||(D0=1,uh.exports=hN()),uh.exports}var u=mN(),Ri=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(){}},ar=typeof window>"u"||"Deno"in globalThis;function wn(){}function pN(n,a){return typeof n=="function"?n(a):n}function Dh(n){return typeof n=="number"&&n>=0&&n!==1/0}function sx(n,a){return Math.max(n+(a||0)-Date.now(),0)}function oi(n,a){return typeof n=="function"?n(a):n}function On(n,a){return typeof n=="function"?n(a):n}function O0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==bm(h,a.options))return!1}else if(!Fo(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||s&&s!==a.state.fetchStatus||c&&!c(a))}function z0(n,a){const{exact:r,status:i,predicate:s,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(lr(a.options.mutationKey)!==lr(c))return!1}else if(!Fo(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function bm(n,a){return((a==null?void 0:a.queryKeyHashFn)||lr)(n)}function lr(n){return JSON.stringify(n,(a,r)=>Oh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Fo(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Fo(n[r],a[r])):!1}function ux(n,a){if(n===a)return n;const r=L0(n)&&L0(a);if(r||Oh(n)&&Oh(a)){const i=r?n:Object.keys(n),s=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let v=0;v<h;v++){const y=r?v:c[v];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=ux(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function Wu(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function L0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Oh(n){if(!U0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!U0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function U0(n){return Object.prototype.toString.call(n)==="[object Object]"}function vN(n){return new Promise(a=>{setTimeout(a,n)})}function zh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?ux(n,a):a}function gN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function yN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var xm=Symbol();function cx(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===xm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Fl,ul,di,Jb,bN=(Jb=class extends Ri{constructor(){super();xe(this,Fl);xe(this,ul);xe(this,di);se(this,di,a=>{if(!ar&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,ul)||this.setEventListener(k(this,di))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,ul))==null||a.call(this),se(this,ul,void 0))}setEventListener(a){var r;se(this,di,a),(r=k(this,ul))==null||r.call(this),se(this,ul,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,Fl)!==a&&(se(this,Fl,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,Fl)=="boolean"?k(this,Fl):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Fl=new WeakMap,ul=new WeakMap,di=new WeakMap,Jb),wm=new bN,fi,cl,hi,Wb,xN=(Wb=class extends Ri{constructor(){super();xe(this,fi,!0);xe(this,cl);xe(this,hi);se(this,hi,a=>{if(!ar&&window.addEventListener){const r=()=>a(!0),i=()=>a(!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,hi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,cl))==null||a.call(this),se(this,cl,void 0))}setEventListener(a){var r;se(this,hi,a),(r=k(this,cl))==null||r.call(this),se(this,cl,a(this.setOnline.bind(this)))}setOnline(a){k(this,fi)!==a&&(se(this,fi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,fi)}},fi=new WeakMap,cl=new WeakMap,hi=new WeakMap,Wb),Iu=new xN;function Lh(){let n,a;const r=new Promise((s,c)=>{n=s,a=c});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}),a(s)},r}function wN(n){return Math.min(1e3*2**n,3e4)}function dx(n){return(n??"online")==="online"?Iu.isOnline():!0}var fx=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function ch(n){return n instanceof fx}function hx(n){let a=!1,r=0,i=!1,s;const c=Lh(),h=S=>{var C;i||(w(new fx(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},v=()=>wm.isFocused()&&(n.networkMode==="always"||Iu.isOnline())&&n.canRun(),y=()=>dx(n.networkMode)&&n.canRun(),b=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),c.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),c.reject(S))},j=()=>new Promise(S=>{var C;s=_=>{(i||v())&&S(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),E=()=>{if(i)return;let S;const C=r===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(b).catch(_=>{var $;if(i)return;const R=n.retry??(ar?0:3),T=n.retryDelay??wN,D=typeof T=="function"?T(r,_):T,L=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,_);if(a||!L){w(_);return}r++,($=n.onFail)==null||$.call(n,r,_),vN(D).then(()=>v()?void 0:j()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),c)}}var SN=n=>setTimeout(n,0);function jN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=SN;const c=m=>{a?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;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var yt=jN(),Zl,Ib,mx=(Ib=class{constructor(){xe(this,Zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dh(this.gcTime)&&se(this,Zl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ar?1/0:300*1e3))}clearGcTimeout(){k(this,Zl)&&(clearTimeout(k(this,Zl)),se(this,Zl,void 0))}},Zl=new WeakMap,Ib),mi,pi,xn,Pl,Dt,es,Jl,kn,Na,ex,EN=(ex=class extends mx{constructor(a){super();xe(this,kn);xe(this,mi);xe(this,pi);xe(this,xn);xe(this,Pl);xe(this,Dt);xe(this,es);xe(this,Jl);se(this,Jl,!1),se(this,es,a.defaultOptions),this.setOptions(a.options),this.observers=[],se(this,Pl,a.client),se(this,xn,k(this,Pl).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,se(this,mi,NN(this.options)),this.state=a.state??k(this,mi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Dt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,es),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,xn).remove(this)}setData(a,r){const i=zh(this.state.data,a,this.options);return Te(this,kn,Na).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Te(this,kn,Na).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=k(this,Dt))==null?void 0:i.promise;return(s=k(this,Dt))==null||s.cancel(a),r?r.then(wn).catch(wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,mi))}isActive(){return this.observers.some(a=>On(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(a=0){return this.state.isInvalidated||this.state.data===void 0||!sx(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Dt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Dt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,xn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(k(this,Dt)&&(k(this,Jl)?k(this,Dt).cancel({revert:!0}):k(this,Dt).cancelRetry()),this.scheduleGc()),k(this,xn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,kn,Na).call(this,{type:"invalidate"})}fetch(a,r){var p,v,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Dt))return k(this,Dt).continueRetry(),k(this,Dt).promise}if(a&&this.setOptions(a),!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,Jl,!0),i.signal)})},c=()=>{const b=cx(this.options,r),w={client:k(this,Pl),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,Jl,!1),this.options.persister?this.options.persister(b,w,this):b(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,Pl),state:this.state,fetchFn:c};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,pi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=h.fetchOptions)==null?void 0:v.meta))&&Te(this,kn,Na).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,j,E,S;ch(b)&&b.silent||Te(this,kn,Na).call(this,{type:"error",error:b}),ch(b)||((j=(w=k(this,xn).config).onError)==null||j.call(w,b,this),(S=(E=k(this,xn).config).onSettled)==null||S.call(E,this.state.data,b,this)),this.scheduleGc()};return se(this,Dt,hx({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(C){m(C);return}(j=(w=k(this,xn).config).onSuccess)==null||j.call(w,b,this),(S=(E=k(this,xn).config).onSettled)==null||S.call(E,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,kn,Na).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,kn,Na).call(this,{type:"pause"})},onContinue:()=>{Te(this,kn,Na).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Dt).start()}},mi=new WeakMap,pi=new WeakMap,xn=new WeakMap,Pl=new WeakMap,Dt=new WeakMap,es=new WeakMap,Jl=new WeakMap,kn=new WeakSet,Na=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...px(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return ch(s)&&s.revert&&k(this,pi)?{...k(this,pi),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,...a.state}}};this.state=r(this.state),yt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,xn).notify({query:this,type:"updated",action:a})})},ex);function px(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dx(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function NN(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,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 Xn,tx,CN=(tx=class extends Ri{constructor(a={}){super();xe(this,Xn);this.config=a,se(this,Xn,new Map)}build(a,r,i){const s=r.queryKey,c=r.queryHash??bm(s,r);let h=this.get(c);return h||(h=new EN({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){k(this,Xn).has(a.queryHash)||(k(this,Xn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Xn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Xn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){yt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Xn).get(a)}getAll(){return[...k(this,Xn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>O0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>O0(a,i)):r}notify(a){yt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Xn=new WeakMap,tx),Fn,zt,Wl,Zn,ol,nx,_N=(nx=class extends mx{constructor(a){super();xe(this,Zn);xe(this,Fn);xe(this,zt);xe(this,Wl);this.mutationId=a.mutationId,se(this,zt,a.mutationCache),se(this,Fn,[]),this.state=a.state||vx(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){k(this,Fn).includes(a)||(k(this,Fn).push(a),this.clearGcTimeout(),k(this,zt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){se(this,Fn,k(this,Fn).filter(r=>r!==a)),this.scheduleGc(),k(this,zt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Fn).length||(this.state.status==="pending"?this.scheduleGc():k(this,zt).remove(this))}continue(){var a;return((a=k(this,Wl))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,v,y,b,w,j,E,S,C,_,R,T,D,L,$,q,H;const r=()=>{Te(this,Zn,ol).call(this,{type:"continue"})};se(this,Wl,hx({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Zn,ol).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Zn,ol).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,zt).canRun(this)}));const i=this.state.status==="pending",s=!k(this,Wl).canStart();try{if(i)r();else{Te(this,Zn,ol).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(c=k(this,zt).config).onMutate)==null?void 0:h.call(c,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Te(this,Zn,ol).call(this,{type:"pending",context:te,variables:a,isPaused:s})}const G=await k(this,Wl).start();return await((y=(v=k(this,zt).config).onSuccess)==null?void 0:y.call(v,G,a,this.state.context,this)),await((w=(b=this.options).onSuccess)==null?void 0:w.call(b,G,a,this.state.context)),await((E=(j=k(this,zt).config).onSettled)==null?void 0:E.call(j,G,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,G,null,a,this.state.context)),Te(this,Zn,ol).call(this,{type:"success",data:G}),G}catch(G){try{throw await((R=(_=k(this,zt).config).onError)==null?void 0:R.call(_,G,a,this.state.context,this)),await((D=(T=this.options).onError)==null?void 0:D.call(T,G,a,this.state.context)),await(($=(L=k(this,zt).config).onSettled)==null?void 0:$.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,a,this.state.context)),G}finally{Te(this,Zn,ol).call(this,{type:"error",error:G})}}finally{k(this,zt).runNext(this)}}},Fn=new WeakMap,zt=new WeakMap,Wl=new WeakMap,Zn=new WeakSet,ol=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),yt.batch(()=>{k(this,Fn).forEach(i=>{i.onMutationUpdate(a)}),k(this,zt).notify({mutation:this,type:"updated",action:a})})},nx);function vx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ca,Dn,ts,ax,RN=(ax=class extends Ri{constructor(a={}){super();xe(this,Ca);xe(this,Dn);xe(this,ts);this.config=a,se(this,Ca,new Set),se(this,Dn,new Map),se(this,ts,0)}build(a,r,i){const s=new _N({mutationCache:this,mutationId:++Du(this,ts)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){k(this,Ca).add(a);const r=Ou(a);if(typeof r=="string"){const i=k(this,Dn).get(r);i?i.push(a):k(this,Dn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Ca).delete(a)){const r=Ou(a);if(typeof r=="string"){const i=k(this,Dn).get(r);if(i)if(i.length>1){const s=i.indexOf(a);s!==-1&&i.splice(s,1)}else i[0]===a&&k(this,Dn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Ou(a);if(typeof r=="string"){const i=k(this,Dn).get(r),s=i==null?void 0:i.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=Ou(a);if(typeof r=="string"){const s=(i=k(this,Dn).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{k(this,Ca).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Ca).clear(),k(this,Dn).clear()})}getAll(){return Array.from(k(this,Ca))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>z0(r,i))}findAll(a={}){return this.getAll().filter(r=>z0(a,r))}notify(a){yt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return yt.batch(()=>Promise.all(a.map(r=>r.continue().catch(wn))))}},Ca=new WeakMap,Dn=new WeakMap,ts=new WeakMap,ax);function Ou(n){var a;return(a=n.options.scope)==null?void 0:a.id}function H0(n){return{onFetch:(a,r)=>{var y,b,w,j,E;const i=a.options,s=(w=(b=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,c=((j=a.state.data)==null?void 0:j.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const v=async()=>{let S=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},_=cx(a.options,a.fetchOptions),R=async(T,D,L)=>{if(S)return Promise.reject();if(D==null&&T.pages.length)return Promise.resolve(T);const $={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C($);const q=await _($),{maxPages:H}=a.options,G=L?yN:gN;return{pages:G(T.pages,q,H),pageParams:G(T.pageParams,D,H)}};if(s&&c.length){const T=s==="backward",D=T?TN:q0,L={pages:c,pageParams:h},$=D(i,L);m=await R(L,$,T)}else{const T=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:q0(i,m);if(p>0&&D==null)break;m=await R(m,D),p++}while(p<T)}return m};a.options.persister?a.fetchFn=()=>{var S,C;return(C=(S=a.options).persister)==null?void 0:C.call(S,v,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=v}}}function q0(n,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?n.getNextPageParam(a[i],a,r[i],r):void 0}function TN(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var ot,dl,fl,vi,gi,hl,yi,bi,lx,MN=(lx=class{constructor(n={}){xe(this,ot);xe(this,dl);xe(this,fl);xe(this,vi);xe(this,gi);xe(this,hl);xe(this,yi);xe(this,bi);se(this,ot,n.queryCache||new CN),se(this,dl,n.mutationCache||new RN),se(this,fl,n.defaultOptions||{}),se(this,vi,new Map),se(this,gi,new Map),se(this,hl,0)}mount(){Du(this,hl)._++,k(this,hl)===1&&(se(this,yi,wm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onFocus())})),se(this,bi,Iu.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onOnline())})))}unmount(){var n,a;Du(this,hl)._--,k(this,hl)===0&&((n=k(this,yi))==null||n.call(this),se(this,yi,void 0),(a=k(this,bi))==null||a.call(this),se(this,bi,void 0))}isFetching(n){return k(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,dl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(oi(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,ot).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),s=k(this,ot).get(i.queryHash),c=s==null?void 0:s.state.data,h=pN(a,c);if(h!==void 0)return k(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return yt.batch(()=>k(this,ot).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,ot);yt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,ot);return yt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=yt.batch(()=>k(this,ot).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(wn).catch(wn)}invalidateQueries(n,a={}){return yt.batch(()=>(k(this,ot).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"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=yt.batch(()=>k(this,ot).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(wn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(wn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,ot).build(this,a);return r.isStaleByTime(oi(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(wn).catch(wn)}fetchInfiniteQuery(n){return n.behavior=H0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(wn).catch(wn)}ensureInfiniteQueryData(n){return n.behavior=H0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Iu.isOnline()?k(this,dl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ot)}getMutationCache(){return k(this,dl)}getDefaultOptions(){return k(this,fl)}setDefaultOptions(n){se(this,fl,n)}setQueryDefaults(n,a){k(this,vi).set(lr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,vi).values()],r={};return a.forEach(i=>{Fo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,gi).set(lr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,gi).values()],r={};return a.forEach(i=>{Fo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,fl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=bm(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===xm&&(a.enabled=!1),a}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,ot).clear(),k(this,dl).clear()}},ot=new WeakMap,dl=new WeakMap,fl=new WeakMap,vi=new WeakMap,gi=new WeakMap,hl=new WeakMap,yi=new WeakMap,bi=new WeakMap,lx),$t,Le,ns,Lt,Il,xi,ml,pl,as,wi,Si,er,tr,vl,ji,Qe,Qo,Uh,Hh,qh,Bh,Qh,Yh,Gh,gx,rx,AN=(rx=class extends Ri{constructor(a,r){super();xe(this,Qe);xe(this,$t);xe(this,Le);xe(this,ns);xe(this,Lt);xe(this,Il);xe(this,xi);xe(this,ml);xe(this,pl);xe(this,as);xe(this,wi);xe(this,Si);xe(this,er);xe(this,tr);xe(this,vl);xe(this,ji,new Set);this.options=r,se(this,$t,a),se(this,pl,null),se(this,ml,Lh()),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),B0(k(this,Le),this.options)?Te(this,Qe,Qo).call(this):this.updateResult(),Te(this,Qe,Bh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vh(k(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vh(k(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,Qh).call(this),Te(this,Qe,Yh).call(this),k(this,Le).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,Le);if(this.options=k(this,$t).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof On(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,Gh).call(this),k(this,Le).setOptions(this.options),r._defaulted&&!Wu(this.options,r)&&k(this,$t).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,Qo).call(this),this.updateResult(),s&&(k(this,Le)!==i||On(this.options.enabled,k(this,Le))!==On(r.enabled,k(this,Le))||oi(this.options.staleTime,k(this,Le))!==oi(r.staleTime,k(this,Le)))&&Te(this,Qe,Uh).call(this);const c=Te(this,Qe,Hh).call(this);s&&(k(this,Le)!==i||On(this.options.enabled,k(this,Le))!==On(r.enabled,k(this,Le))||c!==k(this,vl))&&Te(this,Qe,qh).call(this,c)}getOptimisticResult(a){const r=k(this,$t).getQueryCache().build(k(this,$t),a),i=this.createResult(r,a);return DN(this,i)&&(se(this,Lt,i),se(this,xi,this.options),se(this,Il,k(this,Le).state)),i}getCurrentResult(){return k(this,Lt)}trackResult(a,r){const i={};return Object.keys(a).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),a[s])})}),i}trackProp(a){k(this,ji).add(a)}getCurrentQuery(){return k(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,$t).defaultQueryOptions(a),i=k(this,$t).getQueryCache().build(k(this,$t),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Te(this,Qe,Qo).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Lt)))}createResult(a,r){var G;const i=k(this,Le),s=this.options,c=k(this,Lt),h=k(this,Il),m=k(this,xi),v=a!==i?a.state:k(this,ns),{state:y}=a;let b={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&B0(a,r),ce=te&&Q0(a,i,r,s);(ue||ce)&&(b={...b,...px(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=b;j=b.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=c.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=k(this,Si))==null?void 0:G.state.data,k(this,Si)):r.placeholderData,te!==void 0&&(C="success",j=zh(c==null?void 0:c.data,te,r),w=!0)}if(r.select&&j!==void 0&&!_)if(c&&j===(h==null?void 0:h.data)&&r.select===k(this,as))j=k(this,wi);else try{se(this,as,r.select),j=r.select(j),j=zh(c==null?void 0:c.data,j,r),se(this,wi,j),se(this,pl,null)}catch(te){se(this,pl,te)}k(this,pl)&&(E=k(this,pl),j=k(this,wi),S=Date.now(),C="error");const R=b.fetchStatus==="fetching",T=C==="pending",D=C==="error",L=T&&R,$=j!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:T,isSuccess:C==="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>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:D&&!$,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&$,isStale:Sm(a,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=Lh());te(I)},ce=k(this,ml);switch(ce.status){case"pending":a.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 a=k(this,Lt),r=this.createResult(k(this,Le),this.options);if(se(this,Il,k(this,Le).state),se(this,xi,this.options),k(this,Il).data!==void 0&&se(this,Si,k(this,Le)),Wu(r,a))return;se(this,Lt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!k(this,ji).size)return!0;const h=new Set(c??k(this,ji));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Lt)).some(m=>{const p=m;return k(this,Lt)[p]!==a[p]&&h.has(p)})};Te(this,Qe,gx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,Bh).call(this)}},$t=new WeakMap,Le=new WeakMap,ns=new WeakMap,Lt=new WeakMap,Il=new WeakMap,xi=new WeakMap,ml=new WeakMap,pl=new WeakMap,as=new WeakMap,wi=new WeakMap,Si=new WeakMap,er=new WeakMap,tr=new WeakMap,vl=new WeakMap,ji=new WeakMap,Qe=new WeakSet,Qo=function(a){Te(this,Qe,Gh).call(this);let r=k(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(wn)),r},Uh=function(){Te(this,Qe,Qh).call(this);const a=oi(this.options.staleTime,k(this,Le));if(ar||k(this,Lt).isStale||!Dh(a))return;const i=sx(k(this,Lt).dataUpdatedAt,a)+1;se(this,er,setTimeout(()=>{k(this,Lt).isStale||this.updateResult()},i))},Hh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Le)):this.options.refetchInterval)??!1},qh=function(a){Te(this,Qe,Yh).call(this),se(this,vl,a),!(ar||On(this.options.enabled,k(this,Le))===!1||!Dh(k(this,vl))||k(this,vl)===0)&&se(this,tr,setInterval(()=>{(this.options.refetchIntervalInBackground||wm.isFocused())&&Te(this,Qe,Qo).call(this)},k(this,vl)))},Bh=function(){Te(this,Qe,Uh).call(this),Te(this,Qe,qh).call(this,Te(this,Qe,Hh).call(this))},Qh=function(){k(this,er)&&(clearTimeout(k(this,er)),se(this,er,void 0))},Yh=function(){k(this,tr)&&(clearInterval(k(this,tr)),se(this,tr,void 0))},Gh=function(){const a=k(this,$t).getQueryCache().build(k(this,$t),this.options);if(a===k(this,Le))return;const r=k(this,Le);se(this,Le,a),se(this,ns,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},gx=function(a){yt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,Lt))}),k(this,$t).getQueryCache().notify({query:k(this,Le),type:"observerResultsUpdated"})})},rx);function kN(n,a){return On(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function B0(n,a){return kN(n,a)||n.state.data!==void 0&&Vh(n,a,a.refetchOnMount)}function Vh(n,a,r){if(On(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&Sm(n,a)}return!1}function Q0(n,a,r,i){return(n!==a||On(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Sm(n,r)}function Sm(n,a){return On(a.enabled,n)!==!1&&n.isStaleByTime(oi(a.staleTime,n))}function DN(n,a){return!Wu(n.getCurrentResult(),a)}var gl,yl,Xt,_a,Ta,Ku,Kh,ix,ON=(ix=class extends Ri{constructor(r,i){super();xe(this,Ta);xe(this,gl);xe(this,yl);xe(this,Xt);xe(this,_a);se(this,gl,r),this.setOptions(i),this.bindMethods(),Te(this,Ta,Ku).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),Wu(this.options,i)||k(this,gl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Xt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&lr(i.mutationKey)!==lr(this.options.mutationKey)?this.reset():((s=k(this,Xt))==null?void 0:s.state.status)==="pending"&&k(this,Xt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Xt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Ta,Ku).call(this),Te(this,Ta,Kh).call(this,r)}getCurrentResult(){return k(this,yl)}reset(){var r;(r=k(this,Xt))==null||r.removeObserver(this),se(this,Xt,void 0),Te(this,Ta,Ku).call(this),Te(this,Ta,Kh).call(this)}mutate(r,i){var s;return se(this,_a,i),(s=k(this,Xt))==null||s.removeObserver(this),se(this,Xt,k(this,gl).getMutationCache().build(k(this,gl),this.options)),k(this,Xt).addObserver(this),k(this,Xt).execute(r)}},gl=new WeakMap,yl=new WeakMap,Xt=new WeakMap,_a=new WeakMap,Ta=new WeakSet,Ku=function(){var i;const r=((i=k(this,Xt))==null?void 0:i.state)??vx();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})},Kh=function(r){yt.batch(()=>{var i,s,c,h,m,p,v,y;if(k(this,_a)&&this.hasListeners()){const b=k(this,yl).variables,w=k(this,yl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,_a)).onSuccess)==null||s.call(i,r.data,b,w),(h=(c=k(this,_a)).onSettled)==null||h.call(c,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,_a)).onError)==null||p.call(m,r.error,b,w),(y=(v=k(this,_a)).onSettled)==null||y.call(v,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(k(this,yl))})})},ix),dh={exports:{}},Ce={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Y0;function zN(){if(Y0)return Ce;Y0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=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,C={};function _(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,F){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,F,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=_.prototype;function T(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}var D=T.prototype=new R;D.constructor=T,S(D,_.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function $(){}var q={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(A,F,ee){var le=ee.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:ee}}function te(A,F){return G(A.type,F,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return F[ee]})}var I=/\/+/g;function ie(A,F){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):F.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($,$):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,F,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 a:ne=!0;break;case y:return ne=A._init,U(ne(A._payload),F,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,F,ee,"",function(Ne){return Ne})):pe!=null&&(ue(pe)&&(pe=te(pe,ee+(pe.key==null||A&&A.key===pe.key?"":(""+pe.key).replace(I,"$&/")+"/")+ne)),F.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,F,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,F,ee,je,pe);else if(je==="object"){if(typeof A.then=="function")return U(re(A),F,ee,le,pe);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ne}function W(A,F,ee){if(A==null)return A;var le=[],pe=0;return U(A,le,"","",function(je){return F.call(ee,je,pe++)}),le}function V(A){if(A._status===-1){var F=A._result;F=F(),F.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=F)}if(A._status===1)return A._result.default;throw A._result}var X=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=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(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:W,forEach:function(A,F,ee){W(A,function(){F.apply(this,arguments)},ee)},count:function(A){var F=0;return W(A,function(){F++}),F},toArray:function(A){return W(A,function(F){return F})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=b,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=T,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,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(F!=null)for(je in F.key!==void 0&&(pe=""+F.key),F)!H.call(F,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&F.ref===void 0||(le[je]=F[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)},Ce.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ce.createElement=function(A,F,ee){var le,pe={},je=null;if(F!=null)for(le in F.key!==void 0&&(je=""+F.key),F)H.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(pe[le]=F[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)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ue,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:V}},Ce.memo=function(A,F){return{$$typeof:v,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=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){X(je)}finally{F!==null&&ee.types!==null&&(F.types=ee.types),q.T=F}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(A){return q.H.use(A)},Ce.useActionState=function(A,F,ee){return q.H.useActionState(A,F,ee)},Ce.useCallback=function(A,F){return q.H.useCallback(A,F)},Ce.useContext=function(A){return q.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return q.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return q.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(A,F,ee){return q.H.useImperativeHandle(A,F,ee)},Ce.useInsertionEffect=function(A,F){return q.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return q.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return q.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return q.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,ee){return q.H.useReducer(A,F,ee)},Ce.useRef=function(A){return q.H.useRef(A)},Ce.useState=function(A){return q.H.useState(A)},Ce.useSyncExternalStore=function(A,F,ee){return q.H.useSyncExternalStore(A,F,ee)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.3",Ce}var G0;function jm(){return G0||(G0=1,dh.exports=zN()),dh.exports}var g=jm();const st=ox(g),yx=fN({__proto__:null,default:st},[g]);var bx=g.createContext(void 0),Em=n=>{const a=g.useContext(bx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},LN=({client:n,children:a})=>(g.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(bx.Provider,{value:n,children:a})),xx=g.createContext(!1),UN=()=>g.useContext(xx);xx.Provider;function HN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var qN=g.createContext(HN()),BN=()=>g.useContext(qN);function wx(n,a){return typeof n=="function"?n(...a):!!n}function $h(){}var QN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},YN=n=>{g.useEffect(()=>{n.clearReset()},[n])},GN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||wx(r,[n.error,i])),VN=n=>{const a=n.staleTime;n.suspense&&(n.staleTime=typeof a=="function"?(...r)=>Math.max(a(...r),1e3):Math.max(a??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},KN=(n,a)=>n.isLoading&&n.isFetching&&!a,$N=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,V0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function XN(n,a,r){var b,w,j,E,S;const i=Em(),s=UN(),c=BN(),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",VN(h),QN(h,c),YN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=g.useState(()=>new a(i,h)),v=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(C=>{const _=y?p.subscribe(yt.batchCalls(C)):$h;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),g.useEffect(()=>{p.setOptions(h)},[h,p]),$N(h,v))throw V0(h,p,c);if(GN({result:v,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw v.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,v),h.experimental_prefetchInRender&&!ar&&KN(v,s)){const C=m?V0(h,p,c):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch($h).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?v:p.trackResult(v)}function Mt(n,a){return XN(n,AN)}function Xh(n,a){const r=Em(),[i]=g.useState(()=>new ON(r,n));g.useEffect(()=>{i.setOptions(n)},[i,n]);const s=g.useSyncExternalStore(g.useCallback(h=>i.subscribe(yt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=g.useCallback((h,m)=>{i.mutate(h,m).catch($h)},[i]);if(s.error&&wx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var fh={exports:{}},Uo={},hh={exports:{}},mh={};/**
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 K0;function FN(){return K0||(K0=1,(function(n){function a(U,W){var V=U.length;U.push(W);e:for(;0<V;){var X=V-1>>>1,de=U[X];if(0<s(de,W))U[X]=W,U[V]=de,V=X;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 X=0,de=U.length,A=de>>>1;X<A;){var F=2*(X+1)-1,ee=U[F],le=F+1,pe=U[le];if(0>s(ee,V))le<de&&0>s(pe,ee)?(U[X]=pe,U[le]=V,X=le):(U[X]=ee,U[F]=V,X=F);else if(le<de&&0>s(pe,V))U[X]=pe,U[le]=V,X=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 c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],v=[],y=1,b=null,w=3,j=!1,E=!1,S=!1,C=!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(v);W!==null;){if(W.callback===null)i(v);else if(W.startTime<=U)i(v),W.sortIndex=W.expirationTime,a(p,W);else break;W=r(v)}}function L(U){if(S=!1,D(U),!E)if(r(p)!==null)E=!0,$||($=!0,ce());else{var W=r(v);W!==null&&re(L,W.startTime-U)}}var $=!1,q=-1,H=5,G=-1;function te(){return C?!0:!(n.unstable_now()-G<H)}function ue(){if(C=!1,$){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 X=b.callback;if(typeof X=="function"){b.callback=null,w=b.priorityLevel;var de=X(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(v);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{b=null,w=V,j=!1}W=void 0}}finally{W?ce():$=!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(){C=!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 X=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?X+V:X):V=X,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>X?(U.sortIndex=V,a(v,U),r(p)===null&&U===r(v)&&(S?(R(q),q=-1):S=!0,re(L,V-X))):(U.sortIndex=de,a(p,U),E||j||(E=!0,$||($=!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}}}})(mh)),mh}var $0;function ZN(){return $0||($0=1,hh.exports=FN()),hh.exports}var ph={exports:{}},kt={};/**
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 X0;function PN(){if(X0)return kt;X0=1;var n=jm();function a(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)v+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+v+" 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(a(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 c(p,v,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:v,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kt.createPortal=function(p,v){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(a(299));return c(p,v,null,y)},kt.flushSync=function(p){var v=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=v,i.p=y,i.d.f()}},kt.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,i.d.C(p,v))},kt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},kt.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var y=v.as,b=m(y,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,j=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;y==="style"?i.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},kt.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var y=m(v.as,v.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&i.d.M(p)},kt.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var y=v.as,b=m(y,v.crossOrigin);i.d.L(p,y,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},kt.preloadModule=function(p,v){if(typeof p=="string")if(v){var y=m(v.as,v.crossOrigin);i.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:y,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else i.d.m(p)},kt.requestFormReset=function(p){i.d.r(p)},kt.unstable_batchedUpdates=function(p,v){return p(v)},kt.useFormState=function(p,v,y){return h.H.useFormState(p,v,y)},kt.useFormStatus=function(){return h.H.useHostTransitionStatus()},kt.version="19.2.3",kt}var F0;function Sx(){if(F0)return ph.exports;F0=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(a){console.error(a)}}return n(),ph.exports=PN(),ph.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 Z0;function JN(){if(Z0)return Uo;Z0=1;var n=ZN(),a=jm(),r=Sx();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l: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(c(e)!==e)throw Error(i(188))}function v(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===o)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=d,o=f;else{for(var x=!1,N=d.child;N;){if(N===l){x=!0,l=d,o=f;break}if(N===o){x=!0,o=d,l=f;break}N=N.sibling}if(!x){for(N=f.child;N;){if(N===l){x=!0,l=f,o=d;break}if(N===o){x=!0,o=f,l=d;break}N=N.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?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"),C=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"),$=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 C:return"StrictMode";case L:return"Suspense";case $: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=a.__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},X=[],de=-1;function A(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function ee(e,t){de++,X[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)?e0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=e0(t),e=t0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),ee(le,e)}function ye(){F(le),F(pe),F(je)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=t0(t,e.type);t!==l&&(ee(pe,e),ee(le,l))}function Ue(e){pe.current===e&&(F(le),F(pe)),ne.current===e&&(F(ne),ko._currentValue=V)}var Ye,At;function Zt(e){if(Ye===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",At=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ye+e+At}var la=!1;function ra(e,t){if(!e||la)return"";la=!0;var l=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 d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),x=f[0],N=f[1];if(x&&N){var M=x.split(`
44
- `),Q=N.split(`
45
- `);for(d=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(o===M.length||d===Q.length)for(o=M.length-1,d=Q.length-1;1<=o&&0<=d&&M[o]!==Q[d];)d--;for(;1<=o&&0<=d;o--,d--)if(M[o]!==Q[d]){if(o!==1||d!==1)do if(o--,d--,0>d||M[o]!==Q[d]){var Z=`
46
- `+M[o].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=o&&0<=d);break}}}finally{la=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Zt(l):""}function $c(e,t){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return e.child!==t&&t!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return ra(e.type,!1);case 11:return ra(e.type.render,!1);case 1:return ra(e.type,!0);case 31:return Zt("Activity");default:return""}}function ps(e){try{var t="",l=null;do t+=$c(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
47
- Error generating stack: `+o.message+`
48
- `+o.stack}}var Oa=Object.prototype.hasOwnProperty,Xc=n.unstable_scheduleCallback,Fc=n.unstable_cancelCallback,Vj=n.unstable_shouldYield,Kj=n.unstable_requestPaint,Pt=n.unstable_now,$j=n.unstable_getCurrentPriorityLevel,kp=n.unstable_ImmediatePriority,Dp=n.unstable_UserBlockingPriority,vs=n.unstable_NormalPriority,Xj=n.unstable_LowPriority,Op=n.unstable_IdlePriority,Fj=n.log,Zj=n.unstable_setDisableYieldValue,Gi=null,Jt=null;function za(e){if(typeof Fj=="function"&&Zj(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Gi,e)}catch{}}var Wt=Math.clz32?Math.clz32:Wj,Pj=Math.log,Jj=Math.LN2;function Wj(e){return e>>>=0,e===0?32:31-(Pj(e)/Jj|0)|0}var gs=256,ys=262144,bs=4194304;function Nl(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 xs(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var d=0,f=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?d=Nl(o):(x&=N,x!==0?d=Nl(x):l||(l=N&~e,l!==0&&(d=Nl(l))))):(N=o&~f,N!==0?d=Nl(N):x!==0?d=Nl(x):l||(l=o&~e,l!==0&&(d=Nl(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Vi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ij(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 zp(){var e=bs;return bs<<=1,(bs&62914560)===0&&(bs=4194304),e}function Zc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function e2(e,t,l,o,d,f){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,Q=e.hiddenUpdates;for(l=x&~l;0<l;){var Z=31-Wt(l),J=1<<Z;N[Z]=0,M[Z]=-1;var Y=Q[Z];if(Y!==null)for(Q[Z]=null,Z=0;Z<Y.length;Z++){var K=Y[Z];K!==null&&(K.lane&=-536870913)}l&=~J}o!==0&&Lp(e,o,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Lp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Wt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Up(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Wt(l),d=1<<o;d&t|e[o]&t&&(e[o]|=t),l&=~d}}function Hp(e,t){var l=t&-t;return l=(l&42)!==0?1:Pc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Pc(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 Jc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qp(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:E0(e.type))}function Bp(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var La=Math.random().toString(36).slice(2),jt="__reactFiber$"+La,qt="__reactProps$"+La,br="__reactContainer$"+La,Wc="__reactEvents$"+La,t2="__reactListeners$"+La,n2="__reactHandles$"+La,Qp="__reactResources$"+La,$i="__reactMarker$"+La;function Ic(e){delete e[jt],delete e[qt],delete e[Wc],delete e[t2],delete e[n2]}function xr(e){var t=e[jt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[br]||l[jt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=s0(e);e!==null;){if(l=e[jt])return l;e=s0(e)}return t}e=l,l=e.parentNode}return null}function wr(e){if(e=e[jt]||e[br]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Sr(e){var t=e[Qp];return t||(t=e[Qp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[$i]=!0}var Yp=new Set,Gp={};function Cl(e,t){jr(e,t),jr(e+"Capture",t)}function jr(e,t){for(Gp[e]=t,e=0;e<t.length;e++)Yp.add(t[e])}var a2=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]*$"),Vp={},Kp={};function l2(e){return Oa.call(Kp,e)?!0:Oa.call(Vp,e)?!1:a2.test(e)?Kp[e]=!0:(Vp[e]=!0,!1)}function ws(e,t,l){if(l2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){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,""+l)}}function Ss(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ia(e,t,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+o)}}function cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $p(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r2(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(x){l=""+x,f.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ed(e){if(!e._valueTracker){var t=$p(e)?"checked":"value";e._valueTracker=r2(e,t,""+e[t])}}function Xp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=$p(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function js(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 i2=/[\n"\\]/g;function dn(e){return e.replace(i2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function td(e,t,l,o,d,f,x,N){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=""+cn(t)):e.value!==""+cn(t)&&(e.value=""+cn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?nd(e,x,cn(t)):l!=null?nd(e,x,cn(l)):o!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+cn(N):e.removeAttribute("name")}function Fp(e,t,l,o,d,f,x,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){ed(e);return}l=l!=null?""+cn(l):"",t=t!=null?""+cn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),ed(e)}function nd(e,t,l){t==="number"&&js(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Er(e,t,l,o){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&o&&(e[l].defaultSelected=!0)}else{for(l=""+cn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Zp(e,t,l){if(t!=null&&(t=""+cn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+cn(l):""}function Pp(e,t,l,o){if(t==null){if(o!=null){if(l!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),t=l}l=cn(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),ed(e)}function Nr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var o2=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 Jp(e,t,l){var o=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,l):typeof l!="number"||l===0||o2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Wp(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in t)o=t[d],t.hasOwnProperty(d)&&l[d]!==o&&Jp(e,d,o)}else for(var f in t)t.hasOwnProperty(f)&&Jp(e,f,t[f])}function ad(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 s2=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"]]),u2=/^[\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 Es(e){return u2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var ld=null;function rd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cr=null,_r=null;function Ip(e){var t=wr(e);if(t&&(e=t.stateNode)){var l=e[qt]||null;e:switch(e=t.stateNode,t.type){case"input":if(td(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+dn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var d=o[qt]||null;if(!d)throw Error(i(90));td(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Xp(o)}break e;case"textarea":Zp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Er(e,!!l.multiple,t,!1)}}}var id=!1;function ev(e,t,l){if(id)return e(t,l);id=!0;try{var o=e(t);return o}finally{if(id=!1,(Cr!==null||_r!==null)&&(du(),Cr&&(t=Cr,e=_r,_r=Cr=null,Ip(t),e)))for(t=0;t<e.length;t++)Ip(e[t])}}function Fi(e,t){var l=e.stateNode;if(l===null)return null;var o=l[qt]||null;if(o===null)return null;l=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(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),od=!1;if(sa)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){od=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{od=!1}var Ua=null,sd=null,Ns=null;function tv(){if(Ns)return Ns;var e,t=sd,l=t.length,o,d="value"in Ua?Ua.value:Ua.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var x=l-e;for(o=1;o<=x&&t[l-o]===d[f-o];o++);return Ns=d.slice(e,1<o?1-o:void 0)}function Cs(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 _s(){return!0}function nv(){return!1}function Bt(e){function t(l,o,d,f,x){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=x,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?_s:nv,this.isPropagationStopped=nv,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_s)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_s)},persist:function(){},isPersistent:_s}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rs=Bt(_l),Pi=b({},_l,{view:0,detail:0}),c2=Bt(Pi),ud,cd,Ji,Ts=b({},Pi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fd,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!==Ji&&(Ji&&e.type==="mousemove"?(ud=e.screenX-Ji.screenX,cd=e.screenY-Ji.screenY):cd=ud=0,Ji=e),ud)},movementY:function(e){return"movementY"in e?e.movementY:cd}}),av=Bt(Ts),d2=b({},Ts,{dataTransfer:0}),f2=Bt(d2),h2=b({},Pi,{relatedTarget:0}),dd=Bt(h2),m2=b({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),p2=Bt(m2),v2=b({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g2=Bt(v2),y2=b({},_l,{data:0}),lv=Bt(y2),b2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x2={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"},w2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w2[e])?!!t[e]:!1}function fd(){return S2}var j2=b({},Pi,{key:function(e){if(e.key){var t=b2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?x2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fd,charCode:function(e){return e.type==="keypress"?Cs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E2=Bt(j2),N2=b({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rv=Bt(N2),C2=b({},Pi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fd}),_2=Bt(C2),R2=b({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),T2=Bt(R2),M2=b({},Ts,{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}),A2=Bt(M2),k2=b({},_l,{newState:0,oldState:0}),D2=Bt(k2),O2=[9,13,27,32],hd=sa&&"CompositionEvent"in window,Wi=null;sa&&"documentMode"in document&&(Wi=document.documentMode);var z2=sa&&"TextEvent"in window&&!Wi,iv=sa&&(!hd||Wi&&8<Wi&&11>=Wi),ov=" ",sv=!1;function uv(e,t){switch(e){case"keyup":return O2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function L2(e,t){switch(e){case"compositionend":return cv(t);case"keypress":return t.which!==32?null:(sv=!0,ov);case"textInput":return e=t.data,e===ov&&sv?null:e;default:return null}}function U2(e,t){if(Rr)return e==="compositionend"||!hd&&uv(e,t)?(e=tv(),Ns=sd=Ua=null,Rr=!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 iv&&t.locale!=="ko"?null:t.data;default:return null}}var H2={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 dv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H2[e.type]:t==="textarea"}function fv(e,t,l,o){Cr?_r?_r.push(o):_r=[o]:Cr=o,t=yu(t,"onChange"),0<t.length&&(l=new Rs("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var Ii=null,eo=null;function q2(e){Fy(e,0)}function Ms(e){var t=Xi(e);if(Xp(t))return e}function hv(e,t){if(e==="change")return t}var mv=!1;if(sa){var md;if(sa){var pd="oninput"in document;if(!pd){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),pd=typeof pv.oninput=="function"}md=pd}else md=!1;mv=md&&(!document.documentMode||9<document.documentMode)}function vv(){Ii&&(Ii.detachEvent("onpropertychange",gv),eo=Ii=null)}function gv(e){if(e.propertyName==="value"&&Ms(eo)){var t=[];fv(t,eo,e,rd(e)),ev(q2,t)}}function B2(e,t,l){e==="focusin"?(vv(),Ii=t,eo=l,Ii.attachEvent("onpropertychange",gv)):e==="focusout"&&vv()}function Q2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ms(eo)}function Y2(e,t){if(e==="click")return Ms(t)}function G2(e,t){if(e==="input"||e==="change")return Ms(t)}function V2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var It=typeof Object.is=="function"?Object.is:V2;function to(e,t){if(It(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var d=l[o];if(!Oa.call(t,d)||!It(e[d],t[d]))return!1}return!0}function yv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bv(e,t){var l=yv(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=t&&o>=t)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yv(l)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=js(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=js(e.document)}return t}function vd(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 K2=sa&&"documentMode"in document&&11>=document.documentMode,Tr=null,gd=null,no=null,yd=!1;function Sv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;yd||Tr==null||Tr!==js(o)||(o=Tr,"selectionStart"in o&&vd(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}),no&&to(no,o)||(no=o,o=yu(gd,"onSelect"),0<o.length&&(t=new Rs("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=Tr)))}function Rl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Mr={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")},bd={},jv={};sa&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function Tl(e){if(bd[e])return bd[e];if(!Mr[e])return e;var t=Mr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in jv)return bd[e]=t[l];return e}var Ev=Tl("animationend"),Nv=Tl("animationiteration"),Cv=Tl("animationstart"),$2=Tl("transitionrun"),X2=Tl("transitionstart"),F2=Tl("transitioncancel"),_v=Tl("transitionend"),Rv=new Map,xd="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(" ");xd.push("scrollEnd");function Rn(e,t){Rv.set(e,t),Cl(t,[e])}var As=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)},fn=[],Ar=0,wd=0;function ks(){for(var e=Ar,t=wd=Ar=0;t<e;){var l=fn[t];fn[t++]=null;var o=fn[t];fn[t++]=null;var d=fn[t];fn[t++]=null;var f=fn[t];if(fn[t++]=null,o!==null&&d!==null){var x=o.pending;x===null?d.next=d:(d.next=x.next,x.next=d),o.pending=d}f!==0&&Tv(l,d,f)}}function Ds(e,t,l,o){fn[Ar++]=e,fn[Ar++]=t,fn[Ar++]=l,fn[Ar++]=o,wd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Sd(e,t,l,o){return Ds(e,t,l,o),Os(e)}function Ml(e,t){return Ds(e,null,null,t),Os(e)}function Tv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,o=f.alternate,o!==null&&(o.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-Wt(l),e=f.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=l|536870912),f):null}function Os(e){if(50<No)throw No=0,kf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kr={};function Z2(e,t,l,o){this.tag=e,this.key=l,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 en(e,t,l,o){return new Z2(e,t,l,o)}function jd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var l=e.alternate;return l===null?(l=en(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Mv(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zs(e,t,l,o,d,f){var x=0;if(o=e,typeof e=="function")jd(e)&&(x=1);else if(typeof e=="string")x=eN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=en(31,l,t,d),e.elementType=G,e.lanes=f,e;case S:return Al(l.children,d,f,t);case C:x=8,d|=24;break;case _:return e=en(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case L:return e=en(13,l,t,d),e.elementType=L,e.lanes=f,e;case $:return e=en(19,l,t,d),e.elementType=$,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,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=en(x,l,t,d),t.elementType=e,t.type=o,t.lanes=f,t}function Al(e,t,l,o){return e=en(7,e,o,t),e.lanes=l,e}function Ed(e,t,l){return e=en(6,e,null,t),e.lanes=l,e}function Av(e){var t=en(18,null,null,0);return t.stateNode=e,t}function Nd(e,t,l){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kv=new WeakMap;function hn(e,t){if(typeof e=="object"&&e!==null){var l=kv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ps(t)},kv.set(e,t),t)}return{value:e,source:t,stack:ps(t)}}var Dr=[],Or=0,Ls=null,ao=0,mn=[],pn=0,Ha=null,Yn=1,Gn="";function ca(e,t){Dr[Or++]=ao,Dr[Or++]=Ls,Ls=e,ao=t}function Dv(e,t,l){mn[pn++]=Yn,mn[pn++]=Gn,mn[pn++]=Ha,Ha=e;var o=Yn;e=Gn;var d=32-Wt(o)-1;o&=~(1<<d),l+=1;var f=32-Wt(t)+d;if(30<f){var x=d-d%5;f=(o&(1<<x)-1).toString(32),o>>=x,d-=x,Yn=1<<32-Wt(t)+d|l<<d|o,Gn=f+e}else Yn=1<<f|l<<d|o,Gn=e}function Cd(e){e.return!==null&&(ca(e,1),Dv(e,1,0))}function _d(e){for(;e===Ls;)Ls=Dr[--Or],Dr[Or]=null,ao=Dr[--Or],Dr[Or]=null;for(;e===Ha;)Ha=mn[--pn],mn[pn]=null,Gn=mn[--pn],mn[pn]=null,Yn=mn[--pn],mn[pn]=null}function Ov(e,t){mn[pn++]=Yn,mn[pn++]=Gn,mn[pn++]=Ha,Yn=t.id,Gn=t.overflow,Ha=e}var Et=null,Je=null,ze=!1,qa=null,vn=!1,Rd=Error(i(519));function Ba(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lo(hn(t,e)),Rd}function zv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[jt]=e,t[qt]=o,l){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(l=0;l<_o.length;l++)ke(_o[l],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),Fp(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),Pp(t,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||o.suppressHydrationWarning===!0||Wy(t.textContent,l)?(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=oa),t=!0):t=!1,t||Ba(e,!0)}function Lv(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Et=Et.return}}function zr(e){if(e!==Et)return!1;if(!ze)return Lv(e),ze=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Xf(e.type,e.memoizedProps)),l=!l),l&&Je&&Ba(e),Lv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Je=o0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Je=o0(e)}else t===27?(t=Je,el(e.type)?(e=Wf,Wf=null,Je=e):Je=t):Je=Et?yn(e.stateNode.nextSibling):null;return!0}function kl(){Je=Et=null,ze=!1}function Td(){var e=qa;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),qa=null),e}function lo(e){qa===null?qa=[e]:qa.push(e)}var Md=A(null),Dl=null,da=null;function Qa(e,t,l){ee(Md,t._currentValue),t._currentValue=l}function fa(e){e._currentValue=Md.current,F(Md)}function Ad(e,t,l){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===l)break;e=e.return}}function kd(e,t,l,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var x=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Ad(f.return,l,e),o||(x=null);break e}f=N.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(i(341));x.lanes|=l,f=x.alternate,f!==null&&(f.lanes|=l),Ad(x,l,e),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===e){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function Lr(e,t,l,o){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var N=d.type;It(d.pendingProps.value,x.value)||(e!==null?e.push(N):e=[N])}}else if(d===ne.current){if(x=d.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(ko):e=[ko])}d=d.return}e!==null&&kd(t,e,l,o),t.flags|=262144}function Us(e){for(e=e.firstContext;e!==null;){if(!It(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Dl=e,da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return Uv(Dl,e)}function Hs(e,t){return Dl===null&&Ol(e),Uv(e,t)}function Uv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},da===null){if(e===null)throw Error(i(308));da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else da=da.next=t;return l}var P2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},J2=n.unstable_scheduleCallback,W2=n.unstable_NormalPriority,dt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dd(){return{controller:new P2,data:new Map,refCount:0}}function ro(e){e.refCount--,e.refCount===0&&J2(W2,function(){e.controller.abort()})}var io=null,Od=0,Ur=0,Hr=null;function I2(e,t){if(io===null){var l=io=[];Od=0,Ur=Hf(),Hr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Od++,t.then(Hv,Hv),t}function Hv(){if(--Od===0&&io!==null){Hr!==null&&(Hr.status="fulfilled");var e=io;io=null,Ur=0,Hr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function eE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var qv=U.S;U.S=function(e,t){Sy=Pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&I2(e,t),qv!==null&&qv(e,t)};var zl=A(null);function zd(){var e=zl.current;return e!==null?e:Fe.pooledCache}function qs(e,t){t===null?ee(zl,zl.current):ee(zl,t.pool)}function Bv(){var e=zd();return e===null?null:{parent:dt._currentValue,pool:e}}var qr=Error(i(460)),Ld=Error(i(474)),Bs=Error(i(542)),Qs={then:function(){}};function Qv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(oa,oa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vv(e),e}throw Ul=t,qr}}function Ll(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ul=l,qr):l}}var Ul=null;function Gv(){if(Ul===null)throw Error(i(459));var e=Ul;return Ul=null,e}function Vv(e){if(e===qr||e===Bs)throw Error(i(483))}var Br=null,oo=0;function Ys(e){var t=oo;return oo+=1,Br===null&&(Br=[]),Yv(Br,e,t)}function so(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gs(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 Kv(e){function t(z,O){if(e){var B=z.deletions;B===null?(z.deletions=[O],z.flags|=16):B.push(O)}}function l(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 d(z,O){return z=ua(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 N(z,O,B,P){return O===null||O.tag!==6?(O=Ed(B,z.mode,P),O.return=z,O):(O=d(O,B),O.return=z,O)}function M(z,O,B,P){var be=B.type;return be===S?Z(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=d(O,B.props),so(O,B),O.return=z,O):(O=zs(B.type,B.key,B.props,null,z.mode,P),so(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=Nd(B,z.mode,P),O.return=z,O):(O=d(O,B.children||[]),O.return=z,O)}function Z(z,O,B,P,be){return O===null||O.tag!==7?(O=Al(B,z.mode,P,be),O.return=z,O):(O=d(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Ed(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=zs(O.type,O.key,O.props,null,z.mode,B),so(B,O),B.return=z,B;case E:return O=Nd(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,Ys(O),B);if(O.$$typeof===T)return J(z,Hs(z,O),B);Gs(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:N(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:Z(z,O,B,P,null);if(typeof B.then=="function")return Y(z,O,Ys(B),P);if(B.$$typeof===T)return Y(z,O,Hs(z,B),P);Gs(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,N(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,Z(O,z,P,be,null);if(typeof P.then=="function")return K(z,O,B,Ys(P),be);if(P.$$typeof===T)return K(z,O,B,Hs(O,P),be);Gs(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 l(z,ve),ze&&ca(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&&ca(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(rl){return t(z,rl)}),ze&&ca(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 rl=Y(z,ve,qe.value,P);if(rl===null){ve===null&&(ve=Oe);break}e&&ve&&rl.alternate===null&&t(z,ve),O=f(rl,O,Re),He===null?be=rl:He.sibling=rl,He=rl,ve=Oe}if(qe.done)return l(z,ve),ze&&ca(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&&ca(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(dN){return t(z,dN)}),ze&&ca(z,Re),be}function Xe(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){l(z,O.sibling),P=d(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){l(z,O.sibling),P=d(O,B.props),so(P,B),P.return=z,z=P;break e}l(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=zs(B.type,B.key,B.props,null,z.mode,P),so(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){l(z,O.sibling),P=d(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=Nd(B,z.mode,P),P.return=z,z=P}return x(z);case H:return B=Ll(B),Xe(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 Xe(z,O,Ys(B),P);if(B.$$typeof===T)return Xe(z,O,Hs(z,B),P);Gs(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(z,O.sibling),P=d(O,B),P.return=z,z=P):(l(z,O),P=Ed(B,z.mode,P),P.return=z,z=P),x(z)):l(z,O)}return function(z,O,B,P){try{oo=0;var be=Xe(z,O,B,P);return Br=null,be}catch(ve){if(ve===qr||ve===Bs)throw ve;var He=en(29,ve,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Hl=Kv(!0),$v=Kv(!1),Ya=!1;function Ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hd(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 Ga(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Va(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=Os(e),Tv(e,null,l),t}return Ds(e,o,t,l),Os(e)}function uo(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Up(e,l)}}function qd(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=x:f=f.next=x,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Bd=!1;function co(){if(Bd){var e=Hr;if(e!==null)throw e}}function fo(e,t,l,o){Bd=!1;var d=e.updateQueue;Ya=!1;var f=d.firstBaseUpdate,x=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,Q=M.next;M.next=null,x===null?f=Q:x.next=Q,x=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==x&&(N===null?Z.firstBaseUpdate=Q:N.next=Q,Z.lastBaseUpdate=M))}if(f!==null){var J=d.baseState;x=0,Z=Q=M=null,N=f;do{var Y=N.lane&-536870913,K=Y!==N.lane;if(K?(De&Y)===Y:(o&Y)===Y){Y!==0&&Y===Ur&&(Bd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,Se=N;Y=t;var Xe=l;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){J=fe.call(Xe,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(Xe,J,Y):fe,Y==null)break e;J=b({},J,Y);break e;case 2:Ya=!0}}Y=N.callback,Y!==null&&(e.flags|=64,K&&(e.flags|=8192),K=d.callbacks,K===null?d.callbacks=[Y]:K.push(Y))}else K={lane:Y,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?(Q=Z=K,M=J):Z=Z.next=K,x|=Y;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;K=N,N=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);Z===null&&(M=J),d.baseState=M,d.firstBaseUpdate=Q,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),Za|=x,e.lanes=x,e.memoizedState=J}}function Xv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Fv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Xv(l[e],t)}var Qr=A(null),Vs=A(0);function Zv(e,t){e=wa,ee(Vs,e),ee(Qr,t),wa=e|t.baseLanes}function Qd(){ee(Vs,wa),ee(Qr,Qr.current)}function Yd(){wa=Vs.current,F(Qr),F(Vs)}var tn=A(null),gn=null;function Ka(e){var t=e.alternate;ee(ut,ut.current&1),ee(tn,e),gn===null&&(t===null||Qr.current!==null||t.memoizedState!==null)&&(gn=e)}function Gd(e){ee(ut,ut.current),ee(tn,e),gn===null&&(gn=e)}function Pv(e){e.tag===22?(ee(ut,ut.current),ee(tn,e),gn===null&&(gn=e)):$a()}function $a(){ee(ut,ut.current),ee(tn,tn.current)}function nn(e){F(tn),gn===e&&(gn=null),F(ut)}var ut=A(0);function Ks(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Pf(l)||Jf(l)))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 ha=0,_e=null,Ke=null,ft=null,$s=!1,Yr=!1,ql=!1,Xs=0,ho=0,Gr=null,tE=0;function rt(){throw Error(i(321))}function Vd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!It(e[l],t[l]))return!1;return!0}function Kd(e,t,l,o,d,f){return ha=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Dg:of,ql=!1,f=l(o,d),ql=!1,Yr&&(f=Wv(t,l,o,d)),Jv(e),f}function Jv(e){U.H=vo;var t=Ke!==null&&Ke.next!==null;if(ha=0,ft=Ke=_e=null,$s=!1,ho=0,Gr=null,t)throw Error(i(300));e===null||ht||(e=e.dependencies,e!==null&&Us(e)&&(ht=!0))}function Wv(e,t,l,o){_e=e;var d=0;do{if(Yr&&(Gr=null),ho=0,Yr=!1,25<=d)throw Error(i(301));if(d+=1,ft=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=Og,f=t(l,o)}while(Yr);return f}function nE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?mo(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(_e.flags|=1024),t}function $d(){var e=Xs!==0;return Xs=0,e}function Xd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Fd(e){if($s){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$s=!1}ha=0,ft=Ke=_e=null,Yr=!1,ho=Xs=0,Gr=null}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?_e.memoizedState=ft=e:ft=ft.next=e,ft}function ct(){if(Ke===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ft===null?_e.memoizedState:ft.next;if(t!==null)ft=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},ft===null?_e.memoizedState=ft=e:ft=ft.next=e}return ft}function Fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mo(e){var t=ho;return ho+=1,Gr===null&&(Gr=[]),e=Yv(Gr,e,t),t=_e,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Dg:of),e}function Zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mo(e);if(e.$$typeof===T)return Nt(e)}throw Error(i(438,String(e)))}function Zd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.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(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Fs(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),o=0;o<e;o++)l[o]=te;return t.index++,l}function ma(e,t){return typeof t=="function"?t(e):t}function Ps(e){var t=ct();return Pd(t,Ke,e)}function Pd(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var d=e.baseQueue,f=o.pending;if(f!==null){if(d!==null){var x=d.next;d.next=f.next,f.next=x}t.baseQueue=d=f,o.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=x=null,M=null,Q=t,Z=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(De&J)===J:(ha&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===Ur&&(Z=!0);else if((ha&Y)===Y){Q=Q.next,Y===Ur&&(Z=!0);continue}else J={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=J,x=f):M=M.next=J,_e.lanes|=Y,Za|=Y;J=Q.action,ql&&l(f,J),f=Q.hasEagerState?Q.eagerState:l(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?(N=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=N,!It(f,e.memoizedState)&&(ht=!0,Z&&(l=Hr,l!==null)))throw l;e.memoizedState=f,e.baseState=x,e.baseQueue=M,o.lastRenderedState=f}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Jd(e){var t=ct(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var x=d=d.next;do f=e(f,x.action),x=x.next;while(x!==d);It(f,t.memoizedState)||(ht=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function Iv(e,t,l){var o=_e,d=ct(),f=ze;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var x=!It((Ke||d).memoizedState,l);if(x&&(d.memoizedState=l,ht=!0),d=d.queue,ef(ng.bind(null,o,d,e),[e]),d.getSnapshot!==t||x||ft!==null&&ft.memoizedState.tag&1){if(o.flags|=2048,Vr(9,{destroy:void 0},tg.bind(null,o,d,l,t),null),Fe===null)throw Error(i(349));f||(ha&127)!==0||eg(o,t,l)}return l}function eg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Fs(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function tg(e,t,l,o){t.value=l,t.getSnapshot=o,ag(t)&&lg(e)}function ng(e,t,l){return l(function(){ag(t)&&lg(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!It(e,l)}catch{return!0}}function lg(e){var t=Ml(e,2);t!==null&&Kt(t,e,2)}function Wd(e){var t=Ot();if(typeof e=="function"){var l=e;if(e=l(),ql){za(!0);try{l()}finally{za(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function rg(e,t,l,o){return e.baseState=l,Pd(e,Ke,typeof o=="function"?o:ma)}function aE(e,t,l,o,d){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};U.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,ig(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ig(e,t){var l=t.action,o=t.payload,d=e.state;if(t.isTransition){var f=U.T,x={};U.T=x;try{var N=l(d,o),M=U.S;M!==null&&M(x,N),og(e,t,N)}catch(Q){Id(e,t,Q)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=l(d,o),og(e,t,f)}catch(Q){Id(e,t,Q)}}function og(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){sg(e,t,o)},function(o){return Id(e,t,o)}):sg(e,t,l)}function sg(e,t,l){t.status="fulfilled",t.value=l,ug(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ig(e,l)))}function Id(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,ug(t),t=t.next;while(t!==o)}e.action=null}function ug(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cg(e,t){return t}function dg(e,t){if(ze){var l=Fe.formState;if(l!==null){e:{var o=_e;if(ze){if(Je){t:{for(var d=Je,f=vn;d.nodeType!==8;){if(!f){d=null;break t}if(d=yn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){Je=yn(d.nextSibling),o=d.data==="F!";break e}}Ba(o)}o=!1}o&&(t=l[0])}}return l=Ot(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cg,lastRenderedState:t},l.queue=o,l=Mg.bind(null,_e,o),o.dispatch=l,o=Wd(!1),f=rf.bind(null,_e,!1,o.queue),o=Ot(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,l=aE.bind(null,_e,d,f,l),d.dispatch=l,o.memoizedState=e,[t,l,!1]}function fg(e){var t=ct();return hg(t,Ke,e)}function hg(e,t,l){if(t=Pd(e,t,cg)[0],e=Ps(ma)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=mo(t)}catch(x){throw x===qr?Bs:x}else o=t;t=ct();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Vr(9,{destroy:void 0},lE.bind(null,d,l),null)),[o,f,e]}function lE(e,t){e.action=t}function mg(e){var t=ct(),l=Ke;if(l!==null)return hg(t,l,e);ct(),t=t.memoizedState,l=ct();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Vr(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Fs(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,t.lastEffect=e),e}function pg(){return ct().memoizedState}function Js(e,t,l,o){var d=Ot();_e.flags|=e,d.memoizedState=Vr(1|t,{destroy:void 0},l,o===void 0?null:o)}function Ws(e,t,l,o){var d=ct();o=o===void 0?null:o;var f=d.memoizedState.inst;Ke!==null&&o!==null&&Vd(o,Ke.memoizedState.deps)?d.memoizedState=Vr(t,f,l,o):(_e.flags|=e,d.memoizedState=Vr(1|t,f,l,o))}function vg(e,t){Js(8390656,8,e,t)}function ef(e,t){Ws(2048,8,e,t)}function rE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Fs(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gg(e){var t=ct().memoizedState;return rE({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function yg(e,t){return Ws(4,2,e,t)}function bg(e,t){return Ws(4,4,e,t)}function xg(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wg(e,t,l){l=l!=null?l.concat([e]):null,Ws(4,4,xg.bind(null,t,e),l)}function tf(){}function Sg(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&Vd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function jg(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&Vd(t,o[1]))return o[0];if(o=e(),ql){za(!0);try{e()}finally{za(!1)}}return l.memoizedState=[o,t],o}function nf(e,t,l){return l===void 0||(ha&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ey(),_e.lanes|=e,Za|=e,l)}function Eg(e,t,l,o){return It(l,t)?l:Qr.current!==null?(e=nf(e,l,o),It(e,t)||(ht=!0),e):(ha&42)===0||(ha&1073741824)!==0&&(De&261930)===0?(ht=!0,e.memoizedState=l):(e=Ey(),_e.lanes|=e,Za|=e,t)}function Ng(e,t,l,o,d){var f=W.p;W.p=f!==0&&8>f?f:8;var x=U.T,N={};U.T=N,rf(e,!1,t,l);try{var M=d(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=eE(M,o);po(e,t,Z,rn(e))}else po(e,t,o,rn(e))}catch(J){po(e,t,{then:function(){},status:"rejected",reason:J},rn())}finally{W.p=f,x!==null&&N.types!==null&&(x.types=N.types),U.T=x}}function iE(){}function af(e,t,l,o){if(e.tag!==5)throw Error(i(476));var d=Cg(e).queue;Ng(e,d,t,V,l===null?iE:function(){return _g(e),l(o)})}function Cg(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:ma,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _g(e){var t=Cg(e);t.next===null&&(t=e.alternate.memoizedState),po(e,t.next.queue,{},rn())}function lf(){return Nt(ko)}function Rg(){return ct().memoizedState}function Tg(){return ct().memoizedState}function oE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=rn();e=Ga(l);var o=Va(t,e,l);o!==null&&(Kt(o,t,l),uo(o,t,l)),t={cache:Dd()},e.payload=t;return}t=t.return}}function sE(e,t,l){var o=rn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ag(t,l):(l=Sd(e,t,l,o),l!==null&&(Kt(l,e,o),kg(l,t,o)))}function Mg(e,t,l){var o=rn();po(e,t,l,o)}function po(e,t,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ag(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var x=t.lastRenderedState,N=f(x,l);if(d.hasEagerState=!0,d.eagerState=N,It(N,x))return Ds(e,t,d,0),Fe===null&&ks(),!1}catch{}finally{}if(l=Sd(e,t,d,o),l!==null)return Kt(l,e,o),kg(l,t,o),!0}return!1}function rf(e,t,l,o){if(o={lane:2,revertLane:Hf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=Sd(e,l,o,2),t!==null&&Kt(t,e,2)}function Is(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ag(e,t){Yr=$s=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function kg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Up(e,l)}}var vo={readContext:Nt,use:Zs,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};vo.useEffectEvent=rt;var Dg={readContext:Nt,use:Zs,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:vg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Js(4194308,4,xg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Js(4194308,4,e,t)},useInsertionEffect:function(e,t){Js(4,2,e,t)},useMemo:function(e,t){var l=Ot();t=t===void 0?null:t;var o=e();if(ql){za(!0);try{e()}finally{za(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=Ot();if(l!==void 0){var d=l(t);if(ql){za(!0);try{l(t)}finally{za(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=sE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Wd(e);var t=e.queue,l=Mg.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:tf,useDeferredValue:function(e,t){var l=Ot();return nf(l,e,t)},useTransition:function(){var e=Wd(!1);return e=Ng.bind(null,_e,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=_e,d=Ot();if(ze){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Fe===null)throw Error(i(349));(De&127)!==0||eg(o,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,vg(ng.bind(null,o,f,e),[e]),o.flags|=2048,Vr(9,{destroy:void 0},tg.bind(null,o,f,l,t),null),l},useId:function(){var e=Ot(),t=Fe.identifierPrefix;if(ze){var l=Gn,o=Yn;l=(o&~(1<<32-Wt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Xs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lf,useFormState:dg,useActionState:dg,useOptimistic:function(e){var t=Ot();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=rf.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Zd,useCacheRefresh:function(){return Ot().memoizedState=oE.bind(null,_e)},useEffectEvent:function(e){var t=Ot(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},of={readContext:Nt,use:Zs,useCallback:Sg,useContext:Nt,useEffect:ef,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:bg,useMemo:jg,useReducer:Ps,useRef:pg,useState:function(){return Ps(ma)},useDebugValue:tf,useDeferredValue:function(e,t){var l=ct();return Eg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Ps(ma)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:mo(e),t]},useSyncExternalStore:Iv,useId:Rg,useHostTransitionStatus:lf,useFormState:fg,useActionState:fg,useOptimistic:function(e,t){var l=ct();return rg(l,Ke,e,t)},useMemoCache:Zd,useCacheRefresh:Tg};of.useEffectEvent=gg;var Og={readContext:Nt,use:Zs,useCallback:Sg,useContext:Nt,useEffect:ef,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:bg,useMemo:jg,useReducer:Jd,useRef:pg,useState:function(){return Jd(ma)},useDebugValue:tf,useDeferredValue:function(e,t){var l=ct();return Ke===null?nf(l,e,t):Eg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Jd(ma)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:mo(e),t]},useSyncExternalStore:Iv,useId:Rg,useHostTransitionStatus:lf,useFormState:mg,useActionState:mg,useOptimistic:function(e,t){var l=ct();return Ke!==null?rg(l,Ke,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Zd,useCacheRefresh:Tg};Og.useEffectEvent=gg;function sf(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var uf={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=rn(),d=Ga(o);d.payload=t,l!=null&&(d.callback=l),t=Va(e,d,o),t!==null&&(Kt(t,e,o),uo(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=rn(),d=Ga(o);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Va(e,d,o),t!==null&&(Kt(t,e,o),uo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=rn(),o=Ga(l);o.tag=2,t!=null&&(o.callback=t),t=Va(e,o,l),t!==null&&(Kt(t,e,l),uo(t,e,l))}};function zg(e,t,l,o,d,f,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,x):t.prototype&&t.prototype.isPureReactComponent?!to(l,o)||!to(d,f):!0}function Lg(e,t,l,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,o),t.state!==e&&uf.enqueueReplaceState(t,t.state,null)}function Bl(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Ug(e){As(e)}function Hg(e){console.error(e)}function qg(e){As(e)}function eu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Bg(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function cf(e,t,l){return l=Ga(l),l.tag=3,l.payload={element:null},l.callback=function(){eu(e,t)},l}function Qg(e){return e=Ga(e),e.tag=3,e}function Yg(e,t,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;e.payload=function(){return d(f)},e.callback=function(){Bg(t,l,o)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Bg(t,l,o),typeof d!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function uE(e,t,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Lr(t,l,d,!0),l=tn.current,l!==null){switch(l.tag){case 31:case 13:return gn===null?fu():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Qs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),zf(e,o,d)),!1;case 22:return l.flags|=65536,o===Qs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),zf(e,o,d)),!1}throw Error(i(435,l.tag))}return zf(e,o,d),fu(),!1}if(ze)return t=tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==Rd&&(e=Error(i(422),{cause:o}),lo(hn(e,l)))):(o!==Rd&&(t=Error(i(423),{cause:o}),lo(hn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=hn(o,l),d=cf(e.stateNode,o,d),qd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:o});if(f=hn(f,l),Eo===null?Eo=[f]:Eo.push(f),it!==4&&(it=2),t===null)return!0;o=hn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=cf(l.stateNode,o,e),qd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Pa===null||!Pa.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Qg(d),Yg(d,e,l,o),qd(l,d),!1}l=l.return}while(l!==null);return!1}var df=Error(i(461)),ht=!1;function Ct(e,t,l,o){t.child=e===null?$v(t,null,l,o):Hl(t,e.child,l,o)}function Gg(e,t,l,o,d){l=l.render;var f=t.ref;if("ref"in o){var x={};for(var N in o)N!=="ref"&&(x[N]=o[N])}else x=o;return Ol(t),o=Kd(e,t,l,x,f,d),N=$d(),e!==null&&!ht?(Xd(e,t,d),pa(e,t,d)):(ze&&N&&Cd(t),t.flags|=1,Ct(e,t,o,d),t.child)}function Vg(e,t,l,o,d){if(e===null){var f=l.type;return typeof f=="function"&&!jd(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Kg(e,t,f,o,d)):(e=zs(l.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!bf(e,d)){var x=f.memoizedProps;if(l=l.compare,l=l!==null?l:to,l(x,o)&&e.ref===t.ref)return pa(e,t,d)}return t.flags|=1,e=ua(f,o),e.ref=t.ref,e.return=t,t.child=e}function Kg(e,t,l,o,d){if(e!==null){var f=e.memoizedProps;if(to(f,o)&&e.ref===t.ref)if(ht=!1,t.pendingProps=o=f,bf(e,d))(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,pa(e,t,d)}return ff(e,t,l,o,d)}function $g(e,t,l,o){var d=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|l:l,e!==null){for(o=t.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,t.child=null;return Xg(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qs(t,f!==null?f.cachePool:null),f!==null?Zv(t,f):Qd(),Pv(t);else return o=t.lanes=536870912,Xg(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?(qs(t,f.cachePool),Zv(t,f),$a(),t.memoizedState=null):(e!==null&&qs(t,null),Qd(),$a());return Ct(e,t,d,l),t.child}function go(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xg(e,t,l,o,d){var f=zd();return f=f===null?null:{parent:dt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&qs(t,null),Qd(),Pv(t),e!==null&&Lr(e,t,o,!0),t.childLanes=d,null}function tu(e,t){return t=au({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fg(e,t,l){return Hl(t,e.child,null,l),e=tu(t,t.pendingProps),e.flags|=2,nn(t),t.memoizedState=null,e}function cE(e,t,l){var o=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=tu(t,o),t.lanes=536870912,go(null,e);if(Gd(t),(e=Je)?(e=i0(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,Et=t,Je=null)):e=null,e===null)throw Ba(t);return t.lanes=536870912,null}return tu(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(Gd(t),d)if(t.flags&256)t.flags&=-257,t=Fg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ht||Lr(e,t,l,!1),d=(l&e.childLanes)!==0,ht||d){if(o=Fe,o!==null&&(x=Hp(o,l),x!==0&&x!==f.retryLane))throw f.retryLane=x,Ml(e,x),Kt(o,e,x),df;fu(),t=Fg(e,t,l)}else e=f.treeContext,Je=yn(x.nextSibling),Et=t,ze=!0,qa=null,vn=!1,e!==null&&Ov(t,e),t=tu(t,o),t.flags|=4096;return t}return e=ua(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function nu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function ff(e,t,l,o,d){return Ol(t),l=Kd(e,t,l,o,void 0,d),o=$d(),e!==null&&!ht?(Xd(e,t,d),pa(e,t,d)):(ze&&o&&Cd(t),t.flags|=1,Ct(e,t,l,d),t.child)}function Zg(e,t,l,o,d,f){return Ol(t),t.updateQueue=null,l=Wv(t,o,l,d),Jv(e),o=$d(),e!==null&&!ht?(Xd(e,t,f),pa(e,t,f)):(ze&&o&&Cd(t),t.flags|=1,Ct(e,t,l,f),t.child)}function Pg(e,t,l,o,d){if(Ol(t),t.stateNode===null){var f=kr,x=l.contextType;typeof x=="object"&&x!==null&&(f=Nt(x)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=uf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Ud(t),x=l.contextType,f.context=typeof x=="object"&&x!==null?Nt(x):kr,f.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(sf(t,l,x,o),f.state=t.memoizedState),typeof l.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&&uf.enqueueReplaceState(f,f.state,null),fo(t,o,f,d),co(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=Bl(l,N);f.props=M;var Q=f.context,Z=l.contextType;x=kr,typeof Z=="object"&&Z!==null&&(x=Nt(Z));var J=l.getDerivedStateFromProps;Z=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==x)&&Lg(t,f,o,x),Ya=!1;var Y=t.memoizedState;f.state=Y,fo(t,o,f,d),co(),Q=t.memoizedState,N||Y!==Q||Ya?(typeof J=="function"&&(sf(t,l,J,o),Q=t.memoizedState),(M=Ya||zg(t,l,M,o,Y,Q,x))?(Z||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,Hd(e,t),x=t.memoizedProps,Z=Bl(l,x),f.props=Z,J=t.pendingProps,Y=f.context,Q=l.contextType,M=kr,typeof Q=="object"&&Q!==null&&(M=Nt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==J||Y!==M)&&Lg(t,f,o,M),Ya=!1,Y=t.memoizedState,f.state=Y,fo(t,o,f,d),co();var K=t.memoizedState;x!==J||Y!==K||Ya||e!==null&&e.dependencies!==null&&Us(e.dependencies)?(typeof N=="function"&&(sf(t,l,N,o),K=t.memoizedState),(Z=Ya||zg(t,l,Z,o,Y,K,M)||e!==null&&e.dependencies!==null&&Us(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=Z):(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,nu(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Hl(t,e.child,null,d),t.child=Hl(t,null,l,d)):Ct(e,t,l,d),t.memoizedState=f.state,e=t.child):e=pa(e,t,d),e}function Jg(e,t,l,o){return kl(),t.flags|=256,Ct(e,t,l,o),t.child}var hf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mf(e){return{baseLanes:e,cachePool:Bv()}}function pf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=ln),e}function Wg(e,t,l){var o=t.pendingProps,d=!1,f=(t.flags&128)!==0,x;if((x=f)||(x=e!==null&&e.memoizedState===null?!1:(ut.current&2)!==0),x&&(d=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(d?Ka(t):$a(),(e=Je)?(e=i0(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,Et=t,Je=null)):e=null,e===null)throw Ba(t);return Jf(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,d?($a(),d=t.mode,N=au({mode:"hidden",children:N},d),o=Al(o,d,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=mf(l),o.childLanes=pf(e,x,l),t.memoizedState=hf,go(null,o)):(Ka(t),vf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ka(t),t.flags&=-257,t=gf(e,t,l)):t.memoizedState!==null?($a(),t.child=e.child,t.flags|=128,t=null):($a(),N=o.fallback,d=t.mode,o=au({mode:"visible",children:o.children},d),N=Al(N,d,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Hl(t,e.child,null,l),o=t.child,o.memoizedState=mf(l),o.childLanes=pf(e,x,l),t.memoizedState=hf,t=go(null,o));else if(Ka(t),Jf(N)){if(x=N.nextSibling&&N.nextSibling.dataset,x)var Q=x.dgst;x=Q,o=Error(i(419)),o.stack="",o.digest=x,lo({value:o,source:null,stack:null}),t=gf(e,t,l)}else if(ht||Lr(e,t,l,!1),x=(l&e.childLanes)!==0,ht||x){if(x=Fe,x!==null&&(o=Hp(x,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Ml(e,o),Kt(x,e,o),df;Pf(N)||fu(),t=gf(e,t,l)}else Pf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Je=yn(N.nextSibling),Et=t,ze=!0,qa=null,vn=!1,e!==null&&Ov(t,e),t=vf(t,o.children),t.flags|=4096);return t}return d?($a(),N=o.fallback,d=t.mode,M=e.child,Q=M.sibling,o=ua(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=ua(Q,N):(N=Al(N,d,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,go(null,o),o=t.child,N=e.child.memoizedState,N===null?N=mf(l):(d=N.cachePool,d!==null?(M=dt._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Bv(),N={baseLanes:N.baseLanes|l,cachePool:d}),o.memoizedState=N,o.childLanes=pf(e,x,l),t.memoizedState=hf,go(e.child,o)):(Ka(t),l=e.child,e=l.sibling,l=ua(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=l,t.memoizedState=null,l)}function vf(e,t){return t=au({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function au(e,t){return e=en(22,e,null,t),e.lanes=0,e}function gf(e,t,l){return Hl(t,e.child,null,l),e=vf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Ad(e.return,t,l)}function yf(e,t,l,o,d,f){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:f}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=l,x.tailMode=d,x.treeForkCount=f)}function ey(e,t,l){var o=t.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var x=ut.current,N=(x&2)!==0;if(N?(x=x&1|2,t.flags|=128):x&=1,ee(ut,x),Ct(e,t,o,l),o=ze?ao:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ig(e,l,t);else if(e.tag===19)Ig(e,l,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(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Ks(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),yf(t,!1,d,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Ks(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}yf(t,!0,l,null,f,o);break;case"together":yf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function pa(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Lr(e,t,l,!1),(l&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,l=ua(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ua(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Us(e)))}function dE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Qa(t,dt,e.memoizedState.cache),kl();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gd(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ka(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Wg(e,t,l):(Ka(t),e=pa(e,t,l),e!==null?e.sibling:null);Ka(t);break;case 19:var d=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Lr(e,t,l,!1),o=(l&t.childLanes)!==0),d){if(o)return ey(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(ut,ut.current),o)break;return null;case 22:return t.lanes=0,$g(e,t,l,t.pendingProps);case 24:Qa(t,dt,e.memoizedState.cache)}return pa(e,t,l)}function ty(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ht=!0;else{if(!bf(e,l)&&(t.flags&128)===0)return ht=!1,dE(e,t,l);ht=(e.flags&131072)!==0}else ht=!1,ze&&(t.flags&1048576)!==0&&Dv(t,ao,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")jd(e)?(o=Bl(e,o),t.tag=1,t=Pg(null,t,e,o,l)):(t.tag=0,t=ff(null,t,e,o,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Gg(null,t,e,o,l);break e}else if(d===q){t.tag=14,t=Vg(null,t,e,o,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return ff(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,d=Bl(o,t.pendingProps),Pg(e,t,o,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;d=f.element,Hd(e,t),fo(t,o,null,l);var x=t.memoizedState;if(o=x.cache,Qa(t,dt,o),o!==f.cache&&kd(t,[dt],l,!0),co(),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=Jg(e,t,o,l);break e}else if(o!==d){d=hn(Error(i(424)),t),lo(d),t=Jg(e,t,o,l);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(Je=yn(e.firstChild),Et=t,ze=!0,qa=null,vn=!0,l=$v(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),o===d){t=pa(e,t,l);break e}Ct(e,t,o,l)}t=t.child}return t;case 26:return nu(e,t),e===null?(l=f0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,o=bu(je.current).createElement(l),o[jt]=t,o[qt]=e,_t(o,l,e),xt(o),t.stateNode=o):t.memoizedState=f0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&ze&&(o=t.stateNode=u0(t.type,t.pendingProps,je.current),Et=t,vn=!0,d=Je,el(t.type)?(Wf=d,Je=yn(o.firstChild)):Je=d),Ct(e,t,t.pendingProps.children,l),nu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((d=o=Je)&&(o=QE(o,t.type,t.pendingProps,vn),o!==null?(t.stateNode=o,Et=t,Je=yn(o.firstChild),vn=!1,d=!0):d=!1),d||Ba(t)),Ne(t),d=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,Xf(d,f)?o=null:x!==null&&Xf(d,x)&&(t.flags|=32),t.memoizedState!==null&&(d=Kd(e,t,nE,null,null,l),ko._currentValue=d),nu(e,t),Ct(e,t,o,l),t.child;case 6:return e===null&&ze&&((e=l=Je)&&(l=YE(l,t.pendingProps,vn),l!==null?(t.stateNode=l,Et=t,Je=null,e=!0):e=!1),e||Ba(t)),null;case 13:return Wg(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Hl(t,null,o,l):Ct(e,t,o,l),t.child;case 11:return Gg(e,t,t.type,t.pendingProps,l);case 7:return Ct(e,t,t.pendingProps,l),t.child;case 8:return Ct(e,t,t.pendingProps.children,l),t.child;case 12:return Ct(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,Qa(t,t.type,o.value),Ct(e,t,o.children,l),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,Ol(t),d=Nt(d),o=o(d),t.flags|=1,Ct(e,t,o,l),t.child;case 14:return Vg(e,t,t.type,t.pendingProps,l);case 15:return Kg(e,t,t.type,t.pendingProps,l);case 19:return ey(e,t,l);case 31:return cE(e,t,l);case 22:return $g(e,t,l,t.pendingProps);case 24:return Ol(t),o=Nt(dt),e===null?(d=zd(),d===null&&(d=Fe,f=Dd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:o,cache:d},Ud(t),Qa(t,dt,d)):((e.lanes&l)!==0&&(Hd(e,t),fo(t,null,null,l),co()),d=e.memoizedState,f=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Qa(t,dt,o)):(o=f.cache,Qa(t,dt,o),o!==d.cache&&kd(t,[dt],l,!0))),Ct(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function va(e){e.flags|=4}function xf(e,t,l,o,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Ry())e.flags|=8192;else throw Ul=Qs,Ld}else e.flags&=-16777217}function ny(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!g0(t))if(Ry())e.flags|=8192;else throw Ul=Qs,Ld}function lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zp():536870912,e.lanes|=t,Fr|=t)}function yo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function fE(e,t,l){var o=t.pendingProps;switch(_d(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),fa(dt),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(zr(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Td())),We(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(va(t),f!==null?(We(t),ny(t,f)):(We(t),xf(t,d,null,o,l))):f?f!==e.memoizedState?(va(t),We(t),ny(t,f)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&va(t),We(t),xf(t,d,e,o,l)),null;case 27:if(Ue(t),l=je.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return We(t),null}e=le.current,zr(t)?zv(t):(e=u0(d,o,l),t.stateNode=e,va(t))}return We(t),null;case 5:if(Ue(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return We(t),null}if(f=le.current,zr(t))zv(t);else{var x=bu(je.current);switch(f){case 1:f=x.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=x.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);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(d,{is:o.is}):x.createElement(d)}}f[jt]=t,f[qt]=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(_t(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&va(t)}}return We(t),xf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&va(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,zr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,d=Et,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[jt]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Wy(e.nodeValue,l)),e||Ba(t,!0)}else e=bu(e).createTextNode(o),e[jt]=t,t.stateNode=e}return We(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=zr(t),l!==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[jt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else l=Td(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(nn(t),t):(nn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return We(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=zr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[jt]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),d=!1}else d=Td(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(nn(t),t):(nn(t),null)}return nn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),lu(t,t.updateQueue),We(t),null);case 4:return ye(),e===null&&Yf(t.stateNode.containerInfo),We(t),null;case 10:return fa(t.type),We(t),null;case 19:if(F(ut),o=t.memoizedState,o===null)return We(t),null;if(d=(t.flags&128)!==0,f=o.rendering,f===null)if(d)yo(o,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ks(e),f!==null){for(t.flags|=128,yo(o,!1),e=f.updateQueue,t.updateQueue=e,lu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mv(l,e),l=l.sibling;return ee(ut,ut.current&1|2),ze&&ca(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Pt()>uu&&(t.flags|=128,d=!0,yo(o,!1),t.lanes=4194304)}else{if(!d)if(e=Ks(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,lu(t,e),yo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return We(t),null}else 2*Pt()-o.renderingStartTime>uu&&l!==536870912&&(t.flags|=128,d=!0,yo(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=Pt(),e.sibling=null,l=ut.current,ee(ut,d?l&1|2:l&1),ze&&ca(t,o.treeForkCount),e):(We(t),null);case 22:case 23:return nn(t),Yd(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),l=t.updateQueue,l!==null&&lu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&F(zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa(dt),We(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function hE(e,t){switch(_d(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(dt),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(nn(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(nn(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 F(ut),null;case 4:return ye(),null;case 10:return fa(t.type),null;case 22:case 23:return nn(t),Yd(),e!==null&&F(zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(dt),null;case 25:return null;default:return null}}function ay(e,t){switch(_d(t),t.tag){case 3:fa(dt),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&nn(t);break;case 13:nn(t);break;case 19:F(ut);break;case 10:fa(t.type);break;case 22:case 23:nn(t),Yd(),e!==null&&F(zl);break;case 24:fa(dt)}}function bo(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&e)===e){o=void 0;var f=l.create,x=l.inst;o=f(),x.destroy=o}l=l.next}while(l!==d)}}catch(N){Ve(t,t.return,N)}}function Xa(e,t,l){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&e)===e){var x=o.inst,N=x.destroy;if(N!==void 0){x.destroy=void 0,d=t;var M=l,Q=N;try{Q()}catch(Z){Ve(d,M,Z)}}}o=o.next}while(o!==f)}}catch(Z){Ve(t,t.return,Z)}}function ly(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Fv(t,l)}catch(o){Ve(e,e.return,o)}}}function ry(e,t,l){l.props=Bl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Ve(e,t,o)}}function xo(e,t){try{var l=e.ref;if(l!==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 l=="function"?e.refCleanup=l(o):l.current=o}}catch(d){Ve(e,t,d)}}function Vn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Ve(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Ve(e,t,d)}else l.current=null}function iy(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(d){Ve(e,e.return,d)}}function wf(e,t,l){try{var o=e.stateNode;zE(o,e.type,l,t),o[qt]=t}catch(d){Ve(e,e.return,d)}}function oy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&el(e.type)||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oy(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&&el(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 jf(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=oa));else if(o!==4&&(o===27&&el(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(jf(e,t,l),e=e.sibling;e!==null;)jf(e,t,l),e=e.sibling}function ru(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&el(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ru(e,t,l),e=e.sibling;e!==null;)ru(e,t,l),e=e.sibling}function sy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);_t(t,o,l),t[jt]=e,t[qt]=l}catch(f){Ve(e,e.return,f)}}var ga=!1,mt=!1,Ef=!1,uy=typeof WeakSet=="function"?WeakSet:Set,wt=null;function mE(e,t){if(e=e.containerInfo,Kf=Cu,e=wv(e),vd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var x=0,N=-1,M=-1,Q=0,Z=0,J=e,Y=null;t:for(;;){for(var K;J!==l||d!==0&&J.nodeType!==3||(N=x+d),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===l&&++Q===d&&(N=x),Y===f&&++Z===o&&(M=x),(K=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=K}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for($f={focusedElem:e,selectionRange:l},Cu=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,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(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var fe=Bl(l.type,d);e=o.getSnapshotBeforeUpdate(fe,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ve(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zf(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,wt=e;break}wt=t.return}}function cy(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:ba(e,l),o&4&&bo(5,l);break;case 1:if(ba(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(l,l.return,x)}else{var d=Bl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(l,l.return,x)}}o&64&&ly(l),o&512&&xo(l,l.return);break;case 3:if(ba(e,l),o&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Fv(e,t)}catch(x){Ve(l,l.return,x)}}break;case 27:t===null&&o&4&&sy(l);case 26:case 5:ba(e,l),t===null&&o&4&&iy(l),o&512&&xo(l,l.return);break;case 12:ba(e,l);break;case 31:ba(e,l),o&4&&hy(e,l);break;case 13:ba(e,l),o&4&&my(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=jE.bind(null,l),GE(e,l))));break;case 22:if(o=l.memoizedState!==null||ga,!o){t=t!==null&&t.memoizedState!==null||mt,d=ga;var f=mt;ga=o,(mt=t)&&!f?xa(e,l,(l.subtreeFlags&8772)!==0):ba(e,l),ga=d,mt=f}break;case 30:break;default:ba(e,l)}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ic(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 Ie=null,Qt=!1;function ya(e,t,l){for(l=l.child;l!==null;)fy(e,t,l),l=l.sibling}function fy(e,t,l){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Gi,l)}catch{}switch(l.tag){case 26:mt||Vn(l,t),ya(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:mt||Vn(l,t);var o=Ie,d=Qt;el(l.type)&&(Ie=l.stateNode,Qt=!1),ya(e,t,l),To(l.stateNode),Ie=o,Qt=d;break;case 5:mt||Vn(l,t);case 6:if(o=Ie,d=Qt,Ie=null,ya(e,t,l),Ie=o,Qt=d,Ie!==null)if(Qt)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(l.stateNode)}catch(f){Ve(l,t,f)}else try{Ie.removeChild(l.stateNode)}catch(f){Ve(l,t,f)}break;case 18:Ie!==null&&(Qt?(e=Ie,l0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ni(e)):l0(Ie,l.stateNode));break;case 4:o=Ie,d=Qt,Ie=l.stateNode.containerInfo,Qt=!0,ya(e,t,l),Ie=o,Qt=d;break;case 0:case 11:case 14:case 15:Xa(2,l,t),mt||Xa(4,l,t),ya(e,t,l);break;case 1:mt||(Vn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&ry(l,t,o)),ya(e,t,l);break;case 21:ya(e,t,l);break;case 22:mt=(o=mt)||l.memoizedState!==null,ya(e,t,l),mt=o;break;default:ya(e,t,l)}}function hy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ni(e)}catch(l){Ve(t,t.return,l)}}}function my(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ni(e)}catch(l){Ve(t,t.return,l)}}function pE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uy),t;default:throw Error(i(435,e.tag))}}function iu(e,t){var l=pE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var d=EE.bind(null,e,o);o.then(d,d)}})}function Yt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],f=e,x=t,N=x;e:for(;N!==null;){switch(N.tag){case 27:if(el(N.type)){Ie=N.stateNode,Qt=!1;break e}break;case 5:Ie=N.stateNode,Qt=!1;break e;case 3:case 4:Ie=N.stateNode.containerInfo,Qt=!0;break e}N=N.return}if(Ie===null)throw Error(i(160));fy(f,x,d),Ie=null,Qt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)py(t,e),t=t.sibling}var Tn=null;function py(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Gt(e),o&4&&(Xa(3,e,e.return),bo(3,e),Xa(5,e,e.return));break;case 1:Yt(t,e),Gt(e),o&512&&(mt||l===null||Vn(l,l.return)),o&64&&ga&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var d=Tn;if(Yt(t,e),Gt(e),o&512&&(mt||l===null||Vn(l,l.return)),o&4){var f=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[$i]||f[jt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),_t(f,o,l),f[jt]=e,xt(f),o=f;break e;case"link":var x=p0("link","href",d).get(o+(l.href||""));if(x){for(var N=0;N<x.length;N++)if(f=x[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(N,1);break t}}f=d.createElement(o),_t(f,o,l),d.head.appendChild(f);break;case"meta":if(x=p0("meta","content",d).get(o+(l.content||""))){for(N=0;N<x.length;N++)if(f=x[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(N,1);break t}}f=d.createElement(o),_t(f,o,l),d.head.appendChild(f);break;default:throw Error(i(468,o))}f[jt]=e,xt(f),o=f}e.stateNode=o}else v0(d,e.type,e.stateNode);else e.stateNode=m0(d,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?v0(d,e.type,e.stateNode):m0(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&wf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Yt(t,e),Gt(e),o&512&&(mt||l===null||Vn(l,l.return)),l!==null&&o&4&&wf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Yt(t,e),Gt(e),o&512&&(mt||l===null||Vn(l,l.return)),e.flags&32){d=e.stateNode;try{Nr(d,"")}catch(fe){Ve(e,e.return,fe)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,wf(e,d,l!==null?l.memoizedProps:d)),o&1024&&(Ef=!0);break;case 6:if(Yt(t,e),Gt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(fe){Ve(e,e.return,fe)}}break;case 3:if(Su=null,d=Tn,Tn=xu(t.containerInfo),Yt(t,e),Tn=d,Gt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{ni(t.containerInfo)}catch(fe){Ve(e,e.return,fe)}Ef&&(Ef=!1,vy(e));break;case 4:o=Tn,Tn=xu(e.stateNode.containerInfo),Yt(t,e),Gt(e),Tn=o;break;case 12:Yt(t,e),Gt(e);break;case 31:Yt(t,e),Gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,iu(e,o)));break;case 13:Yt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(su=Pt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,iu(e,o)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=ga,Z=mt;if(ga=Q||d,mt=Z||M,Yt(t,e),mt=Z,ga=Q,Gt(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||ga||mt||Ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{N=M.stateNode;var J=M.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(fe){Ve(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Ve(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var K=M.stateNode;d?r0(K,!0):r0(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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,iu(e,l))));break;case 19:Yt(t,e),Gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,iu(e,o)));break;case 30:break;case 21:break;default:Yt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(oy(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=Sf(e);ru(e,f,d);break;case 5:var x=l.stateNode;l.flags&32&&(Nr(x,""),l.flags&=-33);var N=Sf(e);ru(e,N,x);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=Sf(e);jf(e,Q,M);break;default:throw Error(i(161))}}catch(Z){Ve(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cy(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:Vn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ry(t,t.return,l),Ql(t);break;case 27:To(t.stateNode);case 26:case 5:Vn(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 xa(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,f=t,x=f.flags;switch(f.tag){case 0:case 11:case 15:xa(d,f,l),bo(4,f);break;case 1:if(xa(d,f,l),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){Ve(o,o.return,Q)}if(o=f,d=o.updateQueue,d!==null){var N=o.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Xv(M[d],N)}catch(Q){Ve(o,o.return,Q)}}l&&x&64&&ly(f),xo(f,f.return);break;case 27:sy(f);case 26:case 5:xa(d,f,l),l&&o===null&&x&4&&iy(f),xo(f,f.return);break;case 12:xa(d,f,l);break;case 31:xa(d,f,l),l&&x&4&&hy(d,f);break;case 13:xa(d,f,l),l&&x&4&&my(d,f);break;case 22:f.memoizedState===null&&xa(d,f,l),xo(f,f.return);break;case 30:break;default:xa(d,f,l)}t=t.sibling}}function Nf(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ro(l))}function Cf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ro(e))}function Mn(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gy(e,t,l,o),t=t.sibling}function gy(e,t,l,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Mn(e,t,l,o),d&2048&&bo(9,t);break;case 1:Mn(e,t,l,o);break;case 3:Mn(e,t,l,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ro(e)));break;case 12:if(d&2048){Mn(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,x=f.id,N=f.onPostCommit;typeof N=="function"&&N(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ve(t,t.return,M)}}else Mn(e,t,l,o);break;case 31:Mn(e,t,l,o);break;case 13:Mn(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,x=t.alternate,t.memoizedState!==null?f._visibility&2?Mn(e,t,l,o):wo(e,t):f._visibility&2?Mn(e,t,l,o):(f._visibility|=2,Kr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Nf(x,t);break;case 24:Mn(e,t,l,o),d&2048&&Cf(t.alternate,t);break;default:Mn(e,t,l,o)}}function Kr(e,t,l,o,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,x=t,N=l,M=o,Q=x.flags;switch(x.tag){case 0:case 11:case 15:Kr(f,x,N,M,d),bo(8,x);break;case 23:break;case 22:var Z=x.stateNode;x.memoizedState!==null?Z._visibility&2?Kr(f,x,N,M,d):wo(f,x):(Z._visibility|=2,Kr(f,x,N,M,d)),d&&Q&2048&&Nf(x.alternate,x);break;case 24:Kr(f,x,N,M,d),d&&Q&2048&&Cf(x.alternate,x);break;default:Kr(f,x,N,M,d)}t=t.sibling}}function wo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,d=o.flags;switch(o.tag){case 22:wo(l,o),d&2048&&Nf(o.alternate,o);break;case 24:wo(l,o),d&2048&&Cf(o.alternate,o);break;default:wo(l,o)}t=t.sibling}}var So=8192;function $r(e,t,l){if(e.subtreeFlags&So)for(e=e.child;e!==null;)yy(e,t,l),e=e.sibling}function yy(e,t,l){switch(e.tag){case 26:$r(e,t,l),e.flags&So&&e.memoizedState!==null&&tN(l,Tn,e.memoizedState,e.memoizedProps);break;case 5:$r(e,t,l);break;case 3:case 4:var o=Tn;Tn=xu(e.stateNode.containerInfo),$r(e,t,l),Tn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=So,So=16777216,$r(e,t,l),So=o):$r(e,t,l));break;default:$r(e,t,l)}}function by(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 jo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];wt=o,wy(o,e)}by(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xy(e),e=e.sibling}function xy(e){switch(e.tag){case 0:case 11:case 15:jo(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:jo(e);break;case 12:jo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ou(e)):jo(e);break;default:jo(e)}}function ou(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];wt=o,wy(o,e)}by(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),ou(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ou(t));break;default:ou(t)}e=e.sibling}}function wy(e,t){for(;wt!==null;){var l=wt;switch(l.tag){case 0:case 11:case 15:Xa(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:ro(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,wt=o;else e:for(l=e;wt!==null;){o=wt;var d=o.sibling,f=o.return;if(dy(o),o===l){wt=null;break e}if(d!==null){d.return=f,wt=d;break e}wt=f}}}var vE={getCacheForType:function(e){var t=Nt(dt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Nt(dt).controller.signal}},gE=typeof WeakMap=="function"?WeakMap:Map,Be=0,Fe=null,Ae=null,De=0,Ge=0,an=null,Fa=!1,Xr=!1,_f=!1,wa=0,it=0,Za=0,Yl=0,Rf=0,ln=0,Fr=0,Eo=null,Vt=null,Tf=!1,su=0,Sy=0,uu=1/0,cu=null,Pa=null,vt=0,Ja=null,Zr=null,Sa=0,Mf=0,Af=null,jy=null,No=0,kf=null;function rn(){return(Be&2)!==0&&De!==0?De&-De:U.T!==null?Hf():qp()}function Ey(){if(ln===0)if((De&536870912)===0||ze){var e=ys;ys<<=1,(ys&3932160)===0&&(ys=262144),ln=e}else ln=536870912;return e=tn.current,e!==null&&(e.flags|=32),ln}function Kt(e,t,l){(e===Fe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Pr(e,0),Wa(e,De,ln,!1)),Ki(e,l),((Be&2)===0||e!==Fe)&&(e===Fe&&((Be&2)===0&&(Yl|=l),it===4&&Wa(e,De,ln,!1)),Kn(e))}function Ny(e,t,l){if((Be&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Vi(e,t),d=o?xE(e,t):Of(e,t,!0),f=o;do{if(d===0){Xr&&!o&&Wa(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!yE(l)){d=Of(e,t,!1),f=!1;continue}if(d===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 N=e;d=Eo;var M=N.current.memoizedState.isDehydrated;if(M&&(Pr(N,x).flags|=256),x=Of(N,x,!1),x!==2){if(_f&&!M){N.errorRecoveryDisabledLanes|=f,Yl|=f,d=4;break e}f=Vt,Vt=d,f!==null&&(Vt===null?Vt=f:Vt.push.apply(Vt,f))}d=x}if(f=!1,d!==2)continue}}if(d===1){Pr(e,0),Wa(e,t,0,!0);break}e:{switch(o=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Wa(o,t,ln,!Fa);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=su+300-Pt(),10<d)){if(Wa(o,t,ln,!Fa),xs(o,0,!0)!==0)break e;Sa=t,o.timeoutHandle=n0(Cy.bind(null,o,l,Vt,cu,Tf,t,ln,Yl,Fr,Fa,f,"Throttled",-0,0),d);break e}Cy(o,l,Vt,cu,Tf,t,ln,Yl,Fr,Fa,f,null,-0,0)}}break}while(!0);Kn(e)}function Cy(e,t,l,o,d,f,x,N,M,Q,Z,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:oa},yy(t,f,J);var fe=(f&62914560)===f?su-Pt():(f&4194048)===f?Sy-Pt():0;if(fe=nN(J,fe),fe!==null){Sa=f,e.cancelPendingCommit=fe(Oy.bind(null,e,t,f,l,o,d,x,N,M,Z,J,null,Y,K)),Wa(e,f,x,!Q);return}}Oy(e,t,f,l,o,d,x,N,M)}function yE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var d=l[o],f=d.getSnapshot;d=d.value;try{if(!It(f(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Wa(e,t,l,o){t&=~Rf,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var f=31-Wt(d),x=1<<f;o[f]=-1,d&=~x}l!==0&&Lp(e,l,t)}function du(){return(Be&6)===0?(Co(0),!1):!0}function Df(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,da=Dl=null,Fd(e),Br=null,oo=0,e=Ae;for(;e!==null;)ay(e.alternate,e),e=e.return;Ae=null}}function Pr(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,HE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Sa=0,Df(),Fe=e,Ae=l=ua(e.current,null),De=t,Ge=0,an=null,Fa=!1,Xr=Vi(e,t),_f=!1,Fr=ln=Rf=Yl=Za=it=0,Vt=Eo=null,Tf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-Wt(o),f=1<<d;t|=e[d],o&=~f}return wa=t,ks(),l}function _y(e,t){_e=null,U.H=vo,t===qr||t===Bs?(t=Gv(),Ge=3):t===Ld?(t=Gv(),Ge=4):Ge=t===df?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,an=t,Ae===null&&(it=1,eu(e,hn(t,e.current)))}function Ry(){var e=tn.current;return e===null?!0:(De&4194048)===De?gn===null:(De&62914560)===De||(De&536870912)!==0?e===gn:!1}function Ty(){var e=U.H;return U.H=vo,e===null?vo:e}function My(){var e=U.A;return U.A=vE,e}function fu(){it=4,Fa||(De&4194048)!==De&&tn.current!==null||(Xr=!0),(Za&134217727)===0&&(Yl&134217727)===0||Fe===null||Wa(Fe,De,ln,!1)}function Of(e,t,l){var o=Be;Be|=2;var d=Ty(),f=My();(Fe!==e||De!==t)&&(cu=null,Pr(e,t)),t=!1;var x=it;e:do try{if(Ge!==0&&Ae!==null){var N=Ae,M=an;switch(Ge){case 8:Df(),x=6;break e;case 3:case 2:case 9:case 6:tn.current===null&&(t=!0);var Q=Ge;if(Ge=0,an=null,Jr(e,N,M,Q),l&&Xr){x=0;break e}break;default:Q=Ge,Ge=0,an=null,Jr(e,N,M,Q)}}bE(),x=it;break}catch(Z){_y(e,Z)}while(!0);return t&&e.shellSuspendCounter++,da=Dl=null,Be=o,U.H=d,U.A=f,Ae===null&&(Fe=null,De=0,ks()),x}function bE(){for(;Ae!==null;)Ay(Ae)}function xE(e,t){var l=Be;Be|=2;var o=Ty(),d=My();Fe!==e||De!==t?(cu=null,uu=Pt()+500,Pr(e,t)):Xr=Vi(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=an;t:switch(Ge){case 1:Ge=0,an=null,Jr(e,t,f,1);break;case 2:case 9:if(Qv(f)){Ge=0,an=null,ky(t);break}t=function(){Ge!==2&&Ge!==9||Fe!==e||(Ge=7),Kn(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,an=null,ky(t)):(Ge=0,an=null,Jr(e,t,f,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var N=Ae;if(x?g0(x):N.stateNode.complete){Ge=0,an=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,hu(Q)):Ae=null}break t}}Ge=0,an=null,Jr(e,t,f,5);break;case 6:Ge=0,an=null,Jr(e,t,f,6);break;case 8:Df(),it=6;break e;default:throw Error(i(462))}}wE();break}catch(Z){_y(e,Z)}while(!0);return da=Dl=null,U.H=o,U.A=d,Be=l,Ae!==null?0:(Fe=null,De=0,ks(),it)}function wE(){for(;Ae!==null&&!Vj();)Ay(Ae)}function Ay(e){var t=ty(e.alternate,e,wa);e.memoizedProps=e.pendingProps,t===null?hu(e):Ae=t}function ky(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Zg(l,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Zg(l,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Fd(t);default:ay(l,t),t=Ae=Mv(t,wa),t=ty(l,t,wa)}e.memoizedProps=e.pendingProps,t===null?hu(e):Ae=t}function Jr(e,t,l,o){da=Dl=null,Fd(t),Br=null,oo=0;var d=t.return;try{if(uE(e,d,t,l,De)){it=1,eu(e,hn(l,e.current)),Ae=null;return}}catch(f){if(d!==null)throw Ae=d,f;it=1,eu(e,hn(l,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Xr||(De&536870912)!==0?e=!1:(Fa=e=!0,(o===2||o===9||o===3||o===6)&&(o=tn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Dy(t,e)):hu(t)}function hu(e){var t=e;do{if((t.flags&32768)!==0){Dy(t,Fa);return}e=t.return;var l=fE(t.alternate,t,wa);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Dy(e,t){do{var l=hE(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);it=6,Ae=null}function Oy(e,t,l,o,d,f,x,N,M){e.cancelPendingCommit=null;do mu();while(vt!==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|=wd,e2(e,l,f,x,N,M),e===Fe&&(Ae=Fe=null,De=0),Zr=t,Ja=e,Sa=l,Mf=f,Af=d,jy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,NE(vs,function(){return qy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,d=W.p,W.p=2,x=Be,Be|=4;try{mE(e,t,l)}finally{Be=x,W.p=d,U.T=o}}vt=1,zy(),Ly(),Uy()}}function zy(){if(vt===1){vt=0;var e=Ja,t=Zr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var d=Be;Be|=4;try{py(t,e);var f=$f,x=wv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(x!==N&&N&&N.ownerDocument&&xv(N.ownerDocument.documentElement,N)){if(M!==null&&vd(N)){var Q=M.start,Z=M.end;if(Z===void 0&&(Z=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(Z,N.value.length);else{var J=N.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var K=Y.getSelection(),fe=N.textContent.length,Se=Math.min(M.start,fe),Xe=M.end===void 0?Se:Math.min(M.end,fe);!K.extend&&Se>Xe&&(x=Xe,Xe=Se,Se=x);var z=bv(N,Se),O=bv(N,Xe);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>Xe?(K.addRange(B),K.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),K.addRange(B))}}}}for(J=[],K=N;K=K.parentNode;)K.nodeType===1&&J.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<J.length;N++){var P=J[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Cu=!!Kf,$f=Kf=null}finally{Be=d,W.p=o,U.T=l}}e.current=t,vt=2}}function Ly(){if(vt===2){vt=0;var e=Ja,t=Zr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var d=Be;Be|=4;try{cy(e,t.alternate,t)}finally{Be=d,W.p=o,U.T=l}}vt=3}}function Uy(){if(vt===4||vt===3){vt=0,Kj();var e=Ja,t=Zr,l=Sa,o=jy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?vt=5:(vt=0,Zr=Ja=null,Hy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Pa=null),Jc(l),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Gi,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,d=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,x=0;x<o.length;x++){var N=o[x];f(N.value,{componentStack:N.stack})}}finally{U.T=t,W.p=d}}(Sa&3)!==0&&mu(),Kn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===kf?No++:(No=0,kf=e):No=0,Co(0)}}function Hy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ro(t)))}function mu(){return zy(),Ly(),Uy(),qy()}function qy(){if(vt!==5)return!1;var e=Ja,t=Mf;Mf=0;var l=Jc(Sa),o=U.T,d=W.p;try{W.p=32>l?32:l,U.T=null,l=Af,Af=null;var f=Ja,x=Sa;if(vt=0,Zr=Ja=null,Sa=0,(Be&6)!==0)throw Error(i(331));var N=Be;if(Be|=4,xy(f.current),gy(f,f.current,x,l),Be=N,Co(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Gi,f)}catch{}return!0}finally{W.p=d,U.T=o,Hy(e,t)}}function By(e,t,l){t=hn(l,t),t=cf(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(Ki(e,2),Kn(e))}function Ve(e,t,l){if(e.tag===3)By(e,e,l);else for(;t!==null;){if(t.tag===3){By(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Pa===null||!Pa.has(o))){e=hn(l,e),l=Qg(2),o=Va(t,l,2),o!==null&&(Yg(l,o,t,e),Ki(o,2),Kn(o));break}}t=t.return}}function zf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new gE;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(l)||(_f=!0,d.add(l),e=SE.bind(null,e,t,l),t.then(e,e))}function SE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Fe===e&&(De&l)===l&&(it===4||it===3&&(De&62914560)===De&&300>Pt()-su?(Be&2)===0&&Pr(e,0):Rf|=l,Fr===De&&(Fr=0)),Kn(e)}function Qy(e,t){t===0&&(t=zp()),e=Ml(e,t),e!==null&&(Ki(e,t),Kn(e))}function jE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qy(e,l)}function EE(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(l=d.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,l)}function NE(e,t){return Xc(e,t)}var pu=null,Wr=null,Lf=!1,vu=!1,Uf=!1,Ia=0;function Kn(e){e!==Wr&&e.next===null&&(Wr===null?pu=Wr=e:Wr=Wr.next=e),vu=!0,Lf||(Lf=!0,_E())}function Co(e,t){if(!Uf&&vu){Uf=!0;do for(var l=!1,o=pu;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var x=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-Wt(42|e)+1)-1,f&=d&~(x&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Ky(o,f))}else f=De,f=xs(o,o===Fe?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Vi(o,f)||(l=!0,Ky(o,f));o=o.next}while(l);Uf=!1}}function CE(){Yy()}function Yy(){vu=Lf=!1;var e=0;Ia!==0&&UE()&&(e=Ia);for(var t=Pt(),l=null,o=pu;o!==null;){var d=o.next,f=Gy(o,t);f===0?(o.next=null,l===null?pu=d:l.next=d,d===null&&(Wr=l)):(l=o,(e!==0||(f&3)!==0)&&(vu=!0)),o=d}vt!==0&&vt!==5||Co(e),Ia!==0&&(Ia=0)}function Gy(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-Wt(f),N=1<<x,M=d[x];M===-1?((N&l)===0||(N&o)!==0)&&(d[x]=Ij(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Fe,l=De,l=xs(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Fc(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Vi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&Fc(o),Jc(l)){case 2:case 8:l=Dp;break;case 32:l=vs;break;case 268435456:l=Op;break;default:l=vs}return o=Vy.bind(null,e),l=Xc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&Fc(o),e.callbackPriority=2,e.callbackNode=null,2}function Vy(e,t){if(vt!==0&&vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(mu()&&e.callbackNode!==l)return null;var o=De;return o=xs(e,e===Fe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ny(e,o,t),Gy(e,Pt()),e.callbackNode!=null&&e.callbackNode===l?Vy.bind(null,e):null)}function Ky(e,t){if(mu())return null;Ny(e,t,!0)}function _E(){qE(function(){(Be&6)!==0?Xc(kp,CE):Yy()})}function Hf(){if(Ia===0){var e=Ur;e===0&&(e=gs,gs<<=1,(gs&261888)===0&&(gs=256)),Ia=e}return Ia}function $y(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Es(""+e)}function Xy(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function RE(e,t,l,o,d){if(t==="submit"&&l&&l.stateNode===d){var f=$y((d[qt]||null).action),x=o.submitter;x&&(t=(t=x[qt]||null)?$y(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var N=new Rs("action","action",null,o,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ia!==0){var M=x?Xy(d,x):new FormData(d);af(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=x?Xy(d,x):new FormData(d),af(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var qf=0;qf<xd.length;qf++){var Bf=xd[qf],TE=Bf.toLowerCase(),ME=Bf[0].toUpperCase()+Bf.slice(1);Rn(TE,"on"+ME)}Rn(Ev,"onAnimationEnd"),Rn(Nv,"onAnimationIteration"),Rn(Cv,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn($2,"onTransitionRun"),Rn(X2,"onTransitionStart"),Rn(F2,"onTransitionCancel"),Rn(_v,"onTransitionEnd"),jr("onMouseEnter",["mouseout","mouseover"]),jr("onMouseLeave",["mouseout","mouseover"]),jr("onPointerEnter",["pointerout","pointerover"]),jr("onPointerLeave",["pointerout","pointerover"]),Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),AE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_o));function Fy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],d=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var x=o.length-1;0<=x;x--){var N=o[x],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){As(Z)}d.currentTarget=null,f=M}else for(x=0;x<o.length;x++){if(N=o[x],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){As(Z)}d.currentTarget=null,f=M}}}}function ke(e,t){var l=t[Wc];l===void 0&&(l=t[Wc]=new Set);var o=e+"__bubble";l.has(o)||(Zy(t,e,2,!1),l.add(o))}function Qf(e,t,l){var o=0;t&&(o|=4),Zy(l,e,o,t)}var gu="_reactListening"+Math.random().toString(36).slice(2);function Yf(e){if(!e[gu]){e[gu]=!0,Yp.forEach(function(l){l!=="selectionchange"&&(AE.has(l)||Qf(l,!1,e),Qf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gu]||(t[gu]=!0,Qf("selectionchange",!1,t))}}function Zy(e,t,l,o){switch(E0(t)){case 2:var d=rN;break;case 8:d=iN;break;default:d=ah}l=d.bind(null,t,l,e),d=void 0,!od||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function Gf(e,t,l,o,d){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 N=o.stateNode.containerInfo;if(N===d)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;N!==null;){if(x=xr(N),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=f=x;continue e}N=N.parentNode}}o=o.return}ev(function(){var Q=f,Z=rd(l),J=[];e:{var Y=Rv.get(e);if(Y!==void 0){var K=Rs,fe=e;switch(e){case"keypress":if(Cs(l)===0)break e;case"keydown":case"keyup":K=E2;break;case"focusin":fe="focus",K=dd;break;case"focusout":fe="blur",K=dd;break;case"beforeblur":case"afterblur":K=dd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=f2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=_2;break;case Ev:case Nv:case Cv:K=p2;break;case _v:K=T2;break;case"scroll":case"scrollend":K=c2;break;case"wheel":K=A2;break;case"copy":case"cut":case"paste":K=g2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=rv;break;case"toggle":case"beforetoggle":K=D2}var Se=(t&4)!==0,Xe=!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=Fi(O,z),P!=null&&Se.push(Ro(O,P,B))),Xe)break;O=O.return}0<Se.length&&(Y=new K(Y,fe,null,l,Z),J.push({event:Y,listeners:Se}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Y&&l!==ld&&(fe=l.relatedTarget||l.fromElement)&&(xr(fe)||fe[br]))break e;if((K||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,K?(fe=l.relatedTarget||l.toElement,K=Q,fe=fe?xr(fe):null,fe!==null&&(Xe=c(fe),Se=fe.tag,fe!==Xe||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(K=null,fe=Q),K!==fe)){if(Se=av,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=rv,P="onPointerLeave",z="onPointerEnter",O="pointer"),Xe=K==null?Y:Xi(K),B=fe==null?Y:Xi(fe),Y=new Se(P,O+"leave",K,l,Z),Y.target=Xe,Y.relatedTarget=B,P=null,xr(Z)===Q&&(Se=new Se(z,O+"enter",fe,l,Z),Se.target=B,Se.relatedTarget=Xe,P=Se),Xe=P,K&&fe)t:{for(Se=kE,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&&Py(J,Y,K,Se,!1),fe!==null&&Xe!==null&&Py(J,Xe,fe,Se,!0)}}e:{if(Y=Q?Xi(Q):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var He=hv;else if(dv(Y))if(mv)He=G2;else{He=Q2;var ve=B2}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&ad(Q.elementType)&&(He=hv):He=Y2;if(He&&(He=He(e,Q))){fv(J,He,l,Z);break e}ve&&ve(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&nd(Y,"number",Y.value)}switch(ve=Q?Xi(Q):window,e){case"focusin":(dv(ve)||ve.contentEditable==="true")&&(Tr=ve,gd=Q,no=null);break;case"focusout":no=gd=Tr=null;break;case"mousedown":yd=!0;break;case"contextmenu":case"mouseup":case"dragend":yd=!1,Sv(J,l,Z);break;case"selectionchange":if(K2)break;case"keydown":case"keyup":Sv(J,l,Z)}var Re;if(hd)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 Rr?uv(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(iv&&l.locale!=="ko"&&(Rr||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Rr&&(Re=tv()):(Ua=Z,sd="value"in Ua?Ua.value:Ua.textContent,Rr=!0)),ve=yu(Q,Oe),0<ve.length&&(Oe=new lv(Oe,e,null,l,Z),J.push({event:Oe,listeners:ve}),Re?Oe.data=Re:(Re=cv(l),Re!==null&&(Oe.data=Re)))),(Re=z2?L2(e,l):U2(e,l))&&(Oe=yu(Q,"onBeforeInput"),0<Oe.length&&(ve=new lv("onBeforeInput","beforeinput",null,l,Z),J.push({event:ve,listeners:Oe}),ve.data=Re)),RE(J,e,Q,l,Z)}Fy(J,t)})}function Ro(e,t,l){return{instance:e,listener:t,currentTarget:l}}function yu(e,t){for(var l=t+"Capture",o=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Fi(e,l),d!=null&&o.unshift(Ro(e,d,f)),d=Fi(e,t),d!=null&&o.push(Ro(e,d,f))),e.tag===3)return o;e=e.return}return[]}function kE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Py(e,t,l,o,d){for(var f=t._reactName,x=[];l!==null&&l!==o;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===o)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,d?(Q=Fi(l,f),Q!=null&&x.unshift(Ro(l,Q,M))):d||(Q=Fi(l,f),Q!=null&&x.push(Ro(l,Q,M)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var DE=/\r\n?/g,OE=/\u0000|\uFFFD/g;function Jy(e){return(typeof e=="string"?e:""+e).replace(DE,`
49
- `).replace(OE,"")}function Wy(e,t){return t=Jy(t),Jy(e)===t}function $e(e,t,l,o,d,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Nr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Nr(e,""+o);break;case"className":Ss(e,"class",o);break;case"tabIndex":Ss(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ss(e,l,o);break;case"style":Wp(e,o,f);break;case"data":if(t!=="object"){Ss(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Es(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&$e(e,t,"name",d.name,d,null),$e(e,t,"formEncType",d.formEncType,d,null),$e(e,t,"formMethod",d.formMethod,d,null),$e(e,t,"formTarget",d.formTarget,d,null)):($e(e,t,"encType",d.encType,d,null),$e(e,t,"method",d.method,d,null),$e(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Es(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=oa);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(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}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}l=Es(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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(l,""+o):e.removeAttribute(l);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(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":ke("beforetoggle",e),ke("toggle",e),ws(e,"popover",o);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ws(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=s2.get(l)||l,ws(e,l,o))}}function Vf(e,t,l,o,d,f){switch(l){case"style":Wp(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?Nr(e,o):(typeof o=="number"||typeof o=="bigint")&&Nr(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=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[qt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,d);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):ws(e,l,o)}}}function _t(e,t,l){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,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var x=l[f];if(x!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:$e(e,t,f,x,l,null)}}d&&$e(e,t,"srcSet",l.srcSet,l,null),o&&$e(e,t,"src",l.src,l,null);return;case"input":ke("invalid",e);var N=f=x=d=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Z=l[o];if(Z!=null)switch(o){case"name":d=Z;break;case"type":x=Z;break;case"checked":M=Z;break;case"defaultChecked":Q=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:$e(e,t,o,Z,l,null)}}Fp(e,f,N,M,Q,x,d,!1);return;case"select":ke("invalid",e),o=x=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":x=N;break;case"multiple":o=N;default:$e(e,t,d,N,l,null)}t=f,l=x,e.multiple=!!o,t!=null?Er(e,!!o,t,!1):l!=null&&Er(e,!!o,l,!0);return;case"textarea":ke("invalid",e),f=d=o=null;for(x in l)if(l.hasOwnProperty(x)&&(N=l[x],N!=null))switch(x){case"value":o=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:$e(e,t,x,N,l,null)}Pp(e,o,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(o=l[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:$e(e,t,M,o,l,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<_o.length;o++)ke(_o[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 l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:$e(e,t,Q,o,l,null)}return;default:if(ad(t)){for(Z in l)l.hasOwnProperty(Z)&&(o=l[Z],o!==void 0&&Vf(e,t,Z,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&$e(e,t,N,o,l,null))}function zE(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,x=null,N=null,M=null,Q=null,Z=null;for(K in l){var J=l[K];if(l.hasOwnProperty(K)&&J!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(K)||$e(e,t,K,null,o,J)}}for(var Y in o){var K=o[Y];if(J=l[Y],o.hasOwnProperty(Y)&&(K!=null||J!=null))switch(Y){case"type":f=K;break;case"name":d=K;break;case"checked":Q=K;break;case"defaultChecked":Z=K;break;case"value":x=K;break;case"defaultValue":N=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:K!==J&&$e(e,t,Y,K,o,J)}}td(e,x,N,M,Q,Z,f,d);return;case"select":K=x=N=Y=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":K=M;default:o.hasOwnProperty(f)||$e(e,t,f,null,o,M)}for(d in o)if(f=o[d],M=l[d],o.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Y=f;break;case"defaultValue":N=f;break;case"multiple":x=f;default:f!==M&&$e(e,t,d,f,o,M)}t=N,l=x,o=K,Y!=null?Er(e,!!l,Y,!1):!!o!=!!l&&(t!=null?Er(e,!!l,t,!0):Er(e,!!l,l?[]:"",!1));return;case"textarea":K=Y=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:$e(e,t,N,null,o,d)}for(x in o)if(d=o[x],f=l[x],o.hasOwnProperty(x)&&(d!=null||f!=null))switch(x){case"value":Y=d;break;case"defaultValue":K=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&$e(e,t,x,d,o,f)}Zp(e,Y,K);return;case"option":for(var fe in l)if(Y=l[fe],l.hasOwnProperty(fe)&&Y!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:$e(e,t,fe,null,o,Y)}for(M in o)if(Y=o[M],K=l[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:$e(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 l)Y=l[Se],l.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&$e(e,t,Se,null,o,Y);for(Q in o)if(Y=o[Q],K=l[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:$e(e,t,Q,Y,o,K)}return;default:if(ad(t)){for(var Xe in l)Y=l[Xe],l.hasOwnProperty(Xe)&&Y!==void 0&&!o.hasOwnProperty(Xe)&&Vf(e,t,Xe,void 0,o,Y);for(Z in o)Y=o[Z],K=l[Z],!o.hasOwnProperty(Z)||Y===K||Y===void 0&&K===void 0||Vf(e,t,Z,Y,o,K);return}}for(var z in l)Y=l[z],l.hasOwnProperty(z)&&Y!=null&&!o.hasOwnProperty(z)&&$e(e,t,z,null,o,Y);for(J in o)Y=o[J],K=l[J],!o.hasOwnProperty(J)||Y===K||Y==null&&K==null||$e(e,t,J,Y,o,K)}function Iy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function LE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],f=d.transferSize,x=d.initiatorType,N=d.duration;if(f&&N&&Iy(x)){for(x=0,N=d.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var Z=M.transferSize,J=M.initiatorType;Z&&Iy(J)&&(M=M.responseEnd,x+=Z*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+x)/(d.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 Kf=null,$f=null;function bu(e){return e.nodeType===9?e:e.ownerDocument}function e0(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 t0(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 Xf(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 Ff=null;function UE(){var e=window.event;return e&&e.type==="popstate"?e===Ff?!1:(Ff=e,!0):(Ff=null,!1)}var n0=typeof setTimeout=="function"?setTimeout:void 0,HE=typeof clearTimeout=="function"?clearTimeout:void 0,a0=typeof Promise=="function"?Promise:void 0,qE=typeof queueMicrotask=="function"?queueMicrotask:typeof a0<"u"?function(e){return a0.resolve(null).then(e).catch(BE)}:n0;function BE(e){setTimeout(function(){throw e})}function el(e){return e==="head"}function l0(e,t){var l=t,o=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(d),ni(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")To(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,To(l);for(var f=l.firstChild;f;){var x=f.nextSibling,N=f.nodeName;f[$i]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=x}}else l==="body"&&To(e.ownerDocument.body);l=d}while(l);ni(t)}function r0(e,t){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function Zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zf(l),Ic(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function QE(e,t,l,o){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[$i])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!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=yn(e.nextSibling),e===null)break}return null}function YE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=yn(e.nextSibling),e===null))return null;return e}function i0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=yn(e.nextSibling),e===null))return null;return e}function Pf(e){return e.data==="$?"||e.data==="$~"}function Jf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function GE(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var o=function(){t(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function yn(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 Wf=null;function o0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return yn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function s0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function u0(e,t,l){switch(t=bu(l),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 To(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ic(e)}var bn=new Map,c0=new Set;function xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=W.d;W.d={f:VE,r:KE,D:$E,C:XE,L:FE,m:ZE,X:JE,S:PE,M:WE};function VE(){var e=ja.f(),t=du();return e||t}function KE(e){var t=wr(e);t!==null&&t.tag===5&&t.type==="form"?_g(t):ja.r(e)}var Ir=typeof document>"u"?null:document;function d0(e,t,l){var o=Ir;if(o&&typeof t=="string"&&t){var d=dn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),c0.has(d)||(c0.add(d),e={rel:e,crossOrigin:l,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),_t(t,"link",e),xt(t),o.head.appendChild(t)))}}function $E(e){ja.D(e),d0("dns-prefetch",e,null)}function XE(e,t){ja.C(e,t),d0("preconnect",e,t)}function FE(e,t,l){ja.L(e,t,l);var o=Ir;if(o&&e&&t){var d='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+dn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+dn(l.imageSizes)+'"]')):d+='[href="'+dn(e)+'"]';var f=d;switch(t){case"style":f=ei(e);break;case"script":f=ti(e)}bn.has(f)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),bn.set(f,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(Mo(f))||t==="script"&&o.querySelector(Ao(f))||(t=o.createElement("link"),_t(t,"link",e),xt(t),o.head.appendChild(t)))}}function ZE(e,t){ja.m(e,t);var l=Ir;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+dn(o)+'"][href="'+dn(e)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ti(e)}if(!bn.has(f)&&(e=b({rel:"modulepreload",href:e},t),bn.set(f,e),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ao(f)))return}o=l.createElement("link"),_t(o,"link",e),xt(o),l.head.appendChild(o)}}}function PE(e,t,l){ja.S(e,t,l);var o=Ir;if(o&&e){var d=Sr(o).hoistableStyles,f=ei(e);t=t||"default";var x=d.get(f);if(!x){var N={loading:0,preload:null};if(x=o.querySelector(Mo(f)))N.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=bn.get(f))&&If(e,l);var M=x=o.createElement("link");xt(M),_t(M,"link",e),M._p=new Promise(function(Q,Z){M.onload=Q,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,wu(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:N},d.set(f,x)}}}function JE(e,t){ja.X(e,t);var l=Ir;if(l&&e){var o=Sr(l).hoistableScripts,d=ti(e),f=o.get(d);f||(f=l.querySelector(Ao(d)),f||(e=b({src:e,async:!0},t),(t=bn.get(d))&&eh(e,t),f=l.createElement("script"),xt(f),_t(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function WE(e,t){ja.M(e,t);var l=Ir;if(l&&e){var o=Sr(l).hoistableScripts,d=ti(e),f=o.get(d);f||(f=l.querySelector(Ao(d)),f||(e=b({src:e,async:!0,type:"module"},t),(t=bn.get(d))&&eh(e,t),f=l.createElement("script"),xt(f),_t(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function f0(e,t,l,o){var d=(d=je.current)?xu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ei(l.href),l=Sr(d).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ei(l.href);var f=Sr(d).hoistableStyles,x=f.get(e);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,x),(f=d.querySelector(Mo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),bn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},bn.set(e,l),f||IE(d,e,l,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=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ti(l),l=Sr(d).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ei(e){return'href="'+dn(e)+'"'}function Mo(e){return'link[rel="stylesheet"]['+e+"]"}function h0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function IE(e,t,l,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}),_t(t,"link",l),xt(t),e.head.appendChild(t))}function ti(e){return'[src="'+dn(e)+'"]'}function Ao(e){return"script[async]"+e}function m0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+dn(l.href)+'"]');if(o)return t.instance=o,xt(o),o;var d=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),xt(o),_t(o,"style",d),wu(o,l.precedence,e),t.instance=o;case"stylesheet":d=ei(l.href);var f=e.querySelector(Mo(d));if(f)return t.state.loading|=4,t.instance=f,xt(f),f;o=h0(l),(d=bn.get(d))&&If(o,d),f=(e.ownerDocument||e).createElement("link"),xt(f);var x=f;return x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),_t(f,"link",o),t.state.loading|=4,wu(f,l.precedence,e),t.instance=f;case"script":return f=ti(l.src),(d=e.querySelector(Ao(f)))?(t.instance=d,xt(d),d):(o=l,(d=bn.get(f))&&(o=b({},l),eh(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),xt(d),_t(d,"link",o),e.head.appendChild(d),t.instance=d);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,wu(o,l.precedence,e));return t.instance}function wu(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,x=0;x<o.length;x++){var N=o[x];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function If(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function eh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Su=null;function p0(e,t,l){if(Su===null){var o=new Map,d=Su=new Map;d.set(l,o)}else d=Su,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[$i]||f[jt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(t)||"";x=e+x;var N=o.get(x);N?N.push(f):o.set(x,[f])}}return o}function v0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function eN(e,t,l){if(l===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 g0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tN(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=ei(o.href),f=t.querySelector(Mo(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,xt(f);return}f=t.ownerDocument||t,o=h0(o),(d=bn.get(d))&&If(o,d),f=f.createElement("link"),xt(f);var x=f;x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),_t(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var th=0;function nN(e,t){return e.stylesheets&&e.count===0&&Nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*LE());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Eu=null;function Nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(aN,e),Eu=null,ju.call(e))}function aN(e,t){if(!(t.state.loading&4)){var l=Eu.get(e);if(l)var o=l.get(null);else{l=new Map,Eu.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var x=d[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),o=x)}o&&l.set(null,o)}d=t.instance,x=d.getAttribute("data-precedence"),f=l.get(x)||o,f===o&&l.set(null,d),l.set(x,d),this.count++,o=ju.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var ko={$$typeof:T,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function lN(e,t,l,o,d,f,x,N,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=Zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc(0),this.hiddenUpdates=Zc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function y0(e,t,l,o,d,f,x,N,M,Q,Z,J){return e=new lN(e,t,l,x,M,Q,Z,J,N),t=1,f===!0&&(t|=24),f=en(3,null,null,t),e.current=f,f.stateNode=e,t=Dd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},Ud(f),e}function b0(e){return e?(e=kr,e):kr}function x0(e,t,l,o,d,f){d=b0(d),o.context===null?o.context=d:o.pendingContext=d,o=Ga(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Va(e,o,t),l!==null&&(Kt(l,e,t),uo(l,e,t))}function w0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function nh(e,t){w0(e,t),(e=e.alternate)&&w0(e,t)}function S0(e){if(e.tag===13||e.tag===31){var t=Ml(e,67108864);t!==null&&Kt(t,e,67108864),nh(e,67108864)}}function j0(e){if(e.tag===13||e.tag===31){var t=rn();t=Pc(t);var l=Ml(e,t);l!==null&&Kt(l,e,t),nh(e,t)}}var Cu=!0;function rN(e,t,l,o){var d=U.T;U.T=null;var f=W.p;try{W.p=2,ah(e,t,l,o)}finally{W.p=f,U.T=d}}function iN(e,t,l,o){var d=U.T;U.T=null;var f=W.p;try{W.p=8,ah(e,t,l,o)}finally{W.p=f,U.T=d}}function ah(e,t,l,o){if(Cu){var d=lh(o);if(d===null)Gf(e,t,o,_u,l),N0(e,o);else if(sN(d,e,t,l,o))o.stopPropagation();else if(N0(e,o),t&4&&-1<oN.indexOf(e)){for(;d!==null;){var f=wr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=Nl(f.pendingLanes);if(x!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;x;){var M=1<<31-Wt(x);N.entanglements[1]|=M,x&=~M}Kn(f),(Be&6)===0&&(uu=Pt()+500,Co(0))}}break;case 31:case 13:N=Ml(f,2),N!==null&&Kt(N,f,2),du(),nh(f,2)}if(f=lh(o),f===null&&Gf(e,t,o,_u,l),f===d)break;d=f}d!==null&&o.stopPropagation()}else Gf(e,t,o,null,l)}}function lh(e){return e=rd(e),rh(e)}var _u=null;function rh(e){if(_u=null,e=xr(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _u=e,null}function E0(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($j()){case kp:return 2;case Dp:return 8;case vs:case Xj:return 32;case Op:return 268435456;default:return 32}default:return 32}}var ih=!1,tl=null,nl=null,al=null,Do=new Map,Oo=new Map,ll=[],oN="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 N0(e,t){switch(e){case"focusin":case"focusout":tl=null;break;case"dragenter":case"dragleave":nl=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function zo(e,t,l,o,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},t!==null&&(t=wr(t),t!==null&&S0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function sN(e,t,l,o,d){switch(t){case"focusin":return tl=zo(tl,e,t,l,o,d),!0;case"dragenter":return nl=zo(nl,e,t,l,o,d),!0;case"mouseover":return al=zo(al,e,t,l,o,d),!0;case"pointerover":var f=d.pointerId;return Do.set(f,zo(Do.get(f)||null,e,t,l,o,d)),!0;case"gotpointercapture":return f=d.pointerId,Oo.set(f,zo(Oo.get(f)||null,e,t,l,o,d)),!0}return!1}function C0(e){var t=xr(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=lh(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);ld=o,l.target.dispatchEvent(o),ld=null}else return t=wr(l),t!==null&&S0(t),e.blockedOn=l,!1;t.shift()}return!0}function _0(e,t,l){Ru(e)&&l.delete(t)}function uN(){ih=!1,tl!==null&&Ru(tl)&&(tl=null),nl!==null&&Ru(nl)&&(nl=null),al!==null&&Ru(al)&&(al=null),Do.forEach(_0),Oo.forEach(_0)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,ih||(ih=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,uN)))}var Mu=null;function R0(e){Mu!==e&&(Mu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(rh(o||l)===null)continue;break}var f=wr(l);f!==null&&(e.splice(t,3),t-=3,af(f,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function ni(e){function t(M){return Tu(M,e)}tl!==null&&Tu(tl,e),nl!==null&&Tu(nl,e),al!==null&&Tu(al,e),Do.forEach(t),Oo.forEach(t);for(var l=0;l<ll.length;l++){var o=ll[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ll.length&&(l=ll[0],l.blockedOn===null);)C0(l),l.blockedOn===null&&ll.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],f=l[o+1],x=d[qt]||null;if(typeof f=="function")x||R0(l);else if(x){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,x=f[qt]||null)N=x.formAction;else if(rh(d)!==null)continue}else N=x.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),R0(l)}}}function T0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(x){return d=x})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),o||setTimeout(l,20)}function l(){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,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function oh(e){this._internalRoot=e}Au.prototype.render=oh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=rn();x0(l,o,e,t,null,null)},Au.prototype.unmount=oh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;x0(e.current,2,null,e,null,null),du(),t[br]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=qp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ll.length&&t!==0&&t<ll[l].priority;l++);ll.splice(l,0,e),l===0&&C0(e)}};var M0=a.version;if(M0!=="19.2.3")throw Error(i(527,M0,"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=v(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var cN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{Gi=ku.inject(cN),Jt=ku}catch{}}return Uo.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",d=Ug,f=Hg,x=qg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=y0(e,1,!1,null,null,l,o,null,d,f,x,T0),e[br]=t.current,Yf(e),new oh(t)},Uo.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,d="",f=Ug,x=Hg,N=qg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=y0(e,1,!0,t,l??null,o,d,M,f,x,N,T0),t.context=b0(null),l=t.current,o=rn(),o=Pc(o),d=Ga(o),d.callback=null,Va(l,d,o),l=o,t.current.lanes=l,Ki(t,l),Kn(t),e[br]=t.current,Yf(e),new Au(t)},Uo.version="19.2.3",Uo}var P0;function WN(){if(P0)return fh.exports;P0=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(a){console.error(a)}}return n(),fh.exports=JN(),fh.exports}var IN=WN(),Ho={},J0;function eC(){if(J0)return Ho;J0=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.parse=h,Ho.serialize=v;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\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,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new c,S=w.length;if(S<2)return E;const C=(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),$=p(w,R,L),q=w.slice(L,$);if(E[q]===void 0){let H=m(w,R+1,D),G=p(w,D,H);const te=C(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 v(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 C=S(j);if(!a.test(C))throw new TypeError(`argument val is invalid: ${j}`);let _=w+"="+C;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 Ho}eC();var W0="popstate";function tC(n={}){function a(s,c){let{pathname:h="/",search:m="",hash:p=""}=ur(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Fh("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,v=p.indexOf("#");m=v===-1?p:p.slice(0,v)}return m+"#"+(typeof c=="string"?c:Zo(c))}function i(s,c){Nn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return aC(a,r,i,n)}function tt(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Nn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function nC(){return Math.random().toString(36).substring(2,10)}function I0(n,a){return{usr:n.state,key:n.key,idx:a}}function Fh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?ur(a):a,state:r,key:a&&a.key||i||nC()}}function Zo({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function ur(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function aC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,h=s.history,m="POP",p=null,v=y();v==null&&(v=0,h.replaceState({...h.state,idx:v},""));function y(){return(h.state||{idx:null}).idx}function b(){m="POP";let C=y(),_=C==null?null:C-v;v=C,p&&p({action:m,location:S.location,delta:_})}function w(C,_){m="PUSH";let R=Fh(S.location,C,_);r&&r(R,C),v=y()+1;let T=I0(R,v),D=S.createHref(R);try{h.pushState(T,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(D)}c&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let R=Fh(S.location,C,_);r&&r(R,C),v=y();let T=I0(R,v),D=S.createHref(R);h.replaceState(T,"",D),c&&p&&p({action:m,location:S.location,delta:0})}function E(C){return lC(C)}let S={get action(){return m},get location(){return n(s,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(W0,b),p=C,()=>{s.removeEventListener(W0,b),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function lC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),tt(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Zo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function jx(n,a,r="/"){return rC(n,a,r,!1)}function rC(n,a,r,i){let s=typeof a=="string"?ur(a):a,c=Ma(s.pathname||"/",r);if(c==null)return null;let h=Ex(n);iC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let v=gC(c);m=pC(h[p],v,i)}return m}function Ex(n,a=[],r=[],i=""){let s=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(tt(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 v=Ra([i,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(tt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ex(c.children,a,y,v)),!(c.path==null&&!c.index)&&a.push({path:v,score:hC(v,c.index),routesMeta:y})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))s(c,h);else for(let p of Nx(c.path))s(c,h,p)}),a}function Nx(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let h=Nx(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function iC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:mC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var oC=/^:[\w-]+$/,sC=3,uC=2,cC=1,dC=10,fC=-2,eb=n=>n==="*";function hC(n,a){let r=n.split("/"),i=r.length;return r.some(eb)&&(i+=fC),a&&(i+=uC),r.filter(s=>!eb(s)).reduce((s,c)=>s+(oC.test(c)?sC:c===""?cC:dC),i)}function mC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function pC(n,a,r=!1){let{routesMeta:i}=n,s={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],v=m===i.length-1,y=c==="/"?a:a.slice(c.length)||"/",b=ec({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},y),w=p.route;if(!b&&v&&r&&!i[i.length-1].route.index&&(b=ec({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),h.push({params:s,pathname:Ra([c,b.pathname]),pathnameBase:wC(Ra([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=Ra([c,b.pathnameBase]))}return h}function ec(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=vC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let c=s[0],h=c.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((v,{paramName:y,isOptional:b},w)=>{if(y==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return b&&!j?v[y]=void 0:v[y]=(j||"").replace(/%2F/g,"/"),v},{}),pathname:c,pathnameBase:h,pattern:n}}function vC(n,a=!1,r=!0){Nn(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,a?void 0:"i"),i]}function gC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Nn(!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 (${a}).`),n}}function Ma(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function yC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?ur(n):n;return{pathname:r?r.startsWith("/")?r:bC(r,a):a,search:SC(i),hash:jC(s)}}function bC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function vh(n,a,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` 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 xC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Nm(n){let a=xC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Cm(n,a,r,i=!1){let s;typeof n=="string"?s=ur(n):(s={...n},tt(!s.pathname||!s.pathname.includes("?"),vh("?","pathname","search",s)),tt(!s.pathname||!s.pathname.includes("#"),vh("#","pathname","hash",s)),tt(!s.search||!s.search.includes("#"),vh("#","search","hash",s)));let c=n===""||s.pathname==="",h=c?"/":s.pathname,m;if(h==null)m=r;else{let b=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?a[b]:"/"}let p=yC(s,m),v=h&&h!=="/"&&h.endsWith("/"),y=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(v||y)&&(p.pathname+="/"),p}var Ra=n=>n.join("/").replace(/\/\/+/g,"/"),wC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),SC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function EC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Cx=["POST","PUT","PATCH","DELETE"];new Set(Cx);var NC=["GET",...Cx];new Set(NC);var Ti=g.createContext(null);Ti.displayName="DataRouter";var gc=g.createContext(null);gc.displayName="DataRouterState";var _x=g.createContext({isTransitioning:!1});_x.displayName="ViewTransition";var CC=g.createContext(new Map);CC.displayName="Fetchers";var _C=g.createContext(null);_C.displayName="Await";var Hn=g.createContext(null);Hn.displayName="Navigation";var ls=g.createContext(null);ls.displayName="Location";var qn=g.createContext({outlet:null,matches:[],isDataRoute:!1});qn.displayName="Route";var _m=g.createContext(null);_m.displayName="RouteError";function RC(n,{relative:a}={}){tt(Mi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=g.useContext(Hn),{hash:s,pathname:c,search:h}=rs(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:Ra([r,c])),i.createHref({pathname:m,search:h,hash:s})}function Mi(){return g.useContext(ls)!=null}function Da(){return tt(Mi(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(ls).location}var Rx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tx(n){g.useContext(Hn).static||g.useLayoutEffect(n)}function Mx(){let{isDataRoute:n}=g.useContext(qn);return n?QC():TC()}function TC(){tt(Mi(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(Ti),{basename:a,navigator:r}=g.useContext(Hn),{matches:i}=g.useContext(qn),{pathname:s}=Da(),c=JSON.stringify(Nm(i)),h=g.useRef(!1);return Tx(()=>{h.current=!0}),g.useCallback((p,v={})=>{if(Nn(h.current,Rx),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=Cm(p,JSON.parse(c),s,v.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Ra([a,y.pathname])),(v.replace?r.replace:r.push)(y,v.state,v)},[a,r,c,s,n])}g.createContext(null);function cr(){let{matches:n}=g.useContext(qn),a=n[n.length-1];return a?a.params:{}}function rs(n,{relative:a}={}){let{matches:r}=g.useContext(qn),{pathname:i}=Da(),s=JSON.stringify(Nm(r));return g.useMemo(()=>Cm(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function MC(n,a){return Ax(n,a)}function Ax(n,a,r,i){var _;tt(Mi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(Hn),{matches:c}=g.useContext(qn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",v=h?h.pathnameBase:"/",y=h&&h.route;{let R=y&&y.path||"";kx(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=Da(),w;if(a){let R=typeof a=="string"?ur(a):a;tt(v==="/"||((_=R.pathname)==null?void 0:_.startsWith(v)),`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 "${v}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let j=w.pathname||"/",E=j;if(v!=="/"){let R=v.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=jx(n,{pathname:E});Nn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Nn(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 C=zC(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Ra([v,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:Ra([v,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,r,i);return a&&C?g.createElement(ls.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function AC(){let n=BC(),a=EC(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},c={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:c},"ErrorBoundary")," or"," ",g.createElement("code",{style:c},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},a),r?g.createElement("pre",{style:s},r):null,h)}var kC=g.createElement(AC,null),DC=class extends g.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,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?g.createElement(qn.Provider,{value:this.props.routeContext},g.createElement(_m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function OC({routeContext:n,match:a,children:r}){let i=g.useContext(Ti);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),g.createElement(qn.Provider,{value:n},r)}function zC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,c=r==null?void 0:r.errors;if(c!=null){let p=s.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);tt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).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 v=s[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=p),v.route.id){let{loaderData:y,errors:b}=r,w=v.route.loader&&!y.hasOwnProperty(v.route.id)&&(!b||b[v.route.id]===void 0);if(v.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,v,y)=>{let b,w=!1,j=null,E=null;r&&(b=c&&v.route.id?c[v.route.id]:void 0,j=v.route.errorElement||kC,h&&(m<0&&y===0?(kx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=v.route.hydrateFallbackElement||null)));let S=a.concat(s.slice(0,y+1)),C=()=>{let _;return b?_=j:w?_=E:v.route.Component?_=g.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=p,g.createElement(OC,{match:v,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(v.route.ErrorBoundary||v.route.errorElement||y===0)?g.createElement(DC,{location:r.location,revalidation:r.revalidation,component:j,error:b,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function Rm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function LC(n){let a=g.useContext(Ti);return tt(a,Rm(n)),a}function UC(n){let a=g.useContext(gc);return tt(a,Rm(n)),a}function HC(n){let a=g.useContext(qn);return tt(a,Rm(n)),a}function Tm(n){let a=HC(n),r=a.matches[a.matches.length-1];return tt(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function qC(){return Tm("useRouteId")}function BC(){var i;let n=g.useContext(_m),a=UC("useRouteError"),r=Tm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function QC(){let{router:n}=LC("useNavigate"),a=Tm("useNavigate"),r=g.useRef(!1);return Tx(()=>{r.current=!0}),g.useCallback(async(s,c={})=>{Nn(r.current,Rx),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var tb={};function kx(n,a,r){!a&&!tb[n]&&(tb[n]=!0,Nn(!1,r))}g.memo(YC);function YC({routes:n,future:a,state:r}){return Ax(n,void 0,r,a)}function Gl({to:n,replace:a,state:r,relative:i}){tt(Mi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=g.useContext(Hn);Nn(!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:c}=g.useContext(qn),{pathname:h}=Da(),m=Mx(),p=Cm(n,Nm(c),h,i==="path"),v=JSON.stringify(p);return g.useEffect(()=>{m(JSON.parse(v),{replace:a,state:r,relative:i})},[m,v,i,a,r]),null}function $n(n){tt(!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 GC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:c=!1}){tt(!Mi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=g.useMemo(()=>({basename:h,navigator:s,static:c,future:{}}),[h,s,c]);typeof r=="string"&&(r=ur(r));let{pathname:p="/",search:v="",hash:y="",state:b=null,key:w="default"}=r,j=g.useMemo(()=>{let E=Ma(p,h);return E==null?null:{location:{pathname:E,search:v,hash:y,state:b,key:w},navigationType:i}},[h,p,v,y,b,w,i]);return Nn(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:g.createElement(Hn.Provider,{value:m},g.createElement(ls.Provider,{children:a,value:j}))}function VC({children:n,location:a}){return MC(Zh(n),a)}function Zh(n,a=[]){let r=[];return g.Children.forEach(n,(i,s)=>{if(!g.isValidElement(i))return;let c=[...a,s];if(i.type===g.Fragment){r.push.apply(r,Zh(i.props.children,c));return}tt(i.type===$n,`[${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>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.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=Zh(i.props.children,c)),r.push(h)}),r}var $u="get",Xu="application/x-www-form-urlencoded";function yc(n){return n!=null&&typeof n.tagName=="string"}function KC(n){return yc(n)&&n.tagName.toLowerCase()==="button"}function $C(n){return yc(n)&&n.tagName.toLowerCase()==="form"}function XC(n){return yc(n)&&n.tagName.toLowerCase()==="input"}function FC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ZC(n,a){return n.button===0&&(!a||a==="_self")&&!FC(n)}var zu=null;function PC(){if(zu===null)try{new FormData(document.createElement("form"),0),zu=!1}catch{zu=!0}return zu}var JC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gh(n){return n!=null&&!JC.has(n)?(Nn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xu}"`),null):n}function WC(n,a){let r,i,s,c,h;if($C(n)){let m=n.getAttribute("action");i=m?Ma(m,a):null,r=n.getAttribute("method")||$u,s=gh(n.getAttribute("enctype"))||Xu,c=new FormData(n)}else if(KC(n)||XC(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?Ma(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||$u,s=gh(n.getAttribute("formenctype"))||gh(m.getAttribute("enctype"))||Xu,c=new FormData(m,n),!PC()){let{name:v,type:y,value:b}=n;if(y==="image"){let w=v?`${v}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else v&&c.append(v,b)}}else{if(yc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=$u,i=null,s=Xu,h=n}return c&&s==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:c,body:h}}function Mm(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function IC(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[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 e_(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 t_(n,a,r){let i=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let h=await IC(c,r);return h.links?h.links():[]}return[]}));return r_(i.flat(1).filter(e_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function nb(n,a,r,i,s,c){let h=(p,v)=>r[v]?p.route.id!==r[v].route.id:!0,m=(p,v)=>{var y;return r[v].pathname!==p.pathname||((y=r[v].route.path)==null?void 0:y.endsWith("*"))&&r[v].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,v)=>h(p,v)||m(p,v)):c==="data"?a.filter((p,v)=>{var b;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,v)||m(p,v))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 n_(n,a,{includeHydrateFallback:r}={}){return a_(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function a_(n){return[...new Set(n)]}function l_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function r_(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let c=JSON.stringify(l_(s));return r.has(c)||(r.add(c),i.push({key:c,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i_=new Set([100,101,204,205]);function o_(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&Ma(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Dx(){let n=g.useContext(Ti);return Mm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function s_(){let n=g.useContext(gc);return Mm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Am=g.createContext(void 0);Am.displayName="FrameworkContext";function Ox(){let n=g.useContext(Am);return Mm(n,"You must render this element inside a <HydratedRouter> element"),n}function u_(n,a){let r=g.useContext(Am),[i,s]=g.useState(!1),[c,h]=g.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:v,onMouseLeave:y,onTouchStart:b}=a,w=g.useRef(null);g.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(R=>{h(R.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),g.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"?[c,w,{}]:[c,w,{onFocus:qo(m,j),onBlur:qo(p,E),onMouseEnter:qo(v,j),onMouseLeave:qo(y,E),onTouchStart:qo(b,j)}]:[!1,w,{}]}function qo(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function c_({page:n,...a}){let{router:r}=Dx(),i=g.useMemo(()=>jx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?g.createElement(f_,{page:n,matches:i,...a}):null}function d_(n){let{manifest:a,routeModules:r}=Ox(),[i,s]=g.useState([]);return g.useEffect(()=>{let c=!1;return t_(n,a,r).then(h=>{c||s(h)}),()=>{c=!0}},[n,a,r]),i}function f_({page:n,matches:a,...r}){let i=Da(),{manifest:s,routeModules:c}=Ox(),{basename:h}=Dx(),{loaderData:m,matches:p}=s_(),v=g.useMemo(()=>nb(n,a,p,s,i,"data"),[n,a,p,s,i]),y=g.useMemo(()=>nb(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=g.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(_=>{var T;let R=s.routes[_.route.id];!R||!R.hasLoader||(!v.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((T=c[_.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let C=o_(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,v,a,n,c]),w=g.useMemo(()=>n_(y,s),[y,s]),j=d_(y);return g.createElement(g.Fragment,null,b.map(E=>g.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>g.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>g.createElement("link",{key:E,...S})))}function h_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var zx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zx&&(window.__reactRouterVersion="7.6.1")}catch{}function m_({basename:n,children:a,window:r}){let i=g.useRef();i.current==null&&(i.current=tC({window:r,v5Compat:!0}));let s=i.current,[c,h]=g.useState({action:s.action,location:s.location}),m=g.useCallback(p=>{g.startTransition(()=>h(p))},[h]);return g.useLayoutEffect(()=>s.listen(m),[s,m]),g.createElement(GC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:s})}var Lx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sn=g.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:c,replace:h,state:m,target:p,to:v,preventScrollReset:y,viewTransition:b,...w},j){let{basename:E}=g.useContext(Hn),S=typeof v=="string"&&Lx.test(v),C,_=!1;if(typeof v=="string"&&S&&(C=v,zx))try{let G=new URL(window.location.href),te=v.startsWith("//")?new URL(G.protocol+v):new URL(v),ue=Ma(te.pathname,E);te.origin===G.origin&&ue!=null?v=ue+te.search+te.hash:_=!0}catch{Nn(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=RC(v,{relative:s}),[T,D,L]=u_(i,w),$=y_(v,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:b});function q(G){a&&a(G),G.defaultPrevented||$(G)}let H=g.createElement("a",{...w,...L,href:C||R,onClick:_||c?a:q,ref:h_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?g.createElement(g.Fragment,null,H,g.createElement(c_,{page:R})):H});Sn.displayName="Link";var p_=g.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:c,to:h,viewTransition:m,children:p,...v},y){let b=rs(h,{relative:v.relative}),w=Da(),j=g.useContext(gc),{navigator:E,basename:S}=g.useContext(Hn),C=j!=null&&j_(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=Ma(T,S)||T);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=R===_||!s&&R.startsWith(_)&&R.charAt(D)==="/",$=T!=null&&(T===_||!s&&T.startsWith(_)&&T.charAt(_.length)==="/"),q={isActive:L,isPending:$,isTransitioning:C},H=L?a:void 0,G;typeof i=="function"?G=i(q):G=[i,L?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(q):c;return g.createElement(Sn,{...v,"aria-current":H,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(q):p)});p_.displayName="NavLink";var v_=g.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:c,method:h=$u,action:m,onSubmit:p,relative:v,preventScrollReset:y,viewTransition:b,...w},j)=>{let E=w_(),S=S_(m,{relative:v}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Lx.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:a,method:L,navigate:r,replace:s,state:c,relative:v,preventScrollReset:y,viewTransition:b})};return g.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:R,...w,"data-discover":!_&&n==="render"?"true":void 0})});v_.displayName="Form";function g_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ux(n){let a=g.useContext(Ti);return tt(a,g_(n)),a}function y_(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:c,viewTransition:h}={}){let m=Mx(),p=Da(),v=rs(n,{relative:c});return g.useCallback(y=>{if(ZC(y,a)){y.preventDefault();let b=r!==void 0?r:Zo(p)===Zo(v);m(n,{replace:b,state:i,preventScrollReset:s,relative:c,viewTransition:h})}},[p,m,v,r,i,a,n,s,c,h])}var b_=0,x_=()=>`__${String(++b_)}__`;function w_(){let{router:n}=Ux("useSubmit"),{basename:a}=g.useContext(Hn),r=qC();return g.useCallback(async(i,s={})=>{let{action:c,method:h,encType:m,formData:p,body:v}=WC(i,a);if(s.navigate===!1){let y=s.fetcherKey||x_();await n.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:v,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:v,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,r])}function S_(n,{relative:a}={}){let{basename:r}=g.useContext(Hn),i=g.useContext(qn);tt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...rs(n||".",{relative:a})},h=Da();if(n==null){c.search=h.search;let m=new URLSearchParams(c.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();c.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Ra([r,c.pathname])),Zo(c)}function j_(n,a={}){let r=g.useContext(_x);tt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ux("useViewTransitionState"),s=rs(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=Ma(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ma(r.nextLocation.pathname,i)||r.nextLocation.pathname;return ec(s.pathname,h)!=null||ec(s.pathname,c)!=null}[...i_];var is=Sx();const Hx=ox(is);/**
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 E_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),N_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ab=n=>{const a=N_(n);return a.charAt(0).toUpperCase()+a.slice(1)},qx=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===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 C_={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 __=g.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>g.createElement("svg",{ref:p,...C_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:qx("lucide",s),...m},[...h.map(([v,y])=>g.createElement(v,y)),...Array.isArray(c)?c:[c]]));/**
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 Pe=(n,a)=>{const r=g.forwardRef(({className:i,...s},c)=>g.createElement(__,{ref:c,iconNode:a,className:qx(`lucide-${E_(ab(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ab(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 R_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],T_=Pe("archive",R_);/**
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 M_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],A_=Pe("arrow-left",M_);/**
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 k_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],D_=Pe("ban",k_);/**
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 O_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bx=Pe("chevron-down",O_);/**
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 z_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],os=Pe("chevron-left",z_);/**
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 L_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dr=Pe("chevron-right",L_);/**
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 U_=[["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"}]],H_=Pe("circle-alert",U_);/**
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 q_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],bc=Pe("circle-check",q_);/**
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 B_=[["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"}]],xc=Pe("circle-x",B_);/**
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 Q_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ss=Pe("clock",Q_);/**
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 Y_=[["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=Pe("columns-3",Y_);/**
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 G_=[["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"}]],V_=Pe("database",G_);/**
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 K_=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],$_=Pe("folder-open",K_);/**
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 X_=[["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"}]],F_=Pe("git-branch",X_);/**
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 Z_=[["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"}]],P_=Pe("hard-drive",Z_);/**
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 J_=[["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"}]],W_=Pe("inbox",J_);/**
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 I_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yx=Pe("info",I_);/**
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 eR=[["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"}]],Gx=Pe("key",eR);/**
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 tR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zn=Pe("loader-circle",tR);/**
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 nR=[["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"}]],aR=Pe("mail-warning",nR);/**
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 lR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Vx=Pe("play",lR);/**
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 rR=[["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"}]],wc=Pe("refresh-cw",rR);/**
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 iR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],oR=Pe("search",iR);/**
187
- * @license lucide-react v0.488.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 sR=[["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"}]],uR=Pe("settings",sR);/**
192
- * @license lucide-react v0.488.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const cR=[["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"}]],dR=Pe("shield",cR);/**
197
- * @license lucide-react v0.488.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 fR=[["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"}]],Sc=Pe("table",fR);function Kx(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(a=0;a<n.length;a++)n[a]&&(r=Kx(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function hR(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Kx(n))&&(i&&(i+=" "),i+=a);return i}const km="-",mR=n=>{const a=vR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const c=s.split(km);return c[0]===""&&c.length!==1&&c.shift(),$x(c,a)||pR(s)},getConflictingClassGroupIds:(s,c)=>{const h=r[s]||[];return c&&i[s]?[...h,...i[s]]:h}}},$x=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),c=s?$x(n.slice(1),s):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(km);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},lb=/^\[(.+)\]$/,pR=n=>{if(lb.test(n)){const a=lb.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},vR=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Ph(r[s],i,s,a);return i},Ph=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?a:rb(a,s);c.classGroupId=r;return}if(typeof s=="function"){if(gR(s)){Ph(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,h])=>{Ph(h,rb(a,c),r,i)})})},rb=(n,a)=>{let r=n;return a.split(km).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},gR=n=>n.isThemeGetter,yR=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return s(c,h),h},set(c,h){r.has(c)?r.set(c,h):s(c,h)}}},Jh="!",Wh=":",bR=Wh.length,xR=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const c=[];let h=0,m=0,p=0,v;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===Wh){c.push(s.slice(p,E)),p=E+bR;continue}if(S==="/"){v=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=c.length===0?s:s.substring(p),b=wR(y),w=b!==y,j=v&&v>p?v-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:j}};if(a){const s=a+Wh,c=i;i=h=>h.startsWith(s)?c(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=c=>r({className:c,parseClassName:s})}return i},wR=n=>n.endsWith(Jh)?n.substring(0,n.length-1):n.startsWith(Jh)?n.substring(1):n,SR=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i}},jR=n=>({cache:yR(n.cacheSize),parseClassName:xR(n),sortModifiers:SR(n),...mR(n)}),ER=/\s+/,NR=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=a,h=[],m=n.trim().split(ER);let p="";for(let v=m.length-1;v>=0;v-=1){const y=m[v],{isExternal:b,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?E.substring(0,S):E);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const R=c(w).join(":"),T=j?R+Jh:R,D=T+_;if(h.includes(D))continue;h.push(D);const L=s(_,C);for(let $=0;$<L.length;++$){const q=L[$];h.push(T+q)}p=y+(p.length>0?" "+p:p)}return p};function CR(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Xx(a))&&(i&&(i+=" "),i+=r);return i}const Xx=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Xx(n[i]))&&(r&&(r+=" "),r+=a);return r};function _R(n,...a){let r,i,s,c=h;function h(p){const v=a.reduce((y,b)=>b(y),n());return r=jR(v),i=r.cache.get,s=r.cache.set,c=m,m(p)}function m(p){const v=i(p);if(v)return v;const y=NR(p,r);return s(p,y),y}return function(){return c(CR.apply(null,arguments))}}const gt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Fx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RR=/^\d+\/\d+$/,TR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MR=/\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$/,AR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ai=n=>RR.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),il=n=>!!n&&Number.isInteger(Number(n)),yh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),Ea=n=>TR.test(n),OR=()=>!0,zR=n=>MR.test(n)&&!AR.test(n),Px=()=>!1,LR=n=>kR.test(n),UR=n=>DR.test(n),HR=n=>!he(n)&&!me(n),qR=n=>Ai(n,Ix,Px),he=n=>Fx.test(n),Vl=n=>Ai(n,e1,zR),bh=n=>Ai(n,VR,Me),ib=n=>Ai(n,Jx,Px),BR=n=>Ai(n,Wx,UR),Lu=n=>Ai(n,t1,LR),me=n=>Zx.test(n),Bo=n=>ki(n,e1),QR=n=>ki(n,KR),ob=n=>ki(n,Jx),YR=n=>ki(n,Ix),GR=n=>ki(n,Wx),Uu=n=>ki(n,t1,!0),Ai=(n,a,r)=>{const i=Fx.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},ki=(n,a,r=!1)=>{const i=Zx.exec(n);return i?i[1]?a(i[1]):r:!1},Jx=n=>n==="position"||n==="percentage",Wx=n=>n==="image"||n==="url",Ix=n=>n==="length"||n==="size"||n==="bg-size",e1=n=>n==="length",VR=n=>n==="number",KR=n=>n==="family-name",t1=n=>n==="shadow",$R=()=>{const n=gt("color"),a=gt("font"),r=gt("text"),i=gt("font-weight"),s=gt("tracking"),c=gt("leading"),h=gt("breakpoint"),m=gt("container"),p=gt("spacing"),v=gt("radius"),y=gt("shadow"),b=gt("inset-shadow"),w=gt("text-shadow"),j=gt("drop-shadow"),E=gt("blur"),S=gt("perspective"),C=gt("aspect"),_=gt("ease"),R=gt("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],$=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[me,he,p],G=()=>[ai,"full","auto",...H()],te=()=>[il,"none","subgrid",me,he],ue=()=>["auto",{span:["full",il,me,he]},il,me,he],ce=()=>[il,"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=()=>[ai,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],V=()=>[n,me,he],X=()=>[...D(),ob,ib,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",YR,qR,{size:[me,he]}],F=()=>[yh,Bo,Vl],ee=()=>["","none","full",v,me,he],le=()=>["",Me,Bo,Vl],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,yh,ob,ib],Ee=()=>["","none",E,me,he],ye=()=>["none",Me,me,he],Ne=()=>["none",Me,me,he],Ue=()=>[Me,me,he],Ye=()=>[ai,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[OR],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[HR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",Me],text:[Ea],"text-shadow":[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ai,he,me,C]}],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:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],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:[il,"auto",me,he]}],basis:[{basis:[ai,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,ai,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[il,"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,Bo,Vl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,bh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yh,he]}],"font-family":[{font:[QR,he,a]}],"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,bh]}],leading:[{leading:[c,...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,Vl]}],"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:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},il,me,he],radial:["",me,he],conic:[il,me,he]},GR,BR]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"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,Bo,Vl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",y,Uu,Lu]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Uu,Lu]}],"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,Vl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Uu,Lu]}],"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:X()}],"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,Uu,Lu]}],"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:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"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,Bo,Vl,bh]}],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"]}},XR=_R($R);function ge(...n){return XR(hR(n))}function Ko(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const FR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},ZR={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 tc({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return u.jsxs("div",{"data-slot":"glass-container",className:ge("relative","bg-card","backdrop-blur-xl","border border-border",FR[r],ZR[i],a),...s,children:[u.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%)"}}),u.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%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function Rt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return u.jsx(tc,{"data-slot":"card",rounded:a,shadow:r,className:ge("p-6",n),...s,children:i})}function Ut({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:ge("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Ht({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:ge("font-semibold text-sm leading-none text-card-foreground",n),...a})}function jn({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:ge("text-muted-foreground text-sm",n),...a})}function Tt({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:ge(n),...a})}/**
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 PR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),sb=n=>{const a=JR(n);return a.charAt(0).toUpperCase()+a.slice(1)},n1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),WR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
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
- */var IR={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"};/**
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 eT=g.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>g.createElement("svg",{ref:p,...IR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:n1("lucide",s),...!c&&!WR(m)&&{"aria-hidden":"true"},...m},[...h.map(([v,y])=>g.createElement(v,y)),...Array.isArray(c)?c:[c]]));/**
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 Bn=(n,a)=>{const r=g.forwardRef(({className:i,...s},c)=>g.createElement(eT,{ref:c,iconNode:a,className:n1(`lucide-${PR(sb(n))}`,`lucide-${n}`,i),...s}));return r.displayName=sb(n),r};/**
222
- * @license lucide-react v0.511.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const tT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],a1=Bn("check",tT);/**
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 nT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],aT=Bn("chevron-down",nT);/**
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 lT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ub=Bn("chevron-left",lT);/**
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 rT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cb=Bn("chevron-right",rT);/**
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 iT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],oT=Bn("chevron-up",iT);/**
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 sT=[["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"}]],uT=Bn("clipboard",sT);/**
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 cT=[["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"}]],dT=Bn("file-json",cT);/**
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 fT=[["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"}]],hT=Bn("file-spreadsheet",fT);/**
262
- * @license lucide-react v0.511.0 - ISC
263
- *
264
- * This source code is licensed under the ISC license.
265
- * See the LICENSE file in the root directory of this source tree.
266
- */const mT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],pT=Bn("loader-circle",mT);/**
267
- * @license lucide-react v0.511.0 - ISC
268
- *
269
- * This source code is licensed under the ISC license.
270
- * See the LICENSE file in the root directory of this source tree.
271
- */const vT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],gT=Bn("search",vT);/**
272
- * @license lucide-react v0.511.0 - ISC
273
- *
274
- * This source code is licensed under the ISC license.
275
- * See the LICENSE file in the root directory of this source tree.
276
- */const yT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bT=Bn("x",yT);function xT(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${String(a)}s ago`:a<3600?`${String(Math.floor(a/60))}m ago`:a<86400?`${String(Math.floor(a/3600))}h ago`:a<604800?`${String(Math.floor(a/86400))}d ago`:n.toLocaleDateString()}function xh({value:n}){const[a,r]=g.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select();try{document.execCommand("copy")}catch{}document.body.removeChild(s),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:ge("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?u.jsx(a1,{className:"w-3 h-3"}):u.jsx(uT,{className:"w-3 h-3"})})}function nr({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,c]=g.useState(!1),[,h]=g.useState(0),m=i||s;if(g.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 v=p.toISOString(),y=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),b=xT(p);return u.jsxs("div",{className:ge("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:v,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:b}),u.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:u.jsx(tc,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:u.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof r=="object"?JSON.stringify(r):String(r)}),u.jsx(xh,{value:typeof r=="object"?JSON.stringify(r):String(r)})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:v}),u.jsx(xh,{value:v})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),u.jsx(xh,{value:y})]})]})]})})})]})}function wT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function ST(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(a=>a.test(n))}function jT(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function ET(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&jT(n)?"date":typeof i=="number"?"number":ST(i)?"date":"string"}return"string"}function l1({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[v,y]=g.useState(""),[b,w]=g.useState(null),[j,E]=g.useState(new Set),[S,C]=g.useState(1),_=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,T=p?Math.ceil(p.total/p.limit):1,D=g.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(I=>({key:I,label:I,type:ET(I,n)}))),[r,n]),L=g.useMemo(()=>v?n.filter(I=>Object.values(I).some(ie=>String(ie).toLowerCase().includes(v.toLowerCase()))):n,[n,v]),$=g.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($.length/c),H=g.useMemo(()=>{const I=(S-1)*c;return $.slice(I,I+c)},[$,S,c]);g.useMemo(()=>{C(1)},[v,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 u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type??"string"){case"bool":return re===!0?u.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:u.jsx(a1,{className:"w-3.5 h-3.5"})}):u.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:u.jsx(bT,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(nr,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():JSON.stringify(re)});default:return typeof re=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof re=="object"?JSON.stringify(re):String(re)})}};return i?u.jsxs(tc,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[u.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:u.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),u.jsx("div",{className:"p-5",children:u.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):u.jsxs(tc,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.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:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&u.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:wT(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(gT,{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"}),u.jsx("input",{type:"text",placeholder:"Search results...",value:v,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)&&u.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&u.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:u.jsx(hT,{className:"w-4 h-4"})}),m&&u.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:u.jsx(dT,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.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=>u.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:u.jsxs("div",{className:"flex items-center gap-1",children:[I.label,u.jsxs("div",{className:ge("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===I.key&&"opacity-100"),children:[u.jsx(oT,{className:ge("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="asc"&&"text-blue-500")}),u.jsx(aT,{className:ge("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:H.length>0?H.map((I,ie)=>u.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:[u.jsx("td",{className:"p-4",children:u.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=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(I,re)},`${String(ie)}-${re.key}`))]},ie)):u.jsx("tr",{children:u.jsx("td",{colSpan:D.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:v?`No results found matching "${v}"`:"Query executed successfully. No rows returned."})})})]})}),u.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:[u.jsxs("div",{children:[_?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:$.length})," ","results"]}),j.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.size!==1?"s":""," ","selected"]})]}),_&&T>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.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:u.jsx(ub,{className:"w-4 h-4"})}),u.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,u.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)})}),u.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:u.jsx(cb,{className:"w-4 h-4"})})]}),!_&&q>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{C(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:u.jsx(ub,{className:"w-4 h-4"})}),u.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,u.jsx("button",{onClick:()=>{C(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)})}),u.jsx("button",{onClick:()=>{C(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:u.jsx(cb,{className:"w-4 h-4"})})]})]})]})}function fr({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:ge("w-full caption-bottom text-sm",n),...a})}function hr({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:ge("[&_tr]:border-b",n),...a})}function mr({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:ge("[&_tr:last-child]:border-0",n),...a})}function Ft({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:ge("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function at({className:n,...a}){return u.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),...a})}function lt({className:n,...a}){return u.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),...a})}function db(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function us(...n){return a=>{let r=!1;const i=n.map(s=>{const c=db(s,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():db(n[s],null)}}}}function we(...n){return g.useCallback(us(...n),n)}function rr(n){const a=NT(n),r=g.forwardRef((i,s)=>{const{children:c,...h}=i,m=g.Children.toArray(c),p=m.find(CT);if(p){const v=p.props.children,y=m.map(b=>b===p?g.Children.count(v)>1?g.Children.only(null):g.isValidElement(v)?v.props.children:null:b);return u.jsx(a,{...h,ref:s,children:g.isValidElement(v)?g.cloneElement(v,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}var fb=rr("Slot");function NT(n){const a=g.forwardRef((r,i)=>{const{children:s,...c}=r;if(g.isValidElement(s)){const h=RT(s),m=_T(c,s.props);return s.type!==g.Fragment&&(m.ref=i?us(i,h):h),g.cloneElement(s,m)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var r1=Symbol("radix.slottable");function i1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=r1,a}function CT(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===r1}function _T(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function RT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.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 o1(n){var a,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(a=0;a<s;a++)n[a]&&(r=o1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function TT(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=o1(n))&&(i&&(i+=" "),i+=a);return i}const hb=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,mb=TT,s1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return mb(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=a,h=Object.keys(s).map(v=>{const y=r==null?void 0:r[v],b=c==null?void 0:c[v];if(y===null)return null;const w=hb(y)||hb(b);return s[v][w]}),m=r&&Object.entries(r).reduce((v,y)=>{let[b,w]=y;return w===void 0||(v[b]=w),v},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((v,y)=>{let{class:b,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...m}[S]):{...c,...m}[S]===C})?[...v,b,w]:v},[]);return mb(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},MT={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 nc({className:n,icon:a,variant:r="default",children:i,...s}){return u.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",MT[r],n),...s,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const pb=s1("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"}}),AT=["primary","secondary","danger","success","icon"];function Ze({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:c,disabled:h,...m}){const p=i?fb:"button",v=a&&AT.includes(a);return i?u.jsx(fb,{"data-slot":"button",className:ge(pb({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:ge(pb({variant:a,size:r,className:n})),disabled:h===!0||s,...m,children:[v&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.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%)"}}),u.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%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&u.jsx(pT,{className:"size-4 animate-spin"}),c]})]})}const u1=({ref:n,className:a,active:r=!1,icon:i,children:s,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,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",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),s,u.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")})]})};u1.displayName="TabButton";const kT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function c1({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.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:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.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%)"}}),u.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&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.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",kT[c],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&u.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var DT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=DT.reduce((n,a)=>{const r=rr(`Primitive.${a}`),i=g.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function ac(n,a){n&&is.flushSync(()=>n.dispatchEvent(a))}var nt=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function OT(n,a){return g.useReducer((r,i)=>a[r][i]??r,n)}var bt=n=>{const{present:a,children:r}=n,i=zT(a),s=typeof r=="function"?r({present:i.isPresent}):g.Children.only(r),c=we(i.ref,LT(s));return typeof r=="function"||i.isPresent?g.cloneElement(s,{ref:c}):null};bt.displayName="Presence";function zT(n){const[a,r]=g.useState(),i=g.useRef(null),s=g.useRef(n),c=g.useRef("none"),h=n?"mounted":"unmounted",[m,p]=OT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const v=Hu(i.current);c.current=m==="mounted"?v:"none"},[m]),nt(()=>{const v=i.current,y=s.current;if(y!==n){const b=c.current,w=Hu(v);n?p("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),nt(()=>{if(a){let v;const y=a.ownerDocument.defaultView??window,b=j=>{const E=Hu(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&E&&(p("ANIMATION_END"),!s.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",v=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},w=j=>{j.target===a&&(c.current=Hu(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(v),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:g.useCallback(v=>{i.current=v?getComputedStyle(v):null,r(v)},[])}}function Hu(n){return(n==null?void 0:n.animationName)||"none"}function LT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.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 UT(n,a){const r=g.createContext(a),i=c=>{const{children:h,...m}=c,p=g.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(c){const h=g.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function pt(n,a=[]){let r=[];function i(c,h){const m=g.createContext(h),p=r.length;r=[...r,h];const v=b=>{var w;const{scope:j,children:E,...S}=b,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=g.useMemo(()=>S,Object.values(S));return u.jsx(C.Provider,{value:_,children:E})};v.displayName=c+"Provider";function y(b,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=g.useContext(E);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${c}\``)}return[v,y]}const s=()=>{const c=r.map(h=>g.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return g.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,HT(s,...a)]}function HT(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const v=m(s)[`__scope${p}`];return{...h,...v}},{});return g.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function et(n){const a=g.useRef(n);return g.useEffect(()=>{a.current=n}),g.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var qT=g.createContext(void 0);function Di(n){const a=g.useContext(qT);return n||a||"ltr"}function Ih(n,[a,r]){return Math.min(r,Math.max(a,n))}function ae(n,a,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return a==null?void 0:a(i)}}function BT(n,a){return g.useReducer((r,i)=>a[r][i]??r,n)}var Dm="ScrollArea",[d1,hz]=pt(Dm),[QT,Cn]=d1(Dm),f1=g.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:c=600,...h}=n,[m,p]=g.useState(null),[v,y]=g.useState(null),[b,w]=g.useState(null),[j,E]=g.useState(null),[S,C]=g.useState(null),[_,R]=g.useState(0),[T,D]=g.useState(0),[L,$]=g.useState(!1),[q,H]=g.useState(!1),G=we(a,ue=>p(ue)),te=Di(s);return u.jsx(QT,{scope:r,type:i,dir:te,scrollHideDelay:c,scrollArea:m,viewport:v,onViewportChange:y,content:b,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:$,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:R,onCornerHeightChange:D,children:u.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}})})});f1.displayName=Dm;var h1="ScrollAreaViewport",m1=g.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...c}=n,h=Cn(h1,r),m=g.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});m1.displayName=h1;var ea="ScrollAreaScrollbar",p1=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ea,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return g.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),s.type==="hover"?u.jsx(YT,{...i,ref:a,forceMount:r}):s.type==="scroll"?u.jsx(GT,{...i,ref:a,forceMount:r}):s.type==="auto"?u.jsx(v1,{...i,ref:a,forceMount:r}):s.type==="always"?u.jsx(Om,{...i,ref:a}):null});p1.displayName=ea;var YT=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ea,n.__scopeScrollArea),[c,h]=g.useState(!1);return g.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const v=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",v),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",v),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),u.jsx(bt,{present:r||c,children:u.jsx(v1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),GT=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ea,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Ec(()=>p("SCROLL_END"),100),[m,p]=BT("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 g.useEffect(()=>{if(m==="idle"){const v=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(v)}},[m,s.scrollHideDelay,p]),g.useEffect(()=>{const v=s.viewport,y=c?"scrollLeft":"scrollTop";if(v){let b=v[y];const w=()=>{const j=v[y];b!==j&&(p("SCROLL"),h()),b=j};return v.addEventListener("scroll",w),()=>v.removeEventListener("scroll",w)}},[s.viewport,c,p,h]),u.jsx(bt,{present:r||m!=="hidden",children:u.jsx(Om,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),v1=g.forwardRef((n,a)=>{const r=Cn(ea,n.__scopeScrollArea),{forceMount:i,...s}=n,[c,h]=g.useState(!1),m=n.orientation==="horizontal",p=Ec(()=>{if(r.viewport){const v=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?v:y)}},10);return Ei(r.viewport,p),Ei(r.content,p),u.jsx(bt,{present:i||c,children:u.jsx(Om,{"data-state":c?"visible":"hidden",...s,ref:a})})}),Om=g.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=Cn(ea,n.__scopeScrollArea),c=g.useRef(null),h=g.useRef(0),[m,p]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),v=w1(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:v>0&&v<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function b(w,j){return ZT(w,h.current,m,j)}return r==="horizontal"?u.jsx(VT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollLeft,j=vb(w,m,s.dir);c.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"?u.jsx(KT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollTop,j=vb(w,m);c.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}),VT=g.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=Cn(ea,n.__scopeScrollArea),[h,m]=g.useState(),p=g.useRef(null),v=we(a,p,c.onScrollbarXChange);return g.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(y1,{"data-orientation":"horizontal",...s,ref:v,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":jc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,b)=>{if(c.viewport){const w=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),j1(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:rc(h.paddingLeft),paddingEnd:rc(h.paddingRight)}})}})}),KT=g.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=Cn(ea,n.__scopeScrollArea),[h,m]=g.useState(),p=g.useRef(null),v=we(a,p,c.onScrollbarYChange);return g.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(y1,{"data-orientation":"vertical",...s,ref:v,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":jc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,b)=>{if(c.viewport){const w=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),j1(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:rc(h.paddingTop),paddingEnd:rc(h.paddingBottom)}})}})}),[$T,g1]=d1(ea),y1=g.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:v,onWheelScroll:y,onResize:b,...w}=n,j=Cn(ea,r),[E,S]=g.useState(null),C=we(a,G=>S(G)),_=g.useRef(null),R=g.useRef(""),T=j.viewport,D=i.content-i.viewport,L=et(y),$=et(p),q=Ec(b,10);function H(G){if(_.current){const te=G.clientX-_.current.left,ue=G.clientY-_.current.top;v({x:te,y:ue})}}return g.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]),g.useEffect($,[i,$]),Ei(E,q),Ei(j.content,q),u.jsx($T,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:et(c),onThumbPointerUp:et(h),onThumbPositionChange:$,onThumbPointerDown:et(m),children:u.jsx(oe.div,{...w,ref:C,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})})})}),lc="ScrollAreaThumb",b1=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=g1(lc,n.__scopeScrollArea);return u.jsx(bt,{present:r||s.hasThumb,children:u.jsx(XT,{ref:a,...i})})}),XT=g.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,c=Cn(lc,r),h=g1(lc,r),{onThumbPositionChange:m}=h,p=we(a,b=>h.onThumbChange(b)),v=g.useRef(void 0),y=Ec(()=>{v.current&&(v.current(),v.current=void 0)},100);return g.useEffect(()=>{const b=c.viewport;if(b){const w=()=>{if(y(),!v.current){const j=PT(b,m);v.current=j,m()}};return m(),b.addEventListener("scroll",w),()=>b.removeEventListener("scroll",w)}},[c.viewport,y,m]),u.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)})});b1.displayName=lc;var zm="ScrollAreaCorner",x1=g.forwardRef((n,a)=>{const r=Cn(zm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(FT,{...n,ref:a}):null});x1.displayName=zm;var FT=g.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=Cn(zm,r),[c,h]=g.useState(0),[m,p]=g.useState(0),v=!!(c&&m);return Ei(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),Ei(s.scrollbarY,()=>{var y;const b=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(b),h(b)}),v?u.jsx(oe.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function rc(n){return n?parseInt(n,10):0}function w1(n,a){const r=n/a;return isNaN(r)?0:r}function jc(n){const a=w1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function ZT(n,a,r,i="ltr"){const s=jc(r),c=s/2,h=a||c,m=s-h,p=r.scrollbar.paddingStart+h,v=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,b=i==="ltr"?[0,y]:[y*-1,0];return S1([p,v],b)(n)}function vb(n,a,r="ltr"){const i=jc(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-s,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],v=Ih(n,p);return S1([0,h],[0,m])(v)}function S1(n,a){return r=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const i=(a[1]-a[0])/(n[1]-n[0]);return a[0]+i*(r-n[0])}}function j1(n,a){return n>0&&n<a}var PT=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Ec(n,a){const r=et(n),i=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),g.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,a)},[r,a])}function Ei(n,a){const r=et(a);nt(()=>{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 JT=f1,WT=m1,IT=x1;function E1({className:n,children:a,...r}){return u.jsxs(JT,{"data-slot":"scroll-area",className:ge("relative",n),...r,children:[u.jsx(WT,{"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:a}),u.jsx(eM,{}),u.jsx(IT,{})]})}function eM({className:n,orientation:a="vertical",...r}){return u.jsx(p1,{"data-slot":"scroll-area-scrollbar",orientation:a,className:ge("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:u.jsx(b1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var tM=yx[" useInsertionEffect ".trim().toString()]||nt;function ta({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,c,h]=nM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=g.useRef(n!==void 0);g.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 v=g.useCallback(y=>{var b;if(m){const w=aM(y)?y(n):y;w!==n&&((b=h.current)==null||b.call(h,w))}else c(y)},[m,n,c,h]);return[p,v]}function nM({defaultProp:n,onChange:a}){const[r,i]=g.useState(n),s=g.useRef(r),c=g.useRef(a);return tM(()=>{c.current=a},[a]),g.useEffect(()=>{var h;s.current!==r&&((h=c.current)==null||h.call(c,r),s.current=r)},[r,s]),[r,i,c]}function aM(n){return typeof n=="function"}function Oi(n){const a=n+"CollectionProvider",[r,i]=pt(a),[s,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,R=st.useRef(null),T=st.useRef(new Map).current;return u.jsx(s,{scope:C,itemMap:T,collectionRef:R,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=rr(m),v=st.forwardRef((S,C)=>{const{scope:_,children:R}=S,T=c(m,_),D=we(C,T.collectionRef);return u.jsx(p,{ref:D,children:R})});v.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=rr(y),j=st.forwardRef((S,C)=>{const{scope:_,children:R,...T}=S,D=st.useRef(null),L=we(C,D),$=c(y,_);return st.useEffect(()=>($.itemMap.set(D,{ref:D,...T}),()=>void $.itemMap.delete(D))),u.jsx(w,{[b]:"",ref:L,children:R})});j.displayName=y;function E(S){const C=c(n+"CollectionConsumer",S);return st.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${b}]`));return Array.from(C.itemMap.values()).sort((T,D)=>R.indexOf(T.ref.current)-R.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:v,ItemSlot:j},E,i]}function lM(n,a=globalThis==null?void 0:globalThis.document){const r=et(n);g.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var rM="DismissableLayer",em="dismissableLayer.update",iM="dismissableLayer.pointerDownOutside",oM="dismissableLayer.focusOutside",gb,N1=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zi=g.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,v=g.useContext(N1),[y,b]=g.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=g.useState({}),E=we(a,q=>b(q)),S=Array.from(v.layers),[C]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),R=y?S.indexOf(y):-1,T=v.layersWithOutsidePointerEventsDisabled.size>0,D=R>=_,L=cM(q=>{const H=q.target,G=[...v.branches].some(te=>te.contains(H));!D||G||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),$=dM(q=>{const H=q.target;[...v.branches].some(G=>G.contains(H))||(c==null||c(q),h==null||h(q),q.defaultPrevented||m==null||m())},w);return lM(q=>{R===v.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),g.useEffect(()=>{if(y)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(gb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),yb(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=gb)}},[y,w,r,v]),g.useEffect(()=>()=>{y&&(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),yb())},[y,v]),g.useEffect(()=>{const q=()=>j({});return document.addEventListener(em,q),()=>document.removeEventListener(em,q)},[]),u.jsx(oe.div,{...p,ref:E,style:{pointerEvents:T?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,$.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});zi.displayName=rM;var sM="DismissableLayerBranch",uM=g.forwardRef((n,a)=>{const r=g.useContext(N1),i=g.useRef(null),s=we(a,i);return g.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(oe.div,{...n,ref:s})});uM.displayName=sM;function cM(n,a=globalThis==null?void 0:globalThis.document){const r=et(n),i=g.useRef(!1),s=g.useRef(()=>{});return g.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){C1(iM,r,v,{discrete:!0})};const v={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function dM(n,a=globalThis==null?void 0:globalThis.document){const r=et(n),i=g.useRef(!1);return g.useEffect(()=>{const s=c=>{c.target&&!i.current&&C1(oM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function yb(){const n=new CustomEvent(em);document.dispatchEvent(n)}function C1(n,a,r,{discrete:i}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?ac(s,c):s.dispatchEvent(c)}var wh=0;function Lm(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??bb()),document.body.insertAdjacentElement("beforeend",n[1]??bb()),wh++,()=>{wh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),wh--}},[])}function bb(){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 Sh="focusScope.autoFocusOnMount",jh="focusScope.autoFocusOnUnmount",xb={bubbles:!1,cancelable:!0},fM="FocusScope",Nc=g.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...h}=n,[m,p]=g.useState(null),v=et(s),y=et(c),b=g.useRef(null),w=we(a,S=>p(S)),j=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.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})},C=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",C);const R=new MutationObserver(_);return m&&R.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),R.disconnect()}}},[i,m,j.paused]),g.useEffect(()=>{if(m){Sb.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(Sh,xb);m.addEventListener(Sh,v),m.dispatchEvent(C),C.defaultPrevented||(hM(yM(_1(m)),{select:!0}),document.activeElement===S&&sl(m))}return()=>{m.removeEventListener(Sh,v),setTimeout(()=>{const C=new CustomEvent(jh,xb);m.addEventListener(jh,y),m.dispatchEvent(C),C.defaultPrevented||sl(S??document.body,{select:!0}),m.removeEventListener(jh,y),Sb.remove(j)},0)}}},[m,v,y,j]);const E=g.useCallback(S=>{if(!r&&!i||j.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(C&&_){const R=S.currentTarget,[T,D]=mM(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 u.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});Nc.displayName=fM;function hM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(sl(i,{select:a}),document.activeElement!==r)return}function mM(n){const a=_1(n),r=wb(a,n),i=wb(a.reverse(),n);return[r,i]}function _1(n){const a=[],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();)a.push(r.currentNode);return a}function wb(n,a){for(const r of n)if(!pM(r,{upTo:a}))return r}function pM(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function vM(n){return n instanceof HTMLInputElement&&"select"in n}function sl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&vM(n)&&a&&n.select()}}var Sb=gM();function gM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=jb(n,a),n.unshift(a)},remove(a){var r;n=jb(n,a),(r=n[0])==null||r.resume()}}}function jb(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function yM(n){return n.filter(a=>a.tagName!=="A")}var bM=yx[" useId ".trim().toString()]||(()=>{}),xM=0;function Sl(n){const[a,r]=g.useState(bM());return nt(()=>{r(i=>i??String(xM++))},[n]),a?`radix-${a}`:""}const wM=["top","right","bottom","left"],xl=Math.min,on=Math.max,ic=Math.round,qu=Math.floor,Wn=n=>({x:n,y:n}),SM={left:"right",right:"left",bottom:"top",top:"bottom"},jM={start:"end",end:"start"};function tm(n,a,r){return on(n,xl(a,r))}function Aa(n,a){return typeof n=="function"?n(a):n}function ka(n){return n.split("-")[0]}function Li(n){return n.split("-")[1]}function Um(n){return n==="x"?"y":"x"}function Hm(n){return n==="y"?"height":"width"}const EM=new Set(["top","bottom"]);function Jn(n){return EM.has(ka(n))?"y":"x"}function qm(n){return Um(Jn(n))}function NM(n,a,r){r===void 0&&(r=!1);const i=Li(n),s=qm(n),c=Hm(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=oc(h)),[h,oc(h)]}function CM(n){const a=oc(n);return[nm(n),a,nm(a)]}function nm(n){return n.replace(/start|end/g,a=>jM[a])}const Eb=["left","right"],Nb=["right","left"],_M=["top","bottom"],RM=["bottom","top"];function TM(n,a,r){switch(n){case"top":case"bottom":return r?a?Nb:Eb:a?Eb:Nb;case"left":case"right":return a?_M:RM;default:return[]}}function MM(n,a,r,i){const s=Li(n);let c=TM(ka(n),r==="start",i);return s&&(c=c.map(h=>h+"-"+s),a&&(c=c.concat(c.map(nm)))),c}function oc(n){return n.replace(/left|right|bottom|top/g,a=>SM[a])}function AM(n){return{top:0,right:0,bottom:0,left:0,...n}}function R1(n){return typeof n!="number"?AM(n):{top:n,right:n,bottom:n,left:n}}function sc(n){const{x:a,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:a,right:a+i,bottom:r+s,x:a,y:r}}function Cb(n,a,r){let{reference:i,floating:s}=n;const c=Jn(a),h=qm(a),m=Hm(h),p=ka(a),v=c==="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(Li(a)){case"start":j[h]-=w*(r&&v?-1:1);break;case"end":j[h]+=w*(r&&v?-1:1);break}return j}const kM=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:h}=r,m=c.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let v=await h.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:b}=Cb(v,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:C,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:v,platform:h,elements:{reference:n,floating:a}});y=R??y,b=T??b,j={...j,[C]:{...j[C],...D}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(v=L.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:s}):L.rects),{x:y,y:b}=Cb(v,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:j}};async function Po(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:w=!1,padding:j=0}=Aa(a,n),E=R1(j),S=m[w?b==="floating"?"reference":"floating":b],C=sc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(S)))==null||r?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:v,rootBoundary:y,strategy:p})),_=b==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),T=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},D=sc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:R,strategy:p}):_);return{top:(C.top-D.top+E.top)/T.y,bottom:(D.bottom-C.bottom+E.bottom)/T.y,left:(C.left-D.left+E.left)/T.x,right:(D.right-C.right+E.right)/T.x}}const DM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:v,padding:y=0}=Aa(n,a)||{};if(v==null)return{};const b=R1(y),w={x:r,y:i},j=qm(s),E=Hm(j),S=await h.getDimensions(v),C=j==="y",_=C?"top":"left",R=C?"bottom":"right",T=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[j]-w[j]-c.floating[E],L=w[j]-c.reference[j],$=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let q=$?$[T]:0;(!q||!await(h.isElement==null?void 0:h.isElement($)))&&(q=m.floating[T]||c.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=tm(ce,ie,I),U=!p.arrow&&Li(s)!=null&&ie!==re&&c.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}}}),OM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:v}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Aa(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=ka(s),R=Jn(m),T=ka(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(v.floating)),L=w||(T||!S?[oc(m)]:CM(m)),$=E!=="none";!w&&$&&L.push(...MM(m,S,E,D));const q=[m,...L],H=await Po(a,C),G=[];let te=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[_]),b){const ie=NM(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=c.flip)==null?void 0:ue.index)||0)+1,re=q[ie];if(re&&(!(b==="alignment"&&R!==Jn(re))||te.every(W=>Jn(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($){const X=Jn(V.placement);return X===R||X==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((V,X)=>V[1]-X[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 _b(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Rb(n){return wM.some(a=>n[a]>=0)}const zM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...s}=Aa(n,a);switch(i){case"referenceHidden":{const c=await Po(a,{...s,elementContext:"reference"}),h=_b(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Rb(h)}}}case"escaped":{const c=await Po(a,{...s,altBoundary:!0}),h=_b(c,r.floating);return{data:{escapedOffsets:h,escaped:Rb(h)}}}default:return{}}}}},T1=new Set(["left","top"]);async function LM(n,a){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=ka(r),m=Li(r),p=Jn(r)==="y",v=T1.has(h)?-1:1,y=c&&p?-1:1,b=Aa(a,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*v}:{x:w*v,y:j*y}}const UM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:c,placement:h,middlewareData:m}=a,p=await LM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:h}}}}},HM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:R}=C;return{x:_,y:R}}},...p}=Aa(n,a),v={x:r,y:i},y=await Po(a,p),b=Jn(ka(s)),w=Um(b);let j=v[w],E=v[b];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=j+y[C],T=j-y[_];j=tm(R,j,T)}if(h){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",R=E+y[C],T=E-y[_];E=tm(R,E,T)}const S=m.fn({...a,[w]:j,[b]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:c,[b]:h}}}}}},qM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:v=!0}=Aa(n,a),y={x:r,y:i},b=Jn(s),w=Um(b);let j=y[w],E=y[b];const S=Aa(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",D=c.reference[w]-c.floating[T]+C.mainAxis,L=c.reference[w]+c.reference[T]-C.mainAxis;j<D?j=D:j>L&&(j=L)}if(v){var _,R;const T=w==="y"?"width":"height",D=T1.has(ka(s)),L=c.reference[b]-c.floating[T]+(D&&((_=h.offset)==null?void 0:_[b])||0)+(D?0:C.crossAxis),$=c.reference[b]+c.reference[T]+(D?0:((R=h.offset)==null?void 0:R[b])||0)-(D?C.crossAxis:0);E<L?E=L:E>$&&(E=$)}return{[w]:j,[b]:E}}}},BM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...v}=Aa(n,a),y=await Po(a,v),b=ka(s),w=Li(s),j=Jn(s)==="y",{width:E,height:S}=c.floating;let C,_;b==="top"||b==="bottom"?(C=b,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=b,C=w==="end"?"top":"bottom");const R=S-y.top-y.bottom,T=E-y.left-y.right,D=xl(S-y[C],R),L=xl(E-y[_],T),$=!a.middlewareData.shift;let q=D,H=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(H=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(q=R),$&&!w){const te=on(y.left,0),ue=on(y.right,0),ce=on(y.top,0),I=on(y.bottom,0);j?H=E-2*(te!==0||ue!==0?te+ue:on(y.left,y.right)):q=S-2*(ce!==0||I!==0?ce+I:on(y.top,y.bottom))}await p({...a,availableWidth:H,availableHeight:q});const G=await h.getDimensions(m.floating);return E!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function Cc(){return typeof window<"u"}function Ui(n){return M1(n)?(n.nodeName||"").toLowerCase():"#document"}function sn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function na(n){var a;return(a=(M1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function M1(n){return Cc()?n instanceof Node||n instanceof sn(n).Node:!1}function Ln(n){return Cc()?n instanceof Element||n instanceof sn(n).Element:!1}function In(n){return Cc()?n instanceof HTMLElement||n instanceof sn(n).HTMLElement:!1}function Tb(n){return!Cc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof sn(n).ShadowRoot}const QM=new Set(["inline","contents"]);function cs(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=Un(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!QM.has(s)}const YM=new Set(["table","td","th"]);function GM(n){return YM.has(Ui(n))}const VM=[":popover-open",":modal"];function _c(n){return VM.some(a=>{try{return n.matches(a)}catch{return!1}})}const KM=["transform","translate","scale","rotate","perspective"],$M=["transform","translate","scale","rotate","perspective","filter"],XM=["paint","layout","strict","content"];function Bm(n){const a=Qm(),r=Ln(n)?Un(n):n;return KM.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||$M.some(i=>(r.willChange||"").includes(i))||XM.some(i=>(r.contain||"").includes(i))}function FM(n){let a=wl(n);for(;In(a)&&!Ni(a);){if(Bm(a))return a;if(_c(a))return null;a=wl(a)}return null}function Qm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ZM=new Set(["html","body","#document"]);function Ni(n){return ZM.has(Ui(n))}function Un(n){return sn(n).getComputedStyle(n)}function Rc(n){return Ln(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function wl(n){if(Ui(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Tb(n)&&n.host||na(n);return Tb(a)?a.host:a}function A1(n){const a=wl(n);return Ni(a)?n.ownerDocument?n.ownerDocument.body:n.body:In(a)&&cs(a)?a:A1(a)}function Jo(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=A1(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),h=sn(s);if(c){const m=am(h);return a.concat(h,h.visualViewport||[],cs(s)?s:[],m&&r?Jo(m):[])}return a.concat(s,Jo(s,[],r))}function am(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function k1(n){const a=Un(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=In(n),c=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=ic(r)!==c||ic(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Ym(n){return Ln(n)?n:n.contextElement}function si(n){const a=Ym(n);if(!In(a))return Wn(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:c}=k1(a);let h=(c?ic(r.width):r.width)/i,m=(c?ic(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const PM=Wn(0);function D1(n){const a=sn(n);return!Qm()||!a.visualViewport?PM:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function JM(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==sn(n)?!1:a}function ir(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Ym(n);let h=Wn(1);a&&(i?Ln(i)&&(h=si(i)):h=si(n));const m=JM(c,r,i)?D1(c):Wn(0);let p=(s.left+m.x)/h.x,v=(s.top+m.y)/h.y,y=s.width/h.x,b=s.height/h.y;if(c){const w=sn(c),j=i&&Ln(i)?sn(i):i;let E=w,S=am(E);for(;S&&i&&j!==E;){const C=si(S),_=S.getBoundingClientRect(),R=Un(S),T=_.left+(S.clientLeft+parseFloat(R.paddingLeft))*C.x,D=_.top+(S.clientTop+parseFloat(R.paddingTop))*C.y;p*=C.x,v*=C.y,y*=C.x,b*=C.y,p+=T,v+=D,E=sn(S),S=am(E)}}return sc({width:y,height:b,x:p,y:v})}function Tc(n,a){const r=Rc(n).scrollLeft;return a?a.left+r:ir(na(n)).left+r}function O1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Tc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function WM(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",h=na(i),m=a?_c(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},v=Wn(1);const y=Wn(0),b=In(i);if((b||!b&&!c)&&((Ui(i)!=="body"||cs(h))&&(p=Rc(i)),In(i))){const j=ir(i);v=si(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!b&&!c?O1(h,p):Wn(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-p.scrollLeft*v.x+y.x+w.x,y:r.y*v.y-p.scrollTop*v.y+y.y+w.y}}function IM(n){return Array.from(n.getClientRects())}function eA(n){const a=na(n),r=Rc(n),i=n.ownerDocument.body,s=on(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=on(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Tc(n);const m=-r.scrollTop;return Un(i).direction==="rtl"&&(h+=on(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:h,y:m}}const Mb=25;function tA(n,a){const r=sn(n),i=na(n),s=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){c=s.width,h=s.height;const y=Qm();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const v=Tc(i);if(v<=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<=Mb&&(c-=E)}else v<=Mb&&(c+=v);return{width:c,height:h,x:m,y:p}}const nA=new Set(["absolute","fixed"]);function aA(n,a){const r=ir(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=In(n)?si(n):Wn(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,v=i*c.y;return{width:h,height:m,x:p,y:v}}function Ab(n,a,r){let i;if(a==="viewport")i=tA(n,r);else if(a==="document")i=eA(na(n));else if(Ln(a))i=aA(a,r);else{const s=D1(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return sc(i)}function z1(n,a){const r=wl(n);return r===a||!Ln(r)||Ni(r)?!1:Un(r).position==="fixed"||z1(r,a)}function lA(n,a){const r=a.get(n);if(r)return r;let i=Jo(n,[],!1).filter(m=>Ln(m)&&Ui(m)!=="body"),s=null;const c=Un(n).position==="fixed";let h=c?wl(n):n;for(;Ln(h)&&!Ni(h);){const m=Un(h),p=Bm(h);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&s&&nA.has(s.position)||cs(h)&&!p&&z1(n,h))?i=i.filter(v=>v!==h):s=m,h=wl(h)}return a.set(n,i),i}function rA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const c=[...r==="clippingAncestors"?_c(a)?[]:lA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,v)=>{const y=Ab(a,v,s);return p.top=on(y.top,p.top),p.right=xl(y.right,p.right),p.bottom=xl(y.bottom,p.bottom),p.left=on(y.left,p.left),p},Ab(a,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function iA(n){const{width:a,height:r}=k1(n);return{width:a,height:r}}function oA(n,a,r){const i=In(a),s=na(a),c=r==="fixed",h=ir(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=Wn(0);function v(){p.x=Tc(s)}if(i||!i&&!c)if((Ui(a)!=="body"||cs(s))&&(m=Rc(a)),i){const j=ir(a,!0,c,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&v();c&&!i&&s&&v();const y=s&&!i&&!c?O1(s,m):Wn(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 Eh(n){return Un(n).position==="static"}function kb(n,a){if(!In(n)||Un(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return na(n)===r&&(r=r.ownerDocument.body),r}function L1(n,a){const r=sn(n);if(_c(n))return r;if(!In(n)){let s=wl(n);for(;s&&!Ni(s);){if(Ln(s)&&!Eh(s))return s;s=wl(s)}return r}let i=kb(n,a);for(;i&&GM(i)&&Eh(i);)i=kb(i,a);return i&&Ni(i)&&Eh(i)&&!Bm(i)?r:i||FM(n)||r}const sA=async function(n){const a=this.getOffsetParent||L1,r=this.getDimensions,i=await r(n.floating);return{reference:oA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function uA(n){return Un(n).direction==="rtl"}const cA={convertOffsetParentRelativeRectToViewportRelativeRect:WM,getDocumentElement:na,getClippingRect:rA,getOffsetParent:L1,getElementRects:sA,getClientRects:IM,getDimensions:iA,getScale:si,isElement:Ln,isRTL:uA};function U1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function dA(n,a){let r=null,i;const s=na(n);function c(){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),c();const v=n.getBoundingClientRect(),{left:y,top:b,width:w,height:j}=v;if(m||a(),!w||!j)return;const E=qu(b),S=qu(s.clientWidth-(y+w)),C=qu(s.clientHeight-(b+j)),_=qu(y),R={rootMargin:-E+"px "+-S+"px "+-C+"px "+-_+"px",threshold:on(0,xl(1,p))||1};let T=!0;function D(L){const $=L[0].intersectionRatio;if($!==p){if(!T)return h();$?h(!1,$):i=setTimeout(()=>{h(!1,1e-7)},1e3)}$===1&&!U1(v,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),c}function fA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,v=Ym(n),y=s||c?[...v?Jo(v):[],...Jo(a)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const b=v&&m?dA(v,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(_=>{let[R]=_;R&&R.target===v&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),v&&!p&&j.observe(v),j.observe(a));let E,S=p?ir(n):null;p&&C();function C(){const _=ir(n);S&&!U1(S,_)&&r(),S=_,E=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(R=>{s&&R.removeEventListener("scroll",r),c&&R.removeEventListener("resize",r)}),b==null||b(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const hA=UM,mA=HM,pA=OM,vA=BM,gA=zM,Db=DM,yA=qM,bA=(n,a,r)=>{const i=new Map,s={platform:cA,...r},c={...s.platform,_c:i};return kM(n,a,{...s,platform:c})};var xA=typeof document<"u",wA=function(){},Fu=xA?g.useLayoutEffect:wA;function uc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!uc(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!uc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function H1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ob(n,a){const r=H1(n);return Math.round(a*r)/r}function Nh(n){const a=g.useRef(n);return Fu(()=>{a.current=n}),a}function SA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:v}=n,[y,b]=g.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=g.useState(i);uc(w,i)||j(i);const[E,S]=g.useState(null),[C,_]=g.useState(null),R=g.useCallback(V=>{V!==$.current&&($.current=V,S(V))},[]),T=g.useCallback(V=>{V!==q.current&&(q.current=V,_(V))},[]),D=c||E,L=h||C,$=g.useRef(null),q=g.useRef(null),H=g.useRef(y),G=p!=null,te=Nh(p),ue=Nh(s),ce=Nh(v),I=g.useCallback(()=>{if(!$.current||!q.current)return;const V={placement:a,strategy:r,middleware:w};ue.current&&(V.platform=ue.current),bA($.current,q.current,V).then(X=>{const de={...X,isPositioned:ce.current!==!1};ie.current&&!uc(H.current,de)&&(H.current=de,is.flushSync(()=>{b(de)}))})},[w,a,r,ue,ce]);Fu(()=>{v===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[v]);const ie=g.useRef(!1);Fu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Fu(()=>{if(D&&($.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=g.useMemo(()=>({reference:$,floating:q,setReference:R,setFloating:T}),[R,T]),U=g.useMemo(()=>({reference:D,floating:L}),[D,L]),W=g.useMemo(()=>{const V={position:r,left:0,top:0};if(!U.floating)return V;const X=Ob(U.floating,y.x),de=Ob(U.floating,y.y);return m?{...V,transform:"translate("+X+"px, "+de+"px)",...H1(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,U.floating,y.x,y.y]);return g.useMemo(()=>({...y,update:I,refs:re,elements:U,floatingStyles:W}),[y,I,re,U,W])}const jA=n=>{function a(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&&a(i)?i.current!=null?Db({element:i.current,padding:s}).fn(r):{}:i?Db({element:i,padding:s}).fn(r):{}}}},EA=(n,a)=>({...hA(n),options:[n,a]}),NA=(n,a)=>({...mA(n),options:[n,a]}),CA=(n,a)=>({...yA(n),options:[n,a]}),_A=(n,a)=>({...pA(n),options:[n,a]}),RA=(n,a)=>({...vA(n),options:[n,a]}),TA=(n,a)=>({...gA(n),options:[n,a]}),MA=(n,a)=>({...jA(n),options:[n,a]});var AA="Arrow",q1=g.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...c}=n;return u.jsx(oe.svg,{...c,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});q1.displayName=AA;var kA=q1;function Mc(n){const[a,r]=g.useState(void 0);return nt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let h,m;if("borderBoxSize"in c){const p=c.borderBoxSize,v=Array.isArray(p)?p[0]:p;h=v.inlineSize,m=v.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]),a}var B1="Popper",[Q1,Hi]=pt(B1),[mz,Y1]=Q1(B1),G1="PopperAnchor",V1=g.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,c=Y1(G1,r),h=g.useRef(null),m=we(a,h),p=g.useRef(null);return g.useEffect(()=>{const v=p.current;p.current=(i==null?void 0:i.current)||h.current,v!==p.current&&c.onAnchorChange(p.current)}),i?null:u.jsx(oe.div,{...s,ref:m})});V1.displayName=G1;var Gm="PopperContent",[DA,OA]=Q1(Gm),K1=g.forwardRef((n,a)=>{var r,i,s,c,h,m;const{__scopePopper:p,side:v="bottom",sideOffset:y=0,align:b="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:D,...L}=n,$=Y1(Gm,p),[q,H]=g.useState(null),G=we(a,At=>H(At)),[te,ue]=g.useState(null),ce=Mc(te),I=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=v+(b!=="center"?"-"+b:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(S)?S:[S],V=W.length>0,X={padding:U,boundary:W.filter(LA),altBoundary:V},{refs:de,floatingStyles:A,placement:F,isPositioned:ee,middlewareData:le}=SA({strategy:"fixed",placement:re,whileElementsMounted:(...At)=>fA(...At,{animationFrame:T==="always"}),elements:{reference:$.anchor},middleware:[EA({mainAxis:y+ie,alignmentAxis:w}),E&&NA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?CA():void 0,...X}),E&&_A({...X}),RA({...X,apply:({elements:At,rects:Zt,availableWidth:la,availableHeight:ra})=>{const{width:$c,height:ps}=Zt.reference,Oa=At.floating.style;Oa.setProperty("--radix-popper-available-width",`${la}px`),Oa.setProperty("--radix-popper-available-height",`${ra}px`),Oa.setProperty("--radix-popper-anchor-width",`${$c}px`),Oa.setProperty("--radix-popper-anchor-height",`${ps}px`)}}),te&&MA({element:te,padding:j}),UA({arrowWidth:I,arrowHeight:ie}),R&&TA({strategy:"referenceHidden",...X})]}),[pe,je]=F1(F),ne=et(D);nt(()=>{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,Ne=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[Ue,Ye]=g.useState();return nt(()=>{q&&Ye(window.getComputedStyle(q).zIndex)},[q]),u.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":[(c=le.transformOrigin)==null?void 0:c.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:u.jsx(DA,{scope:p,placedSide:pe,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(oe.div,{"data-side":pe,"data-align":je,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});K1.displayName=Gm;var $1="PopperArrow",zA={top:"bottom",right:"left",bottom:"top",left:"right"},X1=g.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=OA($1,r),c=zA[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]: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:u.jsx(kA,{...i,ref:a,style:{...i.style,display:"block"}})})});X1.displayName=$1;function LA(n){return n!==null}var UA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,v=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[b,w]=F1(c),j={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+v/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let C="",_="";return b==="bottom"?(C=p?j:`${E}px`,_=`${-y}px`):b==="top"?(C=p?j:`${E}px`,_=`${h.floating.height+y}px`):b==="right"?(C=`${-y}px`,_=p?j:`${S}px`):b==="left"&&(C=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:C,y:_}}}});function F1(n){const[a,r="center"]=n.split("-");return[a,r]}var Vm=V1,Km=K1,$m=X1,HA="Portal",qA=g.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[c,h]=g.useState(!1);nt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?Hx.createPortal(u.jsx(oe.div,{...s,ref:a}),m):null});qA.displayName=HA;var Ch="rovingFocusGroup.onEntryFocus",BA={bubbles:!1,cancelable:!0},ds="RovingFocusGroup",[lm,Z1,QA]=Oi(ds),[YA,qi]=pt(ds,[QA]),[GA,VA]=YA(ds),P1=g.forwardRef((n,a)=>u.jsx(lm.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(lm.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(KA,{...n,ref:a})})}));P1.displayName=ds;var KA=g.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:v,preventScrollOnEntryFocus:y=!1,...b}=n,w=g.useRef(null),j=we(a,w),E=Di(c),[S,C]=ta({prop:h,defaultProp:m??null,onChange:p,caller:ds}),[_,R]=g.useState(!1),T=et(v),D=Z1(r),L=g.useRef(!1),[$,q]=g.useState(0);return g.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Ch,T),()=>H.removeEventListener(Ch,T)},[T]),u.jsx(GA,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:g.useCallback(H=>C(H),[C]),onItemShiftTab:g.useCallback(()=>R(!0),[]),onFocusableItemAdd:g.useCallback(()=>q(H=>H+1),[]),onFocusableItemRemove:g.useCallback(()=>q(H=>H-1),[]),children:u.jsx(oe.div,{tabIndex:_||$===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(Ch,BA);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);I1(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>R(!1))})})}),J1="RovingFocusGroupItem",W1=g.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:h,...m}=n,p=Sl(),v=c||p,y=VA(J1,r),b=y.currentTabStopId===v,w=Z1(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return g.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),u.jsx(lm.ItemSlot,{scope:r,id:v,focusable:i,active:s,children:u.jsx(oe.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown:ae(n.onMouseDown,C=>{i?y.onItemFocus(v):C.preventDefault()}),onFocus:ae(n.onFocus,()=>y.onItemFocus(v)),onKeyDown:ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=FA(C,y.orientation,y.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.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(C.currentTarget);R=y.loop?ZA(R,T+1):R.slice(T+1)}setTimeout(()=>I1(R))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:S!=null}):h})})});W1.displayName=J1;var $A={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XA(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function FA(n,a,r){const i=XA(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return $A[i]}function I1(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function ZA(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Xm=P1,Fm=W1,PA=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},li=new WeakMap,Bu=new WeakMap,Qu={},_h=0,ew=function(n){return n&&(n.host||ew(n.parentNode))},JA=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=ew(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})},WA=function(n,a,r,i){var s=JA(a,Array.isArray(n)?n:[n]);Qu[r]||(Qu[r]=new WeakMap);var c=Qu[r],h=[],m=new Set,p=new Set(s),v=function(b){!b||m.has(b)||(m.add(b),v(b.parentNode))};s.forEach(v);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=(li.get(w)||0)+1,C=(c.get(w)||0)+1;li.set(w,S),c.set(w,C),h.push(w),S===1&&E&&Bu.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(a),m.clear(),_h++,function(){h.forEach(function(b){var w=li.get(b)-1,j=c.get(b)-1;li.set(b,w),c.set(b,j),w||(Bu.has(b)||b.removeAttribute(i),Bu.delete(b)),j||b.removeAttribute(r)}),_h--,_h||(li=new WeakMap,li=new WeakMap,Bu=new WeakMap,Qu={})}},Zm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=PA(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),WA(i,s,r,"aria-hidden")):function(){return null}},Pn=function(){return Pn=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},Pn.apply(this,arguments)};function tw(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.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++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function IA(n,a,r){for(var i=0,s=a.length,c;i<s;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var Zu="right-scroll-bar-position",Pu="width-before-scroll-bar",ek="with-scroll-bars-hidden",tk="--removed-body-scroll-bar-size";function Rh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function nk(n,a){var r=g.useState(function(){return{value:n,callback:a,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=a,r.facade}var ak=typeof window<"u"?g.useLayoutEffect:g.useEffect,zb=new WeakMap;function lk(n,a){var r=nk(null,function(i){return n.forEach(function(s){return Rh(s,i)})});return ak(function(){var i=zb.get(r);if(i){var s=new Set(i),c=new Set(n),h=r.current;s.forEach(function(m){c.has(m)||Rh(m,null)}),c.forEach(function(m){s.has(m)||Rh(m,h)})}zb.set(r,n)},[n]),r}function rk(n){return n}function ik(n,a){a===void 0&&(a=rk);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(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var y=h;h=[],y.forEach(c)},v=function(){return Promise.resolve().then(p)};v(),r={push:function(y){h.push(y),v()},filter:function(y){return h=h.filter(y),r}}}};return s}function ok(n){n===void 0&&(n={});var a=ik(null);return a.options=Pn({async:!0,ssr:!1},n),a}var nw=function(n){var a=n.sideCar,r=tw(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return g.createElement(i,Pn({},r))};nw.isSideCarExport=!0;function sk(n,a){return n.useMedium(a),nw}var aw=ok(),Th=function(){},Ac=g.forwardRef(function(n,a){var r=g.useRef(null),i=g.useState({onScrollCapture:Th,onWheelCapture:Th,onTouchMoveCapture:Th}),s=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,v=n.removeScrollBar,y=n.enabled,b=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,R=_===void 0?"div":_,T=n.gapMode,D=tw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,$=lk([r,a]),q=Pn(Pn({},D),s);return g.createElement(g.Fragment,null,y&&g.createElement(L,{sideCar:aw,removeScrollBar:v,shards:b,noRelative:j,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:T}),h?g.cloneElement(g.Children.only(m),Pn(Pn({},q),{ref:$})):g.createElement(R,Pn({},q,{className:p,ref:$}),m))});Ac.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ac.classNames={fullWidth:Pu,zeroRight:Zu};var uk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ck(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=uk();return a&&n.setAttribute("nonce",a),n}function dk(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function fk(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var hk=function(){var n=0,a=null;return{add:function(r){n==0&&(a=ck())&&(dk(a,r),fk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},mk=function(){var n=hk();return function(a,r){g.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},lw=function(){var n=mk(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},pk={left:0,top:0,right:0,gap:0},Mh=function(n){return parseInt(n||"",10)||0},vk=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[Mh(r),Mh(i),Mh(s)]},gk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return pk;var a=vk(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},yk=lw(),ui="data-scroll-locked",bk=function(n,a,r,i){var s=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
277
- .`.concat(ek,` {
278
- overflow: hidden `).concat(i,`;
279
- padding-right: `).concat(m,"px ").concat(i,`;
280
- }
281
- body[`).concat(ui,`] {
282
- overflow: hidden `).concat(i,`;
283
- overscroll-behavior: contain;
284
- `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
285
- padding-left: `.concat(s,`px;
286
- padding-top: `).concat(c,`px;
287
- padding-right: `).concat(h,`px;
288
- margin-left:0;
289
- margin-top:0;
290
- margin-right: `).concat(m,"px ").concat(i,`;
291
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
292
- }
293
-
294
- .`).concat(Zu,` {
295
- right: `).concat(m,"px ").concat(i,`;
296
- }
297
-
298
- .`).concat(Pu,` {
299
- margin-right: `).concat(m,"px ").concat(i,`;
300
- }
301
-
302
- .`).concat(Zu," .").concat(Zu,` {
303
- right: 0 `).concat(i,`;
304
- }
305
-
306
- .`).concat(Pu," .").concat(Pu,` {
307
- margin-right: 0 `).concat(i,`;
308
- }
309
-
310
- body[`).concat(ui,`] {
311
- `).concat(tk,": ").concat(m,`px;
312
- }
313
- `)},Lb=function(){var n=parseInt(document.body.getAttribute(ui)||"0",10);return isFinite(n)?n:0},xk=function(){g.useEffect(function(){return document.body.setAttribute(ui,(Lb()+1).toString()),function(){var n=Lb()-1;n<=0?document.body.removeAttribute(ui):document.body.setAttribute(ui,n.toString())}},[])},wk=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;xk();var c=g.useMemo(function(){return gk(s)},[s]);return g.createElement(yk,{styles:bk(c,!a,s,r?"":"!important")})},rm=!1;if(typeof window<"u")try{var Yu=Object.defineProperty({},"passive",{get:function(){return rm=!0,!0}});window.addEventListener("test",Yu,Yu),window.removeEventListener("test",Yu,Yu)}catch{rm=!1}var ri=rm?{passive:!1}:!1,Sk=function(n){return n.tagName==="TEXTAREA"},rw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Sk(n)&&r[a]==="visible")},jk=function(n){return rw(n,"overflowY")},Ek=function(n){return rw(n,"overflowX")},Ub=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=iw(n,i);if(s){var c=ow(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Nk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Ck=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},iw=function(n,a){return n==="v"?jk(a):Ek(a)},ow=function(n,a){return n==="v"?Nk(a):Ck(a)},_k=function(n,a){return n==="h"&&a==="rtl"?-1:1},Rk=function(n,a,r,i,s){var c=_k(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),v=!1,y=h>0,b=0,w=0;do{if(!m)break;var j=ow(n,m),E=j[0],S=j[1],C=j[2],_=S-C-c*E;(E||_)&&iw(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&&(a.contains(m)||a===m));return(y&&Math.abs(b)<1||!y&&Math.abs(w)<1)&&(v=!0),v},Gu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Hb=function(n){return[n.deltaX,n.deltaY]},qb=function(n){return n&&"current"in n?n.current:n},Tk=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Mk=function(n){return`
314
- .block-interactivity-`.concat(n,` {pointer-events: none;}
315
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
316
- `)},Ak=0,ii=[];function kk(n){var a=g.useRef([]),r=g.useRef([0,0]),i=g.useRef(),s=g.useState(Ak++)[0],c=g.useState(lw)[0],h=g.useRef(n);g.useEffect(function(){h.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var S=IA([n.lockRef.current],(n.shards||[]).map(qb)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=g.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=Gu(S),R=r.current,T="deltaX"in S?S.deltaX:R[0]-_[0],D="deltaY"in S?S.deltaY:R[1]-_[1],L,$=S.target,q=Math.abs(T)>Math.abs(D)?"h":"v";if("touches"in S&&q==="h"&&$.type==="range")return!1;var H=Ub(q,$);if(!H)return!0;if(H?L=q:(L=q==="v"?"h":"v",H=Ub(q,$)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||D)&&(i.current=L),!L)return!0;var G=i.current||L;return Rk(G,C,S,G==="h"?T:D)},[]),p=g.useCallback(function(S){var C=S;if(!(!ii.length||ii[ii.length-1]!==c)){var _="deltaY"in C?Hb(C):Gu(C),R=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&Tk(L.delta,_)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var T=(h.current.shards||[]).map(qb).filter(Boolean).filter(function(L){return L.contains(C.target)}),D=T.length>0?m(C,T[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),v=g.useCallback(function(S,C,_,R){var T={name:S,delta:C,target:_,should:R,shadowParent:Dk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(D){return D!==T})},1)},[]),y=g.useCallback(function(S){r.current=Gu(S),i.current=void 0},[]),b=g.useCallback(function(S){v(S.type,Hb(S),S.target,m(S,n.lockRef.current))},[]),w=g.useCallback(function(S){v(S.type,Gu(S),S.target,m(S,n.lockRef.current))},[]);g.useEffect(function(){return ii.push(c),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ri),document.addEventListener("touchmove",p,ri),document.addEventListener("touchstart",y,ri),function(){ii=ii.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,ri),document.removeEventListener("touchmove",p,ri),document.removeEventListener("touchstart",y,ri)}},[]);var j=n.removeScrollBar,E=n.inert;return g.createElement(g.Fragment,null,E?g.createElement(c,{styles:Mk(s)}):null,j?g.createElement(wk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Dk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const Ok=sk(aw,kk);var kc=g.forwardRef(function(n,a){return g.createElement(Ac,Pn({},n,{ref:a,sideCar:Ok}))});kc.classNames=Ac.classNames;var im=["Enter"," "],zk=["ArrowDown","PageUp","Home"],sw=["ArrowUp","PageDown","End"],Lk=[...zk,...sw],Uk={ltr:[...im,"ArrowRight"],rtl:[...im,"ArrowLeft"]},Hk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Dc="Menu",[Wo,qk,Bk]=Oi(Dc),[pr,uw]=pt(Dc,[Bk,Hi,qi]),Pm=Hi(),cw=qi(),[pz,Bi]=pr(Dc),[vz,fs]=pr(Dc),Qk="MenuAnchor",Jm=g.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Pm(r);return u.jsx(Vm,{...s,...i,ref:a})});Jm.displayName=Qk;var Yk="MenuPortal",[gz,dw]=pr(Yk,{forceMount:void 0}),En="MenuContent",[Gk,Wm]=pr(En),fw=g.forwardRef((n,a)=>{const r=dw(En,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Bi(En,n.__scopeMenu),h=fs(En,n.__scopeMenu);return u.jsx(Wo.Provider,{scope:n.__scopeMenu,children:u.jsx(bt,{present:i||c.open,children:u.jsx(Wo.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(Vk,{...s,ref:a}):u.jsx(Kk,{...s,ref:a})})})})}),Vk=g.forwardRef((n,a)=>{const r=Bi(En,n.__scopeMenu),i=g.useRef(null),s=we(a,i);return g.useEffect(()=>{const c=i.current;if(c)return Zm(c)},[]),u.jsx(Im,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Kk=g.forwardRef((n,a)=>{const r=Bi(En,n.__scopeMenu);return u.jsx(Im,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),$k=rr("MenuContent.ScrollLock"),Im=g.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=Bi(En,r),_=fs(En,r),R=Pm(r),T=cw(r),D=qk(r),[L,$]=g.useState(null),q=g.useRef(null),H=we(a,q,C.onContentChange),G=g.useRef(0),te=g.useRef(""),ue=g.useRef(0),ce=g.useRef(null),I=g.useRef("right"),ie=g.useRef(0),re=E?kc:g.Fragment,U=E?{as:$k,allowPinchZoom:!0}:void 0,W=X=>{var de,A;const F=te.current+X,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=lD(je,F,pe),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ne){te.current=Ne,window.clearTimeout(G.current),Ne!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};g.useEffect(()=>()=>window.clearTimeout(G.current),[]),Lm();const V=g.useCallback(X=>{var de,A;return I.current===((de=ce.current)==null?void 0:de.side)&&iD(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(Gk,{scope:r,searchRef:te,onItemEnter:g.useCallback(X=>{V(X)&&X.preventDefault()},[V]),onItemLeave:g.useCallback(X=>{var de;V(X)||((de=q.current)==null||de.focus(),$(null))},[V]),onTriggerLeave:g.useCallback(X=>{V(X)&&X.preventDefault()},[V]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:g.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...U,children:u.jsx(Nc,{asChild:!0,trapped:s,onMountAutoFocus:ae(c,X=>{var de;X.preventDefault(),(de=q.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(zi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,children:u.jsx(Xm,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:$,onEntryFocus:ae(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Km,{role:"menu","aria-orientation":"vertical","data-state":Rw(C.open),"data-radix-menu-content":"",dir:_.dir,...R,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,A=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!A&&F&&W(X.key));const ee=q.current;if(X.target!==ee||!Lk.includes(X.key))return;X.preventDefault();const le=D().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);sw.includes(X.key)&&le.reverse(),nD(le)}),onBlur:ae(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,Io(X=>{const de=X.target,A=ie.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ie.current?"right":"left";I.current=F,ie.current=X.clientX}}))})})})})})})});fw.displayName=En;var Xk="MenuGroup",ep=g.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"group",...i,ref:a})});ep.displayName=Xk;var Fk="MenuLabel",hw=g.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{...i,ref:a})});hw.displayName=Fk;var cc="MenuItem",Bb="menu.itemSelect",Oc=g.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,c=g.useRef(null),h=fs(cc,n.__scopeMenu),m=Wm(cc,n.__scopeMenu),p=we(a,c),v=g.useRef(!1),y=()=>{const b=c.current;if(!r&&b){const w=new CustomEvent(Bb,{bubbles:!0,cancelable:!0});b.addEventListener(Bb,j=>i==null?void 0:i(j),{once:!0}),ac(b,w),w.defaultPrevented?v.current=!1:h.onClose()}};return u.jsx(mw,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:b=>{var w;(w=n.onPointerDown)==null||w.call(n,b),v.current=!0},onPointerUp:ae(n.onPointerUp,b=>{var w;v.current||(w=b.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,b=>{const w=m.searchRef.current!=="";r||w&&b.key===" "||im.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});Oc.displayName=cc;var mw=g.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...c}=n,h=Wm(cc,r),m=cw(r),p=g.useRef(null),v=we(a,p),[y,b]=g.useState(!1),[w,j]=g.useState("");return g.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[c.children]),u.jsx(Wo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:u.jsx(Fm,{asChild:!0,...m,focusable:!i,children:u.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:v,onPointerMove:ae(n.onPointerMove,Io(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,Io(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>b(!0)),onBlur:ae(n.onBlur,()=>b(!1))})})})}),Zk="MenuCheckboxItem",pw=g.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return u.jsx(xw,{scope:n.__scopeMenu,checked:r,children:u.jsx(Oc,{role:"menuitemcheckbox","aria-checked":dc(r)?"mixed":r,...s,ref:a,"data-state":np(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(dc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});pw.displayName=Zk;var vw="MenuRadioGroup",[Pk,Jk]=pr(vw,{value:void 0,onValueChange:()=>{}}),gw=g.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,c=et(i);return u.jsx(Pk,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(ep,{...s,ref:a})})});gw.displayName=vw;var yw="MenuRadioItem",bw=g.forwardRef((n,a)=>{const{value:r,...i}=n,s=Jk(yw,n.__scopeMenu),c=r===s.value;return u.jsx(xw,{scope:n.__scopeMenu,checked:c,children:u.jsx(Oc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":np(c),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});bw.displayName=yw;var tp="MenuItemIndicator",[xw,Wk]=pr(tp,{checked:!1}),ww=g.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,c=Wk(tp,r);return u.jsx(bt,{present:i||dc(c.checked)||c.checked===!0,children:u.jsx(oe.span,{...s,ref:a,"data-state":np(c.checked)})})});ww.displayName=tp;var Ik="MenuSeparator",Sw=g.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});Sw.displayName=Ik;var eD="MenuArrow",jw=g.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Pm(r);return u.jsx($m,{...s,...i,ref:a})});jw.displayName=eD;var tD="MenuSub",[yz,Ew]=pr(tD),Yo="MenuSubTrigger",Nw=g.forwardRef((n,a)=>{const r=Bi(Yo,n.__scopeMenu),i=fs(Yo,n.__scopeMenu),s=Ew(Yo,n.__scopeMenu),c=Wm(Yo,n.__scopeMenu),h=g.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,v={__scopeMenu:n.__scopeMenu},y=g.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return g.useEffect(()=>y,[y]),g.useEffect(()=>{const b=m.current;return()=>{window.clearTimeout(b),p(null)}},[m,p]),u.jsx(Jm,{asChild:!0,...v,children:u.jsx(mw,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":Rw(r.open),...n,ref:us(a,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,Io(b=>{c.onItemEnter(b),!b.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,Io(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,C=S==="right",_=C?-5:5,R=E[C?"left":"right"],T=E[C?"right":"left"];c.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(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(b),b.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,b=>{var w;const j=c.searchRef.current!=="";n.disabled||j&&b.key===" "||Uk[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});Nw.displayName=Yo;var Cw="MenuSubContent",_w=g.forwardRef((n,a)=>{const r=dw(En,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Bi(En,n.__scopeMenu),h=fs(En,n.__scopeMenu),m=Ew(Cw,n.__scopeMenu),p=g.useRef(null),v=we(a,p);return u.jsx(Wo.Provider,{scope:n.__scopeMenu,children:u.jsx(bt,{present:i||c.open,children:u.jsx(Wo.Slot,{scope:n.__scopeMenu,children:u.jsx(Im,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:v,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&&c.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=Hk[h.dir].includes(y.key);w&&j&&(c.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});_w.displayName=Cw;function Rw(n){return n?"open":"closed"}function dc(n){return n==="indeterminate"}function np(n){return dc(n)?"indeterminate":n?"checked":"unchecked"}function nD(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function aD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function lD(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=aD(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function rD(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],v=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-v)*(i-y)/(w-y)+v&&(s=!s)}return s}function iD(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return rD(r,a)}function Io(n){return a=>a.pointerType==="mouse"?n(a):void 0}var oD=Jm,sD=fw,uD=ep,cD=hw,dD=Oc,fD=pw,hD=gw,mD=bw,pD=ww,vD=Sw,gD=jw,yD=Nw,bD=_w,Tw="DropdownMenu",[xD,bz]=pt(Tw,[uw]),un=uw(),[xz,Mw]=xD(Tw),Aw="DropdownMenuTrigger",wD=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,c=Mw(Aw,r),h=un(r);return u.jsx(oD,{asChild:!0,...h,children:u.jsx(oe.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:us(a,c.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});wD.displayName=Aw;var kw="DropdownMenuContent",Dw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Mw(kw,r),c=un(r),h=g.useRef(!1);return u.jsx(sD,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...i,ref:a,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,v=p.button===0&&p.ctrlKey===!0,y=p.button===2||v;(!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)"}})});Dw.displayName=kw;var SD="DropdownMenuGroup",jD=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(uD,{...s,...i,ref:a})});jD.displayName=SD;var ED="DropdownMenuLabel",Ow=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(cD,{...s,...i,ref:a})});Ow.displayName=ED;var ND="DropdownMenuItem",zw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(dD,{...s,...i,ref:a})});zw.displayName=ND;var CD="DropdownMenuCheckboxItem",Lw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(fD,{...s,...i,ref:a})});Lw.displayName=CD;var _D="DropdownMenuRadioGroup",RD=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(hD,{...s,...i,ref:a})});RD.displayName=_D;var TD="DropdownMenuRadioItem",Uw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(mD,{...s,...i,ref:a})});Uw.displayName=TD;var MD="DropdownMenuItemIndicator",AD=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(pD,{...s,...i,ref:a})});AD.displayName=MD;var kD="DropdownMenuSeparator",Hw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(vD,{...s,...i,ref:a})});Hw.displayName=kD;var DD="DropdownMenuArrow",OD=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(gD,{...s,...i,ref:a})});OD.displayName=DD;var zD="DropdownMenuSubTrigger",qw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(yD,{...s,...i,ref:a})});qw.displayName=zD;var LD="DropdownMenuSubContent",Bw=g.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=un(r);return u.jsx(bD,{...s,...i,ref:a,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)"}})});Bw.displayName=LD;var UD=Dw,HD=Ow,qD=zw,BD=Lw,QD=Uw,YD=Hw,GD=qw,VD=Bw;const Qw=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",Qw,"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",Qw,"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 Yw="Dialog",[Gw,Vw]=pt(Yw),[wz,aa]=Gw(Yw),Kw="DialogTrigger",$w=g.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=aa(Kw,r),c=we(a,s.triggerRef);return u.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":lp(s.open),...i,ref:c,onClick:ae(n.onClick,s.onOpenToggle)})});$w.displayName=Kw;var KD="DialogPortal",[Sz,Xw]=Gw(KD,{forceMount:void 0}),fc="DialogOverlay",Fw=g.forwardRef((n,a)=>{const r=Xw(fc,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=aa(fc,n.__scopeDialog);return c.modal?u.jsx(bt,{present:i||c.open,children:u.jsx(XD,{...s,ref:a})}):null});Fw.displayName=fc;var $D=rr("DialogOverlay.RemoveScroll"),XD=g.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=aa(fc,r);return u.jsx(kc,{as:$D,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(oe.div,{"data-state":lp(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),or="DialogContent",Zw=g.forwardRef((n,a)=>{const r=Xw(or,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=aa(or,n.__scopeDialog);return u.jsx(bt,{present:i||c.open,children:c.modal?u.jsx(FD,{...s,ref:a}):u.jsx(ZD,{...s,ref:a})})});Zw.displayName=or;var FD=g.forwardRef((n,a)=>{const r=aa(or,n.__scopeDialog),i=g.useRef(null),s=we(a,r.contentRef,i);return g.useEffect(()=>{const c=i.current;if(c)return Zm(c)},[]),u.jsx(Pw,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault())})}),ZD=g.forwardRef((n,a)=>{const r=aa(or,n.__scopeDialog),i=g.useRef(!1),s=g.useRef(!1);return u.jsx(Pw,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Pw=g.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...h}=n,m=aa(or,r),p=g.useRef(null),v=we(a,p);return Lm(),u.jsxs(u.Fragment,{children:[u.jsx(Nc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:u.jsx(zi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":lp(m.open),...h,ref:v,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(JD,{titleId:m.titleId}),u.jsx(ID,{contentRef:p,descriptionId:m.descriptionId})]})]})}),ap="DialogTitle",Jw=g.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=aa(ap,r);return u.jsx(oe.h2,{id:s.titleId,...i,ref:a})});Jw.displayName=ap;var Ww="DialogDescription",Iw=g.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=aa(Ww,r);return u.jsx(oe.p,{id:s.descriptionId,...i,ref:a})});Iw.displayName=Ww;var eS="DialogClose",tS=g.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=aa(eS,r);return u.jsx(oe.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});tS.displayName=eS;function lp(n){return n?"open":"closed"}var nS="DialogTitleWarning",[PD,aS]=UT(nS,{contentName:or,titleName:ap,docsSlug:"dialog"}),JD=({titleId:n})=>{const a=aS(nS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
317
-
318
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
319
-
320
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return g.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},WD="DialogDescriptionWarning",ID=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aS(WD).contentName}}.`;return g.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},eO=$w,tO=Fw,nO=Zw,aO=Jw,lO=Iw,lS=tS,rO="AlertDialog",[iO,jz]=pt(rO,[Vw]),vr=Vw(),oO="AlertDialogTrigger",sO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=vr(r);return u.jsx(eO,{...s,...i,ref:a})});sO.displayName=oO;var uO="AlertDialogOverlay",cO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=vr(r);return u.jsx(tO,{...s,...i,ref:a})});cO.displayName=uO;var ci="AlertDialogContent",[dO,fO]=iO(ci),hO=i1("AlertDialogContent"),mO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,c=vr(r),h=g.useRef(null),m=we(a,h),p=g.useRef(null);return u.jsx(PD,{contentName:ci,titleName:rS,docsSlug:"alert-dialog",children:u.jsx(dO,{scope:r,cancelRef:p,children:u.jsxs(nO,{role:"alertdialog",...c,...s,ref:m,onOpenAutoFocus:ae(s.onOpenAutoFocus,v=>{var y;v.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:v=>v.preventDefault(),onInteractOutside:v=>v.preventDefault(),children:[u.jsx(hO,{children:i}),u.jsx(xO,{contentRef:h})]})})})});mO.displayName=ci;var rS="AlertDialogTitle",pO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=vr(r);return u.jsx(aO,{...s,...i,ref:a})});pO.displayName=rS;var iS="AlertDialogDescription",vO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=vr(r);return u.jsx(lO,{...s,...i,ref:a})});vO.displayName=iS;var gO="AlertDialogAction",yO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=vr(r);return u.jsx(lS,{...s,...i,ref:a})});yO.displayName=gO;var oS="AlertDialogCancel",bO=g.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=fO(oS,r),c=vr(r),h=we(a,s);return u.jsx(lS,{...c,...i,ref:h})});bO.displayName=oS;var xO=({contentRef:n})=>{const a=`\`${ci}\` requires a description for the component to be accessible for screen reader users.
321
-
322
- You can add a description to the \`${ci}\` by passing a \`${iS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
323
-
324
- 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 \`${ci}\`. 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.
325
-
326
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,n]),null};function hs(n){const a=g.useRef({value:n,previous:n});return g.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var sS=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"}),wO="VisuallyHidden",uS=g.forwardRef((n,a)=>u.jsx(oe.span,{...n,ref:a,style:{...sS,...n.style}}));uS.displayName=wO;var cS=uS,SO=[" ","Enter","ArrowUp","ArrowDown"],jO=[" ","Enter"],zc="Select",[rp,Lc,EO]=Oi(zc),[Qi,Ez]=pt(zc,[EO,Hi]),ip=Hi(),[Nz,jl]=Qi(zc),[Cz,NO]=Qi(zc),dS="SelectTrigger",CO=g.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,c=ip(r),h=jl(dS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),v=Lc(r),y=g.useRef("touch"),[b,w,j]=SS(S=>{const C=v().filter(T=>!T.disabled),_=C.find(T=>T.value===h.value),R=jS(C,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 u.jsx(Vm,{asChild:!0,...c,children:u.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":wS(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 C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:ae(s.onKeyDown,S=>{const C=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&SO.includes(S.key)&&(E(),S.preventDefault())})})})});CO.displayName=dS;var fS="SelectValue",_O=g.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:c,placeholder:h="",...m}=n,p=jl(fS,r),{onValueNodeHasChildrenChange:v}=p,y=c!==void 0,b=we(a,p.onValueNodeChange);return nt(()=>{v(y)},[v,y]),u.jsx(oe.span,{...m,ref:b,style:{pointerEvents:"none"},children:wS(p.value)?u.jsx(u.Fragment,{children:h}):c})});_O.displayName=fS;var RO="SelectIcon",TO=g.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return u.jsx(oe.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});TO.displayName=RO;var sr="SelectContent",MO=g.forwardRef((n,a)=>{const r=jl(sr,n.__scopeSelect),[i,s]=g.useState();if(nt(()=>{s(new DocumentFragment)},[]),!r.open){const c=i;return c?is.createPortal(u.jsx(hS,{scope:n.__scopeSelect,children:u.jsx(rp.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(mS,{...n,ref:a})});MO.displayName=sr;var An=10,[hS,El]=Qi(sr),AO="SelectContentImpl",kO=rr("SelectContent.RemoveScroll"),mS=g.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:v,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,..._}=n,R=jl(sr,r),[T,D]=g.useState(null),[L,$]=g.useState(null),q=we(a,ne=>D(ne)),[H,G]=g.useState(null),[te,ue]=g.useState(null),ce=Lc(r),[I,ie]=g.useState(!1),re=g.useRef(!1);g.useEffect(()=>{if(T)return Zm(T)},[T]),Lm();const U=g.useCallback(ne=>{const[Ee,...ye]=ce().map(Ye=>Ye.ref.current),[Ne]=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===Ne&&L&&(L.scrollTop=L.scrollHeight),Ye==null||Ye.focus(),document.activeElement!==Ue))return},[ce,L]),W=g.useCallback(()=>U([H,T]),[U,H,T]);g.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:V,triggerPointerDownPosRef:X}=R;g.useEffect(()=>{if(T){let ne={x:0,y:0};const Ee=Ne=>{var Ue,Ye;ne={x:Math.abs(Math.round(Ne.pageX)-(((Ue=X.current)==null?void 0:Ue.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ye=X.current)==null?void 0:Ye.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():T.contains(Ne.target)||V(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.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,X]),g.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]=SS(ne=>{const Ee=ce().filter(Ue=>!Ue.disabled),ye=Ee.find(Ue=>Ue.ref.current===document.activeElement),Ne=jS(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=g.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ne)&&(G(ne),Ne&&(re.current=!0))},[R.value]),ee=g.useCallback(()=>T==null?void 0:T.focus(),[T]),le=g.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ne)&&ue(ne)},[R.value]),pe=i==="popper"?om:pS,je=pe===om?{side:m,sideOffset:p,align:v,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(hS,{scope:r,content:T,viewport:L,onViewportChange:$,itemRefCallback:F,selectedItem:H,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:de,children:u.jsx(kc,{as:kO,allowPinchZoom:!0,children:u.jsx(Nc,{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:u.jsx(zi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.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(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ne=ne.target,Ue=ye.indexOf(Ne);ye=ye.slice(Ue+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});mS.displayName=AO;var DO="SelectItemAlignedPosition",pS=g.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,c=jl(sr,r),h=El(sr,r),[m,p]=g.useState(null),[v,y]=g.useState(null),b=we(a,q=>y(q)),w=Lc(r),j=g.useRef(!1),E=g.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:_,focusSelectedItem:R}=h,T=g.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&v&&S&&C&&_){const q=c.trigger.getBoundingClientRect(),H=v.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=te.left-H.left,Ue=G.left-Ne,Ye=q.left-Ue,At=q.width+Ye,Zt=Math.max(At,H.width),la=window.innerWidth-An,ra=Ih(Ue,[An,Math.max(An,la-Zt)]);m.style.minWidth=At+"px",m.style.left=ra+"px"}else{const Ne=H.right-te.right,Ue=window.innerWidth-G.right-Ne,Ye=window.innerWidth-q.right-Ue,At=q.width+Ye,Zt=Math.max(At,H.width),la=window.innerWidth-An,ra=Ih(Ue,[An,Math.max(An,la-Zt)]);m.style.minWidth=At+"px",m.style.right=ra+"px"}const ue=w(),ce=window.innerHeight-An*2,I=S.scrollHeight,ie=window.getComputedStyle(v),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),V=parseInt(ie.paddingBottom,10),X=re+U+I+V+W,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(S),F=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=q.top+q.height/2-An,pe=ce-le,je=C.offsetHeight/2,ne=C.offsetTop+je,Ee=re+U+ne,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const Ue=v.clientHeight-S.offsetTop-S.offsetHeight,Ye=Math.max(pe,je+(Ne?ee:0)+Ue+W),At=Ee+Ye;m.style.height=At+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const Ue=Math.max(le,re+S.offsetTop+(Ne?F:0)+je)+ye;m.style.height=Ue+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${An}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,c.trigger,c.valueNode,m,v,S,C,_,c.dir,i]);nt(()=>T(),[T]);const[D,L]=g.useState();nt(()=>{v&&L(window.getComputedStyle(v).zIndex)},[v]);const $=g.useCallback(q=>{q&&E.current===!0&&(T(),R==null||R(),E.current=!1)},[T,R]);return u.jsx(zO,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:$,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(oe.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});pS.displayName=DO;var OO="SelectPopperPosition",om=g.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=An,...c}=n,h=ip(r);return u.jsx(Km,{...h,...c,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...c.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)"}})});om.displayName=OO;var[zO,op]=Qi(sr,{}),sm="SelectViewport",LO=g.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,c=El(sm,r),h=op(sm,r),m=we(a,c.onViewportChange),p=g.useRef(0);return u.jsxs(u.Fragment,{children:[u.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}),u.jsx(rp.Slot,{scope:r,children:u.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,v=>{const y=v.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-An*2,S=parseFloat(b.style.minHeight),C=parseFloat(b.style.height),_=Math.max(S,C);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})})})]})});LO.displayName=sm;var vS="SelectGroup",[UO,HO]=Qi(vS),qO=g.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Sl();return u.jsx(UO,{scope:r,id:s,children:u.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:a})})});qO.displayName=vS;var gS="SelectLabel",BO=g.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=HO(gS,r);return u.jsx(oe.div,{id:s.id,...i,ref:a})});BO.displayName=gS;var hc="SelectItem",[QO,yS]=Qi(hc),YO=g.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:c,...h}=n,m=jl(hc,r),p=El(hc,r),v=m.value===i,[y,b]=g.useState(c??""),[w,j]=g.useState(!1),E=we(a,R=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,R,i,s)}),S=Sl(),C=g.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 u.jsx(QO,{scope:r,value:i,disabled:s,textId:S,isSelected:v,onItemTextChange:g.useCallback(R=>{b(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:u.jsx(rp.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:u.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":v&&w,"data-state":v?"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,()=>{C.current!=="mouse"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,R=>{C.current=R.pointerType}),onPointerMove:ae(h.onPointerMove,R=>{var T;C.current=R.pointerType,s?(T=p.onItemLeave)==null||T.call(p):C.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===" "||(jO.includes(R.key)&&_(),R.key===" "&&R.preventDefault())})})})})});YO.displayName=hc;var Go="SelectItemText",GO=g.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...c}=n,h=jl(Go,r),m=El(Go,r),p=yS(Go,r),v=NO(Go,r),[y,b]=g.useState(null),w=we(a,_=>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=g.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=v;return nt(()=>(S(E),()=>C(E)),[S,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(oe.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?is.createPortal(c.children,h.valueNode):null]})});GO.displayName=Go;var bS="SelectItemIndicator",VO=g.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return yS(bS,r).isSelected?u.jsx(oe.span,{"aria-hidden":!0,...i,ref:a}):null});VO.displayName=bS;var um="SelectScrollUpButton",KO=g.forwardRef((n,a)=>{const r=El(um,n.__scopeSelect),i=op(um,n.__scopeSelect),[s,c]=g.useState(!1),h=we(a,i.onScrollButtonChange);return nt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const v=p.scrollTop>0;c(v)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(xS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});KO.displayName=um;var cm="SelectScrollDownButton",$O=g.forwardRef((n,a)=>{const r=El(cm,n.__scopeSelect),i=op(cm,n.__scopeSelect),[s,c]=g.useState(!1),h=we(a,i.onScrollButtonChange);return nt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const v=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<v;c(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(xS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});$O.displayName=cm;var xS=g.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,c=El("SelectScrollButton",r),h=g.useRef(null),m=Lc(r),p=g.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return g.useEffect(()=>()=>p(),[p]),nt(()=>{var v;const y=m().find(b=>b.ref.current===document.activeElement);(v=y==null?void 0:y.ref.current)==null||v.scrollIntoView({block:"nearest"})},[m]),u.jsx(oe.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ae(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(s.onPointerMove,()=>{var v;(v=c.onItemLeave)==null||v.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),XO="SelectSeparator",FO=g.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(oe.div,{"aria-hidden":!0,...i,ref:a})});FO.displayName=XO;var dm="SelectArrow",ZO=g.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=ip(r),c=jl(dm,r),h=El(dm,r);return c.open&&h.position==="popper"?u.jsx($m,{...s,...i,ref:a}):null});ZO.displayName=dm;var PO="SelectBubbleInput",JO=g.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=g.useRef(null),c=we(i,s),h=hs(a);return g.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&v){const y=new Event("change",{bubbles:!0});v.call(m,a),m.dispatchEvent(y)}},[h,a]),u.jsx(oe.select,{...r,style:{...sS,...r.style},ref:c,defaultValue:a})});JO.displayName=PO;function wS(n){return n===""||n===void 0}function SS(n){const a=et(n),r=g.useRef(""),i=g.useRef(0),s=g.useCallback(h=>{const m=r.current+h;a(m),(function p(v){r.current=v,window.clearTimeout(i.current),v!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),c=g.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,c]}function jS(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=WO(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function WO(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Uc,_z]=pt("Tooltip",[Hi]),sp=Hi(),IO="TooltipProvider",Qb="tooltip.open",[Rz,ES]=Uc(IO),NS="Tooltip",[Tz,Hc]=Uc(NS),fm="TooltipTrigger",e3=g.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=Hc(fm,r),c=ES(fm,r),h=sp(r),m=g.useRef(null),p=we(a,m,s.onTriggerChange),v=g.useRef(!1),y=g.useRef(!1),b=g.useCallback(()=>v.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),u.jsx(Vm,{asChild:!0,...h,children:u.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&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{s.open&&s.onClose(),v.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ae(n.onFocus,()=>{v.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});e3.displayName=fm;var t3="TooltipPortal",[Mz,n3]=Uc(t3,{forceMount:void 0}),Ci="TooltipContent",CS=g.forwardRef((n,a)=>{const r=n3(Ci,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...c}=n,h=Hc(Ci,n.__scopeTooltip);return u.jsx(bt,{present:i||h.open,children:h.disableHoverableContent?u.jsx(_S,{side:s,...c,ref:a}):u.jsx(a3,{side:s,...c,ref:a})})}),a3=g.forwardRef((n,a)=>{const r=Hc(Ci,n.__scopeTooltip),i=ES(Ci,n.__scopeTooltip),s=g.useRef(null),c=we(a,s),[h,m]=g.useState(null),{trigger:p,onClose:v}=r,y=s.current,{onPointerInTransitChange:b}=i,w=g.useCallback(()=>{m(null),b(!1)},[b]),j=g.useCallback((E,S)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},R=s3(_,C.getBoundingClientRect()),T=u3(_,R),D=c3(S.getBoundingClientRect()),L=f3([...T,...D]);m(L),b(!0)},[b]);return g.useEffect(()=>()=>w(),[w]),g.useEffect(()=>{if(p&&y){const E=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),g.useEffect(()=>{if(h){const E=S=>{const C=S.target,_={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),T=!d3(_,h);R?w():T&&(w(),v())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,v,w]),u.jsx(_S,{...n,ref:c})}),[l3,r3]=Uc(NS,{isInside:!1}),i3=i1("TooltipContent"),_S=g.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Hc(Ci,r),v=sp(r),{onClose:y}=p;return g.useEffect(()=>(document.addEventListener(Qb,y),()=>document.removeEventListener(Qb,y)),[y]),g.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]),u.jsx(zi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:u.jsxs(Km,{"data-state":p.stateAttribute,...v,...m,ref:a,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:[u.jsx(i3,{children:i}),u.jsx(l3,{scope:r,isInside:!0,children:u.jsx(cS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});CS.displayName=Ci;var RS="TooltipArrow",o3=g.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=sp(r);return r3(RS,r).isInside?null:u.jsx($m,{...s,...i,ref:a})});o3.displayName=RS;function s3(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,s,c)){case c:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function u3(n,a,r=5){const i=[];switch(a){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 c3(n){const{top:a,right:r,bottom:i,left:s}=n;return[{x:s,y:a},{x:r,y:a},{x:r,y:i},{x:s,y:i}]}function d3(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],v=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-v)*(i-y)/(w-y)+v&&(s=!s)}return s}function f3(n){const a=n.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),h3(a)}function h3(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const s=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))a.pop();else break}a.push(s)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var m3=CS;m3.displayName;var qc="Checkbox",[p3,Az]=pt(qc),[v3,up]=p3(qc);function g3(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:c,form:h,name:m,onCheckedChange:p,required:v,value:y="on",internal_do_not_use_render:b}=n,[w,j]=ta({prop:r,defaultProp:s??!1,onChange:p,caller:qc}),[E,S]=g.useState(null),[C,_]=g.useState(null),R=g.useRef(!1),T=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:R,required:v,defaultChecked:bl(s)?!1:s,isFormControl:T,bubbleInput:C,setBubbleInput:_};return u.jsx(v3,{scope:a,...D,children:x3(b)?b(D):i})}var TS="CheckboxTrigger",MS=g.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:c,value:h,disabled:m,checked:p,required:v,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=up(TS,n),S=we(s,y),C=g.useRef(p);return g.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const R=()=>b(C.current);return _.addEventListener("reset",R),()=>_.removeEventListener("reset",R)}},[c,b]),u.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":bl(p)?"mixed":p,"aria-required":v,"data-state":OS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{b(R=>bl(R)?!0:!R),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});MS.displayName=TS;var y3=g.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:v,form:y,...b}=n;return u.jsx(g3,{__scopeCheckbox:r,checked:s,defaultChecked:c,disabled:m,required:h,onCheckedChange:v,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(MS,{...b,ref:a,__scopeCheckbox:r}),w&&u.jsx(DS,{__scopeCheckbox:r})]})})});y3.displayName=qc;var AS="CheckboxIndicator",b3=g.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,c=up(AS,r);return u.jsx(bt,{present:i||bl(c.checked)||c.checked===!0,children:u.jsx(oe.span,{"data-state":OS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});b3.displayName=AS;var kS="CheckboxBubbleInput",DS=g.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:h,required:m,disabled:p,name:v,value:y,form:b,bubbleInput:w,setBubbleInput:j}=up(kS,n),E=we(r,j),S=hs(c),C=Mc(i);g.useEffect(()=>{const R=w;if(!R)return;const T=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==c&&D){const $=new Event("click",{bubbles:L});R.indeterminate=bl(c),D.call(R,bl(c)?!1:c),R.dispatchEvent($)}},[w,S,c,s]);const _=g.useRef(bl(c)?!1:c);return u.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:v,value:y,form:b,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});DS.displayName=kS;function x3(n){return typeof n=="function"}function bl(n){return n==="indeterminate"}function OS(n){return bl(n)?"indeterminate":n?"checked":"unchecked"}var cp="Radio",[w3,zS]=pt(cp),[S3,j3]=w3(cp),LS=g.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:c,disabled:h,value:m="on",onCheck:p,form:v,...y}=n,[b,w]=g.useState(null),j=we(a,C=>w(C)),E=g.useRef(!1),S=b?v||!!b.closest("form"):!0;return u.jsxs(S3,{scope:r,checked:s,disabled:h,children:[u.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":BS(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ae(n.onClick,C=>{s||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&u.jsx(qS,{control:b,bubbles:!E.current,name:i,value:m,checked:s,required:c,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});LS.displayName=cp;var US="RadioIndicator",HS=g.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,c=j3(US,r);return u.jsx(bt,{present:i||c.checked,children:u.jsx(oe.span,{"data-state":BS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a})})});HS.displayName=US;var E3="RadioBubbleInput",qS=g.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=g.useRef(null),m=we(h,c),p=hs(r),v=Mc(a);return g.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]),u.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qS.displayName=E3;function BS(n){return n?"checked":"unchecked"}var N3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bc="RadioGroup",[C3,kz]=pt(Bc,[qi,zS]),QS=qi(),YS=zS(),[_3,R3]=C3(Bc),GS=g.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:v,loop:y=!0,onValueChange:b,...w}=n,j=QS(r),E=Di(v),[S,C]=ta({prop:c,defaultProp:s??null,onChange:b,caller:Bc});return u.jsx(_3,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:u.jsx(Xm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:u.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});GS.displayName=Bc;var VS="RadioGroupItem",KS=g.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,c=R3(VS,r),h=c.disabled||i,m=QS(r),p=YS(r),v=g.useRef(null),y=we(a,v),b=c.value===s.value,w=g.useRef(!1);return g.useEffect(()=>{const j=S=>{N3.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)}},[]),u.jsx(Fm,{asChild:!0,...m,focusable:!h,active:b,children:u.jsx(LS,{disabled:h,required:c.required,checked:b,...p,...s,name:c.name,ref:y,onCheck:()=>c.onValueChange(s.value),onKeyDown:ae(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ae(s.onFocus,()=>{var j;w.current&&((j=v.current)==null||j.click())})})})});KS.displayName=VS;var T3="RadioGroupIndicator",M3=g.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=YS(r);return u.jsx(HS,{...s,...i,ref:a})});M3.displayName=T3;var A3=GS,k3=KS;A3.displayName;k3.displayName;var Qc="Switch",[D3,Dz]=pt(Qc),[O3,z3]=D3(Qc),$S=g.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:v,form:y,...b}=n,[w,j]=g.useState(null),E=we(a,T=>j(T)),S=g.useRef(!1),C=w?y||!!w.closest("form"):!0,[_,R]=ta({prop:s,defaultProp:c??!1,onChange:v,caller:Qc});return u.jsxs(O3,{scope:r,checked:_,disabled:m,children:[u.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":PS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:E,onClick:ae(n.onClick,T=>{R(D=>!D),C&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),C&&u.jsx(ZS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});$S.displayName=Qc;var XS="SwitchThumb",FS=g.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=z3(XS,r);return u.jsx(oe.span,{"data-state":PS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});FS.displayName=XS;var L3="SwitchBubbleInput",ZS=g.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=g.useRef(null),m=we(h,c),p=hs(r),v=Mc(a);return g.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]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ZS.displayName=L3;function PS(n){return n?"checked":"unchecked"}var U3=$S,H3=FS;function Ah({className:n,...a}){return u.jsx(U3,{"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),...a,children:u.jsx(H3,{"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 Yc="Tabs",[q3,Oz]=pt(Yc,[qi]),JS=qi(),[B3,dp]=q3(Yc),WS=g.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...v}=n,y=Di(m),[b,w]=ta({prop:i,onChange:s,defaultProp:c??"",caller:Yc});return u.jsx(B3,{scope:r,baseId:Sl(),value:b,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(oe.div,{dir:y,"data-orientation":h,...v,ref:a})})});WS.displayName=Yc;var IS="TabsList",ej=g.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,c=dp(IS,r),h=JS(r);return u.jsx(Xm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(oe.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:a})})});ej.displayName=IS;var tj="TabsTrigger",nj=g.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...c}=n,h=dp(tj,r),m=JS(r),p=rj(h.baseId,i),v=ij(h.baseId,i),y=i===h.value;return u.jsx(Fm,{asChild:!0,...m,focusable:!s,active:y,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":v,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...c,ref:a,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)})})})});nj.displayName=tj;var aj="TabsContent",lj=g.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:c,...h}=n,m=dp(aj,r),p=rj(m.baseId,i),v=ij(m.baseId,i),y=i===m.value,b=g.useRef(y);return g.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(bt,{present:s||y,children:({present:w})=>u.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:v,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:b.current?"0s":void 0},children:w&&c})})});lj.displayName=aj;function rj(n,a){return`${n}-trigger-${a}`}function ij(n,a){return`${n}-content-${a}`}var Q3=WS,Y3=ej,G3=nj,V3=lj;function oj({className:n,...a}){return u.jsx(Q3,{"data-slot":"tabs",className:ge("flex flex-col gap-2",n),...a})}function sj({className:n,...a}){return u.jsx(Y3,{"data-slot":"tabs-list",className:ge("flex border-b border-border",n),...a})}function $o({className:n,children:a,...r}){return u.jsx(G3,{asChild:!0,...r,children:u.jsx(u1,{className:n,children:a})})}function Xo({className:n,...a}){return u.jsx(V3,{"data-slot":"tabs-content",className:ge("flex-1 outline-none",n),...a})}function K3(n){const a=$3(n),r=g.forwardRef((i,s)=>{const{children:c,...h}=i,m=g.Children.toArray(c),p=m.find(F3);if(p){const v=p.props.children,y=m.map(b=>b===p?g.Children.count(v)>1?g.Children.only(null):g.isValidElement(v)?v.props.children:null:b);return u.jsx(a,{...h,ref:s,children:g.isValidElement(v)?g.cloneElement(v,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function $3(n){const a=g.forwardRef((r,i)=>{const{children:s,...c}=r,h=g.isValidElement(s)?P3(s):void 0,m=we(h,i);if(g.isValidElement(s)){const p=Z3(c,s.props);return s.type!==g.Fragment&&(p.ref=m),g.cloneElement(s,p)}return g.Children.count(s)>1?g.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var X3=Symbol("radix.slottable");function F3(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===X3}function Z3(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function P3(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.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 J3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fp=J3.reduce((n,a)=>{const r=K3(`Primitive.${a}`),i=g.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),hp="Progress",mp=100,[W3,zz]=pt(hp),[I3,e4]=W3(hp),t4=g.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:c=a4,...h}=n;(s||s===0)&&!Yb(s)&&console.error(l4(`${s}`,"Progress"));const m=Yb(s)?s:mp;i!==null&&!Gb(i,m)&&console.error(r4(`${i}`,"Progress"));const p=Gb(i,m)?i:null,v=mc(p)?c(p,m):void 0;return u.jsx(I3,{scope:r,value:p,max:m,children:u.jsx(fp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":mc(p)?p:void 0,"aria-valuetext":v,role:"progressbar","data-state":cj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});t4.displayName=hp;var uj="ProgressIndicator",n4=g.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=e4(uj,r);return u.jsx(fp.div,{"data-state":cj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});n4.displayName=uj;function a4(n,a){return`${Math.round(n/a*100)}%`}function cj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function mc(n){return typeof n=="number"}function Yb(n){return mc(n)&&!isNaN(n)&&n>0}function Gb(n,a){return mc(n)&&!isNaN(n)&&n<=a&&n>=0}function l4(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${mp}\`.`}function r4(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
327
- - a positive number
328
- - less than the value passed to \`max\` (or ${mp} if no \`max\` prop is set)
329
- - \`null\` or \`undefined\` if the progress is indeterminate.
330
-
331
- Defaulting to \`null\`.`}var i4="Separator",Vb="horizontal",o4=["horizontal","vertical"],s4=g.forwardRef((n,a)=>{const{decorative:r,orientation:i=Vb,...s}=n,c=u4(i)?i:Vb,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(fp.div,{"data-orientation":c,...h,...s,ref:a})});s4.displayName=i4;function u4(n){return o4.includes(n)}var c4="Label",dj=g.forwardRef((n,a)=>u.jsx(oe.label,{...n,ref:a,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())}}));dj.displayName=c4;var fj=dj;const d4=s1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Vo=({ref:n,className:a,...r})=>u.jsx(fj,{ref:n,className:ge(d4(),a),...r});Vo.displayName=fj.displayName;var Gc="Collapsible",[f4,hj]=pt(Gc),[h4,pp]=f4(Gc),mj=g.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:c,onOpenChange:h,...m}=n,[p,v]=ta({prop:i,defaultProp:s??!1,onChange:h,caller:Gc});return u.jsx(h4,{scope:r,disabled:c,contentId:Sl(),open:p,onOpenToggle:g.useCallback(()=>v(y=>!y),[v]),children:u.jsx(oe.div,{"data-state":bp(p),"data-disabled":c?"":void 0,...m,ref:a})})});mj.displayName=Gc;var pj="CollapsibleTrigger",vp=g.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=pp(pj,r);return u.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":bp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ae(n.onClick,s.onOpenToggle)})});vp.displayName=pj;var gp="CollapsibleContent",yp=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=pp(gp,n.__scopeCollapsible);return u.jsx(bt,{present:r||s.open,children:({present:c})=>u.jsx(m4,{...i,ref:a,present:c})})});yp.displayName=gp;var m4=g.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...c}=n,h=pp(gp,r),[m,p]=g.useState(i),v=g.useRef(null),y=we(a,v),b=g.useRef(0),w=b.current,j=g.useRef(0),E=j.current,S=h.open||m,C=g.useRef(S),_=g.useRef(void 0);return g.useEffect(()=>{const R=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(R)},[]),nt(()=>{const R=v.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,C.current||(R.style.transitionDuration=_.current.transitionDuration,R.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(oe.div,{"data-state":bp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...c,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 bp(n){return n?"open":"closed"}var vj=mj,p4=vp,v4=yp,Qn="Accordion",g4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[xp,y4,b4]=Oi(Qn),[Vc,Lz]=pt(Qn,[b4,hj]),wp=hj(),x4=st.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,c=i;return u.jsx(xp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(E4,{...c,ref:a}):u.jsx(j4,{...s,ref:a})})});x4.displayName=Qn;var[gj,w4]=Vc(Qn),[yj,S4]=Vc(Qn,{collapsible:!1}),j4=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...h}=n,[m,p]=ta({prop:r,defaultProp:i??"",onChange:s,caller:Qn});return u.jsx(gj,{scope:n.__scopeAccordion,value:st.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:st.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(yj,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(bj,{...h,ref:a})})})}),E4=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...c}=n,[h,m]=ta({prop:r,defaultProp:i??[],onChange:s,caller:Qn}),p=st.useCallback(y=>m((b=[])=>[...b,y]),[m]),v=st.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return u.jsx(gj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:v,children:u.jsx(yj,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(bj,{...c,ref:a})})})}),[N4,Kc]=Vc(Qn),bj=st.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:c="vertical",...h}=n,m=st.useRef(null),p=we(m,a),v=y4(r),y=Di(s)==="ltr",b=ae(n.onKeyDown,w=>{var j;if(!g4.includes(w.key))return;const E=w.target,S=v().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),C=S.findIndex(H=>H.ref.current===E),_=S.length;if(C===-1)return;w.preventDefault();let R=C;const T=0,D=_-1,L=()=>{R=C+1,R>D&&(R=T)},$=()=>{R=C-1,R<T&&(R=D)};switch(w.key){case"Home":R=T;break;case"End":R=D;break;case"ArrowRight":c==="horizontal"&&(y?L():$());break;case"ArrowDown":c==="vertical"&&L();break;case"ArrowLeft":c==="horizontal"&&(y?$():L());break;case"ArrowUp":c==="vertical"&&$();break}const q=R%_;(j=S[q].ref.current)==null||j.focus()});return u.jsx(N4,{scope:r,disabled:i,direction:s,orientation:c,children:u.jsx(xp.Slot,{scope:r,children:u.jsx(oe.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:b})})})}),pc="AccordionItem",[C4,Sp]=Vc(pc),_4=st.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,c=Kc(pc,r),h=w4(pc,r),m=wp(r),p=Sl(),v=i&&h.value.includes(i)||!1,y=c.disabled||n.disabled;return u.jsx(C4,{scope:r,open:v,disabled:y,triggerId:p,children:u.jsx(vj,{"data-orientation":c.orientation,"data-state":Sj(v),...m,...s,ref:a,disabled:y,open:v,onOpenChange:b=>{b?h.onItemOpen(i):h.onItemClose(i)}})})});_4.displayName=pc;var xj="AccordionHeader",R4=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Qn,r),c=Sp(xj,r);return u.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":Sj(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});R4.displayName=xj;var hm="AccordionTrigger",T4=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Qn,r),c=Sp(hm,r),h=S4(hm,r),m=wp(r);return u.jsx(xp.ItemSlot,{scope:r,children:u.jsx(p4,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...m,...i,ref:a})})});T4.displayName=hm;var wj="AccordionContent",M4=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Qn,r),c=Sp(wj,r),h=wp(r);return u.jsx(v4,{role:"region","aria-labelledby":c.triggerId,"data-orientation":s.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});M4.displayName=wj;function Sj(n){return n?"open":"closed"}const jj=vj,Ej=vp,Nj=yp;var gr="NavigationMenu",[jp,Cj,A4]=Oi(gr),[mm,k4,D4]=Oi(gr),[Ep,Uz]=pt(gr,[A4,D4]),[O4,_n]=Ep(gr),[z4,L4]=Ep(gr),U4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:v,...y}=n,[b,w]=g.useState(null),j=we(a,G=>w(G)),E=Di(v),S=g.useRef(0),C=g.useRef(0),_=g.useRef(0),[R,T]=g.useState(!0),[D,L]=ta({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:c??"",caller:gr}),$=g.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),q=g.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),H=g.useCallback(G=>{D===G?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),L(G)},h)},[D,L,h]);return g.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(_j,{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),$()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:$,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:u.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});U4.displayName=gr;var pm="NavigationMenuSub",H4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",...m}=n,p=_n(pm,r),[v,y]=ta({prop:i,onChange:s,defaultProp:c??"",caller:pm});return u.jsx(_j,{scope:r,isRootMenu:!1,value:v,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:b=>y(b),onItemSelect:b=>y(b),onItemDismiss:()=>y(""),children:u.jsx(oe.div,{"data-orientation":h,...m,ref:a})})});H4.displayName=pm;var _j=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:v,onTriggerEnter:y,onTriggerLeave:b,onContentEnter:w,onContentLeave:j}=n,[E,S]=g.useState(null),[C,_]=g.useState(new Map),[R,T]=g.useState(null);return u.jsx(O4,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:hs(m),baseId:Sl(),dir:s,orientation:c,viewport:E,onViewportChange:S,indicatorTrack:R,onIndicatorTrackChange:T,onTriggerEnter:et(y),onTriggerLeave:et(b),onContentEnter:et(w),onContentLeave:et(j),onItemSelect:et(p),onItemDismiss:et(v),onViewportContentChange:g.useCallback((D,L)=>{_($=>($.set(D,L),new Map($)))},[]),onViewportContentRemove:g.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:u.jsx(jp.Provider,{scope:a,children:u.jsx(z4,{scope:a,items:C,children:h})})})},Rj="NavigationMenuList",q4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(Rj,r),c=u.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:a});return u.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:u.jsx(jp.Slot,{scope:r,children:s.isRootMenu?u.jsx(kj,{asChild:!0,children:c}):c})})});q4.displayName=Rj;var Tj="NavigationMenuItem",[B4,Mj]=Ep(Tj),Q4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,c=Sl(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=g.useRef(null),p=g.useRef(null),v=g.useRef(null),y=g.useRef(()=>{}),b=g.useRef(!1),w=g.useCallback((E="start")=>{if(m.current){y.current();const S=gm(m.current);S.length&&_p(E==="start"?S:S.reverse())}},[]),j=g.useCallback(()=>{if(m.current){const E=gm(m.current);E.length&&(y.current=I4(E))}},[]);return u.jsx(B4,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:v,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:u.jsx(oe.li,{...s,ref:a})})});Q4.displayName=Tj;var vm="NavigationMenuTrigger",Y4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,c=_n(vm,n.__scopeNavigationMenu),h=Mj(vm,n.__scopeNavigationMenu),m=g.useRef(null),p=we(m,h.triggerRef,a),v=Oj(c.baseId,h.value),y=zj(c.baseId,h.value),b=g.useRef(!1),w=g.useRef(!1),j=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(jp.ItemSlot,{scope:r,value:h.value,children:u.jsx(Dj,{asChild:!0,children:u.jsx(oe.button,{id:v,disabled:i,"data-disabled":i?"":void 0,"data-state":Rp(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,vc(()=>{i||w.current||h.wasEscapeCloseRef.current||b.current||(c.onTriggerEnter(h.value),b.current=!0)})),onPointerLeave:ae(n.onPointerLeave,vc(()=>{i||(c.onTriggerLeave(),b.current=!1)})),onClick:ae(n.onClick,()=>{c.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&u.jsxs(u.Fragment,{children:[u.jsx(cS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,C=E.relatedTarget,_=C===m.current,R=S==null?void 0:S.contains(C);(_||!R)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":y})]})]})});Y4.displayName=vm;var G4="NavigationMenuLink",Kb="navigationMenu.linkSelect",V4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...c}=n;return u.jsx(Dj,{asChild:!0,children:u.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Kb,{bubbles:!0,cancelable:!0});if(m.addEventListener(Kb,v=>s==null?void 0:s(v),{once:!0}),ac(m,p),!p.defaultPrevented&&!h.metaKey){const v=new CustomEvent(Ju,{bubbles:!0,cancelable:!0});ac(m,v)}},{checkForDefaultPrevented:!1})})})});V4.displayName=G4;var Np="NavigationMenuIndicator",K4=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(Np,n.__scopeNavigationMenu),c=!!s.value;return s.indicatorTrack?Hx.createPortal(u.jsx(bt,{present:r||c,children:u.jsx($4,{...i,ref:a})}),s.indicatorTrack):null});K4.displayName=Np;var $4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(Np,r),c=Cj(r),[h,m]=g.useState(null),[p,v]=g.useState(null),y=s.orientation==="horizontal",b=!!s.value;g.useEffect(()=>{var j;const E=(j=c().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[c,s.value]);const w=()=>{h&&v({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return ym(h,w),ym(s.indicatorTrack,w),p?u.jsx(oe.div,{"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":s.orientation,...i,ref:a,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}),_i="NavigationMenuContent",X4=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(_i,n.__scopeNavigationMenu),c=Mj(_i,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===s.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return s.viewport?u.jsx(F4,{forceMount:r,...p,ref:h}):u.jsx(bt,{present:r||m,children:u.jsx(Aj,{"data-state":Rp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,vc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});X4.displayName=_i;var F4=g.forwardRef((n,a)=>{const r=_n(_i,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return nt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),nt(()=>()=>s(n.value),[n.value,s]),null}),Ju="navigationMenu.rootContentDismiss",Aj=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...v}=n,y=_n(_i,r),b=g.useRef(null),w=we(b,a),j=Oj(y.baseId,i),E=zj(y.baseId,i),S=Cj(r),C=g.useRef(null),{onItemDismiss:_}=y;g.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(Ju,D),()=>T.removeEventListener(Ju,D)}},[y.isRootMenu,n.value,s,_,m]);const R=g.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const D=T.indexOf(y.value),L=T.indexOf(y.previousValue),$=i===y.value,q=L===T.indexOf(i);if(!$&&!q)return C.current;const H=(()=>{if(D!==L){if($&&L!==-1)return D>L?"from-end":"from-start";if(q&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return u.jsx(kj,{asChild:!0,children:u.jsx(zi,{id:E,"aria-labelledby":j,"data-motion":R,"data-orientation":y.orientation,...v,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const D=new Event(Ju,{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,$=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));($||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 $=gm(T.currentTarget),q=document.activeElement,H=$.findIndex(te=>te===q),G=T.shiftKey?$.slice(0,H).reverse():$.slice(H+1,$.length);_p(G)?T.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),Cp="NavigationMenuViewport",Z4=g.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!_n(Cp,n.__scopeNavigationMenu).value;return u.jsx(bt,{present:r||s,children:u.jsx(P4,{...i,ref:a})})});Z4.displayName=Cp;var P4=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,c=_n(Cp,r),h=we(a,c.onViewportChange),m=L4(_i,n.__scopeNavigationMenu),[p,v]=g.useState(null),[y,b]=g.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=!!c.value,S=E?c.value:c.previousValue;return ym(y,()=>{y&&v({width:y.offsetWidth,height:y.offsetHeight})}),u.jsx(oe.div,{"data-state":Rp(E),"data-orientation":c.orientation,...s,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,c.onContentEnter),onPointerLeave:ae(n.onPointerLeave,vc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:R,...T}])=>{const D=S===C;return u.jsx(bt,{present:R||D,children:u.jsx(Aj,{...T,ref:us(_,L=>{D&&L&&b(L)})})},C)})})}),J4="FocusGroup",kj=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(J4,r);return u.jsx(mm.Provider,{scope:r,children:u.jsx(mm.Slot,{scope:r,children:u.jsx(oe.div,{dir:s.dir,...i,ref:a})})})}),$b=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],W4="FocusGroupItem",Dj=g.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=k4(r),c=_n(W4,r);return u.jsx(mm.ItemSlot,{scope:r,children:u.jsx(oe.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...$b].includes(h.key)){let m=s().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),$b.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>_p(m)),h.preventDefault()}})})})});function gm(n){const a=[],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();)a.push(r.currentNode);return a}function _p(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function I4(n){return n.forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")}),()=>{n.forEach(a=>{const r=a.dataset.tabindex;a.setAttribute("tabindex",r)})}}function ym(n,a){const r=et(a);nt(()=>{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 Rp(n){return n?"open":"closed"}function Oj(n,a){return`${n}-trigger-${a}`}function zj(n,a){return`${n}-content-${a}`}function vc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Xb={exports:{}},kh={};/**
332
- * @license React
333
- * use-sync-external-store-shim.production.js
334
- *
335
- * Copyright (c) Meta Platforms, Inc. and affiliates.
336
- *
337
- * This source code is licensed under the MIT license found in the
338
- * LICENSE file in the root directory of this source tree.
339
- */var Fb;function e5(){if(Fb)return kh;Fb=1;var n=st;function a(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(b,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return c(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[b,j,w]),s(function(){return p(S)&&C({inst:S}),b(function(){p(S)&&C({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 v(b,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:m;return kh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,kh}var Zb;function t5(){return Zb||(Zb=1,Xb.exports=e5()),Xb.exports}var n5=t5();function a5(){return n5.useSyncExternalStore(l5,()=>!0,()=>!1)}function l5(){return()=>{}}var Tp="Avatar",[r5,Hz]=pt(Tp),[i5,Lj]=r5(Tp),Uj=g.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,c]=g.useState("idle");return u.jsx(i5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(oe.span,{...i,ref:a})})});Uj.displayName=Tp;var Hj="AvatarImage",qj=g.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...c}=n,h=Lj(Hj,r),m=o5(i,c),p=et(v=>{s(v),h.onImageLoadingStatusChange(v)});return nt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(oe.img,{...c,ref:a,src:i}):null});qj.displayName=Hj;var Bj="AvatarFallback",Qj=g.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,c=Lj(Bj,r),[h,m]=g.useState(i===void 0);return g.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&c.imageLoadingStatus!=="loaded"?u.jsx(oe.span,{...s,ref:a}):null});Qj.displayName=Bj;function Pb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function o5(n,{referrerPolicy:a,crossOrigin:r}){const i=a5(),s=g.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=g.useState(()=>Pb(c,n));return nt(()=>{m(Pb(c,n))},[c,n]),nt(()=>{const p=b=>()=>{m(b)};if(!c)return;const v=p("loaded"),y=p("error");return c.addEventListener("load",v),c.addEventListener("error",y),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",v),c.removeEventListener("error",y)}},[c,r,a]),h}var s5=Uj,u5=qj,c5=Qj;s5.displayName;u5.displayName;c5.displayName;GD.displayName;VD.displayName;UD.displayName;qD.displayName;BD.displayName;QD.displayName;HD.displayName;YD.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 d5="";async function St(n,a){const r=await fetch(`${d5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return r.json()}async function Mp(){return St("/api/config")}async function f5(n,a){return St(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function h5(n){return St(`/api/db/${n}/tables`)}async function m5(n,a,r,i){return St(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function p5(n){return St(`/api/db/${n}/schema`)}async function v5(n,a=20,r=0){return St(`/api/cache/${n}/entries?limit=${a}&offset=${r}`)}async function g5(n,a=20,r=0,i=""){const s=new URLSearchParams({limit:String(a),offset:String(r)});return i&&s.set("search",i),St(`/api/state/${n}/entries?${s.toString()}`)}async function y5(n){return St(`/api/queue/${n}/metrics`)}async function b5(n,a=10){return St(`/api/queue/${n}/messages?limit=${a}`)}async function x5(n,a=20){return St(`/api/workflow/${n}/executions?limit=${a}`)}async function w5(n,a){return St(`/api/workflow/${n}/executions/${a}`)}async function S5(){return St("/api/auth/tables")}async function j5(n,a,r){return St(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function E5(){return St("/api/auth/schema")}async function N5(n){return St("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function C5(){return St("/api/auth/settings")}async function _5(n){return St("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function R5(n,a=20,r=0){return St(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function T5({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(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?u.jsx(Gx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function M5({table:n,onInsertText:a}){const[r,i]=g.useState(!1);return u.jsxs(jj,{open:r,onOpenChange:i,children:[u.jsxs(Ej,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Bx,{className:"h-4 w-4 shrink-0"}):u.jsx(dr,{className:"h-4 w-4 shrink-0"}),u.jsx(Sc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Nj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(T5,{column:s,onInsertText:a},s.name))})})]})}function A5({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=Mt({queryKey:["auth-schema"],queryFn:E5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(Ze,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(wc,{className:ge("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(E1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:s.map(c=>u.jsx(M5,{table:c,onInsertText:n},c.name))})})}),u.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(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 a=Math.floor(n/86400);return`${a} day${a>1?"s":""}`}function O5({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=g.useState(n.sessionTokenExpiry.toString()),[c,h]=g.useState(n.allowSignups),[m,p]=g.useState(n.requireEmailVerification),[v,y]=g.useState(n.requireName),b=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:v})},w=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||v!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Vo,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(c1,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",D5(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Vo,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(Ah,{checked:c,onCheckedChange:h})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Vo,{children:"Require Email Verification"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),u.jsx(Ah,{checked:m,onCheckedChange:p})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Vo,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(Ah,{checked:v,onCheckedChange:y})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Ze,{onClick:b,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function z5(){var I,ie,re,U,W,V;const n=Em(),[a,r]=g.useState("settings"),[i,s]=g.useState(""),[c,h]=g.useState(null),[m,p]=g.useState(null),[v,y]=g.useState(null),[b,w]=g.useState(0),j=50,S=((ie=(I=Mt({queryKey:["config"],queryFn:Mp,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",C=Mt({queryKey:["auth-settings"],queryFn:C5,staleTime:0}),_=Xh({mutationFn:_5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),R=X=>{_.mutate(X)},T=g.useCallback(X=>{s(de=>de+X)},[]),D=Xh({mutationFn:X=>N5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},$=Mt({queryKey:["auth-tables"],queryFn:S5,staleTime:0,gcTime:0}),q=Mt({queryKey:["auth-tableData",v,j,b],queryFn:()=>j5(v,j,b),staleTime:0,gcTime:0,enabled:!!v}),H=((re=$.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=X=>{y(X),w(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Yx,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.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."})]})]}),u.jsxs(oj,{value:a,onValueChange:r,children:[u.jsxs(sj,{children:[u.jsxs($o,{value:"settings",children:[u.jsx(uR,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx($o,{value:"query",children:"SQL Editor"}),u.jsx($o,{value:"tables",children:"Tables"})]}),u.jsx(Xo,{value:"settings",className:"mt-4",children:u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Auth Settings"}),u.jsx(jn,{children:"Configure authentication settings for local development."})]}),u.jsx(Tt,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(O5,{settings:C.data,onUpdate:R,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Xo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"SQL Query"}),u.jsx(jn,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(Tt,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>s(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.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"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(Ze,{onClick:L,disabled:D.isPending||!i.trim(),children:[u.jsx(Vx,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(Rt,{className:"border-destructive/50",children:u.jsx(Tt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(l1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(A5,{onInsertText:T})})]})}),u.jsx(Xo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(Rt,{className:"md:col-span-1",children:[u.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Ht,{className:"text-base",children:"Tables"}),u.jsx(Ze,{variant:"ghost",size:"icon",onClick:()=>$.refetch(),className:"h-8 w-8",children:u.jsx(wc,{className:"h-4 w-4"})})]}),u.jsx(Tt,{children:$.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):H.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:H.map(X=>u.jsxs("button",{onClick:()=>ce(X.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${v===X.name?"bg-muted font-medium":""}`,children:[u.jsx(Sc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(Rt,{className:"md:col-span-3",children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:v||"Select a Table"}),v&&u.jsxs(jn,{children:[ue," total rows"]})]}),u.jsx(Tt,{children:v?q.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsx(Ft,{children:te.map(X=>u.jsx(at,{className:"font-mono",children:X},X))})}),u.jsx(mr,{children:G.map((X,de)=>u.jsx(Ft,{children:te.map(A=>u.jsx(lt,{className:"font-mono text-sm",children:k5(X[A])},A))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," -"," ",Math.min(b+j,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ze,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>w(Math.max(0,b-j)),children:[u.jsx(os,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ze,{variant:"outline",size:"sm",disabled:b+j>=ue,onClick:()=>w(b+j),children:["Next",u.jsx(dr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Yi(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function yr({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Ap({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Xl({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Ht,{className:"text-sm font-medium",children:n}),r]}),u.jsx(Tt,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(zn,{className:"h-5 w-5 animate-spin"}):a})})]})}function ms({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const Kl=20;function L5(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 a=Math.floor(n/3600),r=Math.floor(n%3600/60);return`${a}h ${r}m`}function U5({entries:n,isLoading:a}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Cache Entries"}),u.jsx(jn,{children:"Active (non-expired) entries in this cache (auto-refreshes every 5 seconds)"})]}),u.jsx(Tt,{children:a?u.jsx(Yi,{}):n!=null&&n.length?u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsxs(Ft,{children:[u.jsx(at,{children:"Key"}),u.jsx(at,{children:"Value"}),u.jsx(at,{children:"TTL"}),u.jsx(at,{children:"Expires At"})]})}),u.jsx(mr,{children:n.map(r=>u.jsxs(Ft,{children:[u.jsx(lt,{className:"font-mono text-sm",children:r.key}),u.jsx(lt,{className:"max-w-[300px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(lt,{children:u.jsx("span",{className:"font-mono text-sm",children:L5(r.ttlSeconds)})}),u.jsx(lt,{className:"text-sm text-muted-foreground",children:new Date(r.expiresAt).toLocaleString()})]},r.key))})]}):u.jsx(yr,{children:"No active entries in this cache"})})]})}function H5(){const{binding:n}=cr(),a=n||"",[r,i]=g.useState(0),{data:s,isLoading:c}=Mt({queryKey:["cacheEntries",a,r],queryFn:()=>v5(a,Kl,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/Kl)+1,p=Math.max(1,Math.ceil(h/Kl));return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(ms,{title:`Cache: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.jsx(Xl,{title:"Active Entries",value:h,icon:u.jsx(ss,{className:"h-4 w-4 text-muted-foreground"}),isLoading:c})}),u.jsx(U5,{entries:s==null?void 0:s.entries,isLoading:c}),h>Kl&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p," (",h," total entries)"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Kl)),disabled:r===0,children:[u.jsx(os,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(r+Kl),disabled:r+Kl>=h,children:["Next",u.jsx(dr,{className:"h-4 w-4"})]})]})]})]})})}const $l=20;function q5(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:n<1024*1024*1024?`${(n/(1024*1024)).toFixed(1)} MB`:`${(n/(1024*1024*1024)).toFixed(1)} GB`}function B5({entries:n,isLoading:a}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Files"}),u.jsx(jn,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(Tt,{children:a?u.jsx(Yi,{}):n!=null&&n.length?u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsxs(Ft,{children:[u.jsx(at,{children:"Key"}),u.jsx(at,{children:"Size"}),u.jsx(at,{children:"Content Type"}),u.jsx(at,{children:"Created At"})]})}),u.jsx(mr,{children:n.map(r=>u.jsxs(Ft,{children:[u.jsx(lt,{className:"font-mono text-sm",children:r.key}),u.jsx(lt,{className:"text-sm text-muted-foreground",children:q5(r.size)}),u.jsx(lt,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(lt,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(yr,{children:"No files in this storage"})})]})}function Q5(){const{binding:n}=cr(),a=n||"",[r,i]=g.useState(0),{data:s,isLoading:c}=Mt({queryKey:["fileStorageEntries",a,r],queryFn:()=>R5(a,$l,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/$l)+1,p=Math.ceil(h/$l);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(ms,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Xl,{title:"Total Files",value:h})}),u.jsx(B5,{entries:s==null?void 0:s.entries,isLoading:c}),h>$l&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-$l)),disabled:r===0,children:[u.jsx(os,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(r+$l),disabled:r+$l>=h,children:["Next",u.jsx(dr,{className:"h-4 w-4"})]})]})]})]})})}const Vu=20;function Y5({entries:n,isLoading:a}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"State Entries"}),u.jsx(jn,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(Tt,{children:a?u.jsx(Yi,{}):n!=null&&n.length?u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsxs(Ft,{children:[u.jsx(at,{children:"Key"}),u.jsx(at,{children:"Value"})]})}),u.jsx(mr,{children:n.map(r=>u.jsxs(Ft,{children:[u.jsx(lt,{className:"font-mono text-sm",children:r.key}),u.jsx(lt,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(yr,{children:"No entries in this state store"})})]})}function G5(){const{binding:n}=cr(),a=n||"",[r,i]=g.useState(0),[s,c]=g.useState(""),[h,m]=g.useState(""),{data:p,isLoading:v}=Mt({queryKey:["stateEntries",a,r,s],queryFn:()=>g5(a,Vu,r,s),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,b=Math.floor(r/Vu)+1,w=j=>{j.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(ms,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(c1,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Ze,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(oR,{className:"h-4 w-4 mr-1"}),"Search"]}),s&&u.jsx(Ze,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(Y5,{entries:p==null?void 0:p.entries,isLoading:v}),(r>0||y)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",b]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Vu)),disabled:r===0,children:[u.jsx(os,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>i(r+Vu),disabled:!y,children:["Next",u.jsx(dr,{className:"h-4 w-4"})]})]})]})]})})}function V5({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(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?u.jsx(Gx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function K5({table:n,onInsertText:a}){const[r,i]=g.useState(!1);return u.jsxs(jj,{open:r,onOpenChange:i,children:[u.jsxs(Ej,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Bx,{className:"h-4 w-4 shrink-0"}):u.jsx(dr,{className:"h-4 w-4 shrink-0"}),u.jsx(Sc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Nj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(V5,{column:s,onInsertText:a},s.name))})})]})}function $5({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=Mt({queryKey:["schema",n],queryFn:()=>p5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),u.jsx(Ze,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:u.jsx(wc,{className:ge("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(E1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:i?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:h.map(m=>u.jsx(K5,{table:m,onInsertText:a},m.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function X5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function F5(){var G,te,ue,ce;const{binding:n}=cr(),a=n||"",[r,i]=g.useState("query"),[s,c]=g.useState(""),[h,m]=g.useState(null),[p,v]=g.useState(null),[y,b]=g.useState(null),[w,j]=g.useState(0),E=50,S=g.useCallback(I=>{c(ie=>ie+I)},[]),C=Xh({mutationFn:I=>f5(a,I),onSuccess:I=>{m(I),v(null)},onError:I=>{v(I instanceof Error?I.message:"Failed to execute query"),m(null)}}),_=()=>{s.trim()&&C.mutate(s)},R=Mt({queryKey:["tables",a],queryFn:()=>h5(a),staleTime:0,gcTime:0,enabled:!!a}),T=Mt({queryKey:["tableData",a,y,E,w],queryFn:()=>m5(a,y,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!y}),D=((G=R.data)==null?void 0:G.tables)||[],L=((te=T.data)==null?void 0:te.data)||[],$=((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 u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(oj,{value:r,onValueChange:i,children:[u.jsxs(sj,{children:[u.jsx($o,{value:"query",children:"SQL Editor"}),u.jsx($o,{value:"tables",children:"Tables"})]}),u.jsx(Xo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"SQL Query"}),u.jsx(jn,{children:"Execute SQL queries against your database"})]}),u.jsxs(Tt,{className:"space-y-4",children:[u.jsx("textarea",{value:s,onChange:I=>c(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"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),u.jsxs(Ze,{onClick:_,disabled:C.isPending||!s.trim(),children:[u.jsx(Vx,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(Rt,{className:"border-destructive/50",children:u.jsx(Tt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(l1,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx($5,{bindingName:a,onInsertText:S})})]})}),u.jsx(Xo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(Rt,{className:"md:col-span-1",children:[u.jsxs(Ut,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Ht,{className:"text-base",children:"Tables"}),u.jsx(Ze,{variant:"ghost",size:"icon",onClick:()=>R.refetch(),className:"h-8 w-8",children:u.jsx(wc,{className:"h-4 w-4"})})]}),u.jsx(Tt,{children:R.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(I=>u.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:[u.jsx(Sc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),u.jsxs(Rt,{className:"md:col-span-3",children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:y||"Select a Table"}),y&&u.jsxs(jn,{children:[q," total rows"]})]}),u.jsx(Tt,{children:y?T.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsx(Ft,{children:$.map(I=>u.jsx(at,{className:"font-mono",children:I},I))})}),u.jsx(mr,{children:L.map((I,ie)=>u.jsx(Ft,{children:$.map(re=>u.jsx(lt,{className:"font-mono text-sm",children:X5(I[re])},re))},ie))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," -"," ",Math.min(w+E,q)," of ",q]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ze,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[u.jsx(os,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ze,{variant:"outline",size:"sm",disabled:w+E>=q,onClick:()=>j(w+E),children:["Next",u.jsx(dr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const Z5={PENDING:{variant:"default",icon:u.jsx(ss,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(zn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(bc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(xc,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(D_,{className:"h-3 w-3"}),label:"Cancelled"}},P5={PENDING:{variant:"default",icon:u.jsx(ss,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(zn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(bc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(xc,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(H_,{className:"h-3 w-3"}),label:"Dead Letter"}};function Yj({status:n}){const a=Z5[n];return a?u.jsx(nc,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(nc,{children:n})}function J5({status:n}){const a=P5[n];return a?u.jsx(nc,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(nc,{children:n})}function W5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Xl,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(ss,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Xl,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(zn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Xl,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(bc,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Xl,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(xc,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Xl,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(aR,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function I5({messages:n,isLoading:a}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Recent Messages"}),u.jsx(jn,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(Tt,{children:a?u.jsx(Yi,{}):n!=null&&n.length?u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsxs(Ft,{children:[u.jsx(at,{children:"ID"}),u.jsx(at,{children:"Status"}),u.jsx(at,{children:"Payload"}),u.jsx(at,{children:"Attempt"}),u.jsx(at,{children:"Created"})]})}),u.jsx(mr,{children:n.map(r=>u.jsxs(Ft,{children:[u.jsx(lt,{children:u.jsx(Ap,{id:r.id})}),u.jsx(lt,{children:u.jsx(J5,{status:r.status})}),u.jsx(lt,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(lt,{children:r.attempt}),u.jsx(lt,{children:u.jsx(nr,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(yr,{children:"No messages in this queue"})})]})}function ez(){const{binding:n}=cr(),a=n||"",{data:r,isLoading:i}=Mt({queryKey:["queueMetrics",a],queryFn:()=>y5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=Mt({queryKey:["queueMessages",a],queryFn:()=>b5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(ms,{title:`Queue: ${a}`}),u.jsx(W5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(I5,{messages:s==null?void 0:s.messages,isLoading:c})]})})}function tz({status:n}){switch(n){case"COMPLETED":return u.jsx(bc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(zn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(xc,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(ss,{className:"h-5 w-5 text-gray-400"})}}function nz(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 az({steps:n}){if(n.length===0)return u.jsx(yr,{children:"No steps recorded for this execution"});const a=n.reduce((r,i)=>r+(i.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[a>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:Ko(a)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const s=r.durationMs?r.durationMs/a*100:0;return u.jsx("div",{className:ge(nz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${Ko(r.durationMs)}`},r.id)})})]}),u.jsx("div",{className:"relative",children:n.map((r,i)=>u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&u.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")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:u.jsx(tz,{status:r.status})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-medium",children:r.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:Ko(r.durationMs)})]}),r.errorMessage&&u.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"&&u.jsxs("details",{className:"mt-2",children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(nr,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function lz(){const{binding:n,executionId:a}=cr(),r=n||"",i=a||"",{data:s,isLoading:c}=Mt({queryKey:["workflowExecution",r,i],queryFn:()=>w5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(Sn,{to:`/workflows/${r}`,children:u.jsxs(Ze,{variant:"ghost",size:"sm",children:[u.jsx(A_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Ap,{id:i})]})]}),c?u.jsx(Yi,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(Rt,{children:[u.jsx(Ut,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Ht,{children:"Execution Details"}),u.jsx(jn,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(nr,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Yj,{status:h.status})]})}),u.jsxs(Tt,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:Ko(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(nr,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(nr,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.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})]})]}),u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Steps"}),u.jsx(jn,{children:"Workflow step execution timeline"})]}),u.jsx(Tt,{children:u.jsx(az,{steps:m})})]})]}):u.jsx(yr,{children:"Execution not found"})]})})}function rz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(Rt,{children:[u.jsxs(Ut,{children:[u.jsx(Ht,{children:"Recent Executions"}),u.jsx(jn,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(Tt,{children:a?u.jsx(Yi,{}):n!=null&&n.length?u.jsxs(fr,{children:[u.jsx(hr,{children:u.jsxs(Ft,{children:[u.jsx(at,{children:"ID"}),u.jsx(at,{children:"Status"}),u.jsx(at,{children:"Steps"}),u.jsx(at,{children:"Duration"}),u.jsx(at,{children:"Started"}),u.jsx(at,{})]})}),u.jsx(mr,{children:n.map(i=>u.jsxs(Ft,{children:[u.jsx(lt,{children:u.jsx(Ap,{id:i.id})}),u.jsx(lt,{children:u.jsx(Yj,{status:i.status})}),u.jsx(lt,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(lt,{className:"text-sm",children:Ko(i.durationMs)}),u.jsx(lt,{children:i.startedAt?u.jsx(nr,{timestamp:i.startedAt}):"-"}),u.jsx(lt,{children:u.jsx(Sn,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(yr,{children:"No executions for this workflow"})})]})}function iz(){const{binding:n}=cr(),a=n||"",{data:r,isLoading:i}=Mt({queryKey:["workflowExecutions",a],queryFn:()=>x5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(ms,{title:`Workflow: ${a}`}),u.jsx(rz,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:a})]})})}function oz(){const n=Da(),{data:a,isLoading:r}=Mt({queryKey:["config"],queryFn:Mp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.cache?Object.keys(a.cache):[],h=a!=null&&a.state?Object.keys(a.state):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(Sn,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(zn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(v=>{const y=n.pathname===`/db/${v}`;return u.jsx(Sn,{to:`/db/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx(V_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(Sn,{to:"/auth",children:u.jsxs(Ze,{variant:n.pathname==="/auth"?"secondary":"ghost",className:ge("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(dR,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Yx,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:s.map(v=>{const y=n.pathname===`/queues/${v}`;return u.jsx(Sn,{to:`/queues/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx(W_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cache"}),u.jsx("div",{className:"space-y-1",children:c.map(v=>{const y=n.pathname===`/cache/${v}`;return u.jsx(Sn,{to:`/cache/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx(P_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:h.map(v=>{const y=n.pathname===`/state/${v}`;return u.jsx(Sn,{to:`/state/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx(T_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(v=>{const y=n.pathname===`/fs/${v}`;return u.jsx(Sn,{to:`/fs/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx($_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(v=>{const y=n.pathname.startsWith(`/workflows/${v}`);return u.jsx(Sn,{to:`/workflows/${v}`,children:u.jsxs(Ze,{variant:y?"secondary":"ghost",className:ge("w-full justify-start",y&&"bg-muted"),children:[u.jsx(F_,{className:"mr-2 h-4 w-4"}),v]})},v)})})]}),i.length===0&&s.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function sz(){const{data:n,isLoading:a}=Mt({queryKey:["config"],queryFn:Mp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.cache?Object.keys(n.cache):[],c=n.state?Object.keys(n.state):[],h=n.fs?Object.keys(n.fs):[],m=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(Gl,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(Gl,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(Gl,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return u.jsx(Gl,{to:`/cache/${s[0]}`,replace:!0});if(c.length>0)return u.jsx(Gl,{to:`/state/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(Gl,{to:`/fs/${h[0]}`,replace:!0});if(m.length>0)return u.jsx(Gl,{to:`/workflows/${m[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(zn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function uz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(oz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(VC,{children:[u.jsx($n,{path:"/",element:u.jsx(sz,{})}),u.jsx($n,{path:"/db/:binding",element:u.jsx(F5,{})}),u.jsx($n,{path:"/auth",element:u.jsx(z5,{})}),u.jsx($n,{path:"/queues/:binding",element:u.jsx(ez,{})}),u.jsx($n,{path:"/cache/:binding",element:u.jsx(H5,{})}),u.jsx($n,{path:"/state/:binding",element:u.jsx(G5,{})}),u.jsx($n,{path:"/fs/:binding",element:u.jsx(Q5,{})}),u.jsx($n,{path:"/workflows/:binding",element:u.jsx(iz,{})}),u.jsx($n,{path:"/workflows/:binding/:executionId",element:u.jsx(lz,{})})]})})})]})}function Gj(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}Gj();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Gj);const cz=new MN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});IN.createRoot(document.getElementById("root")).render(u.jsx(g.StrictMode,{children:u.jsx(LN,{client:cz,children:u.jsx(m_,{children:u.jsx(uz,{})})})}));