@meetploy/cli 1.11.4 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-dist/assets/main-BNiZvT9K.css +1 -0
- package/dist/dashboard-dist/assets/main-CYxpKFOS.js +304 -0
- package/dist/dashboard-dist/index.html +2 -2
- package/dist/dev.js +6 -2
- package/dist/index.js +76 -38
- package/package.json +1 -1
- package/dist/dashboard-dist/assets/main-B1TTAu_I.js +0 -166
- package/dist/dashboard-dist/assets/main-BXQv-ae0.css +0 -1
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
var y0=n=>{throw TypeError(n)};var Gd=(n,l,r)=>l.has(n)||y0("Cannot "+r);var D=(n,l,r)=>(Gd(n,l,"read from private field"),r?r.call(n):l.get(n)),xe=(n,l,r)=>l.has(n)?y0("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,r),se=(n,l,r,i)=>(Gd(n,l,"write to private field"),i?i.call(n,r):l.set(n,r),r),Te=(n,l,r)=>(Gd(n,l,"access private method"),r);var vu=(n,l,r,i)=>({set _(s){se(n,l,s,r)},get _(){return D(n,l,i)}});function sj(n,l){for(var r=0;r<l.length;r++){const i=l[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const 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 l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).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 Jb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vd={exports:{}},Co={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var b0;function uj(){if(b0)return Co;b0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(i,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+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:d,ref:s!==void 0?s:null,props:c}}return Co.Fragment=l,Co.jsx=r,Co.jsxs=r,Co}var x0;function cj(){return x0||(x0=1,Vd.exports=uj()),Vd.exports}var h=cj(),yi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fl=typeof window>"u"||"Deno"in globalThis;function mn(){}function fj(n,l){return typeof n=="function"?n(l):n}function mh(n){return typeof n=="number"&&n>=0&&n!==1/0}function Pb(n,l){return Math.max(n+(l||0)-Date.now(),0)}function Fr(n,l){return typeof n=="function"?n(l):n}function Tn(n,l){return typeof n=="function"?n(l):n}function w0(n,l){const{type:r="all",exact:i,fetchStatus:s,predicate:c,queryKey:d,stale:m}=n;if(d){if(i){if(l.queryHash!==em(d,l.options))return!1}else if(!Oo(l.queryKey,d))return!1}if(r!=="all"){const p=l.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||s&&s!==l.state.fetchStatus||c&&!c(l))}function S0(n,l){const{exact:r,status:i,predicate:s,mutationKey:c}=n;if(c){if(!l.options.mutationKey)return!1;if(r){if(Jl(l.options.mutationKey)!==Jl(c))return!1}else if(!Oo(l.options.mutationKey,c))return!1}return!(i&&l.state.status!==i||s&&!s(l))}function em(n,l){return((l==null?void 0:l.queryKeyHashFn)||Jl)(n)}function Jl(n){return JSON.stringify(n,(l,r)=>ph(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Oo(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(r=>Oo(n[r],l[r])):!1}function Wb(n,l){if(n===l)return n;const r=E0(n)&&E0(l);if(r||ph(n)&&ph(l)){const i=r?n:Object.keys(n),s=i.length,c=r?l:Object.keys(l),d=c.length,m=r?[]:{};let p=0;for(let g=0;g<d;g++){const y=r?g:c[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&l[y]===void 0?(m[y]=void 0,p++):(m[y]=Wb(n[y],l[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===d&&p===s?n:m}return l}function ku(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const r in n)if(n[r]!==l[r])return!1;return!0}function E0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ph(n){if(!C0(n))return!1;const l=n.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!C0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function C0(n){return Object.prototype.toString.call(n)==="[object Object]"}function dj(n){return new Promise(l=>{setTimeout(l,n)})}function vh(n,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,l):r.structuralSharing!==!1?Wb(n,l):l}function hj(n,l,r=0){const i=[...n,l];return r&&i.length>r?i.slice(1):i}function mj(n,l,r=0){const i=[l,...n];return r&&i.length>r?i.slice(0,-1):i}var tm=Symbol();function Ib(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===tm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Yl,rl,Ir,Bb,pj=(Bb=class extends yi{constructor(){super();xe(this,Yl);xe(this,rl);xe(this,Ir);se(this,Ir,l=>{if(!Fl&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){D(this,rl)||this.setEventListener(D(this,Ir))}onUnsubscribe(){var l;this.hasListeners()||((l=D(this,rl))==null||l.call(this),se(this,rl,void 0))}setEventListener(l){var r;se(this,Ir,l),(r=D(this,rl))==null||r.call(this),se(this,rl,l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(l){D(this,Yl)!==l&&(se(this,Yl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof D(this,Yl)=="boolean"?D(this,Yl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Yl=new WeakMap,rl=new WeakMap,Ir=new WeakMap,Bb),nm=new pj,ei,il,ti,Yb,vj=(Yb=class extends yi{constructor(){super();xe(this,ei,!0);xe(this,il);xe(this,ti);se(this,ti,l=>{if(!Fl&&window.addEventListener){const r=()=>l(!0),i=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){D(this,il)||this.setEventListener(D(this,ti))}onUnsubscribe(){var l;this.hasListeners()||((l=D(this,il))==null||l.call(this),se(this,il,void 0))}setEventListener(l){var r;se(this,ti,l),(r=D(this,il))==null||r.call(this),se(this,il,l(this.setOnline.bind(this)))}setOnline(l){D(this,ei)!==l&&(se(this,ei,l),this.listeners.forEach(i=>{i(l)}))}isOnline(){return D(this,ei)}},ei=new WeakMap,il=new WeakMap,ti=new WeakMap,Yb),zu=new vj;function gh(){let n,l;const r=new Promise((s,c)=>{n=s,l=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}),l(s)},r}function gj(n){return Math.min(1e3*2**n,3e4)}function ex(n){return(n??"online")==="online"?zu.isOnline():!0}var tx=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Kd(n){return n instanceof tx}function nx(n){let l=!1,r=0,i=!1,s;const c=gh(),d=S=>{var N;i||(w(new tx(S)),(N=n.abort)==null||N.call(n))},m=()=>{l=!0},p=()=>{l=!1},g=()=>nm.isFocused()&&(n.networkMode==="always"||zu.isOnline())&&n.canRun(),y=()=>ex(n.networkMode)&&n.canRun(),b=S=>{var N;i||(i=!0,(N=n.onSuccess)==null||N.call(n,S),s==null||s(),c.resolve(S))},w=S=>{var N;i||(i=!0,(N=n.onError)==null||N.call(n,S),s==null||s(),c.reject(S))},E=()=>new Promise(S=>{var N;s=R=>{(i||g())&&S(R)},(N=n.onPause)==null||N.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),j=()=>{if(i)return;let S;const N=r===0?n.initialPromise:void 0;try{S=N??n.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(b).catch(R=>{var $;if(i)return;const _=n.retry??(Fl?0:3),T=n.retryDelay??gj,k=typeof T=="function"?T(r,R):T,L=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,R);if(l||!L){w(R);return}r++,($=n.onFail)==null||$.call(n,r,R),dj(k).then(()=>g()?void 0:E()).then(()=>{l?w(R):j()})})};return{promise:c,cancel:d,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?j():E().then(j),c)}}var yj=n=>setTimeout(n,0);function bj(){let n=[],l=0,r=m=>{m()},i=m=>{m()},s=yj;const c=m=>{l?n.push(m):s(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;l++;try{p=m()}finally{l--,l||d()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var pt=bj(),Ql,Qb,ax=(Qb=class{constructor(){xe(this,Ql)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mh(this.gcTime)&&se(this,Ql,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Fl?1/0:300*1e3))}clearGcTimeout(){D(this,Ql)&&(clearTimeout(D(this,Ql)),se(this,Ql,void 0))}},Ql=new WeakMap,Qb),ni,ai,hn,Gl,Nt,qo,Vl,Rn,ya,Gb,xj=(Gb=class extends ax{constructor(l){super();xe(this,Rn);xe(this,ni);xe(this,ai);xe(this,hn);xe(this,Gl);xe(this,Nt);xe(this,qo);xe(this,Vl);se(this,Vl,!1),se(this,qo,l.defaultOptions),this.setOptions(l.options),this.observers=[],se(this,Gl,l.client),se(this,hn,D(this,Gl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,se(this,ni,wj(this.options)),this.state=l.state??D(this,ni),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=D(this,Nt))==null?void 0:l.promise}setOptions(l){this.options={...D(this,qo),...l},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,hn).remove(this)}setData(l,r){const i=vh(this.state.data,l,this.options);return Te(this,Rn,ya).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(l,r){Te(this,Rn,ya).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var i,s;const r=(i=D(this,Nt))==null?void 0:i.promise;return(s=D(this,Nt))==null||s.cancel(l),r?r.then(mn).catch(mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,ni))}isActive(){return this.observers.some(l=>Tn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(l=0){return this.state.isInvalidated||this.state.data===void 0||!Pb(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(i=>i.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=D(this,Nt))==null||r.continue()}onOnline(){var r;const l=this.observers.find(i=>i.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=D(this,Nt))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),D(this,hn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(D(this,Nt)&&(D(this,Vl)?D(this,Nt).cancel({revert:!0}):D(this,Nt).cancelRetry()),this.scheduleGc()),D(this,hn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Rn,ya).call(this,{type:"invalidate"})}fetch(l,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(D(this,Nt))return D(this,Nt).continueRetry(),D(this,Nt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const b=this.observers.find(w=>w.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(se(this,Vl,!0),i.signal)})},c=()=>{const b=Ib(this.options,r),w={client:D(this,Gl),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,Vl,!1),this.options.persister?this.options.persister(b,w,this):b(w)},d={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,Gl),state:this.state,fetchFn:c};s(d),(p=this.options.behavior)==null||p.onFetch(d,this),se(this,ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=d.fetchOptions)==null?void 0:g.meta))&&Te(this,Rn,ya).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,E,j,S;Kd(b)&&b.silent||Te(this,Rn,ya).call(this,{type:"error",error:b}),Kd(b)||((E=(w=D(this,hn).config).onError)==null||E.call(w,b,this),(S=(j=D(this,hn).config).onSettled)==null||S.call(j,this.state.data,b,this)),this.scheduleGc()};return se(this,Nt,nx({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var w,E,j,S;if(b===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(N){m(N);return}(E=(w=D(this,hn).config).onSuccess)==null||E.call(w,b,this),(S=(j=D(this,hn).config).onSettled)==null||S.call(j,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,Rn,ya).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,Rn,ya).call(this,{type:"pause"})},onContinue:()=>{Te(this,Rn,ya).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0})),D(this,Nt).start()}},ni=new WeakMap,ai=new WeakMap,hn=new WeakMap,Gl=new WeakMap,Nt=new WeakMap,qo=new WeakMap,Vl=new WeakMap,Rn=new WeakSet,ya=function(l){const r=i=>{switch(l.type){case"failed":return{...i,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...lx(i.data,this.options),fetchMeta:l.meta??null};case"success":return{...i,data:l.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:l.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=l.error;return Kd(s)&&s.revert&&D(this,ai)?{...D(this,ai),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...l.state}}};this.state=r(this.state),pt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),D(this,hn).notify({query:this,type:"updated",action:l})})},Gb);function lx(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ex(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function wj(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,r=l!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Bn,Vb,Sj=(Vb=class extends yi{constructor(l={}){super();xe(this,Bn);this.config=l,se(this,Bn,new Map)}build(l,r,i){const s=r.queryKey,c=r.queryHash??em(s,r);let d=this.get(c);return d||(d=new xj({client:l,queryKey:s,queryHash:c,options:l.defaultQueryOptions(r),state:i,defaultOptions:l.getQueryDefaults(s)}),this.add(d)),d}add(l){D(this,Bn).has(l.queryHash)||(D(this,Bn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=D(this,Bn).get(l.queryHash);r&&(l.destroy(),r===l&&D(this,Bn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return D(this,Bn).get(l)}getAll(){return[...D(this,Bn).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(i=>w0(r,i))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(i=>w0(l,i)):r}notify(l){pt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Bn=new WeakMap,Vb),Yn,_t,Kl,Qn,al,Kb,Ej=(Kb=class extends ax{constructor(l){super();xe(this,Qn);xe(this,Yn);xe(this,_t);xe(this,Kl);this.mutationId=l.mutationId,se(this,_t,l.mutationCache),se(this,Yn,[]),this.state=l.state||rx(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){D(this,Yn).includes(l)||(D(this,Yn).push(l),this.clearGcTimeout(),D(this,_t).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){se(this,Yn,D(this,Yn).filter(r=>r!==l)),this.scheduleGc(),D(this,_t).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){D(this,Yn).length||(this.state.status==="pending"?this.scheduleGc():D(this,_t).remove(this))}continue(){var l;return((l=D(this,Kl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var c,d,m,p,g,y,b,w,E,j,S,N,R,_,T,k,L,$,Y,H;const r=()=>{Te(this,Qn,al).call(this,{type:"continue"})};se(this,Kl,nx({fn:()=>this.options.mutationFn?this.options.mutationFn(l):Promise.reject(new Error("No mutationFn found")),onFail:(G,le)=>{Te(this,Qn,al).call(this,{type:"failed",failureCount:G,error:le})},onPause:()=>{Te(this,Qn,al).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,_t).canRun(this)}));const i=this.state.status==="pending",s=!D(this,Kl).canStart();try{if(i)r();else{Te(this,Qn,al).call(this,{type:"pending",variables:l,isPaused:s}),await((d=(c=D(this,_t).config).onMutate)==null?void 0:d.call(c,l,this));const le=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,l));le!==this.state.context&&Te(this,Qn,al).call(this,{type:"pending",context:le,variables:l,isPaused:s})}const G=await D(this,Kl).start();return await((y=(g=D(this,_t).config).onSuccess)==null?void 0:y.call(g,G,l,this.state.context,this)),await((w=(b=this.options).onSuccess)==null?void 0:w.call(b,G,l,this.state.context)),await((j=(E=D(this,_t).config).onSettled)==null?void 0:j.call(E,G,null,this.state.variables,this.state.context,this)),await((N=(S=this.options).onSettled)==null?void 0:N.call(S,G,null,l,this.state.context)),Te(this,Qn,al).call(this,{type:"success",data:G}),G}catch(G){try{throw await((_=(R=D(this,_t).config).onError)==null?void 0:_.call(R,G,l,this.state.context,this)),await((k=(T=this.options).onError)==null?void 0:k.call(T,G,l,this.state.context)),await(($=(L=D(this,_t).config).onSettled)==null?void 0:$.call(L,void 0,G,this.state.variables,this.state.context,this)),await((H=(Y=this.options).onSettled)==null?void 0:H.call(Y,void 0,G,l,this.state.context)),G}finally{Te(this,Qn,al).call(this,{type:"error",error:G})}}finally{D(this,_t).runNext(this)}}},Yn=new WeakMap,_t=new WeakMap,Kl=new WeakMap,Qn=new WeakSet,al=function(l){const r=i=>{switch(l.type){case"failed":return{...i,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...i,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:l.error,failureCount:i.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pt.batch(()=>{D(this,Yn).forEach(i=>{i.onMutationUpdate(l)}),D(this,_t).notify({mutation:this,type:"updated",action:l})})},Kb);function rx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ba,_n,Bo,Xb,Cj=(Xb=class extends yi{constructor(l={}){super();xe(this,ba);xe(this,_n);xe(this,Bo);this.config=l,se(this,ba,new Set),se(this,_n,new Map),se(this,Bo,0)}build(l,r,i){const s=new Ej({mutationCache:this,mutationId:++vu(this,Bo)._,options:l.defaultMutationOptions(r),state:i});return this.add(s),s}add(l){D(this,ba).add(l);const r=gu(l);if(typeof r=="string"){const i=D(this,_n).get(r);i?i.push(l):D(this,_n).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(D(this,ba).delete(l)){const r=gu(l);if(typeof r=="string"){const i=D(this,_n).get(r);if(i)if(i.length>1){const s=i.indexOf(l);s!==-1&&i.splice(s,1)}else i[0]===l&&D(this,_n).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=gu(l);if(typeof r=="string"){const i=D(this,_n).get(r),s=i==null?void 0:i.find(c=>c.state.status==="pending");return!s||s===l}else return!0}runNext(l){var i;const r=gu(l);if(typeof r=="string"){const s=(i=D(this,_n).get(r))==null?void 0:i.find(c=>c!==l&&c.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pt.batch(()=>{D(this,ba).forEach(l=>{this.notify({type:"removed",mutation:l})}),D(this,ba).clear(),D(this,_n).clear()})}getAll(){return Array.from(D(this,ba))}find(l){const r={exact:!0,...l};return this.getAll().find(i=>S0(r,i))}findAll(l={}){return this.getAll().filter(r=>S0(l,r))}notify(l){pt.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return pt.batch(()=>Promise.all(l.map(r=>r.continue().catch(mn))))}},ba=new WeakMap,_n=new WeakMap,Bo=new WeakMap,Xb);function gu(n){var l;return(l=n.options.scope)==null?void 0:l.id}function j0(n){return{onFetch:(l,r)=>{var y,b,w,E,j;const i=l.options,s=(w=(b=(y=l.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,c=((E=l.state.data)==null?void 0:E.pages)||[],d=((j=l.state.data)==null?void 0:j.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const N=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(l.signal.aborted?S=!0:l.signal.addEventListener("abort",()=>{S=!0}),l.signal)})},R=Ib(l.options,l.fetchOptions),_=async(T,k,L)=>{if(S)return Promise.reject();if(k==null&&T.pages.length)return Promise.resolve(T);const $={client:l.client,queryKey:l.queryKey,pageParam:k,direction:L?"backward":"forward",meta:l.options.meta};N($);const Y=await R($),{maxPages:H}=l.options,G=L?mj:hj;return{pages:G(T.pages,Y,H),pageParams:G(T.pageParams,k,H)}};if(s&&c.length){const T=s==="backward",k=T?jj:N0,L={pages:c,pageParams:d},$=k(i,L);m=await _(L,$,T)}else{const T=n??c.length;do{const k=p===0?d[0]??i.initialPageParam:N0(i,m);if(p>0&&k==null)break;m=await _(m,k),p++}while(p<T)}return m};l.options.persister?l.fetchFn=()=>{var S,N;return(N=(S=l.options).persister)==null?void 0:N.call(S,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=g}}}function N0(n,{pages:l,pageParams:r}){const i=l.length-1;return l.length>0?n.getNextPageParam(l[i],l,r[i],r):void 0}function jj(n,{pages:l,pageParams:r}){var i;return l.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,l[0],l,r[0],r):void 0}var at,ol,sl,li,ri,ul,ii,oi,$b,Nj=($b=class{constructor(n={}){xe(this,at);xe(this,ol);xe(this,sl);xe(this,li);xe(this,ri);xe(this,ul);xe(this,ii);xe(this,oi);se(this,at,n.queryCache||new Sj),se(this,ol,n.mutationCache||new Cj),se(this,sl,n.defaultOptions||{}),se(this,li,new Map),se(this,ri,new Map),se(this,ul,0)}mount(){vu(this,ul)._++,D(this,ul)===1&&(se(this,ii,nm.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onFocus())})),se(this,oi,zu.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,at).onOnline())})))}unmount(){var n,l;vu(this,ul)._--,D(this,ul)===0&&((n=D(this,ii))==null||n.call(this),se(this,ii,void 0),(l=D(this,oi))==null||l.call(this),se(this,oi,void 0))}isFetching(n){return D(this,at).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return D(this,ol).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),r=D(this,at).build(this,l),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Fr(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(i))}getQueriesData(n){return D(this,at).findAll(n).map(({queryKey:l,state:r})=>{const i=r.data;return[l,i]})}setQueryData(n,l,r){const i=this.defaultQueryOptions({queryKey:n}),s=D(this,at).get(i.queryHash),c=s==null?void 0:s.state.data,d=fj(l,c);if(d!==void 0)return D(this,at).build(this,i).setData(d,{...r,manual:!0})}setQueriesData(n,l,r){return pt.batch(()=>D(this,at).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,l,r)]))}getQueryState(n){var r;const l=this.defaultQueryOptions({queryKey:n});return(r=D(this,at).get(l.queryHash))==null?void 0:r.state}removeQueries(n){const l=D(this,at);pt.batch(()=>{l.findAll(n).forEach(r=>{l.remove(r)})})}resetQueries(n,l){const r=D(this,at);return pt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const r={revert:!0,...l},i=pt.batch(()=>D(this,at).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(mn).catch(mn)}invalidateQueries(n,l={}){return pt.batch(()=>(D(this,at).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},l)))}refetchQueries(n,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},i=pt.batch(()=>D(this,at).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(mn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(mn)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const r=D(this,at).build(this,l);return r.isStaleByTime(Fr(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(mn).catch(mn)}fetchInfiniteQuery(n){return n.behavior=j0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(mn).catch(mn)}ensureInfiniteQueryData(n){return n.behavior=j0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return zu.isOnline()?D(this,ol).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,at)}getMutationCache(){return D(this,ol)}getDefaultOptions(){return D(this,sl)}setDefaultOptions(n){se(this,sl,n)}setQueryDefaults(n,l){D(this,li).set(Jl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...D(this,li).values()],r={};return l.forEach(i=>{Oo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,l){D(this,ri).set(Jl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...D(this,ri).values()],r={};return l.forEach(i=>{Oo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const l={...D(this,sl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=em(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===tm&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...D(this,sl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){D(this,at).clear(),D(this,ol).clear()}},at=new WeakMap,ol=new WeakMap,sl=new WeakMap,li=new WeakMap,ri=new WeakMap,ul=new WeakMap,ii=new WeakMap,oi=new WeakMap,$b),Ht,Le,Yo,Tt,Xl,si,cl,fl,Qo,ui,ci,$l,Zl,dl,fi,Ye,To,yh,bh,xh,wh,Sh,Eh,Ch,ix,Zb,Rj=(Zb=class extends yi{constructor(l,r){super();xe(this,Ye);xe(this,Ht);xe(this,Le);xe(this,Yo);xe(this,Tt);xe(this,Xl);xe(this,si);xe(this,cl);xe(this,fl);xe(this,Qo);xe(this,ui);xe(this,ci);xe(this,$l);xe(this,Zl);xe(this,dl);xe(this,fi,new Set);this.options=r,se(this,Ht,l),se(this,fl,null),se(this,cl,gh()),this.options.experimental_prefetchInRender||D(this,cl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Le).addObserver(this),R0(D(this,Le),this.options)?Te(this,Ye,To).call(this):this.updateResult(),Te(this,Ye,wh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jh(D(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jh(D(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Ye,Sh).call(this),Te(this,Ye,Eh).call(this),D(this,Le).removeObserver(this)}setOptions(l){const r=this.options,i=D(this,Le);if(this.options=D(this,Ht).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,D(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Ye,Ch).call(this),D(this,Le).setOptions(this.options),r._defaulted&&!ku(this.options,r)&&D(this,Ht).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Le),observer:this});const s=this.hasListeners();s&&_0(D(this,Le),i,this.options,r)&&Te(this,Ye,To).call(this),this.updateResult(),s&&(D(this,Le)!==i||Tn(this.options.enabled,D(this,Le))!==Tn(r.enabled,D(this,Le))||Fr(this.options.staleTime,D(this,Le))!==Fr(r.staleTime,D(this,Le)))&&Te(this,Ye,yh).call(this);const c=Te(this,Ye,bh).call(this);s&&(D(this,Le)!==i||Tn(this.options.enabled,D(this,Le))!==Tn(r.enabled,D(this,Le))||c!==D(this,dl))&&Te(this,Ye,xh).call(this,c)}getOptimisticResult(l){const r=D(this,Ht).getQueryCache().build(D(this,Ht),l),i=this.createResult(r,l);return Tj(this,i)&&(se(this,Tt,i),se(this,si,this.options),se(this,Xl,D(this,Le).state)),i}getCurrentResult(){return D(this,Tt)}trackResult(l,r){const i={};return Object.keys(l).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),l[s])})}),i}trackProp(l){D(this,fi).add(l)}getCurrentQuery(){return D(this,Le)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=D(this,Ht).defaultQueryOptions(l),i=D(this,Ht).getQueryCache().build(D(this,Ht),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(l){return Te(this,Ye,To).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Tt)))}createResult(l,r){var G;const i=D(this,Le),s=this.options,c=D(this,Tt),d=D(this,Xl),m=D(this,si),g=l!==i?l.state:D(this,Yo),{state:y}=l;let b={...y},w=!1,E;if(r._optimisticResults){const le=this.hasListeners(),me=!le&&R0(l,r),fe=le&&_0(l,i,r,s);(me||fe)&&(b={...b,...lx(y.data,l.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:j,errorUpdatedAt:S,status:N}=b;E=b.data;let R=!1;if(r.placeholderData!==void 0&&E===void 0&&N==="pending"){let le;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(le=c.data,R=!0):le=typeof r.placeholderData=="function"?r.placeholderData((G=D(this,ci))==null?void 0:G.state.data,D(this,ci)):r.placeholderData,le!==void 0&&(N="success",E=vh(c==null?void 0:c.data,le,r),w=!0)}if(r.select&&E!==void 0&&!R)if(c&&E===(d==null?void 0:d.data)&&r.select===D(this,Qo))E=D(this,ui);else try{se(this,Qo,r.select),E=r.select(E),E=vh(c==null?void 0:c.data,E,r),se(this,ui,E),se(this,fl,null)}catch(le){se(this,fl,le)}D(this,fl)&&(j=D(this,fl),E=D(this,ui),S=Date.now(),N="error");const _=b.fetchStatus==="fetching",T=N==="pending",k=N==="error",L=T&&_,$=E!==void 0,H={status:N,fetchStatus:b.fetchStatus,isPending:T,isSuccess:N==="success",isError:k,isInitialLoading:L,isLoading:L,data:E,dataUpdatedAt:b.dataUpdatedAt,error:j,errorUpdatedAt:S,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:k&&!$,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:k&&$,isStale:am(l,r),refetch:this.refetch,promise:D(this,cl)};if(this.options.experimental_prefetchInRender){const le=W=>{H.status==="error"?W.reject(H.error):H.data!==void 0&&W.resolve(H.data)},me=()=>{const W=se(this,cl,H.promise=gh());le(W)},fe=D(this,cl);switch(fe.status){case"pending":l.queryHash===i.queryHash&&le(fe);break;case"fulfilled":(H.status==="error"||H.data!==fe.value)&&me();break;case"rejected":(H.status!=="error"||H.error!==fe.reason)&&me();break}}return H}updateResult(){const l=D(this,Tt),r=this.createResult(D(this,Le),this.options);if(se(this,Xl,D(this,Le).state),se(this,si,this.options),D(this,Xl).data!==void 0&&se(this,ci,D(this,Le)),ku(r,l))return;se(this,Tt,r);const i=()=>{if(!l)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!D(this,fi).size)return!0;const d=new Set(c??D(this,fi));return this.options.throwOnError&&d.add("error"),Object.keys(D(this,Tt)).some(m=>{const p=m;return D(this,Tt)[p]!==l[p]&&d.has(p)})};Te(this,Ye,ix).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Ye,wh).call(this)}},Ht=new WeakMap,Le=new WeakMap,Yo=new WeakMap,Tt=new WeakMap,Xl=new WeakMap,si=new WeakMap,cl=new WeakMap,fl=new WeakMap,Qo=new WeakMap,ui=new WeakMap,ci=new WeakMap,$l=new WeakMap,Zl=new WeakMap,dl=new WeakMap,fi=new WeakMap,Ye=new WeakSet,To=function(l){Te(this,Ye,Ch).call(this);let r=D(this,Le).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(mn)),r},yh=function(){Te(this,Ye,Sh).call(this);const l=Fr(this.options.staleTime,D(this,Le));if(Fl||D(this,Tt).isStale||!mh(l))return;const i=Pb(D(this,Tt).dataUpdatedAt,l)+1;se(this,$l,setTimeout(()=>{D(this,Tt).isStale||this.updateResult()},i))},bh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Le)):this.options.refetchInterval)??!1},xh=function(l){Te(this,Ye,Eh).call(this),se(this,dl,l),!(Fl||Tn(this.options.enabled,D(this,Le))===!1||!mh(D(this,dl))||D(this,dl)===0)&&se(this,Zl,setInterval(()=>{(this.options.refetchIntervalInBackground||nm.isFocused())&&Te(this,Ye,To).call(this)},D(this,dl)))},wh=function(){Te(this,Ye,yh).call(this),Te(this,Ye,xh).call(this,Te(this,Ye,bh).call(this))},Sh=function(){D(this,$l)&&(clearTimeout(D(this,$l)),se(this,$l,void 0))},Eh=function(){D(this,Zl)&&(clearInterval(D(this,Zl)),se(this,Zl,void 0))},Ch=function(){const l=D(this,Ht).getQueryCache().build(D(this,Ht),this.options);if(l===D(this,Le))return;const r=D(this,Le);se(this,Le,l),se(this,Yo,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},ix=function(l){pt.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(D(this,Tt))}),D(this,Ht).getQueryCache().notify({query:D(this,Le),type:"observerResultsUpdated"})})},Zb);function _j(n,l){return Tn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function R0(n,l){return _j(n,l)||n.state.data!==void 0&&jh(n,l,l.refetchOnMount)}function jh(n,l,r){if(Tn(l.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&am(n,l)}return!1}function _0(n,l,r,i){return(n!==l||Tn(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&am(n,r)}function am(n,l){return Tn(l.enabled,n)!==!1&&n.isStaleByTime(Fr(l.staleTime,n))}function Tj(n,l){return!ku(n.getCurrentResult(),l)}var hl,ml,qt,xa,Ea,Ru,Nh,Fb,Mj=(Fb=class extends yi{constructor(r,i){super();xe(this,Ea);xe(this,hl);xe(this,ml);xe(this,qt);xe(this,xa);se(this,hl,r),this.setOptions(i),this.bindMethods(),Te(this,Ea,Ru).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=D(this,hl).defaultMutationOptions(r),ku(this.options,i)||D(this,hl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,qt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Jl(i.mutationKey)!==Jl(this.options.mutationKey)?this.reset():((s=D(this,qt))==null?void 0:s.state.status)==="pending"&&D(this,qt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=D(this,qt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Ea,Ru).call(this),Te(this,Ea,Nh).call(this,r)}getCurrentResult(){return D(this,ml)}reset(){var r;(r=D(this,qt))==null||r.removeObserver(this),se(this,qt,void 0),Te(this,Ea,Ru).call(this),Te(this,Ea,Nh).call(this)}mutate(r,i){var s;return se(this,xa,i),(s=D(this,qt))==null||s.removeObserver(this),se(this,qt,D(this,hl).getMutationCache().build(D(this,hl),this.options)),D(this,qt).addObserver(this),D(this,qt).execute(r)}},hl=new WeakMap,ml=new WeakMap,qt=new WeakMap,xa=new WeakMap,Ea=new WeakSet,Ru=function(){var i;const r=((i=D(this,qt))==null?void 0:i.state)??rx();se(this,ml,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Nh=function(r){pt.batch(()=>{var i,s,c,d,m,p,g,y;if(D(this,xa)&&this.hasListeners()){const b=D(this,ml).variables,w=D(this,ml).context;(r==null?void 0:r.type)==="success"?((s=(i=D(this,xa)).onSuccess)==null||s.call(i,r.data,b,w),(d=(c=D(this,xa)).onSettled)==null||d.call(c,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=D(this,xa)).onError)==null||p.call(m,r.error,b,w),(y=(g=D(this,xa)).onSettled)==null||y.call(g,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(D(this,ml))})})},Fb),Xd={exports:{}},Ne={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var T0;function Aj(){if(T0)return Ne;T0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function E(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,N={};function R(A,X,I){this.props=A,this.context=X,this.refs=N,this.updater=I||j}R.prototype.isReactComponent={},R.prototype.setState=function(A,X){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,X,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=R.prototype;function T(A,X,I){this.props=A,this.context=X,this.refs=N,this.updater=I||j}var k=T.prototype=new _;k.constructor=T,S(k,R.prototype),k.isPureReactComponent=!0;var L=Array.isArray;function $(){}var Y={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(A,X,I){var ae=I.ref;return{$$typeof:n,type:A,key:X,ref:ae!==void 0?ae:null,props:I}}function le(A,X){return G(A.type,X,A.props)}function me(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function fe(A){var X={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(I){return X[I]})}var W=/\/+/g;function ie(A,X){return typeof A=="object"&&A!==null&&A.key!=null?fe(""+A.key):X.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(X){A.status==="pending"&&(A.status="fulfilled",A.value=X)},function(X){A.status==="pending"&&(A.status="rejected",A.reason=X)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,X,I,ae,ve){var Ee=typeof A;(Ee==="undefined"||Ee==="boolean")&&(A=null);var te=!1;if(A===null)te=!0;else switch(Ee){case"bigint":case"string":case"number":te=!0;break;case"object":switch(A.$$typeof){case n:case l:te=!0;break;case y:return te=A._init,U(te(A._payload),X,I,ae,ve)}}if(te)return ve=ve(A),te=ae===""?"."+ie(A,0):ae,L(ve)?(I="",te!=null&&(I=te.replace(W,"$&/")+"/"),U(ve,X,I,"",function(je){return je})):ve!=null&&(me(ve)&&(ve=le(ve,I+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(W,"$&/")+"/")+te)),X.push(ve)),1;te=0;var Ce=ae===""?".":ae+":";if(L(A))for(var ye=0;ye<A.length;ye++)ae=A[ye],Ee=Ce+ie(ae,ye),te+=U(ae,X,I,Ee,ve);else if(ye=E(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(ae=A.next()).done;)ae=ae.value,Ee=Ce+ie(ae,ye++),te+=U(ae,X,I,Ee,ve);else if(Ee==="object"){if(typeof A.then=="function")return U(re(A),X,I,ae,ve);throw X=String(A),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return te}function P(A,X,I){if(A==null)return A;var ae=[],ve=0;return U(A,ae,"","",function(Ee){return X.call(I,Ee,ve++)}),ae}function K(A){if(A._status===-1){var X=A._result;X=X(),X.then(function(I){(A._status===0||A._status===-1)&&(A._status=1,A._result=I)},function(I){(A._status===0||A._status===-1)&&(A._status=2,A._result=I)}),A._status===-1&&(A._status=0,A._result=X)}if(A._status===1)return A._result.default;throw A._result}var ee=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},pe={map:P,forEach:function(A,X,I){P(A,function(){X.apply(this,arguments)},I)},count:function(A){var X=0;return P(A,function(){X++}),X},toArray:function(A){return P(A,function(X){return X})||[]},only:function(A){if(!me(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ne.Activity=b,Ne.Children=pe,Ne.Component=R,Ne.Fragment=r,Ne.Profiler=s,Ne.PureComponent=T,Ne.StrictMode=i,Ne.Suspense=p,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Y.H.useMemoCache(A)}},Ne.cache=function(A){return function(){return A.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(A,X,I){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ae=S({},A.props),ve=A.key;if(X!=null)for(Ee in X.key!==void 0&&(ve=""+X.key),X)!H.call(X,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&X.ref===void 0||(ae[Ee]=X[Ee]);var Ee=arguments.length-2;if(Ee===1)ae.children=I;else if(1<Ee){for(var te=Array(Ee),Ce=0;Ce<Ee;Ce++)te[Ce]=arguments[Ce+2];ae.children=te}return G(A.type,ve,ae)},Ne.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ne.createElement=function(A,X,I){var ae,ve={},Ee=null;if(X!=null)for(ae in X.key!==void 0&&(Ee=""+X.key),X)H.call(X,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ve[ae]=X[ae]);var te=arguments.length-2;if(te===1)ve.children=I;else if(1<te){for(var Ce=Array(te),ye=0;ye<te;ye++)Ce[ye]=arguments[ye+2];ve.children=Ce}if(A&&A.defaultProps)for(ae in te=A.defaultProps,te)ve[ae]===void 0&&(ve[ae]=te[ae]);return G(A,Ee,ve)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(A){return{$$typeof:m,render:A}},Ne.isValidElement=me,Ne.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:K}},Ne.memo=function(A,X){return{$$typeof:g,type:A,compare:X===void 0?null:X}},Ne.startTransition=function(A){var X=Y.T,I={};Y.T=I;try{var ae=A(),ve=Y.S;ve!==null&&ve(I,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then($,ee)}catch(Ee){ee(Ee)}finally{X!==null&&I.types!==null&&(X.types=I.types),Y.T=X}},Ne.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},Ne.use=function(A){return Y.H.use(A)},Ne.useActionState=function(A,X,I){return Y.H.useActionState(A,X,I)},Ne.useCallback=function(A,X){return Y.H.useCallback(A,X)},Ne.useContext=function(A){return Y.H.useContext(A)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(A,X){return Y.H.useDeferredValue(A,X)},Ne.useEffect=function(A,X){return Y.H.useEffect(A,X)},Ne.useEffectEvent=function(A){return Y.H.useEffectEvent(A)},Ne.useId=function(){return Y.H.useId()},Ne.useImperativeHandle=function(A,X,I){return Y.H.useImperativeHandle(A,X,I)},Ne.useInsertionEffect=function(A,X){return Y.H.useInsertionEffect(A,X)},Ne.useLayoutEffect=function(A,X){return Y.H.useLayoutEffect(A,X)},Ne.useMemo=function(A,X){return Y.H.useMemo(A,X)},Ne.useOptimistic=function(A,X){return Y.H.useOptimistic(A,X)},Ne.useReducer=function(A,X,I){return Y.H.useReducer(A,X,I)},Ne.useRef=function(A){return Y.H.useRef(A)},Ne.useState=function(A){return Y.H.useState(A)},Ne.useSyncExternalStore=function(A,X,I){return Y.H.useSyncExternalStore(A,X,I)},Ne.useTransition=function(){return Y.H.useTransition()},Ne.version="19.2.3",Ne}var M0;function lm(){return M0||(M0=1,Xd.exports=Aj()),Xd.exports}var v=lm();const lt=Jb(v),ox=sj({__proto__:null,default:lt},[v]);var sx=v.createContext(void 0),ux=n=>{const l=v.useContext(sx);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Dj=({client:n,children:l})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),h.jsx(sx.Provider,{value:n,children:l})),cx=v.createContext(!1),Oj=()=>v.useContext(cx);cx.Provider;function kj(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var zj=v.createContext(kj()),Lj=()=>v.useContext(zj);function fx(n,l){return typeof n=="function"?n(...l):!!n}function Rh(){}var Uj=(n,l)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(l.isReset()||(n.retryOnMount=!1))},Hj=n=>{v.useEffect(()=>{n.clearReset()},[n])},qj=({result:n,errorResetBoundary:l,throwOnError:r,query:i,suspense:s})=>n.isError&&!l.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||fx(r,[n.error,i])),Bj=n=>{const l=n.staleTime;n.suspense&&(n.staleTime=typeof l=="function"?(...r)=>Math.max(l(...r),1e3):Math.max(l??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},Yj=(n,l)=>n.isLoading&&n.isFetching&&!l,Qj=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,A0=(n,l,r)=>l.fetchOptimistic(n).catch(()=>{r.clearReset()});function Gj(n,l,r){var b,w,E,j,S;const i=ux(),s=Oj(),c=Lj(),d=i.defaultQueryOptions(n);(w=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||w.call(b,d),d._optimisticResults=s?"isRestoring":"optimistic",Bj(d),Uj(d,c),Hj(c);const m=!i.getQueryCache().get(d.queryHash),[p]=v.useState(()=>new l(i,d)),g=p.getOptimisticResult(d),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(N=>{const R=y?p.subscribe(pt.batchCalls(N)):Rh;return p.updateResult(),R},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(d)},[d,p]),Qj(d,g))throw A0(d,p,c);if(qj({result:g,errorResetBoundary:c,throwOnError:d.throwOnError,query:i.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;if((j=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||j.call(E,d,g),d.experimental_prefetchInRender&&!Fl&&Yj(g,s)){const N=m?A0(d,p,c):(S=i.getQueryCache().get(d.queryHash))==null?void 0:S.promise;N==null||N.catch(Rh).finally(()=>{p.updateResult()})}return d.notifyOnChangeProps?g:p.trackResult(g)}function Ca(n,l){return Gj(n,Rj)}function Vj(n,l){const r=ux(),[i]=v.useState(()=>new Mj(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(d=>i.subscribe(pt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((d,m)=>{i.mutate(d,m).catch(Rh)},[i]);if(s.error&&fx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var $d={exports:{}},jo={},Zd={exports:{}},Fd={};/**
|
|
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 D0;function Kj(){return D0||(D0=1,(function(n){function l(U,P){var K=U.length;U.push(P);e:for(;0<K;){var ee=K-1>>>1,pe=U[ee];if(0<s(pe,P))U[ee]=P,U[K]=pe,K=ee;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var P=U[0],K=U.pop();if(K!==P){U[0]=K;e:for(var ee=0,pe=U.length,A=pe>>>1;ee<A;){var X=2*(ee+1)-1,I=U[X],ae=X+1,ve=U[ae];if(0>s(I,K))ae<pe&&0>s(ve,I)?(U[ee]=ve,U[ae]=K,ee=ae):(U[ee]=I,U[X]=K,ee=X);else if(ae<pe&&0>s(ve,K))U[ee]=ve,U[ae]=K,ee=ae;else break e}}return P}function s(U,P){var K=U.sortIndex-P.sortIndex;return K!==0?K:U.id-P.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 d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],g=[],y=1,b=null,w=3,E=!1,j=!1,S=!1,N=!1,R=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function k(U){for(var P=r(g);P!==null;){if(P.callback===null)i(g);else if(P.startTime<=U)i(g),P.sortIndex=P.expirationTime,l(p,P);else break;P=r(g)}}function L(U){if(S=!1,k(U),!j)if(r(p)!==null)j=!0,$||($=!0,fe());else{var P=r(g);P!==null&&re(L,P.startTime-U)}}var $=!1,Y=-1,H=5,G=-1;function le(){return N?!0:!(n.unstable_now()-G<H)}function me(){if(N=!1,$){var U=n.unstable_now();G=U;var P=!0;try{e:{j=!1,S&&(S=!1,_(Y),Y=-1),E=!0;var K=w;try{t:{for(k(U),b=r(p);b!==null&&!(b.expirationTime>U&&le());){var ee=b.callback;if(typeof ee=="function"){b.callback=null,w=b.priorityLevel;var pe=ee(b.expirationTime<=U);if(U=n.unstable_now(),typeof pe=="function"){b.callback=pe,k(U),P=!0;break t}b===r(p)&&i(p),k(U)}else i(p);b=r(p)}if(b!==null)P=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),P=!1}}break e}finally{b=null,w=K,E=!1}P=void 0}}finally{P?fe():$=!1}}}var fe;if(typeof T=="function")fe=function(){T(me)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ie=W.port2;W.port1.onmessage=me,fe=function(){ie.postMessage(null)}}else fe=function(){R(me,0)};function re(U,P){Y=R(function(){U(n.unstable_now())},P)}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 P=3;break;default:P=w}var K=w;w=P;try{return U()}finally{w=K}},n.unstable_requestPaint=function(){N=!0},n.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var K=w;w=U;try{return P()}finally{w=K}},n.unstable_scheduleCallback=function(U,P,K){var ee=n.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ee+K:ee):K=ee,U){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=K+pe,U={id:y++,callback:P,priorityLevel:U,startTime:K,expirationTime:pe,sortIndex:-1},K>ee?(U.sortIndex=K,l(g,U),r(p)===null&&U===r(g)&&(S?(_(Y),Y=-1):S=!0,re(L,K-ee))):(U.sortIndex=pe,l(p,U),j||E||(j=!0,$||($=!0,fe()))),U},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(U){var P=w;return function(){var K=w;w=P;try{return U.apply(this,arguments)}finally{w=K}}}})(Fd)),Fd}var O0;function Xj(){return O0||(O0=1,Zd.exports=Kj()),Zd.exports}var Jd={exports:{}},jt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var k0;function $j(){if(k0)return jt;k0=1;var n=lm();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,jt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return c(p,g,null,y)},jt.flushSync=function(p){var g=d.T,y=i.p;try{if(d.T=null,i.p=2,p)return p()}finally{d.T=g,i.p=y,i.d.f()}},jt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},jt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},jt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:E}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},jt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},jt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},jt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},jt.requestFormReset=function(p){i.d.r(p)},jt.unstable_batchedUpdates=function(p,g){return p(g)},jt.useFormState=function(p,g,y){return d.H.useFormState(p,g,y)},jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},jt.version="19.2.3",jt}var z0;function dx(){if(z0)return Jd.exports;z0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Jd.exports=$j(),Jd.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 L0;function Zj(){if(L0)return jo;L0=1;var n=Xj(),l=lm(),r=dx();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,o=t;;){var u=a.return;if(u===null)break;var f=u.alternate;if(f===null){if(o=u.return,o!==null){a=o;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===a)return p(u),e;if(f===o)return p(u),t;f=f.sibling}throw Error(i(188))}if(a.return!==o.return)a=u,o=f;else{for(var x=!1,C=u.child;C;){if(C===a){x=!0,a=u,o=f;break}if(C===o){x=!0,o=u,a=f;break}C=C.sibling}if(!x){for(C=f.child;C;){if(C===a){x=!0,a=f,o=u;break}if(C===o){x=!0,o=f,a=u;break}C=C.sibling}if(!x)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case R:return"Profiler";case N:return"StrictMode";case L:return"Suspense";case $:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case T:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ee=[],pe=-1;function A(e){return{current:e}}function X(e){0>pe||(e.current=ee[pe],ee[pe]=null,pe--)}function I(e,t){pe++,ee[pe]=e.current,e.current=t}var ae=A(null),ve=A(null),Ee=A(null),te=A(null);function Ce(e,t){switch(I(Ee,t),I(ve,e),I(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yy(t),e=Qy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(ae),I(ae,e)}function ye(){X(ae),X(ve),X(Ee)}function je(e){e.memoizedState!==null&&I(te,e);var t=ae.current,a=Qy(t,e.type);t!==a&&(I(ve,e),I(ae,a))}function Ue(e){ve.current===e&&(X(ae),X(ve)),te.current===e&&(X(te),xo._currentValue=K)}var Qe,Ct;function Yt(e){if(Qe===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Qe=t&&t[1]||"",Ct=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Qe+e+Ct}var Pn=!1;function Wn(e,t){if(!e||Pn)return"";Pn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var Q=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){Q=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){Q=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&Q&&typeof V.stack=="string")return[V.stack,Q.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),x=f[0],C=f[1];if(x&&C){var M=x.split(`
|
|
44
|
+
`),B=C.split(`
|
|
45
|
+
`);for(u=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;if(o===M.length||u===B.length)for(o=M.length-1,u=B.length-1;1<=o&&0<=u&&M[o]!==B[u];)u--;for(;1<=o&&0<=u;o--,u--)if(M[o]!==B[u]){if(o!==1||u!==1)do if(o--,u--,0>u||M[o]!==B[u]){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<=u);break}}}finally{Pn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Yt(a):""}function Rc(e,t){switch(e.tag){case 26:case 27:case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return e.child!==t&&t!==null?Yt("Suspense Fallback"):Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 15:return Wn(e.type,!1);case 11:return Wn(e.type.render,!1);case 1:return Wn(e.type,!0);case 31:return Yt("Activity");default:return""}}function Wo(e){try{var t="",a=null;do t+=Rc(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
|
|
47
|
+
Error generating stack: `+o.message+`
|
|
48
|
+
`+o.stack}}var Ma=Object.prototype.hasOwnProperty,_c=n.unstable_scheduleCallback,Tc=n.unstable_cancelCallback,BE=n.unstable_shouldYield,YE=n.unstable_requestPaint,Qt=n.unstable_now,QE=n.unstable_getCurrentPriorityLevel,bp=n.unstable_ImmediatePriority,xp=n.unstable_UserBlockingPriority,Io=n.unstable_NormalPriority,GE=n.unstable_LowPriority,wp=n.unstable_IdlePriority,VE=n.log,KE=n.unstable_setDisableYieldValue,Ai=null,Gt=null;function Aa(e){if(typeof VE=="function"&&KE(e),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Ai,e)}catch{}}var Vt=Math.clz32?Math.clz32:ZE,XE=Math.log,$E=Math.LN2;function ZE(e){return e>>>=0,e===0?32:31-(XE(e)/$E|0)|0}var es=256,ts=262144,ns=4194304;function Sl(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 as(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var C=o&134217727;return C!==0?(o=C&~f,o!==0?u=Sl(o):(x&=C,x!==0?u=Sl(x):a||(a=C&~e,a!==0&&(u=Sl(a))))):(C=o&~f,C!==0?u=Sl(C):x!==0?u=Sl(x):a||(a=o&~e,a!==0&&(u=Sl(a)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:u}function Di(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function FE(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sp(){var e=ns;return ns<<=1,(ns&62914560)===0&&(ns=4194304),e}function Mc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Oi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function JE(e,t,a,o,u,f){var x=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var C=e.entanglements,M=e.expirationTimes,B=e.hiddenUpdates;for(a=x&~a;0<a;){var Z=31-Vt(a),J=1<<Z;C[Z]=0,M[Z]=-1;var Q=B[Z];if(Q!==null)for(B[Z]=null,Z=0;Z<Q.length;Z++){var V=Q[Z];V!==null&&(V.lane&=-536870913)}a&=~J}o!==0&&Ep(e,o,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Ep(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Vt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function Cp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Vt(a),u=1<<o;u&t|e[o]&t&&(e[o]|=t),a&=~u}}function jp(e,t){var a=t&-t;return a=(a&42)!==0?1:Ac(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ac(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 Dc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Np(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:f0(e.type))}function Rp(e,t){var a=P.p;try{return P.p=e,t()}finally{P.p=a}}var Da=Math.random().toString(36).slice(2),bt="__reactFiber$"+Da,At="__reactProps$"+Da,ir="__reactContainer$"+Da,Oc="__reactEvents$"+Da,PE="__reactListeners$"+Da,WE="__reactHandles$"+Da,_p="__reactResources$"+Da,ki="__reactMarker$"+Da;function kc(e){delete e[bt],delete e[At],delete e[Oc],delete e[PE],delete e[WE]}function or(e){var t=e[bt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ir]||a[bt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Fy(e);e!==null;){if(a=e[bt])return a;e=Fy(e)}return t}e=a,a=e.parentNode}return null}function sr(e){if(e=e[bt]||e[ir]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ur(e){var t=e[_p];return t||(t=e[_p]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[ki]=!0}var Tp=new Set,Mp={};function El(e,t){cr(e,t),cr(e+"Capture",t)}function cr(e,t){for(Mp[e]=t,e=0;e<t.length;e++)Tp.add(t[e])}var IE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ap={},Dp={};function e2(e){return Ma.call(Dp,e)?!0:Ma.call(Ap,e)?!1:IE.test(e)?Dp[e]=!0:(Ap[e]=!0,!1)}function ls(e,t,a){if(e2(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function rs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function In(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t2(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){a=""+x,f.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zc(e){if(!e._valueTracker){var t=Op(e)?"checked":"value";e._valueTracker=t2(e,t,""+e[t])}}function kp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Op(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function is(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 n2=/[\n"\\]/g;function an(e){return e.replace(n2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lc(e,t,a,o,u,f,x,C){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Uc(e,x,nn(t)):a!=null?Uc(e,x,nn(a)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+nn(C):e.removeAttribute("name")}function zp(e,t,a,o,u,f,x,C){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){zc(e);return}a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,C||t===e.value||(e.value=t),e.defaultValue=t}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=C?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),zc(e)}function Uc(e,t,a){t==="number"&&is(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function fr(e,t,a,o){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&o&&(e[a].defaultSelected=!0)}else{for(a=""+nn(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Lp(e,t,a){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nn(a):""}function Up(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=nn(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),zc(e)}function dr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var a2=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 Hp(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||a2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function qp(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in t)o=t[u],t.hasOwnProperty(u)&&a[u]!==o&&Hp(e,u,o)}else for(var f in t)t.hasOwnProperty(f)&&Hp(e,f,t[f])}function Hc(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 l2=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"]]),r2=/^[\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 os(e){return r2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ea(){}var qc=null;function Bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hr=null,mr=null;function Bp(e){var t=sr(e);if(t&&(e=t.stateNode)){var a=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var u=o[At]||null;if(!u)throw Error(i(90));Lc(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&kp(o)}break e;case"textarea":Lp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&fr(e,!!a.multiple,t,!1)}}}var Yc=!1;function Yp(e,t,a){if(Yc)return e(t,a);Yc=!0;try{var o=e(t);return o}finally{if(Yc=!1,(hr!==null||mr!==null)&&(Zs(),hr&&(t=hr,e=mr,mr=hr=null,Bp(t),e)))for(t=0;t<e.length;t++)Bp(e[t])}}function Li(e,t){var a=e.stateNode;if(a===null)return null;var o=a[At]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=!1;if(ta)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Qc=!1}var Oa=null,Gc=null,ss=null;function Qp(){if(ss)return ss;var e,t=Gc,a=t.length,o,u="value"in Oa?Oa.value:Oa.textContent,f=u.length;for(e=0;e<a&&t[e]===u[e];e++);var x=a-e;for(o=1;o<=x&&t[a-o]===u[f-o];o++);return ss=u.slice(e,1<o?1-o:void 0)}function us(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 cs(){return!0}function Gp(){return!1}function Dt(e){function t(a,o,u,f,x){this._reactName=a,this._targetInst=u,this.type=o,this.nativeEvent=f,this.target=x,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(a=e[C],this[C]=a?a(f):f[C]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?cs:Gp,this.isPropagationStopped=Gp,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=Dt(Cl),Hi=b({},Cl,{view:0,detail:0}),i2=Dt(Hi),Vc,Kc,qi,ds=b({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,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!==qi&&(qi&&e.type==="mousemove"?(Vc=e.screenX-qi.screenX,Kc=e.screenY-qi.screenY):Kc=Vc=0,qi=e),Vc)},movementY:function(e){return"movementY"in e?e.movementY:Kc}}),Vp=Dt(ds),o2=b({},ds,{dataTransfer:0}),s2=Dt(o2),u2=b({},Hi,{relatedTarget:0}),Xc=Dt(u2),c2=b({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),f2=Dt(c2),d2=b({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h2=Dt(d2),m2=b({},Cl,{data:0}),Kp=Dt(m2),p2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v2={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"},g2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g2[e])?!!t[e]:!1}function $c(){return y2}var b2=b({},Hi,{key:function(e){if(e.key){var t=p2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=us(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(e){return e.type==="keypress"?us(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?us(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x2=Dt(b2),w2=b({},ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xp=Dt(w2),S2=b({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),E2=Dt(S2),C2=b({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),j2=Dt(C2),N2=b({},ds,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),R2=Dt(N2),_2=b({},Cl,{newState:0,oldState:0}),T2=Dt(_2),M2=[9,13,27,32],Zc=ta&&"CompositionEvent"in window,Bi=null;ta&&"documentMode"in document&&(Bi=document.documentMode);var A2=ta&&"TextEvent"in window&&!Bi,$p=ta&&(!Zc||Bi&&8<Bi&&11>=Bi),Zp=" ",Fp=!1;function Jp(e,t){switch(e){case"keyup":return M2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function D2(e,t){switch(e){case"compositionend":return Pp(t);case"keypress":return t.which!==32?null:(Fp=!0,Zp);case"textInput":return e=t.data,e===Zp&&Fp?null:e;default:return null}}function O2(e,t){if(pr)return e==="compositionend"||!Zc&&Jp(e,t)?(e=Qp(),ss=Gc=Oa=null,pr=!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 $p&&t.locale!=="ko"?null:t.data;default:return null}}var k2={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 Wp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!k2[e.type]:t==="textarea"}function Ip(e,t,a,o){hr?mr?mr.push(o):mr=[o]:hr=o,t=tu(t,"onChange"),0<t.length&&(a=new fs("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Yi=null,Qi=null;function z2(e){zy(e,0)}function hs(e){var t=zi(e);if(kp(t))return e}function ev(e,t){if(e==="change")return t}var tv=!1;if(ta){var Fc;if(ta){var Jc="oninput"in document;if(!Jc){var nv=document.createElement("div");nv.setAttribute("oninput","return;"),Jc=typeof nv.oninput=="function"}Fc=Jc}else Fc=!1;tv=Fc&&(!document.documentMode||9<document.documentMode)}function av(){Yi&&(Yi.detachEvent("onpropertychange",lv),Qi=Yi=null)}function lv(e){if(e.propertyName==="value"&&hs(Qi)){var t=[];Ip(t,Qi,e,Bc(e)),Yp(z2,t)}}function L2(e,t,a){e==="focusin"?(av(),Yi=t,Qi=a,Yi.attachEvent("onpropertychange",lv)):e==="focusout"&&av()}function U2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(Qi)}function H2(e,t){if(e==="click")return hs(t)}function q2(e,t){if(e==="input"||e==="change")return hs(t)}function B2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:B2;function Gi(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var u=a[o];if(!Ma.call(t,u)||!Kt(e[u],t[u]))return!1}return!0}function rv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iv(e,t){var a=rv(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=rv(a)}}function ov(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ov(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=is(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=is(e.document)}return t}function Pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Y2=ta&&"documentMode"in document&&11>=document.documentMode,vr=null,Wc=null,Vi=null,Ic=!1;function uv(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||vr==null||vr!==is(o)||(o=vr,"selectionStart"in o&&Pc(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}),Vi&&Gi(Vi,o)||(Vi=o,o=tu(Wc,"onSelect"),0<o.length&&(t=new fs("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=vr)))}function jl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var gr={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},ef={},cv={};ta&&(cv=document.createElement("div").style,"AnimationEvent"in window||(delete gr.animationend.animation,delete gr.animationiteration.animation,delete gr.animationstart.animation),"TransitionEvent"in window||delete gr.transitionend.transition);function Nl(e){if(ef[e])return ef[e];if(!gr[e])return e;var t=gr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in cv)return ef[e]=t[a];return e}var fv=Nl("animationend"),dv=Nl("animationiteration"),hv=Nl("animationstart"),Q2=Nl("transitionrun"),G2=Nl("transitionstart"),V2=Nl("transitioncancel"),mv=Nl("transitionend"),pv=new Map,tf="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(" ");tf.push("scrollEnd");function En(e,t){pv.set(e,t),El(t,[e])}var ms=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],yr=0,nf=0;function ps(){for(var e=yr,t=nf=yr=0;t<e;){var a=ln[t];ln[t++]=null;var o=ln[t];ln[t++]=null;var u=ln[t];ln[t++]=null;var f=ln[t];if(ln[t++]=null,o!==null&&u!==null){var x=o.pending;x===null?u.next=u:(u.next=x.next,x.next=u),o.pending=u}f!==0&&vv(a,u,f)}}function vs(e,t,a,o){ln[yr++]=e,ln[yr++]=t,ln[yr++]=a,ln[yr++]=o,nf|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function af(e,t,a,o){return vs(e,t,a,o),gs(e)}function Rl(e,t){return vs(e,null,null,t),gs(e)}function vv(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var u=!1,f=e.return;f!==null;)f.childLanes|=a,o=f.alternate,o!==null&&(o.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-Vt(a),e=f.hiddenUpdates,o=e[u],o===null?e[u]=[t]:o.push(t),t.lane=a|536870912),f):null}function gs(e){if(50<ho)throw ho=0,hd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var br={};function K2(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,o){return new K2(e,t,a,o)}function lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var a=e.alternate;return a===null?(a=Xt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function gv(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ys(e,t,a,o,u,f){var x=0;if(o=e,typeof e=="function")lf(e)&&(x=1);else if(typeof e=="string")x=JC(e,a,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=Xt(31,a,t,u),e.elementType=G,e.lanes=f,e;case S:return _l(a.children,u,f,t);case N:x=8,u|=24;break;case R:return e=Xt(12,a,t,u|2),e.elementType=R,e.lanes=f,e;case L:return e=Xt(13,a,t,u),e.elementType=L,e.lanes=f,e;case $:return e=Xt(19,a,t,u),e.elementType=$,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:x=10;break e;case _:x=9;break e;case k:x=11;break e;case Y:x=14;break e;case H:x=16,o=null;break e}x=29,a=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=Xt(x,a,t,u),t.elementType=e,t.type=o,t.lanes=f,t}function _l(e,t,a,o){return e=Xt(7,e,o,t),e.lanes=a,e}function rf(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function yv(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function of(e,t,a){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bv=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var a=bv.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Wo(t)},bv.set(e,t),t)}return{value:e,source:t,stack:Wo(t)}}var xr=[],wr=0,bs=null,Ki=0,on=[],sn=0,ka=null,Ln=1,Un="";function aa(e,t){xr[wr++]=Ki,xr[wr++]=bs,bs=e,Ki=t}function xv(e,t,a){on[sn++]=Ln,on[sn++]=Un,on[sn++]=ka,ka=e;var o=Ln;e=Un;var u=32-Vt(o)-1;o&=~(1<<u),a+=1;var f=32-Vt(t)+u;if(30<f){var x=u-u%5;f=(o&(1<<x)-1).toString(32),o>>=x,u-=x,Ln=1<<32-Vt(t)+u|a<<u|o,Un=f+e}else Ln=1<<f|a<<u|o,Un=e}function sf(e){e.return!==null&&(aa(e,1),xv(e,1,0))}function uf(e){for(;e===bs;)bs=xr[--wr],xr[wr]=null,Ki=xr[--wr],xr[wr]=null;for(;e===ka;)ka=on[--sn],on[sn]=null,Un=on[--sn],on[sn]=null,Ln=on[--sn],on[sn]=null}function wv(e,t){on[sn++]=Ln,on[sn++]=Un,on[sn++]=ka,Ln=t.id,Un=t.overflow,ka=e}var xt=null,Fe=null,ze=!1,za=null,un=!1,cf=Error(i(519));function La(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xi(rn(t,e)),cf}function Sv(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[bt]=e,t[At]=o,a){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(a=0;a<po.length;a++)De(po[a],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),zp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Up(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||qy(t.textContent,a)?(o.popover!=null&&(De("beforetoggle",t),De("toggle",t)),o.onScroll!=null&&De("scroll",t),o.onScrollEnd!=null&&De("scrollend",t),o.onClick!=null&&(t.onclick=ea),t=!0):t=!1,t||La(e,!0)}function Ev(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:xt=xt.return}}function Sr(e){if(e!==xt)return!1;if(!ze)return Ev(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||_d(e.type,e.memoizedProps)),a=!a),a&&Fe&&La(e),Ev(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=Zy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=Zy(e)}else t===27?(t=Fe,Ja(e.type)?(e=Od,Od=null,Fe=e):Fe=t):Fe=xt?fn(e.stateNode.nextSibling):null;return!0}function Tl(){Fe=xt=null,ze=!1}function ff(){var e=za;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),za=null),e}function Xi(e){za===null?za=[e]:za.push(e)}var df=A(null),Ml=null,la=null;function Ua(e,t,a){I(df,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=df.current,X(df)}function hf(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function mf(e,t,a,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var x=u.child;f=f.firstContext;e:for(;f!==null;){var C=f;f=u;for(var M=0;M<t.length;M++)if(C.context===t[M]){f.lanes|=a,C=f.alternate,C!==null&&(C.lanes|=a),hf(f.return,a,e),o||(x=null);break e}f=C.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(i(341));x.lanes|=a,f=x.alternate,f!==null&&(f.lanes|=a),hf(x,a,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function Er(e,t,a,o){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var C=u.type;Kt(u.pendingProps.value,x.value)||(e!==null?e.push(C):e=[C])}}else if(u===te.current){if(x=u.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(xo):e=[xo])}u=u.return}e!==null&&mf(t,e,a,o),t.flags|=262144}function xs(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Al(e){Ml=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return Cv(Ml,e)}function ws(e,t){return Ml===null&&Al(e),Cv(e,t)}function Cv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(i(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var X2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},$2=n.unstable_scheduleCallback,Z2=n.unstable_NormalPriority,st={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pf(){return{controller:new X2,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&$2(Z2,function(){e.controller.abort()})}var Zi=null,vf=0,Cr=0,jr=null;function F2(e,t){if(Zi===null){var a=Zi=[];vf=0,Cr=bd(),jr={status:"pending",value:void 0,then:function(o){a.push(o)}}}return vf++,t.then(jv,jv),t}function jv(){if(--vf===0&&Zi!==null){jr!==null&&(jr.status="fulfilled");var e=Zi;Zi=null,Cr=0,jr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function J2(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(o.status="rejected",o.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),o}var Nv=U.S;U.S=function(e,t){uy=Qt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&F2(e,t),Nv!==null&&Nv(e,t)};var Dl=A(null);function gf(){var e=Dl.current;return e!==null?e:Ze.pooledCache}function Ss(e,t){t===null?I(Dl,Dl.current):I(Dl,t.pool)}function Rv(){var e=gf();return e===null?null:{parent:st._currentValue,pool:e}}var Nr=Error(i(460)),yf=Error(i(474)),Es=Error(i(542)),Cs={then:function(){}};function _v(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tv(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ea,ea),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Av(e),e;default:if(typeof t.status=="string")t.then(ea,ea);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=o}},function(o){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Av(e),e}throw kl=t,Nr}}function Ol(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(kl=a,Nr):a}}var kl=null;function Mv(){if(kl===null)throw Error(i(459));var e=kl;return kl=null,e}function Av(e){if(e===Nr||e===Es)throw Error(i(483))}var Rr=null,Fi=0;function js(e){var t=Fi;return Fi+=1,Rr===null&&(Rr=[]),Tv(Rr,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ns(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 Dv(e){function t(z,O){if(e){var q=z.deletions;q===null?(z.deletions=[O],z.flags|=16):q.push(O)}}function a(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function o(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function u(z,O){return z=na(z,O),z.index=0,z.sibling=null,z}function f(z,O,q){return z.index=q,e?(q=z.alternate,q!==null?(q=q.index,q<O?(z.flags|=67108866,O):q):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function C(z,O,q,F){return O===null||O.tag!==6?(O=rf(q,z.mode,F),O.return=z,O):(O=u(O,q),O.return=z,O)}function M(z,O,q,F){var be=q.type;return be===S?Z(z,O,q.props.children,F,q.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&Ol(be)===O.type)?(O=u(O,q.props),Ji(O,q),O.return=z,O):(O=ys(q.type,q.key,q.props,null,z.mode,F),Ji(O,q),O.return=z,O)}function B(z,O,q,F){return O===null||O.tag!==4||O.stateNode.containerInfo!==q.containerInfo||O.stateNode.implementation!==q.implementation?(O=of(q,z.mode,F),O.return=z,O):(O=u(O,q.children||[]),O.return=z,O)}function Z(z,O,q,F,be){return O===null||O.tag!==7?(O=_l(q,z.mode,F,be),O.return=z,O):(O=u(O,q),O.return=z,O)}function J(z,O,q){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=rf(""+O,z.mode,q),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return q=ys(O.type,O.key,O.props,null,z.mode,q),Ji(q,O),q.return=z,q;case j:return O=of(O,z.mode,q),O.return=z,O;case H:return O=Ol(O),J(z,O,q)}if(re(O)||fe(O))return O=_l(O,z.mode,q,null),O.return=z,O;if(typeof O.then=="function")return J(z,js(O),q);if(O.$$typeof===T)return J(z,ws(z,O),q);Ns(z,O)}return null}function Q(z,O,q,F){var be=O!==null?O.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return be!==null?null:C(z,O,""+q,F);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case E:return q.key===be?M(z,O,q,F):null;case j:return q.key===be?B(z,O,q,F):null;case H:return q=Ol(q),Q(z,O,q,F)}if(re(q)||fe(q))return be!==null?null:Z(z,O,q,F,null);if(typeof q.then=="function")return Q(z,O,js(q),F);if(q.$$typeof===T)return Q(z,O,ws(z,q),F);Ns(z,q)}return null}function V(z,O,q,F,be){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return z=z.get(q)||null,C(O,z,""+F,be);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case E:return z=z.get(F.key===null?q:F.key)||null,M(O,z,F,be);case j:return z=z.get(F.key===null?q:F.key)||null,B(O,z,F,be);case H:return F=Ol(F),V(z,O,q,F,be)}if(re(F)||fe(F))return z=z.get(q)||null,Z(O,z,F,be,null);if(typeof F.then=="function")return V(z,O,q,js(F),be);if(F.$$typeof===T)return V(z,O,q,ws(O,F),be);Ns(O,F)}return null}function ce(z,O,q,F){for(var be=null,He=null,ge=O,_e=O=0,ke=null;ge!==null&&_e<q.length;_e++){ge.index>_e?(ke=ge,ge=null):ke=ge.sibling;var qe=Q(z,ge,q[_e],F);if(qe===null){ge===null&&(ge=ke);break}e&&ge&&qe.alternate===null&&t(z,ge),O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe,ge=ke}if(_e===q.length)return a(z,ge),ze&&aa(z,_e),be;if(ge===null){for(;_e<q.length;_e++)ge=J(z,q[_e],F),ge!==null&&(O=f(ge,O,_e),He===null?be=ge:He.sibling=ge,He=ge);return ze&&aa(z,_e),be}for(ge=o(ge);_e<q.length;_e++)ke=V(ge,z,_e,q[_e],F),ke!==null&&(e&&ke.alternate!==null&&ge.delete(ke.key===null?_e:ke.key),O=f(ke,O,_e),He===null?be=ke:He.sibling=ke,He=ke);return e&&ge.forEach(function(tl){return t(z,tl)}),ze&&aa(z,_e),be}function Se(z,O,q,F){if(q==null)throw Error(i(151));for(var be=null,He=null,ge=O,_e=O=0,ke=null,qe=q.next();ge!==null&&!qe.done;_e++,qe=q.next()){ge.index>_e?(ke=ge,ge=null):ke=ge.sibling;var tl=Q(z,ge,qe.value,F);if(tl===null){ge===null&&(ge=ke);break}e&&ge&&tl.alternate===null&&t(z,ge),O=f(tl,O,_e),He===null?be=tl:He.sibling=tl,He=tl,ge=ke}if(qe.done)return a(z,ge),ze&&aa(z,_e),be;if(ge===null){for(;!qe.done;_e++,qe=q.next())qe=J(z,qe.value,F),qe!==null&&(O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe);return ze&&aa(z,_e),be}for(ge=o(ge);!qe.done;_e++,qe=q.next())qe=V(ge,z,_e,qe.value,F),qe!==null&&(e&&qe.alternate!==null&&ge.delete(qe.key===null?_e:qe.key),O=f(qe,O,_e),He===null?be=qe:He.sibling=qe,He=qe);return e&&ge.forEach(function(oj){return t(z,oj)}),ze&&aa(z,_e),be}function $e(z,O,q,F){if(typeof q=="object"&&q!==null&&q.type===S&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case E:e:{for(var be=q.key;O!==null;){if(O.key===be){if(be=q.type,be===S){if(O.tag===7){a(z,O.sibling),F=u(O,q.props.children),F.return=z,z=F;break e}}else if(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&Ol(be)===O.type){a(z,O.sibling),F=u(O,q.props),Ji(F,q),F.return=z,z=F;break e}a(z,O);break}else t(z,O);O=O.sibling}q.type===S?(F=_l(q.props.children,z.mode,F,q.key),F.return=z,z=F):(F=ys(q.type,q.key,q.props,null,z.mode,F),Ji(F,q),F.return=z,z=F)}return x(z);case j:e:{for(be=q.key;O!==null;){if(O.key===be)if(O.tag===4&&O.stateNode.containerInfo===q.containerInfo&&O.stateNode.implementation===q.implementation){a(z,O.sibling),F=u(O,q.children||[]),F.return=z,z=F;break e}else{a(z,O);break}else t(z,O);O=O.sibling}F=of(q,z.mode,F),F.return=z,z=F}return x(z);case H:return q=Ol(q),$e(z,O,q,F)}if(re(q))return ce(z,O,q,F);if(fe(q)){if(be=fe(q),typeof be!="function")throw Error(i(150));return q=be.call(q),Se(z,O,q,F)}if(typeof q.then=="function")return $e(z,O,js(q),F);if(q.$$typeof===T)return $e(z,O,ws(z,q),F);Ns(z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,O!==null&&O.tag===6?(a(z,O.sibling),F=u(O,q),F.return=z,z=F):(a(z,O),F=rf(q,z.mode,F),F.return=z,z=F),x(z)):a(z,O)}return function(z,O,q,F){try{Fi=0;var be=$e(z,O,q,F);return Rr=null,be}catch(ge){if(ge===Nr||ge===Es)throw ge;var He=Xt(29,ge,null,z.mode);return He.lanes=F,He.return=z,He}finally{}}}var zl=Dv(!0),Ov=Dv(!1),Ha=!1;function bf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,t=gs(e),vv(e,null,a),t}return vs(e,o,t,a),gs(e)}function Pi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Cp(e,a)}}function wf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var x={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=x:f=f.next=x,a=a.next}while(a!==null);f===null?u=f=t:f=f.next=t}else u=f=t;a={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Sf=!1;function Wi(){if(Sf){var e=jr;if(e!==null)throw e}}function Ii(e,t,a,o){Sf=!1;var u=e.updateQueue;Ha=!1;var f=u.firstBaseUpdate,x=u.lastBaseUpdate,C=u.shared.pending;if(C!==null){u.shared.pending=null;var M=C,B=M.next;M.next=null,x===null?f=B:x.next=B,x=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,C=Z.lastBaseUpdate,C!==x&&(C===null?Z.firstBaseUpdate=B:C.next=B,Z.lastBaseUpdate=M))}if(f!==null){var J=u.baseState;x=0,Z=B=M=null,C=f;do{var Q=C.lane&-536870913,V=Q!==C.lane;if(V?(Oe&Q)===Q:(o&Q)===Q){Q!==0&&Q===Cr&&(Sf=!0),Z!==null&&(Z=Z.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var ce=e,Se=C;Q=t;var $e=a;switch(Se.tag){case 1:if(ce=Se.payload,typeof ce=="function"){J=ce.call($e,J,Q);break e}J=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=Se.payload,Q=typeof ce=="function"?ce.call($e,J,Q):ce,Q==null)break e;J=b({},J,Q);break e;case 2:Ha=!0}}Q=C.callback,Q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=u.callbacks,V===null?u.callbacks=[Q]:V.push(Q))}else V={lane:Q,tag:C.tag,payload:C.payload,callback:C.callback,next:null},Z===null?(B=Z=V,M=J):Z=Z.next=V,x|=Q;if(C=C.next,C===null){if(C=u.shared.pending,C===null)break;V=C,C=V.next,V.next=null,u.lastBaseUpdate=V,u.shared.pending=null}}while(!0);Z===null&&(M=J),u.baseState=M,u.firstBaseUpdate=B,u.lastBaseUpdate=Z,f===null&&(u.shared.lanes=0),Ka|=x,e.lanes=x,e.memoizedState=J}}function kv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function zv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kv(a[e],t)}var _r=A(null),Rs=A(0);function Lv(e,t){e=ma,I(Rs,e),I(_r,t),ma=e|t.baseLanes}function Ef(){I(Rs,ma),I(_r,_r.current)}function Cf(){ma=Rs.current,X(_r),X(Rs)}var $t=A(null),cn=null;function Ya(e){var t=e.alternate;I(rt,rt.current&1),I($t,e),cn===null&&(t===null||_r.current!==null||t.memoizedState!==null)&&(cn=e)}function jf(e){I(rt,rt.current),I($t,e),cn===null&&(cn=e)}function Uv(e){e.tag===22?(I(rt,rt.current),I($t,e),cn===null&&(cn=e)):Qa()}function Qa(){I(rt,rt.current),I($t,$t.current)}function Zt(e){X($t),cn===e&&(cn=null),X(rt)}var rt=A(0);function _s(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ad(a)||Dd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ia=0,Re=null,Ke=null,ut=null,Ts=!1,Tr=!1,Ll=!1,Ms=0,eo=0,Mr=null,P2=0;function tt(){throw Error(i(321))}function Nf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Kt(e[a],t[a]))return!1;return!0}function Rf(e,t,a,o,u,f){return ia=f,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?xg:Qf,Ll=!1,f=a(o,u),Ll=!1,Tr&&(f=qv(t,a,o,u)),Hv(e),f}function Hv(e){U.H=ao;var t=Ke!==null&&Ke.next!==null;if(ia=0,ut=Ke=Re=null,Ts=!1,eo=0,Mr=null,t)throw Error(i(300));e===null||ct||(e=e.dependencies,e!==null&&xs(e)&&(ct=!0))}function qv(e,t,a,o){Re=e;var u=0;do{if(Tr&&(Mr=null),eo=0,Tr=!1,25<=u)throw Error(i(301));if(u+=1,ut=Ke=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=wg,f=t(a,o)}while(Tr);return f}function W2(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Re.flags|=1024),t}function _f(){var e=Ms!==0;return Ms=0,e}function Tf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mf(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}ia=0,ut=Ke=Re=null,Tr=!1,eo=Ms=0,Mr=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?Re.memoizedState=ut=e:ut=ut.next=e,ut}function it(){if(Ke===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ut===null?Re.memoizedState:ut.next;if(t!==null)ut=t,Ke=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ut===null?Re.memoizedState=ut=e:ut=ut.next=e}return ut}function As(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,Mr===null&&(Mr=[]),e=Tv(Mr,e,t),t=Re,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?xg:Qf),e}function Ds(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===T)return wt(e)}throw Error(i(438,String(e)))}function Af(e){var t=null,a=Re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Re.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=As(),Re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=le;return t.index++,a}function oa(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=it();return Df(t,Ke,e)}function Df(e,t,a){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var u=e.baseQueue,f=o.pending;if(f!==null){if(u!==null){var x=u.next;u.next=f.next,f.next=x}t.baseQueue=u=f,o.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var C=x=null,M=null,B=t,Z=!1;do{var J=B.lane&-536870913;if(J!==B.lane?(Oe&J)===J:(ia&J)===J){var Q=B.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),J===Cr&&(Z=!0);else if((ia&Q)===Q){B=B.next,Q===Cr&&(Z=!0);continue}else J={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(C=M=J,x=f):M=M.next=J,Re.lanes|=Q,Ka|=Q;J=B.action,Ll&&a(f,J),f=B.hasEagerState?B.eagerState:a(f,J)}else Q={lane:J,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},M===null?(C=M=Q,x=f):M=M.next=Q,Re.lanes|=J,Ka|=J;B=B.next}while(B!==null&&B!==t);if(M===null?x=f:M.next=C,!Kt(f,e.memoizedState)&&(ct=!0,Z&&(a=jr,a!==null)))throw a;e.memoizedState=f,e.baseState=x,e.baseQueue=M,o.lastRenderedState=f}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Of(e){var t=it(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var o=a.dispatch,u=a.pending,f=t.memoizedState;if(u!==null){a.pending=null;var x=u=u.next;do f=e(f,x.action),x=x.next;while(x!==u);Kt(f,t.memoizedState)||(ct=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,o]}function Bv(e,t,a){var o=Re,u=it(),f=ze;if(f){if(a===void 0)throw Error(i(407));a=a()}else a=t();var x=!Kt((Ke||u).memoizedState,a);if(x&&(u.memoizedState=a,ct=!0),u=u.queue,Lf(Gv.bind(null,o,u,e),[e]),u.getSnapshot!==t||x||ut!==null&&ut.memoizedState.tag&1){if(o.flags|=2048,Ar(9,{destroy:void 0},Qv.bind(null,o,u,a,t),null),Ze===null)throw Error(i(349));f||(ia&127)!==0||Yv(o,t,a)}return a}function Yv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Re.updateQueue,t===null?(t=As(),Re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Qv(e,t,a,o){t.value=a,t.getSnapshot=o,Vv(t)&&Kv(e)}function Gv(e,t,a){return a(function(){Vv(t)&&Kv(e)})}function Vv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Kt(e,a)}catch{return!0}}function Kv(e){var t=Rl(e,2);t!==null&&Ut(t,e,2)}function kf(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),Ll){Aa(!0);try{a()}finally{Aa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e},t}function Xv(e,t,a,o){return e.baseState=a,Df(e,Ke,typeof o=="function"?o:oa)}function I2(e,t,a,o,u){if(Ls(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};U.T!==null?a(!0):f.isTransition=!1,o(f),a=t.pending,a===null?(f.next=t.pending=f,$v(t,f)):(f.next=a.next,t.pending=a.next=f)}}function $v(e,t){var a=t.action,o=t.payload,u=e.state;if(t.isTransition){var f=U.T,x={};U.T=x;try{var C=a(u,o),M=U.S;M!==null&&M(x,C),Zv(e,t,C)}catch(B){zf(e,t,B)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=a(u,o),Zv(e,t,f)}catch(B){zf(e,t,B)}}function Zv(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Fv(e,t,o)},function(o){return zf(e,t,o)}):Fv(e,t,a)}function Fv(e,t,a){t.status="fulfilled",t.value=a,Jv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$v(e,a)))}function zf(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Jv(t),t=t.next;while(t!==o)}e.action=null}function Jv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pv(e,t){return t}function Wv(e,t){if(ze){var a=Ze.formState;if(a!==null){e:{var o=Re;if(ze){if(Fe){t:{for(var u=Fe,f=un;u.nodeType!==8;){if(!f){u=null;break t}if(u=fn(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){Fe=fn(u.nextSibling),o=u.data==="F!";break e}}La(o)}o=!1}o&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pv,lastRenderedState:t},a.queue=o,a=gg.bind(null,Re,o),o.dispatch=a,o=kf(!1),f=Yf.bind(null,Re,!1,o.queue),o=Rt(),u={state:t,dispatch:null,action:e,pending:null},o.queue=u,a=I2.bind(null,Re,u,f,a),u.dispatch=a,o.memoizedState=e,[t,a,!1]}function Iv(e){var t=it();return eg(t,Ke,e)}function eg(e,t,a){if(t=Df(e,t,Pv)[0],e=Os(oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=to(t)}catch(x){throw x===Nr?Es:x}else o=t;t=it();var u=t.queue,f=u.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,Ar(9,{destroy:void 0},eC.bind(null,u,a),null)),[o,f,e]}function eC(e,t){e.action=t}function tg(e){var t=it(),a=Ke;if(a!==null)return eg(t,a,e);it(),t=t.memoizedState,a=it();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ar(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Re.updateQueue,t===null&&(t=As(),Re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function ng(){return it().memoizedState}function ks(e,t,a,o){var u=Rt();Re.flags|=e,u.memoizedState=Ar(1|t,{destroy:void 0},a,o===void 0?null:o)}function zs(e,t,a,o){var u=it();o=o===void 0?null:o;var f=u.memoizedState.inst;Ke!==null&&o!==null&&Nf(o,Ke.memoizedState.deps)?u.memoizedState=Ar(t,f,a,o):(Re.flags|=e,u.memoizedState=Ar(1|t,f,a,o))}function ag(e,t){ks(8390656,8,e,t)}function Lf(e,t){zs(2048,8,e,t)}function tC(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=As(),Re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function lg(e){var t=it().memoizedState;return tC({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function rg(e,t){return zs(4,2,e,t)}function ig(e,t){return zs(4,4,e,t)}function og(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sg(e,t,a){a=a!=null?a.concat([e]):null,zs(4,4,og.bind(null,t,e),a)}function Uf(){}function ug(e,t){var a=it();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Nf(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function cg(e,t){var a=it();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Nf(t,o[1]))return o[0];if(o=e(),Ll){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[o,t],o}function Hf(e,t,a){return a===void 0||(ia&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=fy(),Re.lanes|=e,Ka|=e,a)}function fg(e,t,a,o){return Kt(a,t)?a:_r.current!==null?(e=Hf(e,a,o),Kt(e,t)||(ct=!0),e):(ia&42)===0||(ia&1073741824)!==0&&(Oe&261930)===0?(ct=!0,e.memoizedState=a):(e=fy(),Re.lanes|=e,Ka|=e,t)}function dg(e,t,a,o,u){var f=P.p;P.p=f!==0&&8>f?f:8;var x=U.T,C={};U.T=C,Yf(e,!1,t,a);try{var M=u(),B=U.S;if(B!==null&&B(C,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=J2(M,o);no(e,t,Z,Pt(e))}else no(e,t,o,Pt(e))}catch(J){no(e,t,{then:function(){},status:"rejected",reason:J},Pt())}finally{P.p=f,x!==null&&C.types!==null&&(x.types=C.types),U.T=x}}function nC(){}function qf(e,t,a,o){if(e.tag!==5)throw Error(i(476));var u=hg(e).queue;dg(e,u,t,K,a===null?nC:function(){return mg(e),a(o)})}function hg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mg(e){var t=hg(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},Pt())}function Bf(){return wt(xo)}function pg(){return it().memoizedState}function vg(){return it().memoizedState}function aC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Pt();e=qa(a);var o=Ba(t,e,a);o!==null&&(Ut(o,t,a),Pi(o,t,a)),t={cache:pf()},e.payload=t;return}t=t.return}}function lC(e,t,a){var o=Pt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ls(e)?yg(t,a):(a=af(e,t,a,o),a!==null&&(Ut(a,e,o),bg(a,t,o)))}function gg(e,t,a){var o=Pt();no(e,t,a,o)}function no(e,t,a,o){var u={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))yg(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var x=t.lastRenderedState,C=f(x,a);if(u.hasEagerState=!0,u.eagerState=C,Kt(C,x))return vs(e,t,u,0),Ze===null&&ps(),!1}catch{}finally{}if(a=af(e,t,u,o),a!==null)return Ut(a,e,o),bg(a,t,o),!0}return!1}function Yf(e,t,a,o){if(o={lane:2,revertLane:bd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=af(e,a,o,2),t!==null&&Ut(t,e,2)}function Ls(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function yg(e,t){Tr=Ts=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function bg(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,Cp(e,a)}}var ao={readContext:wt,use:Ds,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};ao.useEffectEvent=tt;var xg={readContext:wt,use:Ds,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:ag,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ks(4194308,4,og.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var o=e();if(Ll){Aa(!0);try{e()}finally{Aa(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Rt();if(a!==void 0){var u=a(t);if(Ll){Aa(!0);try{a(t)}finally{Aa(!1)}}}else u=t;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=lC.bind(null,Re,e),[o.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=kf(e);var t=e.queue,a=gg.bind(null,Re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uf,useDeferredValue:function(e,t){var a=Rt();return Hf(a,e,t)},useTransition:function(){var e=kf(!1);return e=dg.bind(null,Re,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Re,u=Rt();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ze===null)throw Error(i(349));(Oe&127)!==0||Yv(o,t,a)}u.memoizedState=a;var f={value:a,getSnapshot:t};return u.queue=f,ag(Gv.bind(null,o,f,e),[e]),o.flags|=2048,Ar(9,{destroy:void 0},Qv.bind(null,o,f,a,t),null),a},useId:function(){var e=Rt(),t=Ze.identifierPrefix;if(ze){var a=Un,o=Ln;a=(o&~(1<<32-Vt(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ms++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=P2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bf,useFormState:Wv,useActionState:Wv,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Yf.bind(null,Re,!0,a),a.dispatch=t,[e,t]},useMemoCache:Af,useCacheRefresh:function(){return Rt().memoizedState=aC.bind(null,Re)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((Be&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Qf={readContext:wt,use:Ds,useCallback:ug,useContext:wt,useEffect:Lf,useImperativeHandle:sg,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:cg,useReducer:Os,useRef:ng,useState:function(){return Os(oa)},useDebugValue:Uf,useDeferredValue:function(e,t){var a=it();return fg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Os(oa)[0],t=it().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:Bv,useId:pg,useHostTransitionStatus:Bf,useFormState:Iv,useActionState:Iv,useOptimistic:function(e,t){var a=it();return Xv(a,Ke,e,t)},useMemoCache:Af,useCacheRefresh:vg};Qf.useEffectEvent=lg;var wg={readContext:wt,use:Ds,useCallback:ug,useContext:wt,useEffect:Lf,useImperativeHandle:sg,useInsertionEffect:rg,useLayoutEffect:ig,useMemo:cg,useReducer:Of,useRef:ng,useState:function(){return Of(oa)},useDebugValue:Uf,useDeferredValue:function(e,t){var a=it();return Ke===null?Hf(a,e,t):fg(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Of(oa)[0],t=it().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:Bv,useId:pg,useHostTransitionStatus:Bf,useFormState:tg,useActionState:tg,useOptimistic:function(e,t){var a=it();return Ke!==null?Xv(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Af,useCacheRefresh:vg};wg.useEffectEvent=lg;function Gf(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vf={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Pt(),u=qa(o);u.payload=t,a!=null&&(u.callback=a),t=Ba(e,u,o),t!==null&&(Ut(t,e,o),Pi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Pt(),u=qa(o);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ba(e,u,o),t!==null&&(Ut(t,e,o),Pi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Pt(),o=qa(a);o.tag=2,t!=null&&(o.callback=t),t=Ba(e,o,a),t!==null&&(Ut(t,e,a),Pi(t,e,a))}};function Sg(e,t,a,o,u,f,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,x):t.prototype&&t.prototype.isPureReactComponent?!Gi(a,o)||!Gi(u,f):!0}function Eg(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Vf.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Cg(e){ms(e)}function jg(e){console.error(e)}function Ng(e){ms(e)}function Us(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Rg(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Kf(e,t,a){return a=qa(a),a.tag=3,a.payload={element:null},a.callback=function(){Us(e,t)},a}function _g(e){return e=qa(e),e.tag=3,e}function Tg(e,t,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){Rg(t,a,o)}}var x=a.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Rg(t,a,o),typeof u!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function rC(e,t,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&Er(t,a,u,!0),a=$t.current,a!==null){switch(a.tag){case 31:case 13:return cn===null?Fs():a.alternate===null&&nt===0&&(nt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===Cs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),vd(e,o,u)),!1;case 22:return a.flags|=65536,o===Cs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),vd(e,o,u)),!1}throw Error(i(435,a.tag))}return vd(e,o,u),Fs(),!1}if(ze)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,o!==cf&&(e=Error(i(422),{cause:o}),Xi(rn(e,a)))):(o!==cf&&(t=Error(i(423),{cause:o}),Xi(rn(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=rn(o,a),u=Kf(e.stateNode,o,u),wf(e,u),nt!==4&&(nt=2)),!1;var f=Error(i(520),{cause:o});if(f=rn(f,a),fo===null?fo=[f]:fo.push(f),nt!==4&&(nt=2),t===null)return!0;o=rn(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Kf(a.stateNode,o,e),wf(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Xa===null||!Xa.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=_g(u),Tg(u,e,a,o),wf(a,u),!1}a=a.return}while(a!==null);return!1}var Xf=Error(i(461)),ct=!1;function St(e,t,a,o){t.child=e===null?Ov(t,null,a,o):zl(t,e.child,a,o)}function Mg(e,t,a,o,u){a=a.render;var f=t.ref;if("ref"in o){var x={};for(var C in o)C!=="ref"&&(x[C]=o[C])}else x=o;return Al(t),o=Rf(e,t,a,x,f,u),C=_f(),e!==null&&!ct?(Tf(e,t,u),sa(e,t,u)):(ze&&C&&sf(t),t.flags|=1,St(e,t,o,u),t.child)}function Ag(e,t,a,o,u){if(e===null){var f=a.type;return typeof f=="function"&&!lf(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Dg(e,t,f,o,u)):(e=ys(a.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ed(e,u)){var x=f.memoizedProps;if(a=a.compare,a=a!==null?a:Gi,a(x,o)&&e.ref===t.ref)return sa(e,t,u)}return t.flags|=1,e=na(f,o),e.ref=t.ref,e.return=t,t.child=e}function Dg(e,t,a,o,u){if(e!==null){var f=e.memoizedProps;if(Gi(f,o)&&e.ref===t.ref)if(ct=!1,t.pendingProps=o=f,ed(e,u))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,sa(e,t,u)}return $f(e,t,a,o,u)}function Og(e,t,a,o){var u=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~f}else o=0,t.child=null;return kg(e,t,f,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ss(t,f!==null?f.cachePool:null),f!==null?Lv(t,f):Ef(),Uv(t);else return o=t.lanes=536870912,kg(e,t,f!==null?f.baseLanes|a:a,a,o)}else f!==null?(Ss(t,f.cachePool),Lv(t,f),Qa(),t.memoizedState=null):(e!==null&&Ss(t,null),Ef(),Qa());return St(e,t,u,a),t.child}function lo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kg(e,t,a,o,u){var f=gf();return f=f===null?null:{parent:st._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&Ss(t,null),Ef(),Uv(t),e!==null&&Er(e,t,o,!0),t.childLanes=u,null}function Hs(e,t){return t=Bs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zg(e,t,a){return zl(t,e.child,null,a),e=Hs(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function iC(e,t,a){var o=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=Hs(t,o),t.lanes=536870912,lo(null,e);if(jf(t),(e=Fe)?(e=$y(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ka!==null?{id:Ln,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},a=yv(e),a.return=t,t.child=a,xt=t,Fe=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return Hs(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(jf(t),u)if(t.flags&256)t.flags&=-257,t=zg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ct||Er(e,t,a,!1),u=(a&e.childLanes)!==0,ct||u){if(o=Ze,o!==null&&(x=jp(o,a),x!==0&&x!==f.retryLane))throw f.retryLane=x,Rl(e,x),Ut(o,e,x),Xf;Fs(),t=zg(e,t,a)}else e=f.treeContext,Fe=fn(x.nextSibling),xt=t,ze=!0,za=null,un=!1,e!==null&&wv(t,e),t=Hs(t,o),t.flags|=4096;return t}return e=na(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function $f(e,t,a,o,u){return Al(t),a=Rf(e,t,a,o,void 0,u),o=_f(),e!==null&&!ct?(Tf(e,t,u),sa(e,t,u)):(ze&&o&&sf(t),t.flags|=1,St(e,t,a,u),t.child)}function Lg(e,t,a,o,u,f){return Al(t),t.updateQueue=null,a=qv(t,o,a,u),Hv(e),o=_f(),e!==null&&!ct?(Tf(e,t,f),sa(e,t,f)):(ze&&o&&sf(t),t.flags|=1,St(e,t,a,f),t.child)}function Ug(e,t,a,o,u){if(Al(t),t.stateNode===null){var f=br,x=a.contextType;typeof x=="object"&&x!==null&&(f=wt(x)),f=new a(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Vf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},bf(t),x=a.contextType,f.context=typeof x=="object"&&x!==null?wt(x):br,f.state=t.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(Gf(t,a,x,o),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(x=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),x!==f.state&&Vf.enqueueReplaceState(f,f.state,null),Ii(t,o,f,u),Wi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var C=t.memoizedProps,M=Ul(a,C);f.props=M;var B=f.context,Z=a.contextType;x=br,typeof Z=="object"&&Z!==null&&(x=wt(Z));var J=a.getDerivedStateFromProps;Z=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",C=t.pendingProps!==C,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(C||B!==x)&&Eg(t,f,o,x),Ha=!1;var Q=t.memoizedState;f.state=Q,Ii(t,o,f,u),Wi(),B=t.memoizedState,C||Q!==B||Ha?(typeof J=="function"&&(Gf(t,a,J,o),B=t.memoizedState),(M=Ha||Sg(t,a,M,o,Q,B,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=B),f.props=o,f.state=B,f.context=x,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,xf(e,t),x=t.memoizedProps,Z=Ul(a,x),f.props=Z,J=t.pendingProps,Q=f.context,B=a.contextType,M=br,typeof B=="object"&&B!==null&&(M=wt(B)),C=a.getDerivedStateFromProps,(B=typeof C=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==J||Q!==M)&&Eg(t,f,o,M),Ha=!1,Q=t.memoizedState,f.state=Q,Ii(t,o,f,u),Wi();var V=t.memoizedState;x!==J||Q!==V||Ha||e!==null&&e.dependencies!==null&&xs(e.dependencies)?(typeof C=="function"&&(Gf(t,a,C,o),V=t.memoizedState),(Z=Ha||Sg(t,a,Z,o,Q,V,M)||e!==null&&e.dependencies!==null&&xs(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=V),f.props=o,f.state=V,f.context=M,o=Z):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,qs(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=zl(t,e.child,null,u),t.child=zl(t,null,a,u)):St(e,t,a,u),t.memoizedState=f.state,e=t.child):e=sa(e,t,u),e}function Hg(e,t,a,o){return Tl(),t.flags|=256,St(e,t,a,o),t.child}var Zf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ff(e){return{baseLanes:e,cachePool:Rv()}}function Jf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function qg(e,t,a){var o=t.pendingProps,u=!1,f=(t.flags&128)!==0,x;if((x=f)||(x=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(u?Ya(t):Qa(),(e=Fe)?(e=$y(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ka!==null?{id:Ln,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},a=yv(e),a.return=t,t.child=a,xt=t,Fe=null)):e=null,e===null)throw La(t);return Dd(e)?t.lanes=32:t.lanes=536870912,null}var C=o.children;return o=o.fallback,u?(Qa(),u=t.mode,C=Bs({mode:"hidden",children:C},u),o=_l(o,u,a,null),C.return=t,o.return=t,C.sibling=o,t.child=C,o=t.child,o.memoizedState=Ff(a),o.childLanes=Jf(e,x,a),t.memoizedState=Zf,lo(null,o)):(Ya(t),Pf(t,C))}var M=e.memoizedState;if(M!==null&&(C=M.dehydrated,C!==null)){if(f)t.flags&256?(Ya(t),t.flags&=-257,t=Wf(e,t,a)):t.memoizedState!==null?(Qa(),t.child=e.child,t.flags|=128,t=null):(Qa(),C=o.fallback,u=t.mode,o=Bs({mode:"visible",children:o.children},u),C=_l(C,u,a,null),C.flags|=2,o.return=t,C.return=t,o.sibling=C,t.child=o,zl(t,e.child,null,a),o=t.child,o.memoizedState=Ff(a),o.childLanes=Jf(e,x,a),t.memoizedState=Zf,t=lo(null,o));else if(Ya(t),Dd(C)){if(x=C.nextSibling&&C.nextSibling.dataset,x)var B=x.dgst;x=B,o=Error(i(419)),o.stack="",o.digest=x,Xi({value:o,source:null,stack:null}),t=Wf(e,t,a)}else if(ct||Er(e,t,a,!1),x=(a&e.childLanes)!==0,ct||x){if(x=Ze,x!==null&&(o=jp(x,a),o!==0&&o!==M.retryLane))throw M.retryLane=o,Rl(e,o),Ut(x,e,o),Xf;Ad(C)||Fs(),t=Wf(e,t,a)}else Ad(C)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Fe=fn(C.nextSibling),xt=t,ze=!0,za=null,un=!1,e!==null&&wv(t,e),t=Pf(t,o.children),t.flags|=4096);return t}return u?(Qa(),C=o.fallback,u=t.mode,M=e.child,B=M.sibling,o=na(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,B!==null?C=na(B,C):(C=_l(C,u,a,null),C.flags|=2),C.return=t,o.return=t,o.sibling=C,t.child=o,lo(null,o),o=t.child,C=e.child.memoizedState,C===null?C=Ff(a):(u=C.cachePool,u!==null?(M=st._currentValue,u=u.parent!==M?{parent:M,pool:M}:u):u=Rv(),C={baseLanes:C.baseLanes|a,cachePool:u}),o.memoizedState=C,o.childLanes=Jf(e,x,a),t.memoizedState=Zf,lo(e.child,o)):(Ya(t),a=e.child,e=a.sibling,a=na(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=a,t.memoizedState=null,a)}function Pf(e,t){return t=Bs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bs(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function Wf(e,t,a){return zl(t,e.child,null,a),e=Pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),hf(e.return,t,a)}function If(e,t,a,o,u,f){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u,treeForkCount:f}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=a,x.tailMode=u,x.treeForkCount=f)}function Yg(e,t,a){var o=t.pendingProps,u=o.revealOrder,f=o.tail;o=o.children;var x=rt.current,C=(x&2)!==0;if(C?(x=x&1|2,t.flags|=128):x&=1,I(rt,x),St(e,t,o,a),o=ze?Ki:0,!C&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bg(e,a,t);else if(e.tag===19)Bg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&_s(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),If(t,!1,u,a,f,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&_s(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}If(t,!0,a,null,f,o);break;case"together":If(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Er(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=na(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=na(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ed(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xs(e)))}function oC(e,t,a){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),Ua(t,st,e.memoizedState.cache),Tl();break;case 27:case 5:je(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:Ua(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jf(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ya(t),t.flags|=128,null):(a&t.child.childLanes)!==0?qg(e,t,a):(Ya(t),e=sa(e,t,a),e!==null?e.sibling:null);Ya(t);break;case 19:var u=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Er(e,t,a,!1),o=(a&t.childLanes)!==0),u){if(o)return Yg(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I(rt,rt.current),o)break;return null;case 22:return t.lanes=0,Og(e,t,a,t.pendingProps);case 24:Ua(t,st,e.memoizedState.cache)}return sa(e,t,a)}function Qg(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!ed(e,a)&&(t.flags&128)===0)return ct=!1,oC(e,t,a);ct=(e.flags&131072)!==0}else ct=!1,ze&&(t.flags&1048576)!==0&&xv(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Ol(t.elementType),t.type=e,typeof e=="function")lf(e)?(o=Ul(e,o),t.tag=1,t=Ug(null,t,e,o,a)):(t.tag=0,t=$f(null,t,e,o,a));else{if(e!=null){var u=e.$$typeof;if(u===k){t.tag=11,t=Mg(null,t,e,o,a);break e}else if(u===Y){t.tag=14,t=Ag(null,t,e,o,a);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return $f(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,u=Ul(o,t.pendingProps),Ug(e,t,o,u,a);case 3:e:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;u=f.element,xf(e,t),Ii(t,o,null,a);var x=t.memoizedState;if(o=x.cache,Ua(t,st,o),o!==f.cache&&mf(t,[st],a,!0),Wi(),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=Hg(e,t,o,a);break e}else if(o!==u){u=rn(Error(i(424)),t),Xi(u),t=Hg(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=fn(e.firstChild),xt=t,ze=!0,za=null,un=!0,a=Ov(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Tl(),o===u){t=sa(e,t,a);break e}St(e,t,o,a)}t=t.child}return t;case 26:return qs(e,t),e===null?(a=Iy(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,o=nu(Ee.current).createElement(a),o[bt]=t,o[At]=e,Et(o,a,e),gt(o),t.stateNode=o):t.memoizedState=Iy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&ze&&(o=t.stateNode=Jy(t.type,t.pendingProps,Ee.current),xt=t,un=!0,u=Fe,Ja(t.type)?(Od=u,Fe=fn(o.firstChild)):Fe=u),St(e,t,t.pendingProps.children,a),qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((u=o=Fe)&&(o=UC(o,t.type,t.pendingProps,un),o!==null?(t.stateNode=o,xt=t,Fe=fn(o.firstChild),un=!1,u=!0):u=!1),u||La(t)),je(t),u=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,_d(u,f)?o=null:x!==null&&_d(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=Rf(e,t,W2,null,null,a),xo._currentValue=u),qs(e,t),St(e,t,o,a),t.child;case 6:return e===null&&ze&&((e=a=Fe)&&(a=HC(a,t.pendingProps,un),a!==null?(t.stateNode=a,xt=t,Fe=null,e=!0):e=!1),e||La(t)),null;case 13:return qg(e,t,a);case 4:return Ce(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=zl(t,null,o,a):St(e,t,o,a),t.child;case 11:return Mg(e,t,t.type,t.pendingProps,a);case 7:return St(e,t,t.pendingProps,a),t.child;case 8:return St(e,t,t.pendingProps.children,a),t.child;case 12:return St(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Ua(t,t.type,o.value),St(e,t,o.children,a),t.child;case 9:return u=t.type._context,o=t.pendingProps.children,Al(t),u=wt(u),o=o(u),t.flags|=1,St(e,t,o,a),t.child;case 14:return Ag(e,t,t.type,t.pendingProps,a);case 15:return Dg(e,t,t.type,t.pendingProps,a);case 19:return Yg(e,t,a);case 31:return iC(e,t,a);case 22:return Og(e,t,a,t.pendingProps);case 24:return Al(t),o=wt(st),e===null?(u=gf(),u===null&&(u=Ze,f=pf(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),t.memoizedState={parent:o,cache:u},bf(t),Ua(t,st,u)):((e.lanes&a)!==0&&(xf(e,t),Ii(t,null,null,a),Wi()),u=e.memoizedState,f=t.memoizedState,u.parent!==o?(u={parent:o,cache:o},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ua(t,st,o)):(o=f.cache,Ua(t,st,o),o!==u.cache&&mf(t,[st],a,!0))),St(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ua(e){e.flags|=4}function td(e,t,a,o,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(py())e.flags|=8192;else throw kl=Cs,yf}else e.flags&=-16777217}function Gg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!l0(t))if(py())e.flags|=8192;else throw kl=Cs,yf}function Ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Sp():536870912,e.lanes|=t,zr|=t)}function ro(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function sC(e,t,a){var o=t.pendingProps;switch(uf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ra(st),ye(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Sr(t)?ua(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ff())),Je(t),null;case 26:var u=t.type,f=t.memoizedState;return e===null?(ua(t),f!==null?(Je(t),Gg(t,f)):(Je(t),td(t,u,null,o,a))):f?f!==e.memoizedState?(ua(t),Je(t),Gg(t,f)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ua(t),Je(t),td(t,u,e,o,a)),null;case 27:if(Ue(t),a=Ee.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ua(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Je(t),null}e=ae.current,Sr(t)?Sv(t):(e=Jy(u,o,a),t.stateNode=e,ua(t))}return Je(t),null;case 5:if(Ue(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ua(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Je(t),null}if(f=ae.current,Sr(t))Sv(t);else{var x=nu(Ee.current);switch(f){case 1:f=x.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:f=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":f=x.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":f=x.createElementNS("http://www.w3.org/1998/Math/MathML",u);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(u,{is:o.is}):x.createElement(u)}}f[bt]=t,f[At]=o;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)f.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=f;e:switch(Et(f,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ua(t)}}return Je(t),td(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ua(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=Ee.current,Sr(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,u=xt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[bt]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||qy(e.nodeValue,a)),e||La(t,!0)}else e=nu(e).createTextNode(o),e[bt]=t,t.stateNode=e}return Je(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Sr(t),a!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[bt]=t}else Tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=ff(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Je(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Sr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[bt]=t}else Tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),u=!1}else u=ff(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==u&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ys(t,t.updateQueue),Je(t),null);case 4:return ye(),e===null&&Ed(t.stateNode.containerInfo),Je(t),null;case 10:return ra(t.type),Je(t),null;case 19:if(X(rt),o=t.memoizedState,o===null)return Je(t),null;if(u=(t.flags&128)!==0,f=o.rendering,f===null)if(u)ro(o,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=_s(e),f!==null){for(t.flags|=128,ro(o,!1),e=f.updateQueue,t.updateQueue=e,Ys(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)gv(a,e),a=a.sibling;return I(rt,rt.current&1|2),ze&&aa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Qt()>Xs&&(t.flags|=128,u=!0,ro(o,!1),t.lanes=4194304)}else{if(!u)if(e=_s(f),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ys(t,e),ro(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return Je(t),null}else 2*Qt()-o.renderingStartTime>Xs&&a!==536870912&&(t.flags|=128,u=!0,ro(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=Qt(),e.sibling=null,a=rt.current,I(rt,u?a&1|2:a&1),ze&&aa(t,o.treeForkCount),e):(Je(t),null);case 22:case 23:return Zt(t),Cf(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&Ys(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&X(Dl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(st),Je(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function uC(e,t){switch(uf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(st),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ue(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(i(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(rt),null;case 4:return ye(),null;case 10:return ra(t.type),null;case 22:case 23:return Zt(t),Cf(),e!==null&&X(Dl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(st),null;case 25:return null;default:return null}}function Vg(e,t){switch(uf(t),t.tag){case 3:ra(st),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:X(rt);break;case 10:ra(t.type);break;case 22:case 23:Zt(t),Cf(),e!==null&&X(Dl);break;case 24:ra(st)}}function io(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){o=void 0;var f=a.create,x=a.inst;o=f(),x.destroy=o}a=a.next}while(a!==u)}}catch(C){Ve(t,t.return,C)}}function Ga(e,t,a){try{var o=t.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var f=u.next;o=f;do{if((o.tag&e)===e){var x=o.inst,C=x.destroy;if(C!==void 0){x.destroy=void 0,u=t;var M=a,B=C;try{B()}catch(Z){Ve(u,M,Z)}}}o=o.next}while(o!==f)}}catch(Z){Ve(t,t.return,Z)}}function Kg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{zv(t,a)}catch(o){Ve(e,e.return,o)}}}function Xg(e,t,a){a.props=Ul(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ve(e,t,o)}}function oo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(u){Ve(e,t,u)}}function Hn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(u){Ve(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ve(e,t,u)}else a.current=null}function $g(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(u){Ve(e,e.return,u)}}function nd(e,t,a){try{var o=e.stateNode;AC(o,e.type,a,t),o[At]=t}catch(u){Ve(e,e.return,u)}}function Zg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ja(e.type)||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zg(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&&Ja(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 ld(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ea));else if(o!==4&&(o===27&&Ja(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ld(e,t,a),e=e.sibling;e!==null;)ld(e,t,a),e=e.sibling}function Qs(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Ja(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Qs(e,t,a),e=e.sibling;e!==null;)Qs(e,t,a),e=e.sibling}function Fg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Et(t,o,a),t[bt]=e,t[At]=a}catch(f){Ve(e,e.return,f)}}var ca=!1,ft=!1,rd=!1,Jg=typeof WeakSet=="function"?WeakSet:Set,yt=null;function cC(e,t){if(e=e.containerInfo,Nd=uu,e=sv(e),Pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var u=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var x=0,C=-1,M=-1,B=0,Z=0,J=e,Q=null;t:for(;;){for(var V;J!==a||u!==0&&J.nodeType!==3||(C=x+u),J!==f||o!==0&&J.nodeType!==3||(M=x+o),J.nodeType===3&&(x+=J.nodeValue.length),(V=J.firstChild)!==null;)Q=J,J=V;for(;;){if(J===e)break t;if(Q===a&&++B===u&&(C=x),Q===f&&++Z===o&&(M=x),(V=J.nextSibling)!==null)break;J=Q,Q=J.parentNode}J=V}a=C===-1||M===-1?null:{start:C,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Rd={focusedElem:e,selectionRange:a},uu=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,u=f.memoizedProps,f=f.memoizedState,o=a.stateNode;try{var ce=Ul(a.type,u);e=o.getSnapshotBeforeUpdate(ce,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ve(a,a.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Md(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Md(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,yt=e;break}yt=t.return}}function Pg(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:da(e,a),o&4&&io(5,a);break;case 1:if(da(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(a,a.return,x)}else{var u=Ul(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(a,a.return,x)}}o&64&&Kg(a),o&512&&oo(a,a.return);break;case 3:if(da(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{zv(e,t)}catch(x){Ve(a,a.return,x)}}break;case 27:t===null&&o&4&&Fg(a);case 26:case 5:da(e,a),t===null&&o&4&&$g(a),o&512&&oo(a,a.return);break;case 12:da(e,a);break;case 31:da(e,a),o&4&&ey(e,a);break;case 13:da(e,a),o&4&&ty(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=bC.bind(null,a),qC(e,a))));break;case 22:if(o=a.memoizedState!==null||ca,!o){t=t!==null&&t.memoizedState!==null||ft,u=ca;var f=ft;ca=o,(ft=t)&&!f?ha(e,a,(a.subtreeFlags&8772)!==0):da(e,a),ca=u,ft=f}break;case 30:break;default:da(e,a)}}function Wg(e){var t=e.alternate;t!==null&&(e.alternate=null,Wg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kc(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 Pe=null,Ot=!1;function fa(e,t,a){for(a=a.child;a!==null;)Ig(e,t,a),a=a.sibling}function Ig(e,t,a){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Ai,a)}catch{}switch(a.tag){case 26:ft||Hn(a,t),fa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ft||Hn(a,t);var o=Pe,u=Ot;Ja(a.type)&&(Pe=a.stateNode,Ot=!1),fa(e,t,a),go(a.stateNode),Pe=o,Ot=u;break;case 5:ft||Hn(a,t);case 6:if(o=Pe,u=Ot,Pe=null,fa(e,t,a),Pe=o,Ot=u,Pe!==null)if(Ot)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(a.stateNode)}catch(f){Ve(a,t,f)}else try{Pe.removeChild(a.stateNode)}catch(f){Ve(a,t,f)}break;case 18:Pe!==null&&(Ot?(e=Pe,Ky(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Gr(e)):Ky(Pe,a.stateNode));break;case 4:o=Pe,u=Ot,Pe=a.stateNode.containerInfo,Ot=!0,fa(e,t,a),Pe=o,Ot=u;break;case 0:case 11:case 14:case 15:Ga(2,a,t),ft||Ga(4,a,t),fa(e,t,a);break;case 1:ft||(Hn(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Xg(a,t,o)),fa(e,t,a);break;case 21:fa(e,t,a);break;case 22:ft=(o=ft)||a.memoizedState!==null,fa(e,t,a),ft=o;break;default:fa(e,t,a)}}function ey(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gr(e)}catch(a){Ve(t,t.return,a)}}}function ty(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gr(e)}catch(a){Ve(t,t.return,a)}}function fC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jg),t;default:throw Error(i(435,e.tag))}}function Gs(e,t){var a=fC(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var u=xC.bind(null,e,o);o.then(u,u)}})}function kt(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var u=a[o],f=e,x=t,C=x;e:for(;C!==null;){switch(C.tag){case 27:if(Ja(C.type)){Pe=C.stateNode,Ot=!1;break e}break;case 5:Pe=C.stateNode,Ot=!1;break e;case 3:case 4:Pe=C.stateNode.containerInfo,Ot=!0;break e}C=C.return}if(Pe===null)throw Error(i(160));Ig(f,x,u),Pe=null,Ot=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ny(t,e),t=t.sibling}var Cn=null;function ny(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),zt(e),o&4&&(Ga(3,e,e.return),io(3,e),Ga(5,e,e.return));break;case 1:kt(t,e),zt(e),o&512&&(ft||a===null||Hn(a,a.return)),o&64&&ca&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var u=Cn;if(kt(t,e),zt(e),o&512&&(ft||a===null||Hn(a,a.return)),o&4){var f=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":f=u.getElementsByTagName("title")[0],(!f||f[ki]||f[bt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(o),u.head.insertBefore(f,u.querySelector("head > title"))),Et(f,o,a),f[bt]=e,gt(f),o=f;break e;case"link":var x=n0("link","href",u).get(o+(a.href||""));if(x){for(var C=0;C<x.length;C++)if(f=x[C],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){x.splice(C,1);break t}}f=u.createElement(o),Et(f,o,a),u.head.appendChild(f);break;case"meta":if(x=n0("meta","content",u).get(o+(a.content||""))){for(C=0;C<x.length;C++)if(f=x[C],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){x.splice(C,1);break t}}f=u.createElement(o),Et(f,o,a),u.head.appendChild(f);break;default:throw Error(i(468,o))}f[bt]=e,gt(f),o=f}e.stateNode=o}else a0(u,e.type,e.stateNode);else e.stateNode=t0(u,o,e.memoizedProps);else f!==o?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,o===null?a0(u,e.type,e.stateNode):t0(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&nd(e,e.memoizedProps,a.memoizedProps)}break;case 27:kt(t,e),zt(e),o&512&&(ft||a===null||Hn(a,a.return)),a!==null&&o&4&&nd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(kt(t,e),zt(e),o&512&&(ft||a===null||Hn(a,a.return)),e.flags&32){u=e.stateNode;try{dr(u,"")}catch(ce){Ve(e,e.return,ce)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,nd(e,u,a!==null?a.memoizedProps:u)),o&1024&&(rd=!0);break;case 6:if(kt(t,e),zt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(ce){Ve(e,e.return,ce)}}break;case 3:if(ru=null,u=Cn,Cn=au(t.containerInfo),kt(t,e),Cn=u,zt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Gr(t.containerInfo)}catch(ce){Ve(e,e.return,ce)}rd&&(rd=!1,ay(e));break;case 4:o=Cn,Cn=au(e.stateNode.containerInfo),kt(t,e),zt(e),Cn=o;break;case 12:kt(t,e),zt(e);break;case 31:kt(t,e),zt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gs(e,o)));break;case 13:kt(t,e),zt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ks=Qt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gs(e,o)));break;case 22:u=e.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,B=ca,Z=ft;if(ca=B||u,ft=Z||M,kt(t,e),ft=Z,ca=B,zt(e),o&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||M||ca||ft||Hl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){M=a=t;try{if(f=M.stateNode,u)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{C=M.stateNode;var J=M.memoizedProps.style,Q=J!=null&&J.hasOwnProperty("display")?J.display:null;C.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ce){Ve(M,M.return,ce)}}}else if(t.tag===6){if(a===null){M=t;try{M.stateNode.nodeValue=u?"":M.memoizedProps}catch(ce){Ve(M,M.return,ce)}}}else if(t.tag===18){if(a===null){M=t;try{var V=M.stateNode;u?Xy(V,!0):Xy(M.stateNode,!1)}catch(ce){Ve(M,M.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Gs(e,a))));break;case 19:kt(t,e),zt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gs(e,o)));break;case 30:break;case 21:break;default:kt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(Zg(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var u=a.stateNode,f=ad(e);Qs(e,f,u);break;case 5:var x=a.stateNode;a.flags&32&&(dr(x,""),a.flags&=-33);var C=ad(e);Qs(e,C,x);break;case 3:case 4:var M=a.stateNode.containerInfo,B=ad(e);ld(e,B,M);break;default:throw Error(i(161))}}catch(Z){Ve(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ay(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ay(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Pg(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ga(4,t,t.return),Hl(t);break;case 1:Hn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Xg(t,t.return,a),Hl(t);break;case 27:go(t.stateNode);case 26:case 5:Hn(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function ha(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,u=e,f=t,x=f.flags;switch(f.tag){case 0:case 11:case 15:ha(u,f,a),io(4,f);break;case 1:if(ha(u,f,a),o=f,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){Ve(o,o.return,B)}if(o=f,u=o.updateQueue,u!==null){var C=o.stateNode;try{var M=u.shared.hiddenCallbacks;if(M!==null)for(u.shared.hiddenCallbacks=null,u=0;u<M.length;u++)kv(M[u],C)}catch(B){Ve(o,o.return,B)}}a&&x&64&&Kg(f),oo(f,f.return);break;case 27:Fg(f);case 26:case 5:ha(u,f,a),a&&o===null&&x&4&&$g(f),oo(f,f.return);break;case 12:ha(u,f,a);break;case 31:ha(u,f,a),a&&x&4&&ey(u,f);break;case 13:ha(u,f,a),a&&x&4&&ty(u,f);break;case 22:f.memoizedState===null&&ha(u,f,a),oo(f,f.return);break;case 30:break;default:ha(u,f,a)}t=t.sibling}}function id(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&$i(a))}function od(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function jn(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ly(e,t,a,o),t=t.sibling}function ly(e,t,a,o){var u=t.flags;switch(t.tag){case 0:case 11:case 15:jn(e,t,a,o),u&2048&&io(9,t);break;case 1:jn(e,t,a,o);break;case 3:jn(e,t,a,o),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(u&2048){jn(e,t,a,o),e=t.stateNode;try{var f=t.memoizedProps,x=f.id,C=f.onPostCommit;typeof C=="function"&&C(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ve(t,t.return,M)}}else jn(e,t,a,o);break;case 31:jn(e,t,a,o);break;case 13:jn(e,t,a,o);break;case 23:break;case 22:f=t.stateNode,x=t.alternate,t.memoizedState!==null?f._visibility&2?jn(e,t,a,o):so(e,t):f._visibility&2?jn(e,t,a,o):(f._visibility|=2,Dr(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),u&2048&&id(x,t);break;case 24:jn(e,t,a,o),u&2048&&od(t.alternate,t);break;default:jn(e,t,a,o)}}function Dr(e,t,a,o,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,x=t,C=a,M=o,B=x.flags;switch(x.tag){case 0:case 11:case 15:Dr(f,x,C,M,u),io(8,x);break;case 23:break;case 22:var Z=x.stateNode;x.memoizedState!==null?Z._visibility&2?Dr(f,x,C,M,u):so(f,x):(Z._visibility|=2,Dr(f,x,C,M,u)),u&&B&2048&&id(x.alternate,x);break;case 24:Dr(f,x,C,M,u),u&&B&2048&&od(x.alternate,x);break;default:Dr(f,x,C,M,u)}t=t.sibling}}function so(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,u=o.flags;switch(o.tag){case 22:so(a,o),u&2048&&id(o.alternate,o);break;case 24:so(a,o),u&2048&&od(o.alternate,o);break;default:so(a,o)}t=t.sibling}}var uo=8192;function Or(e,t,a){if(e.subtreeFlags&uo)for(e=e.child;e!==null;)ry(e,t,a),e=e.sibling}function ry(e,t,a){switch(e.tag){case 26:Or(e,t,a),e.flags&uo&&e.memoizedState!==null&&PC(a,Cn,e.memoizedState,e.memoizedProps);break;case 5:Or(e,t,a);break;case 3:case 4:var o=Cn;Cn=au(e.stateNode.containerInfo),Or(e,t,a),Cn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=uo,uo=16777216,Or(e,t,a),uo=o):Or(e,t,a));break;default:Or(e,t,a)}}function iy(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 co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];yt=o,sy(o,e)}iy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 0:case 11:case 15:co(e),e.flags&2048&&Ga(9,e,e.return);break;case 3:co(e);break;case 12:co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vs(e)):co(e);break;default:co(e)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];yt=o,sy(o,e)}iy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ga(8,t,t.return),Vs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Vs(t));break;default:Vs(t)}e=e.sibling}}function sy(e,t){for(;yt!==null;){var a=yt;switch(a.tag){case 0:case 11:case 15:Ga(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$i(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,yt=o;else e:for(a=e;yt!==null;){o=yt;var u=o.sibling,f=o.return;if(Wg(o),o===a){yt=null;break e}if(u!==null){u.return=f,yt=u;break e}yt=f}}}var dC={getCacheForType:function(e){var t=wt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return wt(st).controller.signal}},hC=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ze=null,Ae=null,Oe=0,Ge=0,Ft=null,Va=!1,kr=!1,sd=!1,ma=0,nt=0,Ka=0,ql=0,ud=0,Jt=0,zr=0,fo=null,Lt=null,cd=!1,Ks=0,uy=0,Xs=1/0,$s=null,Xa=null,ht=0,$a=null,Lr=null,pa=0,fd=0,dd=null,cy=null,ho=0,hd=null;function Pt(){return(Be&2)!==0&&Oe!==0?Oe&-Oe:U.T!==null?bd():Np()}function fy(){if(Jt===0)if((Oe&536870912)===0||ze){var e=ts;ts<<=1,(ts&3932160)===0&&(ts=262144),Jt=e}else Jt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Jt}function Ut(e,t,a){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Ur(e,0),Za(e,Oe,Jt,!1)),Oi(e,a),((Be&2)===0||e!==Ze)&&(e===Ze&&((Be&2)===0&&(ql|=a),nt===4&&Za(e,Oe,Jt,!1)),qn(e))}function dy(e,t,a){if((Be&6)!==0)throw Error(i(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Di(e,t),u=o?vC(e,t):pd(e,t,!0),f=o;do{if(u===0){kr&&!o&&Za(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!mC(a)){u=pd(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var C=e;u=fo;var M=C.current.memoizedState.isDehydrated;if(M&&(Ur(C,x).flags|=256),x=pd(C,x,!1),x!==2){if(sd&&!M){C.errorRecoveryDisabledLanes|=f,ql|=f,u=4;break e}f=Lt,Lt=u,f!==null&&(Lt===null?Lt=f:Lt.push.apply(Lt,f))}u=x}if(f=!1,u!==2)continue}}if(u===1){Ur(e,0),Za(e,t,0,!0);break}e:{switch(o=e,f=u,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Za(o,t,Jt,!Va);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(u=Ks+300-Qt(),10<u)){if(Za(o,t,Jt,!Va),as(o,0,!0)!==0)break e;pa=t,o.timeoutHandle=Gy(hy.bind(null,o,a,Lt,$s,cd,t,Jt,ql,zr,Va,f,"Throttled",-0,0),u);break e}hy(o,a,Lt,$s,cd,t,Jt,ql,zr,Va,f,null,-0,0)}}break}while(!0);qn(e)}function hy(e,t,a,o,u,f,x,C,M,B,Z,J,Q,V){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:ea},ry(t,f,J);var ce=(f&62914560)===f?Ks-Qt():(f&4194048)===f?uy-Qt():0;if(ce=WC(J,ce),ce!==null){pa=f,e.cancelPendingCommit=ce(wy.bind(null,e,t,f,a,o,u,x,C,M,Z,J,null,Q,V)),Za(e,f,x,!B);return}}wy(e,t,f,a,o,u,x,C,M)}function mC(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var u=a[o],f=u.getSnapshot;u=u.value;try{if(!Kt(f(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Za(e,t,a,o){t&=~ud,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var u=t;0<u;){var f=31-Vt(u),x=1<<f;o[f]=-1,u&=~x}a!==0&&Ep(e,a,t)}function Zs(){return(Be&6)===0?(mo(0),!1):!0}function md(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,la=Ml=null,Mf(e),Rr=null,Fi=0,e=Ae;for(;e!==null;)Vg(e.alternate,e),e=e.return;Ae=null}}function Ur(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,kC(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pa=0,md(),Ze=e,Ae=a=na(e.current,null),Oe=t,Ge=0,Ft=null,Va=!1,kr=Di(e,t),sd=!1,zr=Jt=ud=ql=Ka=nt=0,Lt=fo=null,cd=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var u=31-Vt(o),f=1<<u;t|=e[u],o&=~f}return ma=t,ps(),a}function my(e,t){Re=null,U.H=ao,t===Nr||t===Es?(t=Mv(),Ge=3):t===yf?(t=Mv(),Ge=4):Ge=t===Xf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,Ae===null&&(nt=1,Us(e,rn(t,e.current)))}function py(){var e=$t.current;return e===null?!0:(Oe&4194048)===Oe?cn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===cn:!1}function vy(){var e=U.H;return U.H=ao,e===null?ao:e}function gy(){var e=U.A;return U.A=dC,e}function Fs(){nt=4,Va||(Oe&4194048)!==Oe&&$t.current!==null||(kr=!0),(Ka&134217727)===0&&(ql&134217727)===0||Ze===null||Za(Ze,Oe,Jt,!1)}function pd(e,t,a){var o=Be;Be|=2;var u=vy(),f=gy();(Ze!==e||Oe!==t)&&($s=null,Ur(e,t)),t=!1;var x=nt;e:do try{if(Ge!==0&&Ae!==null){var C=Ae,M=Ft;switch(Ge){case 8:md(),x=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var B=Ge;if(Ge=0,Ft=null,Hr(e,C,M,B),a&&kr){x=0;break e}break;default:B=Ge,Ge=0,Ft=null,Hr(e,C,M,B)}}pC(),x=nt;break}catch(Z){my(e,Z)}while(!0);return t&&e.shellSuspendCounter++,la=Ml=null,Be=o,U.H=u,U.A=f,Ae===null&&(Ze=null,Oe=0,ps()),x}function pC(){for(;Ae!==null;)yy(Ae)}function vC(e,t){var a=Be;Be|=2;var o=vy(),u=gy();Ze!==e||Oe!==t?($s=null,Xs=Qt()+500,Ur(e,t)):kr=Di(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=Ft;t:switch(Ge){case 1:Ge=0,Ft=null,Hr(e,t,f,1);break;case 2:case 9:if(_v(f)){Ge=0,Ft=null,by(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),qn(e)},f.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:_v(f)?(Ge=0,Ft=null,by(t)):(Ge=0,Ft=null,Hr(e,t,f,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var C=Ae;if(x?l0(x):C.stateNode.complete){Ge=0,Ft=null;var M=C.sibling;if(M!==null)Ae=M;else{var B=C.return;B!==null?(Ae=B,Js(B)):Ae=null}break t}}Ge=0,Ft=null,Hr(e,t,f,5);break;case 6:Ge=0,Ft=null,Hr(e,t,f,6);break;case 8:md(),nt=6;break e;default:throw Error(i(462))}}gC();break}catch(Z){my(e,Z)}while(!0);return la=Ml=null,U.H=o,U.A=u,Be=a,Ae!==null?0:(Ze=null,Oe=0,ps(),nt)}function gC(){for(;Ae!==null&&!BE();)yy(Ae)}function yy(e){var t=Qg(e.alternate,e,ma);e.memoizedProps=e.pendingProps,t===null?Js(e):Ae=t}function by(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Lg(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Lg(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Mf(t);default:Vg(a,t),t=Ae=gv(t,ma),t=Qg(a,t,ma)}e.memoizedProps=e.pendingProps,t===null?Js(e):Ae=t}function Hr(e,t,a,o){la=Ml=null,Mf(t),Rr=null,Fi=0;var u=t.return;try{if(rC(e,u,t,a,Oe)){nt=1,Us(e,rn(a,e.current)),Ae=null;return}}catch(f){if(u!==null)throw Ae=u,f;nt=1,Us(e,rn(a,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:kr||(Oe&536870912)!==0?e=!1:(Va=e=!0,(o===2||o===9||o===3||o===6)&&(o=$t.current,o!==null&&o.tag===13&&(o.flags|=16384))),xy(t,e)):Js(t)}function Js(e){var t=e;do{if((t.flags&32768)!==0){xy(t,Va);return}e=t.return;var a=sC(t.alternate,t,ma);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);nt===0&&(nt=5)}function xy(e,t){do{var a=uC(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);nt=6,Ae=null}function wy(e,t,a,o,u,f,x,C,M){e.cancelPendingCommit=null;do Ps();while(ht!==0);if((Be&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=nf,JE(e,a,f,x,C,M),e===Ze&&(Ae=Ze=null,Oe=0),Lr=t,$a=e,pa=a,fd=f,dd=u,cy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,wC(Io,function(){return Ny(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,u=P.p,P.p=2,x=Be,Be|=4;try{cC(e,t,a)}finally{Be=x,P.p=u,U.T=o}}ht=1,Sy(),Ey(),Cy()}}function Sy(){if(ht===1){ht=0;var e=$a,t=Lr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var o=P.p;P.p=2;var u=Be;Be|=4;try{ny(t,e);var f=Rd,x=sv(e.containerInfo),C=f.focusedElem,M=f.selectionRange;if(x!==C&&C&&C.ownerDocument&&ov(C.ownerDocument.documentElement,C)){if(M!==null&&Pc(C)){var B=M.start,Z=M.end;if(Z===void 0&&(Z=B),"selectionStart"in C)C.selectionStart=B,C.selectionEnd=Math.min(Z,C.value.length);else{var J=C.ownerDocument||document,Q=J&&J.defaultView||window;if(Q.getSelection){var V=Q.getSelection(),ce=C.textContent.length,Se=Math.min(M.start,ce),$e=M.end===void 0?Se:Math.min(M.end,ce);!V.extend&&Se>$e&&(x=$e,$e=Se,Se=x);var z=iv(C,Se),O=iv(C,$e);if(z&&O&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var q=J.createRange();q.setStart(z.node,z.offset),V.removeAllRanges(),Se>$e?(V.addRange(q),V.extend(O.node,O.offset)):(q.setEnd(O.node,O.offset),V.addRange(q))}}}}for(J=[],V=C;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<J.length;C++){var F=J[C];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}uu=!!Nd,Rd=Nd=null}finally{Be=u,P.p=o,U.T=a}}e.current=t,ht=2}}function Ey(){if(ht===2){ht=0;var e=$a,t=Lr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var o=P.p;P.p=2;var u=Be;Be|=4;try{Pg(e,t.alternate,t)}finally{Be=u,P.p=o,U.T=a}}ht=3}}function Cy(){if(ht===4||ht===3){ht=0,YE();var e=$a,t=Lr,a=pa,o=cy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,Lr=$a=null,jy(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Xa=null),Dc(a),t=t.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Ai,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,u=P.p,P.p=2,U.T=null;try{for(var f=e.onRecoverableError,x=0;x<o.length;x++){var C=o[x];f(C.value,{componentStack:C.stack})}}finally{U.T=t,P.p=u}}(pa&3)!==0&&Ps(),qn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===hd?ho++:(ho=0,hd=e):ho=0,mo(0)}}function jy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Ps(){return Sy(),Ey(),Cy(),Ny()}function Ny(){if(ht!==5)return!1;var e=$a,t=fd;fd=0;var a=Dc(pa),o=U.T,u=P.p;try{P.p=32>a?32:a,U.T=null,a=dd,dd=null;var f=$a,x=pa;if(ht=0,Lr=$a=null,pa=0,(Be&6)!==0)throw Error(i(331));var C=Be;if(Be|=4,oy(f.current),ly(f,f.current,x,a),Be=C,mo(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Ai,f)}catch{}return!0}finally{P.p=u,U.T=o,jy(e,t)}}function Ry(e,t,a){t=rn(a,t),t=Kf(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Oi(e,2),qn(e))}function Ve(e,t,a){if(e.tag===3)Ry(e,e,a);else for(;t!==null;){if(t.tag===3){Ry(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Xa===null||!Xa.has(o))){e=rn(a,e),a=_g(2),o=Ba(t,a,2),o!==null&&(Tg(a,o,t,e),Oi(o,2),qn(o));break}}t=t.return}}function vd(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new hC;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(a)||(sd=!0,u.add(a),e=yC.bind(null,e,t,a),t.then(e,e))}function yC(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ze===e&&(Oe&a)===a&&(nt===4||nt===3&&(Oe&62914560)===Oe&&300>Qt()-Ks?(Be&2)===0&&Ur(e,0):ud|=a,zr===Oe&&(zr=0)),qn(e)}function _y(e,t){t===0&&(t=Sp()),e=Rl(e,t),e!==null&&(Oi(e,t),qn(e))}function bC(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_y(e,a)}function xC(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(a=u.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),_y(e,a)}function wC(e,t){return _c(e,t)}var Ws=null,qr=null,gd=!1,Is=!1,yd=!1,Fa=0;function qn(e){e!==qr&&e.next===null&&(qr===null?Ws=qr=e:qr=qr.next=e),Is=!0,gd||(gd=!0,EC())}function mo(e,t){if(!yd&&Is){yd=!0;do for(var a=!1,o=Ws;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var f=0;else{var x=o.suspendedLanes,C=o.pingedLanes;f=(1<<31-Vt(42|e)+1)-1,f&=u&~(x&~C),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Dy(o,f))}else f=Oe,f=as(o,o===Ze?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Di(o,f)||(a=!0,Dy(o,f));o=o.next}while(a);yd=!1}}function SC(){Ty()}function Ty(){Is=gd=!1;var e=0;Fa!==0&&OC()&&(e=Fa);for(var t=Qt(),a=null,o=Ws;o!==null;){var u=o.next,f=My(o,t);f===0?(o.next=null,a===null?Ws=u:a.next=u,u===null&&(qr=a)):(a=o,(e!==0||(f&3)!==0)&&(Is=!0)),o=u}ht!==0&&ht!==5||mo(e),Fa!==0&&(Fa=0)}function My(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-Vt(f),C=1<<x,M=u[x];M===-1?((C&a)===0||(C&o)!==0)&&(u[x]=FE(C,t)):M<=t&&(e.expiredLanes|=C),f&=~C}if(t=Ze,a=Oe,a=as(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Tc(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Di(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&Tc(o),Dc(a)){case 2:case 8:a=xp;break;case 32:a=Io;break;case 268435456:a=wp;break;default:a=Io}return o=Ay.bind(null,e),a=_c(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&Tc(o),e.callbackPriority=2,e.callbackNode=null,2}function Ay(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ps()&&e.callbackNode!==a)return null;var o=Oe;return o=as(e,e===Ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(dy(e,o,t),My(e,Qt()),e.callbackNode!=null&&e.callbackNode===a?Ay.bind(null,e):null)}function Dy(e,t){if(Ps())return null;dy(e,t,!0)}function EC(){zC(function(){(Be&6)!==0?_c(bp,SC):Ty()})}function bd(){if(Fa===0){var e=Cr;e===0&&(e=es,es<<=1,(es&261888)===0&&(es=256)),Fa=e}return Fa}function Oy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:os(""+e)}function ky(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function CC(e,t,a,o,u){if(t==="submit"&&a&&a.stateNode===u){var f=Oy((u[At]||null).action),x=o.submitter;x&&(t=(t=x[At]||null)?Oy(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var C=new fs("action","action",null,o,u);e.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Fa!==0){var M=x?ky(u,x):new FormData(u);qf(a,{pending:!0,data:M,method:u.method,action:f},null,M)}}else typeof f=="function"&&(C.preventDefault(),M=x?ky(u,x):new FormData(u),qf(a,{pending:!0,data:M,method:u.method,action:f},f,M))},currentTarget:u}]})}}for(var xd=0;xd<tf.length;xd++){var wd=tf[xd],jC=wd.toLowerCase(),NC=wd[0].toUpperCase()+wd.slice(1);En(jC,"on"+NC)}En(fv,"onAnimationEnd"),En(dv,"onAnimationIteration"),En(hv,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(Q2,"onTransitionRun"),En(G2,"onTransitionStart"),En(V2,"onTransitionCancel"),En(mv,"onTransitionEnd"),cr("onMouseEnter",["mouseout","mouseover"]),cr("onMouseLeave",["mouseout","mouseover"]),cr("onPointerEnter",["pointerout","pointerover"]),cr("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var po="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(" "),RC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(po));function zy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],u=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var x=o.length-1;0<=x;x--){var C=o[x],M=C.instance,B=C.currentTarget;if(C=C.listener,M!==f&&u.isPropagationStopped())break e;f=C,u.currentTarget=B;try{f(u)}catch(Z){ms(Z)}u.currentTarget=null,f=M}else for(x=0;x<o.length;x++){if(C=o[x],M=C.instance,B=C.currentTarget,C=C.listener,M!==f&&u.isPropagationStopped())break e;f=C,u.currentTarget=B;try{f(u)}catch(Z){ms(Z)}u.currentTarget=null,f=M}}}}function De(e,t){var a=t[Oc];a===void 0&&(a=t[Oc]=new Set);var o=e+"__bubble";a.has(o)||(Ly(t,e,2,!1),a.add(o))}function Sd(e,t,a){var o=0;t&&(o|=4),Ly(a,e,o,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function Ed(e){if(!e[eu]){e[eu]=!0,Tp.forEach(function(a){a!=="selectionchange"&&(RC.has(a)||Sd(a,!1,e),Sd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,Sd("selectionchange",!1,t))}}function Ly(e,t,a,o){switch(f0(t)){case 2:var u=tj;break;case 8:u=nj;break;default:u=Hd}a=u.bind(null,t,a,e),u=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Cd(e,t,a,o,u){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var C=o.stateNode.containerInfo;if(C===u)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;C!==null;){if(x=or(C),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=f=x;continue e}C=C.parentNode}}o=o.return}Yp(function(){var B=f,Z=Bc(a),J=[];e:{var Q=pv.get(e);if(Q!==void 0){var V=fs,ce=e;switch(e){case"keypress":if(us(a)===0)break e;case"keydown":case"keyup":V=x2;break;case"focusin":ce="focus",V=Xc;break;case"focusout":ce="blur",V=Xc;break;case"beforeblur":case"afterblur":V=Xc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=s2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=E2;break;case fv:case dv:case hv:V=f2;break;case mv:V=j2;break;case"scroll":case"scrollend":V=i2;break;case"wheel":V=R2;break;case"copy":case"cut":case"paste":V=h2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Xp;break;case"toggle":case"beforetoggle":V=T2}var Se=(t&4)!==0,$e=!Se&&(e==="scroll"||e==="scrollend"),z=Se?Q!==null?Q+"Capture":null:Q;Se=[];for(var O=B,q;O!==null;){var F=O;if(q=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||q===null||z===null||(F=Li(O,z),F!=null&&Se.push(vo(O,F,q))),$e)break;O=O.return}0<Se.length&&(Q=new V(Q,ce,null,a,Z),J.push({event:Q,listeners:Se}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Q&&a!==qc&&(ce=a.relatedTarget||a.fromElement)&&(or(ce)||ce[ir]))break e;if((V||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,V?(ce=a.relatedTarget||a.toElement,V=B,ce=ce?or(ce):null,ce!==null&&($e=c(ce),Se=ce.tag,ce!==$e||Se!==5&&Se!==27&&Se!==6)&&(ce=null)):(V=null,ce=B),V!==ce)){if(Se=Vp,F="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Xp,F="onPointerLeave",z="onPointerEnter",O="pointer"),$e=V==null?Q:zi(V),q=ce==null?Q:zi(ce),Q=new Se(F,O+"leave",V,a,Z),Q.target=$e,Q.relatedTarget=q,F=null,or(Z)===B&&(Se=new Se(z,O+"enter",ce,a,Z),Se.target=q,Se.relatedTarget=$e,F=Se),$e=F,V&&ce)t:{for(Se=_C,z=V,O=ce,q=0,F=z;F;F=Se(F))q++;F=0;for(var be=O;be;be=Se(be))F++;for(;0<q-F;)z=Se(z),q--;for(;0<F-q;)O=Se(O),F--;for(;q--;){if(z===O||O!==null&&z===O.alternate){Se=z;break t}z=Se(z),O=Se(O)}Se=null}else Se=null;V!==null&&Uy(J,Q,V,Se,!1),ce!==null&&$e!==null&&Uy(J,$e,ce,Se,!0)}}e:{if(Q=B?zi(B):window,V=Q.nodeName&&Q.nodeName.toLowerCase(),V==="select"||V==="input"&&Q.type==="file")var He=ev;else if(Wp(Q))if(tv)He=q2;else{He=U2;var ge=L2}else V=Q.nodeName,!V||V.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?B&&Hc(B.elementType)&&(He=ev):He=H2;if(He&&(He=He(e,B))){Ip(J,He,a,Z);break e}ge&&ge(e,Q,B),e==="focusout"&&B&&Q.type==="number"&&B.memoizedProps.value!=null&&Uc(Q,"number",Q.value)}switch(ge=B?zi(B):window,e){case"focusin":(Wp(ge)||ge.contentEditable==="true")&&(vr=ge,Wc=B,Vi=null);break;case"focusout":Vi=Wc=vr=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,uv(J,a,Z);break;case"selectionchange":if(Y2)break;case"keydown":case"keyup":uv(J,a,Z)}var _e;if(Zc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else pr?Jp(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&($p&&a.locale!=="ko"&&(pr||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&pr&&(_e=Qp()):(Oa=Z,Gc="value"in Oa?Oa.value:Oa.textContent,pr=!0)),ge=tu(B,ke),0<ge.length&&(ke=new Kp(ke,e,null,a,Z),J.push({event:ke,listeners:ge}),_e?ke.data=_e:(_e=Pp(a),_e!==null&&(ke.data=_e)))),(_e=A2?D2(e,a):O2(e,a))&&(ke=tu(B,"onBeforeInput"),0<ke.length&&(ge=new Kp("onBeforeInput","beforeinput",null,a,Z),J.push({event:ge,listeners:ke}),ge.data=_e)),CC(J,e,B,a,Z)}zy(J,t)})}function vo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function tu(e,t){for(var a=t+"Capture",o=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=Li(e,a),u!=null&&o.unshift(vo(e,u,f)),u=Li(e,t),u!=null&&o.push(vo(e,u,f))),e.tag===3)return o;e=e.return}return[]}function _C(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uy(e,t,a,o,u){for(var f=t._reactName,x=[];a!==null&&a!==o;){var C=a,M=C.alternate,B=C.stateNode;if(C=C.tag,M!==null&&M===o)break;C!==5&&C!==26&&C!==27||B===null||(M=B,u?(B=Li(a,f),B!=null&&x.unshift(vo(a,B,M))):u||(B=Li(a,f),B!=null&&x.push(vo(a,B,M)))),a=a.return}x.length!==0&&e.push({event:t,listeners:x})}var TC=/\r\n?/g,MC=/\u0000|\uFFFD/g;function Hy(e){return(typeof e=="string"?e:""+e).replace(TC,`
|
|
49
|
+
`).replace(MC,"")}function qy(e,t){return t=Hy(t),Hy(e)===t}function Xe(e,t,a,o,u,f){switch(a){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||dr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&dr(e,""+o);break;case"className":rs(e,"class",o);break;case"tabIndex":rs(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":rs(e,a,o);break;case"style":qp(e,o,f);break;case"data":if(t!=="object"){rs(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=os(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Xe(e,t,"name",u.name,u,null),Xe(e,t,"formEncType",u.formEncType,u,null),Xe(e,t,"formMethod",u.formMethod,u,null),Xe(e,t,"formTarget",u.formTarget,u,null)):(Xe(e,t,"encType",u.encType,u,null),Xe(e,t,"method",u.method,u,null),Xe(e,t,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=os(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=ea);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=os(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":De("beforetoggle",e),De("toggle",e),ls(e,"popover",o);break;case"xlinkActuate":In(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":In(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":In(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":In(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":In(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":In(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":In(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":In(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":In(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ls(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=l2.get(a)||a,ls(e,a,o))}}function jd(e,t,a,o,u,f){switch(a){case"style":qp(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof o=="string"?dr(e,o):(typeof o=="number"||typeof o=="bigint")&&dr(e,""+o);break;case"onScroll":o!=null&&De("scroll",e);break;case"onScrollEnd":o!=null&&De("scrollend",e);break;case"onClick":o!=null&&(e.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),f=e[At]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof o=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,u);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):ls(e,a,o)}}}function Et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var o=!1,u=!1,f;for(f in a)if(a.hasOwnProperty(f)){var x=a[f];if(x!=null)switch(f){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,f,x,a,null)}}u&&Xe(e,t,"srcSet",a.srcSet,a,null),o&&Xe(e,t,"src",a.src,a,null);return;case"input":De("invalid",e);var C=f=x=u=null,M=null,B=null;for(o in a)if(a.hasOwnProperty(o)){var Z=a[o];if(Z!=null)switch(o){case"name":u=Z;break;case"type":x=Z;break;case"checked":M=Z;break;case"defaultChecked":B=Z;break;case"value":f=Z;break;case"defaultValue":C=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Xe(e,t,o,Z,a,null)}}zp(e,f,C,M,B,x,u,!1);return;case"select":De("invalid",e),o=x=f=null;for(u in a)if(a.hasOwnProperty(u)&&(C=a[u],C!=null))switch(u){case"value":f=C;break;case"defaultValue":x=C;break;case"multiple":o=C;default:Xe(e,t,u,C,a,null)}t=f,a=x,e.multiple=!!o,t!=null?fr(e,!!o,t,!1):a!=null&&fr(e,!!o,a,!0);return;case"textarea":De("invalid",e),f=u=o=null;for(x in a)if(a.hasOwnProperty(x)&&(C=a[x],C!=null))switch(x){case"value":o=C;break;case"defaultValue":u=C;break;case"children":f=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:Xe(e,t,x,C,a,null)}Up(e,o,u,f);return;case"option":for(M in a)if(a.hasOwnProperty(M)&&(o=a[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Xe(e,t,M,o,a,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(o=0;o<po.length;o++)De(po[o],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(o=a[B],o!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,B,o,a,null)}return;default:if(Hc(t)){for(Z in a)a.hasOwnProperty(Z)&&(o=a[Z],o!==void 0&&jd(e,t,Z,o,a,void 0));return}}for(C in a)a.hasOwnProperty(C)&&(o=a[C],o!=null&&Xe(e,t,C,o,a,null))}function AC(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,x=null,C=null,M=null,B=null,Z=null;for(V in a){var J=a[V];if(a.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(V)||Xe(e,t,V,null,o,J)}}for(var Q in o){var V=o[Q];if(J=a[Q],o.hasOwnProperty(Q)&&(V!=null||J!=null))switch(Q){case"type":f=V;break;case"name":u=V;break;case"checked":B=V;break;case"defaultChecked":Z=V;break;case"value":x=V;break;case"defaultValue":C=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==J&&Xe(e,t,Q,V,o,J)}}Lc(e,x,C,M,B,Z,f,u);return;case"select":V=x=C=Q=null;for(f in a)if(M=a[f],a.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:o.hasOwnProperty(f)||Xe(e,t,f,null,o,M)}for(u in o)if(f=o[u],M=a[u],o.hasOwnProperty(u)&&(f!=null||M!=null))switch(u){case"value":Q=f;break;case"defaultValue":C=f;break;case"multiple":x=f;default:f!==M&&Xe(e,t,u,f,o,M)}t=C,a=x,o=V,Q!=null?fr(e,!!a,Q,!1):!!o!=!!a&&(t!=null?fr(e,!!a,t,!0):fr(e,!!a,a?[]:"",!1));return;case"textarea":V=Q=null;for(C in a)if(u=a[C],a.hasOwnProperty(C)&&u!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Xe(e,t,C,null,o,u)}for(x in o)if(u=o[x],f=a[x],o.hasOwnProperty(x)&&(u!=null||f!=null))switch(x){case"value":Q=u;break;case"defaultValue":V=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(i(91));break;default:u!==f&&Xe(e,t,x,u,o,f)}Lp(e,Q,V);return;case"option":for(var ce in a)if(Q=a[ce],a.hasOwnProperty(ce)&&Q!=null&&!o.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Xe(e,t,ce,null,o,Q)}for(M in o)if(Q=o[M],V=a[M],o.hasOwnProperty(M)&&Q!==V&&(Q!=null||V!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Xe(e,t,M,Q,o,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in a)Q=a[Se],a.hasOwnProperty(Se)&&Q!=null&&!o.hasOwnProperty(Se)&&Xe(e,t,Se,null,o,Q);for(B in o)if(Q=o[B],V=a[B],o.hasOwnProperty(B)&&Q!==V&&(Q!=null||V!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Xe(e,t,B,Q,o,V)}return;default:if(Hc(t)){for(var $e in a)Q=a[$e],a.hasOwnProperty($e)&&Q!==void 0&&!o.hasOwnProperty($e)&&jd(e,t,$e,void 0,o,Q);for(Z in o)Q=o[Z],V=a[Z],!o.hasOwnProperty(Z)||Q===V||Q===void 0&&V===void 0||jd(e,t,Z,Q,o,V);return}}for(var z in a)Q=a[z],a.hasOwnProperty(z)&&Q!=null&&!o.hasOwnProperty(z)&&Xe(e,t,z,null,o,Q);for(J in o)Q=o[J],V=a[J],!o.hasOwnProperty(J)||Q===V||Q==null&&V==null||Xe(e,t,J,Q,o,V)}function By(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function DC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var u=a[o],f=u.transferSize,x=u.initiatorType,C=u.duration;if(f&&C&&By(x)){for(x=0,C=u.responseEnd,o+=1;o<a.length;o++){var M=a[o],B=M.startTime;if(B>C)break;var Z=M.transferSize,J=M.initiatorType;Z&&By(J)&&(M=M.responseEnd,x+=Z*(M<C?1:(C-B)/(M-B)))}if(--o,t+=8*(f+x)/(u.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 Nd=null,Rd=null;function nu(e){return e.nodeType===9?e:e.ownerDocument}function Yy(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 Qy(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 _d(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 Td=null;function OC(){var e=window.event;return e&&e.type==="popstate"?e===Td?!1:(Td=e,!0):(Td=null,!1)}var Gy=typeof setTimeout=="function"?setTimeout:void 0,kC=typeof clearTimeout=="function"?clearTimeout:void 0,Vy=typeof Promise=="function"?Promise:void 0,zC=typeof queueMicrotask=="function"?queueMicrotask:typeof Vy<"u"?function(e){return Vy.resolve(null).then(e).catch(LC)}:Gy;function LC(e){setTimeout(function(){throw e})}function Ja(e){return e==="head"}function Ky(e,t){var a=t,o=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(u),Gr(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")go(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,go(a);for(var f=a.firstChild;f;){var x=f.nextSibling,C=f.nodeName;f[ki]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=x}}else a==="body"&&go(e.ownerDocument.body);a=u}while(a);Gr(t)}function Xy(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function Md(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Md(a),kc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function UC(e,t,a,o){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ki])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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function HC(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function $y(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function Ad(e){return e.data==="$?"||e.data==="$~"}function Dd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qC(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Od=null;function Zy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Fy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Jy(e,t,a){switch(t=nu(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function go(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kc(e)}var dn=new Map,Py=new Set;function au(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=P.d;P.d={f:BC,r:YC,D:QC,C:GC,L:VC,m:KC,X:$C,S:XC,M:ZC};function BC(){var e=va.f(),t=Zs();return e||t}function YC(e){var t=sr(e);t!==null&&t.tag===5&&t.type==="form"?mg(t):va.r(e)}var Br=typeof document>"u"?null:document;function Wy(e,t,a){var o=Br;if(o&&typeof t=="string"&&t){var u=an(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Py.has(u)||(Py.add(u),e={rel:e,crossOrigin:a,href:t},o.querySelector(u)===null&&(t=o.createElement("link"),Et(t,"link",e),gt(t),o.head.appendChild(t)))}}function QC(e){va.D(e),Wy("dns-prefetch",e,null)}function GC(e,t){va.C(e,t),Wy("preconnect",e,t)}function VC(e,t,a){va.L(e,t,a);var o=Br;if(o&&e&&t){var u='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+an(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+an(a.imageSizes)+'"]')):u+='[href="'+an(e)+'"]';var f=u;switch(t){case"style":f=Yr(e);break;case"script":f=Qr(e)}dn.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(f,e),o.querySelector(u)!==null||t==="style"&&o.querySelector(yo(f))||t==="script"&&o.querySelector(bo(f))||(t=o.createElement("link"),Et(t,"link",e),gt(t),o.head.appendChild(t)))}}function KC(e,t){va.m(e,t);var a=Br;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+an(o)+'"][href="'+an(e)+'"]',f=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Qr(e)}if(!dn.has(f)&&(e=b({rel:"modulepreload",href:e},t),dn.set(f,e),a.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bo(f)))return}o=a.createElement("link"),Et(o,"link",e),gt(o),a.head.appendChild(o)}}}function XC(e,t,a){va.S(e,t,a);var o=Br;if(o&&e){var u=ur(o).hoistableStyles,f=Yr(e);t=t||"default";var x=u.get(f);if(!x){var C={loading:0,preload:null};if(x=o.querySelector(yo(f)))C.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(f))&&kd(e,a);var M=x=o.createElement("link");gt(M),Et(M,"link",e),M._p=new Promise(function(B,Z){M.onload=B,M.onerror=Z}),M.addEventListener("load",function(){C.loading|=1}),M.addEventListener("error",function(){C.loading|=2}),C.loading|=4,lu(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:C},u.set(f,x)}}}function $C(e,t){va.X(e,t);var a=Br;if(a&&e){var o=ur(a).hoistableScripts,u=Qr(e),f=o.get(u);f||(f=a.querySelector(bo(u)),f||(e=b({src:e,async:!0},t),(t=dn.get(u))&&zd(e,t),f=a.createElement("script"),gt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function ZC(e,t){va.M(e,t);var a=Br;if(a&&e){var o=ur(a).hoistableScripts,u=Qr(e),f=o.get(u);f||(f=a.querySelector(bo(u)),f||(e=b({src:e,async:!0,type:"module"},t),(t=dn.get(u))&&zd(e,t),f=a.createElement("script"),gt(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(u,f))}}function Iy(e,t,a,o){var u=(u=Ee.current)?au(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Yr(a.href),a=ur(u).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Yr(a.href);var f=ur(u).hoistableStyles,x=f.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,x),(f=u.querySelector(yo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),f||FC(u,e,a,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qr(a),a=ur(u).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Yr(e){return'href="'+an(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function e0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function FC(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Et(t,"link",a),gt(t),e.head.appendChild(t))}function Qr(e){return'[src="'+an(e)+'"]'}function bo(e){return"script[async]"+e}function t0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+an(a.href)+'"]');if(o)return t.instance=o,gt(o),o;var u=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),gt(o),Et(o,"style",u),lu(o,a.precedence,e),t.instance=o;case"stylesheet":u=Yr(a.href);var f=e.querySelector(yo(u));if(f)return t.state.loading|=4,t.instance=f,gt(f),f;o=e0(a),(u=dn.get(u))&&kd(o,u),f=(e.ownerDocument||e).createElement("link"),gt(f);var x=f;return x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),Et(f,"link",o),t.state.loading|=4,lu(f,a.precedence,e),t.instance=f;case"script":return f=Qr(a.src),(u=e.querySelector(bo(f)))?(t.instance=u,gt(u),u):(o=a,(u=dn.get(f))&&(o=b({},a),zd(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),gt(u),Et(u,"link",o),e.head.appendChild(u),t.instance=u);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,lu(o,a.precedence,e));return t.instance}function lu(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,f=u,x=0;x<o.length;x++){var C=o[x];if(C.dataset.precedence===t)f=C;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ru=null;function n0(e,t,a){if(ru===null){var o=new Map,u=ru=new Map;u.set(a,o)}else u=ru,o=u.get(a),o||(o=new Map,u.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var f=a[u];if(!(f[ki]||f[bt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(t)||"";x=e+x;var C=o.get(x);C?C.push(f):o.set(x,[f])}}return o}function a0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function JC(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function l0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function PC(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Yr(o.href),f=t.querySelector(yo(u));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=iu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,gt(f);return}f=t.ownerDocument||t,o=e0(o),(u=dn.get(u))&&kd(o,u),f=f.createElement("link"),gt(f);var x=f;x._p=new Promise(function(C,M){x.onload=C,x.onerror=M}),Et(f,"link",o),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=iu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ld=0;function WC(e,t){return e.stylesheets&&e.count===0&&su(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&su(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Ld===0&&(Ld=62500*DC());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&su(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ld?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ou=null;function su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ou=new Map,t.forEach(IC,e),ou=null,iu.call(e))}function IC(e,t){if(!(t.state.loading&4)){var a=ou.get(e);if(a)var o=a.get(null);else{a=new Map,ou.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var x=u[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(a.set(x.dataset.precedence,x),o=x)}o&&a.set(null,o)}u=t.instance,x=u.getAttribute("data-precedence"),f=a.get(x)||o,f===o&&a.set(null,u),a.set(x,u),this.count++,o=iu.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var xo={$$typeof:T,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function ej(e,t,a,o,u,f,x,C,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mc(0),this.hiddenUpdates=Mc(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function r0(e,t,a,o,u,f,x,C,M,B,Z,J){return e=new ej(e,t,a,x,M,B,Z,J,C),t=1,f===!0&&(t|=24),f=Xt(3,null,null,t),e.current=f,f.stateNode=e,t=pf(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:a,cache:t},bf(f),e}function i0(e){return e?(e=br,e):br}function o0(e,t,a,o,u,f){u=i0(u),o.context===null?o.context=u:o.pendingContext=u,o=qa(t),o.payload={element:a},f=f===void 0?null:f,f!==null&&(o.callback=f),a=Ba(e,o,t),a!==null&&(Ut(a,e,t),Pi(a,e,t))}function s0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ud(e,t){s0(e,t),(e=e.alternate)&&s0(e,t)}function u0(e){if(e.tag===13||e.tag===31){var t=Rl(e,67108864);t!==null&&Ut(t,e,67108864),Ud(e,67108864)}}function c0(e){if(e.tag===13||e.tag===31){var t=Pt();t=Ac(t);var a=Rl(e,t);a!==null&&Ut(a,e,t),Ud(e,t)}}var uu=!0;function tj(e,t,a,o){var u=U.T;U.T=null;var f=P.p;try{P.p=2,Hd(e,t,a,o)}finally{P.p=f,U.T=u}}function nj(e,t,a,o){var u=U.T;U.T=null;var f=P.p;try{P.p=8,Hd(e,t,a,o)}finally{P.p=f,U.T=u}}function Hd(e,t,a,o){if(uu){var u=qd(o);if(u===null)Cd(e,t,o,cu,a),d0(e,o);else if(lj(u,e,t,a,o))o.stopPropagation();else if(d0(e,o),t&4&&-1<aj.indexOf(e)){for(;u!==null;){var f=sr(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=Sl(f.pendingLanes);if(x!==0){var C=f;for(C.pendingLanes|=2,C.entangledLanes|=2;x;){var M=1<<31-Vt(x);C.entanglements[1]|=M,x&=~M}qn(f),(Be&6)===0&&(Xs=Qt()+500,mo(0))}}break;case 31:case 13:C=Rl(f,2),C!==null&&Ut(C,f,2),Zs(),Ud(f,2)}if(f=qd(o),f===null&&Cd(e,t,o,cu,a),f===u)break;u=f}u!==null&&o.stopPropagation()}else Cd(e,t,o,null,a)}}function qd(e){return e=Bc(e),Bd(e)}var cu=null;function Bd(e){if(cu=null,e=or(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cu=e,null}function f0(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(QE()){case bp:return 2;case xp:return 8;case Io:case GE:return 32;case wp:return 268435456;default:return 32}default:return 32}}var Yd=!1,Pa=null,Wa=null,Ia=null,wo=new Map,So=new Map,el=[],aj="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 d0(e,t){switch(e){case"focusin":case"focusout":Pa=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":wo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(t.pointerId)}}function Eo(e,t,a,o,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:f,targetContainers:[u]},t!==null&&(t=sr(t),t!==null&&u0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function lj(e,t,a,o,u){switch(t){case"focusin":return Pa=Eo(Pa,e,t,a,o,u),!0;case"dragenter":return Wa=Eo(Wa,e,t,a,o,u),!0;case"mouseover":return Ia=Eo(Ia,e,t,a,o,u),!0;case"pointerover":var f=u.pointerId;return wo.set(f,Eo(wo.get(f)||null,e,t,a,o,u)),!0;case"gotpointercapture":return f=u.pointerId,So.set(f,Eo(So.get(f)||null,e,t,a,o,u)),!0}return!1}function h0(e){var t=or(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Rp(e.priority,function(){c0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,Rp(e.priority,function(){c0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=qd(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);qc=o,a.target.dispatchEvent(o),qc=null}else return t=sr(a),t!==null&&u0(t),e.blockedOn=a,!1;t.shift()}return!0}function m0(e,t,a){fu(e)&&a.delete(t)}function rj(){Yd=!1,Pa!==null&&fu(Pa)&&(Pa=null),Wa!==null&&fu(Wa)&&(Wa=null),Ia!==null&&fu(Ia)&&(Ia=null),wo.forEach(m0),So.forEach(m0)}function du(e,t){e.blockedOn===t&&(e.blockedOn=null,Yd||(Yd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,rj)))}var hu=null;function p0(e){hu!==e&&(hu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],u=e[t+2];if(typeof o!="function"){if(Bd(o||a)===null)continue;break}var f=sr(a);f!==null&&(e.splice(t,3),t-=3,qf(f,{pending:!0,data:u,method:a.method,action:o},o,u))}}))}function Gr(e){function t(M){return du(M,e)}Pa!==null&&du(Pa,e),Wa!==null&&du(Wa,e),Ia!==null&&du(Ia,e),wo.forEach(t),So.forEach(t);for(var a=0;a<el.length;a++){var o=el[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<el.length&&(a=el[0],a.blockedOn===null);)h0(a),a.blockedOn===null&&el.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var u=a[o],f=a[o+1],x=u[At]||null;if(typeof f=="function")x||p0(a);else if(x){var C=null;if(f&&f.hasAttribute("formAction")){if(u=f,x=f[At]||null)C=x.formAction;else if(Bd(u)!==null)continue}else C=x.action;typeof C=="function"?a[o+1]=C:(a.splice(o,3),o-=3),p0(a)}}}function v0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(x){return u=x})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Qd(e){this._internalRoot=e}mu.prototype.render=Qd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,o=Pt();o0(a,o,e,t,null,null)},mu.prototype.unmount=Qd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;o0(e.current,2,null,e,null,null),Zs(),t[ir]=null}};function mu(e){this._internalRoot=e}mu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Np();e={blockedOn:null,target:e,priority:t};for(var a=0;a<el.length&&t!==0&&t<el[a].priority;a++);el.splice(a,0,e),a===0&&h0(e)}};var g0=l.version;if(g0!=="19.2.3")throw Error(i(527,g0,"19.2.3"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var ij={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pu.isDisabled&&pu.supportsFiber)try{Ai=pu.inject(ij),Gt=pu}catch{}}return jo.createRoot=function(e,t){if(!s(e))throw Error(i(299));var a=!1,o="",u=Cg,f=jg,x=Ng;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=r0(e,1,!1,null,null,a,o,null,u,f,x,v0),e[ir]=t.current,Ed(e),new Qd(t)},jo.hydrateRoot=function(e,t,a){if(!s(e))throw Error(i(299));var o=!1,u="",f=Cg,x=jg,C=Ng,M=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.formState!==void 0&&(M=a.formState)),t=r0(e,1,!0,t,a??null,o,u,M,f,x,C,v0),t.context=i0(null),a=t.current,o=Pt(),o=Ac(o),u=qa(o),u.callback=null,Ba(a,u,o),a=o,t.current.lanes=a,Oi(t,a),qn(t),e[ir]=t.current,Ed(e),new mu(t)},jo.version="19.2.3",jo}var U0;function Fj(){if(U0)return $d.exports;U0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),$d.exports=Zj(),$d.exports}var Jj=Fj(),No={},H0;function Pj(){if(H0)return No;H0=1,Object.defineProperty(No,"__esModule",{value:!0}),No.parse=d,No.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,l=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function d(w,E){const j=new c,S=w.length;if(S<2)return j;const N=(E==null?void 0:E.decode)||y;let R=0;do{const _=w.indexOf("=",R);if(_===-1)break;const T=w.indexOf(";",R),k=T===-1?S:T;if(_>k){R=w.lastIndexOf(";",_-1)+1;continue}const L=m(w,R,_),$=p(w,_,L),Y=w.slice(L,$);if(j[Y]===void 0){let H=m(w,_+1,k),G=p(w,k,H);const le=N(w.slice(H,G));j[Y]=le}R=k+1}while(R<S);return j}function m(w,E,j){do{const S=w.charCodeAt(E);if(S!==32&&S!==9)return E}while(++E<j);return j}function p(w,E,j){for(;E>j;){const S=w.charCodeAt(--E);if(S!==32&&S!==9)return E+1}return j}function g(w,E,j){const S=(j==null?void 0:j.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const N=S(E);if(!l.test(N))throw new TypeError(`argument val is invalid: ${E}`);let R=w+"="+N;if(!j)return R;if(j.maxAge!==void 0){if(!Number.isInteger(j.maxAge))throw new TypeError(`option maxAge is invalid: ${j.maxAge}`);R+="; Max-Age="+j.maxAge}if(j.domain){if(!r.test(j.domain))throw new TypeError(`option domain is invalid: ${j.domain}`);R+="; Domain="+j.domain}if(j.path){if(!i.test(j.path))throw new TypeError(`option path is invalid: ${j.path}`);R+="; Path="+j.path}if(j.expires){if(!b(j.expires)||!Number.isFinite(j.expires.valueOf()))throw new TypeError(`option expires is invalid: ${j.expires}`);R+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(R+="; HttpOnly"),j.secure&&(R+="; Secure"),j.partitioned&&(R+="; Partitioned"),j.priority)switch(typeof j.priority=="string"?j.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${j.priority}`)}if(j.sameSite)switch(typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${j.sameSite}`)}return R}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 No}Pj();var q0="popstate";function Wj(n={}){function l(s,c){let{pathname:d="/",search:m="",hash:p=""}=tr(s.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),_h("",{pathname:d,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){let d=s.document.querySelector("base"),m="";if(d&&d.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:ko(c))}function i(s,c){xn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return eN(l,r,i,n)}function Ie(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function xn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Ij(){return Math.random().toString(36).substring(2,10)}function B0(n,l){return{usr:n.state,key:n.key,idx:l}}function _h(n,l,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?tr(l):l,state:r,key:l&&l.key||i||Ij()}}function ko({pathname:n="/",search:l="",hash:r=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function tr(n){let l={};if(n){let r=n.indexOf("#");r>=0&&(l.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function eN(n,l,r,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,d=s.history,m="POP",p=null,g=y();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function y(){return(d.state||{idx:null}).idx}function b(){m="POP";let N=y(),R=N==null?null:N-g;g=N,p&&p({action:m,location:S.location,delta:R})}function w(N,R){m="PUSH";let _=_h(S.location,N,R);r&&r(_,N),g=y()+1;let T=B0(_,g),k=S.createHref(_);try{d.pushState(T,"",k)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(k)}c&&p&&p({action:m,location:S.location,delta:1})}function E(N,R){m="REPLACE";let _=_h(S.location,N,R);r&&r(_,N),g=y();let T=B0(_,g),k=S.createHref(_);d.replaceState(T,"",k),c&&p&&p({action:m,location:S.location,delta:0})}function j(N){return tN(N)}let S={get action(){return m},get location(){return n(s,d)},listen(N){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(q0,b),p=N,()=>{s.removeEventListener(q0,b),p=null}},createHref(N){return l(s,N)},createURL:j,encodeLocation(N){let R=j(N);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:E,go(N){return d.go(N)}};return S}function tN(n,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ko(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function hx(n,l,r="/"){return nN(n,l,r,!1)}function nN(n,l,r,i){let s=typeof l=="string"?tr(l):l,c=ja(s.pathname||"/",r);if(c==null)return null;let d=mx(n);aN(d);let m=null;for(let p=0;m==null&&p<d.length;++p){let g=mN(c);m=dN(d[p],g,i)}return m}function mx(n,l=[],r=[],i=""){let s=(c,d,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};p.relativePath.startsWith("/")&&(Ie(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Sa([i,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(Ie(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),mx(c.children,l,y,g)),!(c.path==null&&!c.index)&&l.push({path:g,score:cN(g,c.index),routesMeta:y})};return n.forEach((c,d)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))s(c,d);else for(let p of px(c.path))s(c,d,p)}),l}function px(n){let l=n.split("/");if(l.length===0)return[];let[r,...i]=l,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let d=px(i.join("/")),m=[];return m.push(...d.map(p=>p===""?c:[c,p].join("/"))),s&&m.push(...d),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function aN(n){n.sort((l,r)=>l.score!==r.score?r.score-l.score:fN(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var lN=/^:[\w-]+$/,rN=3,iN=2,oN=1,sN=10,uN=-2,Y0=n=>n==="*";function cN(n,l){let r=n.split("/"),i=r.length;return r.some(Y0)&&(i+=uN),l&&(i+=iN),r.filter(s=>!Y0(s)).reduce((s,c)=>s+(lN.test(c)?rN:c===""?oN:sN),i)}function fN(n,l){return n.length===l.length&&n.slice(0,-1).every((i,s)=>i===l[s])?n[n.length-1]-l[l.length-1]:0}function dN(n,l,r=!1){let{routesMeta:i}=n,s={},c="/",d=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=c==="/"?l:l.slice(c.length)||"/",b=Lu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!b&&g&&r&&!i[i.length-1].route.index&&(b=Lu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),d.push({params:s,pathname:Sa([c,b.pathname]),pathnameBase:yN(Sa([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=Sa([c,b.pathnameBase]))}return d}function Lu(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=hN(n.path,n.caseSensitive,n.end),s=l.match(r);if(!s)return null;let c=s[0],d=c.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:b},w)=>{if(y==="*"){let j=m[w]||"";d=c.slice(0,c.length-j.length).replace(/(.)\/+$/,"$1")}const E=m[w];return b&&!E?g[y]=void 0:g[y]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:d,pattern:n}}function hN(n,l=!1,r=!0){xn(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,(d,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,l?void 0:"i"),i]}function mN(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return xn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ja(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function pN(n,l="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?tr(n):n;return{pathname:r?r.startsWith("/")?r:vN(r,l):l,search:bN(i),hash:xN(s)}}function vN(n,l){let r=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Pd(n,l,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gN(n){return n.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function rm(n){let l=gN(n);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function im(n,l,r,i=!1){let s;typeof n=="string"?s=tr(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),Pd("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),Pd("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),Pd("#","search","hash",s)));let c=n===""||s.pathname==="",d=c?"/":s.pathname,m;if(d==null)m=r;else{let b=l.length-1;if(!i&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?l[b]:"/"}let p=pN(s,m),g=d&&d!=="/"&&d.endsWith("/"),y=(c||d===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Sa=n=>n.join("/").replace(/\/\/+/g,"/"),yN=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),bN=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,xN=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function wN(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var vx=["POST","PUT","PATCH","DELETE"];new Set(vx);var SN=["GET",...vx];new Set(SN);var bi=v.createContext(null);bi.displayName="DataRouter";var Iu=v.createContext(null);Iu.displayName="DataRouterState";var gx=v.createContext({isTransitioning:!1});gx.displayName="ViewTransition";var EN=v.createContext(new Map);EN.displayName="Fetchers";var CN=v.createContext(null);CN.displayName="Await";var Dn=v.createContext(null);Dn.displayName="Navigation";var Go=v.createContext(null);Go.displayName="Location";var On=v.createContext({outlet:null,matches:[],isDataRoute:!1});On.displayName="Route";var om=v.createContext(null);om.displayName="RouteError";function jN(n,{relative:l}={}){Ie(xi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Dn),{hash:s,pathname:c,search:d}=Vo(n,{relative:l}),m=c;return r!=="/"&&(m=c==="/"?r:Sa([r,c])),i.createHref({pathname:m,search:d,hash:s})}function xi(){return v.useContext(Go)!=null}function _a(){return Ie(xi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Go).location}var yx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bx(n){v.useContext(Dn).static||v.useLayoutEffect(n)}function xx(){let{isDataRoute:n}=v.useContext(On);return n?HN():NN()}function NN(){Ie(xi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(bi),{basename:l,navigator:r}=v.useContext(Dn),{matches:i}=v.useContext(On),{pathname:s}=_a(),c=JSON.stringify(rm(i)),d=v.useRef(!1);return bx(()=>{d.current=!0}),v.useCallback((p,g={})=>{if(xn(d.current,yx),!d.current)return;if(typeof p=="number"){r.go(p);return}let y=im(p,JSON.parse(c),s,g.relative==="path");n==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:Sa([l,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[l,r,c,s,n])}v.createContext(null);function ec(){let{matches:n}=v.useContext(On),l=n[n.length-1];return l?l.params:{}}function Vo(n,{relative:l}={}){let{matches:r}=v.useContext(On),{pathname:i}=_a(),s=JSON.stringify(rm(r));return v.useMemo(()=>im(n,JSON.parse(s),i,l==="path"),[n,s,i,l])}function RN(n,l){return wx(n,l)}function wx(n,l,r,i){var R;Ie(xi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Dn),{matches:c}=v.useContext(On),d=c[c.length-1],m=d?d.params:{},p=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let _=y&&y.path||"";Sx(p,!y||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${_}">) 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="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let b=_a(),w;if(l){let _=typeof l=="string"?tr(l):l;Ie(g==="/"||((R=_.pathname)==null?void 0:R.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${_.pathname}" was given in the \`location\` prop.`),w=_}else w=b;let E=w.pathname||"/",j=E;if(g!=="/"){let _=g.replace(/^\//,"").split("/");j="/"+E.replace(/^\//,"").split("/").slice(_.length).join("/")}let S=hx(n,{pathname:j});xn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),xn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=DN(S&&S.map(_=>Object.assign({},_,{params:Object.assign({},m,_.params),pathname:Sa([g,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?g:Sa([g,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),c,r,i);return l&&N?v.createElement(Go.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function _N(){let n=UN(),l=wN(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},l),r?v.createElement("pre",{style:s},r):null,d)}var TN=v.createElement(_N,null),MN=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){console.error("React Router caught the following error during render",n,l)}render(){return this.state.error!==void 0?v.createElement(On.Provider,{value:this.props.routeContext},v.createElement(om.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AN({routeContext:n,match:l,children:r}){let i=v.useContext(bi);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(On.Provider,{value:n},r)}function DN(n,l=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,c=r==null?void 0:r.errors;if(c!=null){let p=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);Ie(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 d=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:b}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||w){d=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let b,w=!1,E=null,j=null;r&&(b=c&&g.route.id?c[g.route.id]:void 0,E=g.route.errorElement||TN,d&&(m<0&&y===0?(Sx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,j=null):m===y&&(w=!0,j=g.route.hydrateFallbackElement||null)));let S=l.concat(s.slice(0,y+1)),N=()=>{let R;return b?R=E:w?R=j:g.route.Component?R=v.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=p,v.createElement(AN,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(MN,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:N(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):N()},null)}function sm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ON(n){let l=v.useContext(bi);return Ie(l,sm(n)),l}function kN(n){let l=v.useContext(Iu);return Ie(l,sm(n)),l}function zN(n){let l=v.useContext(On);return Ie(l,sm(n)),l}function um(n){let l=zN(n),r=l.matches[l.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function LN(){return um("useRouteId")}function UN(){var i;let n=v.useContext(om),l=kN("useRouteError"),r=um("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[r]}function HN(){let{router:n}=ON("useNavigate"),l=um("useNavigate"),r=v.useRef(!1);return bx(()=>{r.current=!0}),v.useCallback(async(s,c={})=>{xn(r.current,yx),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:l,...c}))},[n,l])}var Q0={};function Sx(n,l,r){!l&&!Q0[n]&&(Q0[n]=!0,xn(!1,r))}v.memo(qN);function qN({routes:n,future:l,state:r}){return wx(n,void 0,r,l)}function Wd({to:n,replace:l,state:r,relative:i}){Ie(xi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(Dn);xn(!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}=v.useContext(On),{pathname:d}=_a(),m=xx(),p=im(n,rm(c),d,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:l,state:r,relative:i})},[m,g,i,l,r]),null}function Zr(n){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function BN({basename:n="/",children:l=null,location:r,navigationType:i="POP",navigator:s,static:c=!1}){Ie(!xi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:d,navigator:s,static:c,future:{}}),[d,s,c]);typeof r=="string"&&(r=tr(r));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,E=v.useMemo(()=>{let j=ja(p,d);return j==null?null:{location:{pathname:j,search:g,hash:y,state:b,key:w},navigationType:i}},[d,p,g,y,b,w,i]);return xn(E!=null,`<Router basename="${d}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(Dn.Provider,{value:m},v.createElement(Go.Provider,{children:l,value:E}))}function YN({children:n,location:l}){return RN(Th(n),l)}function Th(n,l=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let c=[...l,s];if(i.type===v.Fragment){r.push.apply(r,Th(i.props.children,c));return}Ie(i.type===Zr,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={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&&(d.children=Th(i.props.children,c)),r.push(d)}),r}var _u="get",Tu="application/x-www-form-urlencoded";function tc(n){return n!=null&&typeof n.tagName=="string"}function QN(n){return tc(n)&&n.tagName.toLowerCase()==="button"}function GN(n){return tc(n)&&n.tagName.toLowerCase()==="form"}function VN(n){return tc(n)&&n.tagName.toLowerCase()==="input"}function KN(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function XN(n,l){return n.button===0&&(!l||l==="_self")&&!KN(n)}var yu=null;function $N(){if(yu===null)try{new FormData(document.createElement("form"),0),yu=!1}catch{yu=!0}return yu}var ZN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Id(n){return n!=null&&!ZN.has(n)?(xn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):n}function FN(n,l){let r,i,s,c,d;if(GN(n)){let m=n.getAttribute("action");i=m?ja(m,l):null,r=n.getAttribute("method")||_u,s=Id(n.getAttribute("enctype"))||Tu,c=new FormData(n)}else if(QN(n)||VN(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?ja(p,l):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||_u,s=Id(n.getAttribute("formenctype"))||Id(m.getAttribute("enctype"))||Tu,c=new FormData(m,n),!$N()){let{name:g,type:y,value:b}=n;if(y==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,b)}}else{if(tc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_u,i=null,s=Tu,d=n}return c&&s==="text/plain"&&(d=c,c=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:c,body:d}}function cm(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}async function JN(n,l){if(n.id in l)return l[n.id];try{let r=await import(n.module);return l[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function PN(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function WN(n,l,r){let i=await Promise.all(n.map(async s=>{let c=l.routes[s.route.id];if(c){let d=await JN(c,r);return d.links?d.links():[]}return[]}));return nR(i.flat(1).filter(PN).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function G0(n,l,r,i,s,c){let d=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return c==="assets"?l.filter((p,g)=>d(p,g)||m(p,g)):c==="data"?l.filter((p,g)=>{var b;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(d(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function IN(n,l,{includeHydrateFallback:r}={}){return eR(n.map(i=>{let s=l.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 eR(n){return[...new Set(n)]}function tR(n){let l={},r=Object.keys(n).sort();for(let i of r)l[i]=n[i];return l}function nR(n,l){let r=new Set;return new Set(l),n.reduce((i,s)=>{let c=JSON.stringify(tR(s));return r.has(c)||(r.add(c),i.push({key:c,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var aR=new Set([100,101,204,205]);function lR(n,l){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":l&&ja(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Ex(){let n=v.useContext(bi);return cm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function rR(){let n=v.useContext(Iu);return cm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var fm=v.createContext(void 0);fm.displayName="FrameworkContext";function Cx(){let n=v.useContext(fm);return cm(n,"You must render this element inside a <HydratedRouter> element"),n}function iR(n,l){let r=v.useContext(fm),[i,s]=v.useState(!1),[c,d]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let S=R=>{R.forEach(_=>{d(_.isIntersecting)})},N=new IntersectionObserver(S,{threshold:.5});return w.current&&N.observe(w.current),()=>{N.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(S)}}},[i]);let E=()=>{s(!0)},j=()=>{s(!1),d(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Ro(m,E),onBlur:Ro(p,j),onMouseEnter:Ro(g,E),onMouseLeave:Ro(y,j),onTouchStart:Ro(b,E)}]:[!1,w,{}]}function Ro(n,l){return r=>{n&&n(r),r.defaultPrevented||l(r)}}function oR({page:n,...l}){let{router:r}=Ex(),i=v.useMemo(()=>hx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(uR,{page:n,matches:i,...l}):null}function sR(n){let{manifest:l,routeModules:r}=Cx(),[i,s]=v.useState([]);return v.useEffect(()=>{let c=!1;return WN(n,l,r).then(d=>{c||s(d)}),()=>{c=!0}},[n,l,r]),i}function uR({page:n,matches:l,...r}){let i=_a(),{manifest:s,routeModules:c}=Cx(),{basename:d}=Ex(),{loaderData:m,matches:p}=rR(),g=v.useMemo(()=>G0(n,l,p,s,i,"data"),[n,l,p,s,i]),y=v.useMemo(()=>G0(n,l,p,s,i,"assets"),[n,l,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let j=new Set,S=!1;if(l.forEach(R=>{var T;let _=s.routes[R.route.id];!_||!_.hasLoader||(!g.some(k=>k.route.id===R.route.id)&&R.route.id in m&&((T=c[R.route.id])!=null&&T.shouldRevalidate)||_.hasClientLoader?S=!0:j.add(R.route.id))}),j.size===0)return[];let N=lR(n,d);return S&&j.size>0&&N.searchParams.set("_routes",l.filter(R=>j.has(R.route.id)).map(R=>R.route.id).join(",")),[N.pathname+N.search]},[d,m,i,s,g,l,n,c]),w=v.useMemo(()=>IN(y,s),[y,s]),E=sR(y);return v.createElement(v.Fragment,null,b.map(j=>v.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),w.map(j=>v.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),E.map(({key:j,link:S})=>v.createElement("link",{key:j,...S})))}function cR(...n){return l=>{n.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var jx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jx&&(window.__reactRouterVersion="7.6.1")}catch{}function fR({basename:n,children:l,window:r}){let i=v.useRef();i.current==null&&(i.current=Wj({window:r,v5Compat:!0}));let s=i.current,[c,d]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>d(p))},[d]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement(BN,{basename:n,children:l,location:c.location,navigationType:c.action,navigator:s})}var Nx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pl=v.forwardRef(function({onClick:l,discover:r="render",prefetch:i="none",relative:s,reloadDocument:c,replace:d,state:m,target:p,to:g,preventScrollReset:y,viewTransition:b,...w},E){let{basename:j}=v.useContext(Dn),S=typeof g=="string"&&Nx.test(g),N,R=!1;if(typeof g=="string"&&S&&(N=g,jx))try{let G=new URL(window.location.href),le=g.startsWith("//")?new URL(G.protocol+g):new URL(g),me=ja(le.pathname,j);le.origin===G.origin&&me!=null?g=me+le.search+le.hash:R=!0}catch{xn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let _=jN(g,{relative:s}),[T,k,L]=iR(i,w),$=pR(g,{replace:d,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:b});function Y(G){l&&l(G),G.defaultPrevented||$(G)}let H=v.createElement("a",{...w,...L,href:N||_,onClick:R||c?l:Y,ref:cR(E,k),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,H,v.createElement(oR,{page:_})):H});pl.displayName="Link";var dR=v.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:i="",end:s=!1,style:c,to:d,viewTransition:m,children:p,...g},y){let b=Vo(d,{relative:g.relative}),w=_a(),E=v.useContext(Iu),{navigator:j,basename:S}=v.useContext(Dn),N=E!=null&&xR(b)&&m===!0,R=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,_=w.pathname,T=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;r||(_=_.toLowerCase(),T=T?T.toLowerCase():null,R=R.toLowerCase()),T&&S&&(T=ja(T,S)||T);const k=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let L=_===R||!s&&_.startsWith(R)&&_.charAt(k)==="/",$=T!=null&&(T===R||!s&&T.startsWith(R)&&T.charAt(R.length)==="/"),Y={isActive:L,isPending:$,isTransitioning:N},H=L?l:void 0,G;typeof i=="function"?G=i(Y):G=[i,L?"active":null,$?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let le=typeof c=="function"?c(Y):c;return v.createElement(pl,{...g,"aria-current":H,className:G,ref:y,style:le,to:d,viewTransition:m},typeof p=="function"?p(Y):p)});dR.displayName="NavLink";var hR=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:s,state:c,method:d=_u,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,...w},E)=>{let j=yR(),S=bR(m,{relative:g}),N=d.toLowerCase()==="get"?"get":"post",R=typeof m=="string"&&Nx.test(m),_=T=>{if(p&&p(T),T.defaultPrevented)return;T.preventDefault();let k=T.nativeEvent.submitter,L=(k==null?void 0:k.getAttribute("formmethod"))||d;j(k||T.currentTarget,{fetcherKey:l,method:L,navigate:r,replace:s,state:c,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:E,method:N,action:S,onSubmit:i?p:_,...w,"data-discover":!R&&n==="render"?"true":void 0})});hR.displayName="Form";function mR(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rx(n){let l=v.useContext(bi);return Ie(l,mR(n)),l}function pR(n,{target:l,replace:r,state:i,preventScrollReset:s,relative:c,viewTransition:d}={}){let m=xx(),p=_a(),g=Vo(n,{relative:c});return v.useCallback(y=>{if(XN(y,l)){y.preventDefault();let b=r!==void 0?r:ko(p)===ko(g);m(n,{replace:b,state:i,preventScrollReset:s,relative:c,viewTransition:d})}},[p,m,g,r,i,l,n,s,c,d])}var vR=0,gR=()=>`__${String(++vR)}__`;function yR(){let{router:n}=Rx("useSubmit"),{basename:l}=v.useContext(Dn),r=LN();return v.useCallback(async(i,s={})=>{let{action:c,method:d,encType:m,formData:p,body:g}=FN(i,l);if(s.navigate===!1){let y=s.fetcherKey||gR();await n.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||d,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||d,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,l,r])}function bR(n,{relative:l}={}){let{basename:r}=v.useContext(Dn),i=v.useContext(On);Ie(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...Vo(n||".",{relative:l})},d=_a();if(n==null){c.search=d.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:Sa([r,c.pathname])),ko(c)}function xR(n,l={}){let r=v.useContext(gx);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Rx("useViewTransitionState"),s=Vo(n,{relative:l.relative});if(!r.isTransitioning)return!1;let c=ja(r.currentLocation.pathname,i)||r.currentLocation.pathname,d=ja(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Lu(s.pathname,d)!=null||Lu(s.pathname,c)!=null}[...aR];var Ko=dx();const _x=Jb(Ko);/**
|
|
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 wR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),SR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),V0=n=>{const l=SR(n);return l.charAt(0).toUpperCase()+l.slice(1)},Tx=(...n)=>n.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.488.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var ER={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 CR=v.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:d,...m},p)=>v.createElement("svg",{ref:p,...ER,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:Tx("lucide",s),...m},[...d.map(([g,y])=>v.createElement(g,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 vt=(n,l)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(CR,{ref:c,iconNode:l,className:Tx(`lucide-${wR(V0(n))}`,`lucide-${n}`,i),...s}));return r.displayName=V0(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 jR=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],NR=vt("arrow-left",jR);/**
|
|
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 RR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],_R=vt("ban",RR);/**
|
|
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 TR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],MR=vt("chevron-down",TR);/**
|
|
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 AR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],DR=vt("chevron-left",AR);/**
|
|
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 OR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Mx=vt("chevron-right",OR);/**
|
|
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 kR=[["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"}]],zR=vt("circle-alert",kR);/**
|
|
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 LR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nc=vt("circle-check",LR);/**
|
|
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 UR=[["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"}]],ac=vt("circle-x",UR);/**
|
|
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 HR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],lc=vt("clock",HR);/**
|
|
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 qR=[["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"}]],BR=vt("columns-3",qR);/**
|
|
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 YR=[["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"}]],QR=vt("database",YR);/**
|
|
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 GR=[["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"}]],VR=vt("git-branch",GR);/**
|
|
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 KR=[["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"}]],XR=vt("inbox",KR);/**
|
|
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 $R=[["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"}]],ZR=vt("key",$R);/**
|
|
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 FR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Mt=vt("loader-circle",FR);/**
|
|
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 JR=[["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"}]],PR=vt("mail-warning",JR);/**
|
|
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 WR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],IR=vt("play",WR);/**
|
|
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 e_=[["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"}]],Ax=vt("refresh-cw",e_);/**
|
|
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 t_=[["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"}]],Dx=vt("table",t_);function Ox(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(l=0;l<n.length;l++)n[l]&&(r=Ox(n[l]))&&(i&&(i+=" "),i+=r);else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function n_(){for(var n,l,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(l=Ox(n))&&(i&&(i+=" "),i+=l);return i}const dm="-",a_=n=>{const l=r_(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const c=s.split(dm);return c[0]===""&&c.length!==1&&c.shift(),kx(c,l)||l_(s)},getConflictingClassGroupIds:(s,c)=>{const d=r[s]||[];return c&&i[s]?[...d,...i[s]]:d}}},kx=(n,l)=>{var r;if(n.length===0)return l.classGroupId;const i=n[0],s=l.nextPart.get(i),c=s?kx(n.slice(1),s):void 0;if(c)return c;if(l.validators.length===0)return;const d=n.join(dm);return(r=l.validators.find(({validator:m})=>m(d)))==null?void 0:r.classGroupId},K0=/^\[(.+)\]$/,l_=n=>{if(K0.test(n)){const l=K0.exec(n)[1],r=l==null?void 0:l.substring(0,l.indexOf(":"));if(r)return"arbitrary.."+r}},r_=n=>{const{theme:l,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Mh(r[s],i,s,l);return i},Mh=(n,l,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?l:X0(l,s);c.classGroupId=r;return}if(typeof s=="function"){if(i_(s)){Mh(s(i),l,r,i);return}l.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,d])=>{Mh(d,X0(l,c),r,i)})})},X0=(n,l)=>{let r=n;return l.split(dm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},i_=n=>n.isThemeGetter,o_=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,r=new Map,i=new Map;const s=(c,d)=>{r.set(c,d),l++,l>n&&(l=0,i=r,r=new Map)};return{get(c){let d=r.get(c);if(d!==void 0)return d;if((d=i.get(c))!==void 0)return s(c,d),d},set(c,d){r.has(c)?r.set(c,d):s(c,d)}}},Ah="!",Dh=":",s_=Dh.length,u_=n=>{const{prefix:l,experimentalParseClassName:r}=n;let i=s=>{const c=[];let d=0,m=0,p=0,g;for(let j=0;j<s.length;j++){let S=s[j];if(d===0&&m===0){if(S===Dh){c.push(s.slice(p,j)),p=j+s_;continue}if(S==="/"){g=j;continue}}S==="["?d++:S==="]"?d--:S==="("?m++:S===")"&&m--}const y=c.length===0?s:s.substring(p),b=c_(y),w=b!==y,E=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:E}};if(l){const s=l+Dh,c=i;i=d=>d.startsWith(s)?c(d.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=c=>r({className:c,parseClassName:s})}return i},c_=n=>n.endsWith(Ah)?n.substring(0,n.length-1):n.startsWith(Ah)?n.substring(1):n,f_=n=>{const l=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(c=>{c[0]==="["||l[c]?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i}},d_=n=>({cache:o_(n.cacheSize),parseClassName:u_(n),sortModifiers:f_(n),...a_(n)}),h_=/\s+/,m_=(n,l)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=l,d=[],m=n.trim().split(h_);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:w,hasImportantModifier:E,baseClassName:j,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let N=!!S,R=i(N?j.substring(0,S):j);if(!R){if(!N){p=y+(p.length>0?" "+p:p);continue}if(R=i(j),!R){p=y+(p.length>0?" "+p:p);continue}N=!1}const _=c(w).join(":"),T=E?_+Ah:_,k=T+R;if(d.includes(k))continue;d.push(k);const L=s(R,N);for(let $=0;$<L.length;++$){const Y=L[$];d.push(T+Y)}p=y+(p.length>0?" "+p:p)}return p};function p_(){let n=0,l,r,i="";for(;n<arguments.length;)(l=arguments[n++])&&(r=zx(l))&&(i&&(i+=" "),i+=r);return i}const zx=n=>{if(typeof n=="string")return n;let l,r="";for(let i=0;i<n.length;i++)n[i]&&(l=zx(n[i]))&&(r&&(r+=" "),r+=l);return r};function v_(n,...l){let r,i,s,c=d;function d(p){const g=l.reduce((y,b)=>b(y),n());return r=d_(g),i=r.cache.get,s=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=m_(p,r);return s(p,y),y}return function(){return c(p_.apply(null,arguments))}}const mt=n=>{const l=r=>r[n]||[];return l.isThemeGetter=!0,l},Lx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ux=/^\((?:(\w[\w-]*):)?(.+)\)$/i,g_=/^\d+\/\d+$/,y_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b_=/\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$/,x_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,w_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vr=n=>g_.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),nl=n=>!!n&&Number.isInteger(Number(n)),eh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),ga=n=>y_.test(n),E_=()=>!0,C_=n=>b_.test(n)&&!x_.test(n),Hx=()=>!1,j_=n=>w_.test(n),N_=n=>S_.test(n),R_=n=>!de(n)&&!he(n),__=n=>wi(n,Yx,Hx),de=n=>Lx.test(n),Bl=n=>wi(n,Qx,C_),th=n=>wi(n,O_,Me),$0=n=>wi(n,qx,Hx),T_=n=>wi(n,Bx,N_),bu=n=>wi(n,Gx,j_),he=n=>Ux.test(n),_o=n=>Si(n,Qx),M_=n=>Si(n,k_),Z0=n=>Si(n,qx),A_=n=>Si(n,Yx),D_=n=>Si(n,Bx),xu=n=>Si(n,Gx,!0),wi=(n,l,r)=>{const i=Lx.exec(n);return i?i[1]?l(i[1]):r(i[2]):!1},Si=(n,l,r=!1)=>{const i=Ux.exec(n);return i?i[1]?l(i[1]):r:!1},qx=n=>n==="position"||n==="percentage",Bx=n=>n==="image"||n==="url",Yx=n=>n==="length"||n==="size"||n==="bg-size",Qx=n=>n==="length",O_=n=>n==="number",k_=n=>n==="family-name",Gx=n=>n==="shadow",z_=()=>{const n=mt("color"),l=mt("font"),r=mt("text"),i=mt("font-weight"),s=mt("tracking"),c=mt("leading"),d=mt("breakpoint"),m=mt("container"),p=mt("spacing"),g=mt("radius"),y=mt("shadow"),b=mt("inset-shadow"),w=mt("text-shadow"),E=mt("drop-shadow"),j=mt("blur"),S=mt("perspective"),N=mt("aspect"),R=mt("ease"),_=mt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...k(),he,de],$=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],H=()=>[he,de,p],G=()=>[Vr,"full","auto",...H()],le=()=>[nl,"none","subgrid",he,de],me=()=>["auto",{span:["full",nl,he,de]},nl,he,de],fe=()=>[nl,"auto",he,de],W=()=>["auto","min","max","fr",he,de],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()],P=()=>[Vr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],K=()=>[n,he,de],ee=()=>[...k(),Z0,$0,{position:[he,de]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",A_,__,{size:[he,de]}],X=()=>[eh,_o,Bl],I=()=>["","none","full",g,he,de],ae=()=>["",Me,_o,Bl],ve=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Me,eh,Z0,$0],Ce=()=>["","none",j,he,de],ye=()=>["none",Me,he,de],je=()=>["none",Me,he,de],Ue=()=>[Me,he,de],Qe=()=>[Vr,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ga],breakpoint:[ga],color:[E_],container:[ga],"drop-shadow":[ga],ease:["in","out","in-out"],font:[R_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ga],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ga],shadow:[ga],spacing:["px",Me],text:[ga],"text-shadow":[ga],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vr,de,he,N]}],container:["container"],columns:[{columns:[Me,de,he,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:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],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:[nl,"auto",he,de]}],basis:[{basis:[Vr,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,Vr,"auto","initial","none",de]}],grow:[{grow:["",Me,he,de]}],shrink:[{shrink:["",Me,he,de]}],order:[{order:[nl,"first","last","none",he,de]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],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:P()}],w:[{w:[m,"screen",...P()]}],"min-w":[{"min-w":[m,"screen","none",...P()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...P()]}],h:[{h:["screen",...P()]}],"min-h":[{"min-h":["screen","none",...P()]}],"max-h":[{"max-h":["screen",...P()]}],"font-size":[{text:["base",r,_o,Bl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,he,th]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eh,de]}],"font-family":[{font:[M_,de,l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,he,de]}],"line-clamp":[{"line-clamp":[Me,"none",he,th]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",he,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",he,Bl]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Me,"auto",he,de]}],"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",he,de]}],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",he,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nl,he,de],radial:["",he,de],conic:[nl,he,de]},D_,T_]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,he,de]}],"outline-w":[{outline:["",Me,_o,Bl]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",y,xu,bu]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",b,xu,bu]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Me,Bl]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",w,xu,bu]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Me,he,de]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[he,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,de]}],filter:[{filter:["","none",he,de]}],blur:[{blur:Ce()}],brightness:[{brightness:[Me,he,de]}],contrast:[{contrast:[Me,he,de]}],"drop-shadow":[{"drop-shadow":["","none",E,xu,bu]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Me,he,de]}],"hue-rotate":[{"hue-rotate":[Me,he,de]}],invert:[{invert:["",Me,he,de]}],saturate:[{saturate:[Me,he,de]}],sepia:[{sepia:["",Me,he,de]}],"backdrop-filter":[{"backdrop-filter":["","none",he,de]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[Me,he,de]}],"backdrop-contrast":[{"backdrop-contrast":[Me,he,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,he,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,he,de]}],"backdrop-invert":[{"backdrop-invert":["",Me,he,de]}],"backdrop-opacity":[{"backdrop-opacity":[Me,he,de]}],"backdrop-saturate":[{"backdrop-saturate":[Me,he,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,he,de]}],"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",he,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",he,de]}],ease:[{ease:["linear","initial",R,he,de]}],delay:[{delay:[Me,he,de]}],animate:[{animate:["none",_,he,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,he,de]}],"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:je()}],"scale-x":[{"scale-x":je()}],"scale-y":[{"scale-y":je()}],"scale-z":[{"scale-z":je()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[he,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",he,de]}],"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",he,de]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Me,_o,Bl,th]}],stroke:[{stroke:["none",...K()]}],"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"]}},L_=v_(z_);function ue(...n){return L_(n_(n))}function Do(n){return n===null?"-":n<1e3?`${n}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const U_={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},H_={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 Uu({children:n,className:l,rounded:r="lg",shadow:i="md",...s}){return h.jsxs("div",{"data-slot":"glass-container",className:ue("relative","bg-card","backdrop-blur-xl","border border-border",U_[r],H_[i],l),...s,children:[h.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%)"}}),h.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%)"}}),h.jsx("div",{className:"relative z-10",children:n})]})}function It({className:n,rounded:l="2xl",shadow:r="lg",children:i,...s}){return h.jsx(Uu,{"data-slot":"card",rounded:l,shadow:r,className:ue("p-6",n),...s,children:i})}function gn({className:n,...l}){return h.jsx("div",{"data-slot":"card-header",className:ue("flex flex-row items-center justify-between space-y-0 pb-2",n),...l})}function yn({className:n,...l}){return h.jsx("h3",{"data-slot":"card-title",className:ue("font-semibold text-sm leading-none text-card-foreground",n),...l})}function di({className:n,...l}){return h.jsx("p",{"data-slot":"card-description",className:ue("text-muted-foreground text-sm",n),...l})}function en({className:n,...l}){return h.jsx("div",{"data-slot":"card-content",className:ue(n),...l})}/**
|
|
167
|
+
* @license lucide-react v0.511.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 q_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,i)=>i?i.toUpperCase():r.toLowerCase()),F0=n=>{const l=B_(n);return l.charAt(0).toUpperCase()+l.slice(1)},Vx=(...n)=>n.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim(),Y_=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
|
|
172
|
+
* @license lucide-react v0.511.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
|
+
*/var Q_={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"};/**
|
|
177
|
+
* @license lucide-react v0.511.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 G_=v.forwardRef(({color:n="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:d,...m},p)=>v.createElement("svg",{ref:p,...Q_,width:l,height:l,stroke:n,strokeWidth:i?Number(r)*24/Number(l):r,className:Vx("lucide",s),...!c&&!Y_(m)&&{"aria-hidden":"true"},...m},[...d.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
|
|
182
|
+
* @license lucide-react v0.511.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const kn=(n,l)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(G_,{ref:c,iconNode:l,className:Vx(`lucide-${q_(F0(n))}`,`lucide-${n}`,i),...s}));return r.displayName=F0(n),r};/**
|
|
187
|
+
* @license lucide-react v0.511.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const V_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hm=kn("check",V_);/**
|
|
192
|
+
* @license lucide-react v0.511.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const K_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],X_=kn("chevron-down",K_);/**
|
|
197
|
+
* @license lucide-react v0.511.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const $_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],J0=kn("chevron-left",$_);/**
|
|
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 Z_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oh=kn("chevron-right",Z_);/**
|
|
207
|
+
* @license lucide-react v0.511.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const F_=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],J_=kn("chevron-up",F_);/**
|
|
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 P_=[["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"}]],W_=kn("clipboard",P_);/**
|
|
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 I_=[["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"}]],eT=kn("file-json",I_);/**
|
|
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:"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"}]],nT=kn("file-spreadsheet",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 aT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lT=kn("loader-circle",aT);/**
|
|
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 rT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],iT=kn("search",rT);/**
|
|
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 oT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sT=kn("x",oT);function uT(n){const l=Math.floor((new Date().getTime()-n.getTime())/1e3);return l<60?"just now":l<3600?`${Math.floor(l/60)}m ago`:l<86400?`${Math.floor(l/3600)}h ago`:l<604800?`${Math.floor(l/86400)}d ago`:n.toLocaleDateString()}function nh({value:n}){const[l,r]=v.useState(!1);return h.jsx("button",{onClick:async i=>{i.stopPropagation();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),2e3)}catch{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),r(!0),setTimeout(()=>r(!1),2e3)}},className:ue("p-1 rounded transition-colors flex-shrink-0",l?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:l?"Copied!":"Copy to clipboard",children:l?h.jsx(hm,{className:"w-3 h-3"}):h.jsx(W_,{className:"w-3 h-3"})})}function cT({timestamp:n,className:l,rawValue:r,forceOpen:i=!1}){const[s,c]=v.useState(!1),d=i||s;if(!n)return null;let m;typeof n=="number"?m=new Date(n<1e10?n*1e3:n):m=new Date(n);const p=m.toISOString(),g=m.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),y=uT(m);return h.jsxs("div",{className:ue("relative inline-block",l),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[h.jsx("time",{dateTime:p,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:y}),h.jsx("div",{className:ue("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",d?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:h.jsx(Uu,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:h.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&h.jsxs("div",{children:[h.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:String(r)}),h.jsx(nh,{value:String(r)})]})]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:p}),h.jsx(nh,{value:p})]})]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:g}),h.jsx(nh,{value:g})]})]})]})})})]})}function fT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function dT(n){return typeof n!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(l=>l.test(n))}function hT(n){const l=n.toLowerCase();return!!(l.includes("created")||l.includes("date")||l.includes("updated")||n.endsWith("At")||l.endsWith("_at"))}function mT(n,l){for(const r of l){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&hT(n)?"date":typeof i=="number"?"number":dT(i)?"date":"string"}return"string"}function pT({results:n,meta:l,columns:r,error:i,title:s="Results",pageSize:c=25,onExportCsv:d,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[b,w]=v.useState(null),[E,j]=v.useState(new Set),[S,N]=v.useState(1),R=!!p,_=p?Math.floor(p.offset/p.limit)+1:1,T=p?Math.ceil(p.total/p.limit):1,k=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(W=>({key:W,label:W,type:mT(W,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(W=>Object.values(W).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),$=v.useMemo(()=>b?[...L].sort((W,ie)=>{const re=W[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]),Y=Math.ceil($.length/c),H=v.useMemo(()=>{const W=(S-1)*c;return $.slice(W,W+c)},[$,S,c]);v.useMemo(()=>{N(1)},[g,b]);const G=W=>{w(ie=>(ie==null?void 0:ie.key)===W?ie.direction==="asc"?{key:W,direction:"desc"}:null:{key:W,direction:"asc"})},le=()=>{E.size===H.length?j(new Set):j(new Set(H.map((W,ie)=>ie)))},me=W=>{const ie=new Set(E);ie.has(W)?ie.delete(W):ie.add(W),j(ie)},fe=(W,ie)=>{const re=W[ie.key];if(re==null)return h.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type||"string"){case"bool":return re?h.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:h.jsx(hm,{className:"w-3.5 h-3.5"})}):h.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:h.jsx(sT,{className:"w-3.5 h-3.5"})});case"date":return h.jsx(cT,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return h.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():String(re)});default:return typeof re=="object"?h.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):h.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:String(re)})}};return i?h.jsxs(Uu,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[h.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:h.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),h.jsx("div",{className:"p-5",children:h.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):h.jsxs(Uu,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[h.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:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),l&&h.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:fT(l.duration)}),h.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsxs("div",{className:"relative group",children:[h.jsx(iT,{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"}),h.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:W=>y(W.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"})]}),(d||m)&&h.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[d&&h.jsx("button",{onClick:d,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:h.jsx(nT,{className:"w-4 h-4"})}),m&&h.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:h.jsx(eT,{className:"w-4 h-4"})})]})]})]}),h.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:h.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[h.jsx("th",{className:"p-4 w-12",children:h.jsx("input",{type:"checkbox",checked:E.size===H.length&&H.length>0,onChange:le,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(W=>h.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(W.key),children:h.jsxs("div",{className:"flex items-center gap-1",children:[W.label,h.jsxs("div",{className:ue("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===W.key&&"opacity-100"),children:[h.jsx(J_,{className:ue("w-2 h-2",(b==null?void 0:b.key)===W.key&&b.direction==="asc"&&"text-blue-500")}),h.jsx(X_,{className:ue("w-2 h-2",(b==null?void 0:b.key)===W.key&&b.direction==="desc"&&"text-blue-500")})]})]})},W.key))]})}),h.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:H.length>0?H.map((W,ie)=>h.jsxs("tr",{className:ue("group transition-colors",E.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[h.jsx("td",{className:"p-4",children:h.jsx("input",{type:"checkbox",checked:E.has(ie),onChange:()=>me(ie),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),k.map(re=>h.jsx("td",{className:"p-4 whitespace-nowrap",children:fe(W,re)},`${ie}-${re.key}`))]},ie)):h.jsx("tr",{children:h.jsx("td",{colSpan:k.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"Query executed successfully. No rows returned."})})})]})}),h.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:[h.jsxs("div",{children:[R?h.jsxs(h.Fragment,{children:["Showing"," ",h.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",h.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",h.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):h.jsxs(h.Fragment,{children:["Showing"," ",h.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","of"," ",h.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:$.length})," ","results"]}),E.size>0&&h.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[E.size," row",E.size!==1?"s":""," ","selected"]})]}),R&&T>1&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:()=>p.onPageChange(Math.max(0,p.offset-p.limit)),disabled:_===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:h.jsx(J0,{className:"w-4 h-4"})}),h.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(T,5)},(W,ie)=>{let re;return T<=5||_<=3?re=ie+1:_>=T-2?re=T-4+ie:re=_-2+ie,h.jsx("button",{onClick:()=>p.onPageChange((re-1)*p.limit),className:ue("px-2.5 py-1 rounded-lg font-medium transition-colors",_===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)})}),h.jsx("button",{onClick:()=>p.onPageChange(p.offset+p.limit),disabled:_===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:h.jsx(Oh,{className:"w-4 h-4"})})]}),!R&&Y>1&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:()=>N(W=>Math.max(1,W-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:h.jsx(J0,{className:"w-4 h-4"})}),h.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(Y,5)},(W,ie)=>{let re;return Y<=5||S<=3?re=ie+1:S>=Y-2?re=Y-4+ie:re=S-2+ie,h.jsx("button",{onClick:()=>N(re),className:ue("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)})}),h.jsx("button",{onClick:()=>N(W=>Math.min(Y,W+1)),disabled:S===Y,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:h.jsx(Oh,{className:"w-4 h-4"})})]})]})]})}function mm({className:n,...l}){return h.jsx("table",{"data-slot":"table",className:ue("w-full caption-bottom text-sm",n),...l})}function pm({className:n,...l}){return h.jsx("thead",{"data-slot":"table-header",className:ue("[&_tr]:border-b",n),...l})}function vm({className:n,...l}){return h.jsx("tbody",{"data-slot":"table-body",className:ue("[&_tr:last-child]:border-0",n),...l})}function hi({className:n,...l}){return h.jsx("tr",{"data-slot":"table-row",className:ue("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...l})}function pn({className:n,...l}){return h.jsx("th",{"data-slot":"table-head",className:ue("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...l})}function vn({className:n,...l}){return h.jsx("td",{"data-slot":"table-cell",className:ue("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...l})}function P0(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function Xo(...n){return l=>{let r=!1;const i=n.map(s=>{const c=P0(s,l);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():P0(n[s],null)}}}}function we(...n){return v.useCallback(Xo(...n),n)}function Pl(n){const l=vT(n),r=v.forwardRef((i,s)=>{const{children:c,...d}=i,m=v.Children.toArray(c),p=m.find(gT);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return h.jsx(l,{...d,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return h.jsx(l,{...d,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}var W0=Pl("Slot");function vT(n){const l=v.forwardRef((r,i)=>{const{children:s,...c}=r;if(v.isValidElement(s)){const d=bT(s),m=yT(c,s.props);return s.type!==v.Fragment&&(m.ref=i?Xo(i,d):d),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var Kx=Symbol("radix.slottable");function Xx(n){const l=({children:r})=>h.jsx(h.Fragment,{children:r});return l.displayName=`${n}.Slottable`,l.__radixId=Kx,l}function gT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Kx}function yT(n,l){const r={...l};for(const i in l){const s=n[i],c=l[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...d)=>{const m=c(...d);return s(...d),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function bT(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function $x(n){var l,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(l=0;l<s;l++)n[l]&&(r=$x(n[l]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function xT(){for(var n,l,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(l=$x(n))&&(i&&(i+=" "),i+=l);return i}const I0=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,eb=xT,gm=(n,l)=>r=>{var i;if((l==null?void 0:l.variants)==null)return eb(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=l,d=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],b=c==null?void 0:c[g];if(y===null)return null;const w=I0(y)||I0(b);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[b,w]=y;return w===void 0||(g[b]=w),g},{}),p=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:b,className:w,...E}=y;return Object.entries(E).every(j=>{let[S,N]=j;return Array.isArray(N)?N.includes({...c,...m}[S]):{...c,...m}[S]===N})?[...g,b,w]:g},[]);return eb(n,d,p,r==null?void 0:r.class,r==null?void 0:r.className)},wT={default:"text-gray-600 bg-gray-100 border-gray-200 dark:text-gray-400 dark:bg-gray-900 dark:border-gray-500/20",success:"text-green-600 bg-green-50 border-green-200 dark:text-green-400 dark:bg-green-950 dark:border-green-500/20",error:"text-red-600 bg-red-50 border-red-200 dark:text-red-400 dark:bg-red-950 dark:border-red-500/20",warning:"text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-400 dark:bg-yellow-950 dark:border-yellow-500/20",purple:"text-purple-600 bg-purple-50 border-purple-200 dark:text-purple-400 dark:bg-purple-950 dark:border-purple-500/20",blue:"text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-500/20",orange:"text-orange-600 bg-orange-50 border-orange-200 dark:text-orange-400 dark:bg-orange-950 dark:border-orange-500/20",emerald:"text-emerald-600 bg-emerald-50 border-emerald-200 dark:text-emerald-400 dark:bg-emerald-950 dark:border-emerald-500/20"};function Hu({className:n,icon:l,variant:r="default",children:i,...s}){return h.jsxs("div",{className:ue("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",wT[r],n),...s,children:[l&&h.jsx("span",{className:"flex-shrink-0",children:l}),h.jsx("span",{className:"leading-none",children:i})]})}const tb=gm("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:ue("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:ue("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:ue("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:ue("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:ue("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:ue("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),ST=["primary","secondary","danger","success","icon"];function wa({className:n,variant:l,size:r,asChild:i=!1,isLoading:s=!1,children:c,disabled:d,...m}){const p=i?W0:"button",g=l&&ST.includes(l);return i?h.jsx(W0,{"data-slot":"button",className:ue(tb({variant:l,size:r,className:n})),...m,children:c}):h.jsxs(p,{"data-slot":"button",className:ue(tb({variant:l,size:r,className:n})),disabled:d||s,...m,children:[g&&h.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[h.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%)"}}),h.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%)"}})]}),h.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&h.jsx(lT,{className:"size-4 animate-spin"}),c]})]})}const Zx=v.forwardRef(({className:n,active:l=!1,icon:r,children:i,"data-state":s,...c},d)=>{const m=l||s==="active";return h.jsxs("button",{ref:d,"data-slot":"tab-button","data-state":s,className:ue("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",n),...c,children:[r&&h.jsx(r,{className:"size-4"}),i,h.jsx("span",{className:ue("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")})]})});Zx.displayName="TabButton";var ET=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=ET.reduce((n,l)=>{const r=Pl(`Primitive.${l}`),i=v.forwardRef((s,c)=>{const{asChild:d,...m}=s,p=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function qu(n,l){n&&Ko.flushSync(()=>n.dispatchEvent(l))}var et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function CT(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var ot=n=>{const{present:l,children:r}=n,i=jT(l),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,NT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:c}):null};ot.displayName="Presence";function jT(n){const[l,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),c=v.useRef("none"),d=n?"mounted":"unmounted",[m,p]=CT(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=wu(i.current);c.current=m==="mounted"?g:"none"},[m]),et(()=>{const g=i.current,y=s.current;if(y!==n){const b=c.current,w=wu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),et(()=>{if(l){let g;const y=l.ownerDocument.defaultView??window,b=E=>{const j=wu(i.current).includes(CSS.escape(E.animationName));if(E.target===l&&j&&(p("ANIMATION_END"),!s.current)){const S=l.style.animationFillMode;l.style.animationFillMode="forwards",g=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=S)})}},w=E=>{E.target===l&&(c.current=wu(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",b),l.addEventListener("animationend",b),()=>{y.clearTimeout(g),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",b),l.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function wu(n){return(n==null?void 0:n.animationName)||"none"}function NT(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function RT(n,l){const r=v.createContext(l),i=c=>{const{children:d,...m}=c,p=v.useMemo(()=>m,Object.values(m));return h.jsx(r.Provider,{value:p,children:d})};i.displayName=n+"Provider";function s(c){const d=v.useContext(r);if(d)return d;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function dt(n,l=[]){let r=[];function i(c,d){const m=v.createContext(d),p=r.length;r=[...r,d];const g=b=>{var w;const{scope:E,children:j,...S}=b,N=((w=E==null?void 0:E[n])==null?void 0:w[p])||m,R=v.useMemo(()=>S,Object.values(S));return h.jsx(N.Provider,{value:R,children:j})};g.displayName=c+"Provider";function y(b,w){var E;const j=((E=w==null?void 0:w[n])==null?void 0:E[p])||m,S=v.useContext(j);if(S)return S;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${c}\``)}return[g,y]}const s=()=>{const c=r.map(d=>v.createContext(d));return function(d){const m=(d==null?void 0:d[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...d,[n]:m}}),[d,m])}};return s.scopeName=n,[i,_T(s,...l)]}function _T(...n){const l=n[0];if(n.length===1)return l;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const c=i.reduce((d,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...d,...g}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:c}),[c])}};return r.scopeName=l.scopeName,r}function We(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=l.current)==null?void 0:i.call(l,...r)},[])}var TT=v.createContext(void 0);function Ei(n){const l=v.useContext(TT);return n||l||"ltr"}function kh(n,[l,r]){return Math.min(r,Math.max(l,n))}function ne(n,l,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return l==null?void 0:l(i)}}function MT(n,l){return v.useReducer((r,i)=>l[r][i]??r,n)}var ym="ScrollArea",[Fx,Gz]=dt(ym),[AT,wn]=Fx(ym),Jx=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:c=600,...d}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(null),[E,j]=v.useState(null),[S,N]=v.useState(null),[R,_]=v.useState(0),[T,k]=v.useState(0),[L,$]=v.useState(!1),[Y,H]=v.useState(!1),G=we(l,me=>p(me)),le=Ei(s);return h.jsx(AT,{scope:r,type:i,dir:le,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:y,content:b,onContentChange:w,scrollbarX:E,onScrollbarXChange:j,scrollbarXEnabled:L,onScrollbarXEnabledChange:$,scrollbarY:S,onScrollbarYChange:N,scrollbarYEnabled:Y,onScrollbarYEnabledChange:H,onCornerWidthChange:_,onCornerHeightChange:k,children:h.jsx(oe.div,{dir:le,...d,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});Jx.displayName=ym;var Px="ScrollAreaViewport",Wx=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,children:i,nonce:s,...c}=n,d=wn(Px,r),m=v.useRef(null),p=we(l,m,d.onViewportChange);return h.jsxs(h.Fragment,{children:[h.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}),h.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...n.style},children:h.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});Wx.displayName=Px;var $n="ScrollAreaScrollbar",Ix=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=wn($n,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):d(!0),()=>{m?c(!1):d(!1)}),[m,c,d]),s.type==="hover"?h.jsx(DT,{...i,ref:l,forceMount:r}):s.type==="scroll"?h.jsx(OT,{...i,ref:l,forceMount:r}):s.type==="auto"?h.jsx(ew,{...i,ref:l,forceMount:r}):s.type==="always"?h.jsx(bm,{...i,ref:l}):null});Ix.displayName=$n;var DT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=wn($n,n.__scopeScrollArea),[c,d]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),d(!0)},y=()=>{p=window.setTimeout(()=>d(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),h.jsx(ot,{present:r||c,children:h.jsx(ew,{"data-state":c?"visible":"hidden",...i,ref:l})})}),OT=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=wn($n,n.__scopeScrollArea),c=n.orientation==="horizontal",d=ic(()=>p("SCROLL_END"),100),[m,p]=MT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=c?"scrollLeft":"scrollTop";if(g){let b=g[y];const w=()=>{const E=g[y];b!==E&&(p("SCROLL"),d()),b=E};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,c,p,d]),h.jsx(ot,{present:r||m!=="hidden",children:h.jsx(bm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:l,onPointerEnter:ne(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ne(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),ew=v.forwardRef((n,l)=>{const r=wn($n,n.__scopeScrollArea),{forceMount:i,...s}=n,[c,d]=v.useState(!1),m=n.orientation==="horizontal",p=ic(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;d(m?g:y)}},10);return mi(r.viewport,p),mi(r.content,p),h.jsx(ot,{present:i||c,children:h.jsx(bm,{"data-state":c?"visible":"hidden",...s,ref:l})})}),bm=v.forwardRef((n,l)=>{const{orientation:r="vertical",...i}=n,s=wn($n,n.__scopeScrollArea),c=v.useRef(null),d=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=rw(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:w=>d.current=w};function b(w,E){return qT(w,d.current,m,E)}return r==="horizontal"?h.jsx(kT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollLeft,E=nb(w,m,s.dir);c.current.style.transform=`translate3d(${E}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=b(w,s.dir))}}):r==="vertical"?h.jsx(zT,{...y,ref:l,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollTop,E=nb(w,m);c.current.style.transform=`translate3d(0, ${E}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=b(w))}}):null}),kT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,c=wn($n,n.__scopeScrollArea),[d,m]=v.useState(),p=v.useRef(null),g=we(l,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),h.jsx(nw,{"data-orientation":"horizontal",...s,ref:g,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":rc(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),ow(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Yu(d.paddingLeft),paddingEnd:Yu(d.paddingRight)}})}})}),zT=v.forwardRef((n,l)=>{const{sizes:r,onSizesChange:i,...s}=n,c=wn($n,n.__scopeScrollArea),[d,m]=v.useState(),p=v.useRef(null),g=we(l,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),h.jsx(nw,{"data-orientation":"vertical",...s,ref:g,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":rc(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),ow(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&d&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Yu(d.paddingTop),paddingEnd:Yu(d.paddingBottom)}})}})}),[LT,tw]=Fx($n),nw=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:b,...w}=n,E=wn($n,r),[j,S]=v.useState(null),N=we(l,G=>S(G)),R=v.useRef(null),_=v.useRef(""),T=E.viewport,k=i.content-i.viewport,L=We(y),$=We(p),Y=ic(b,10);function H(G){if(R.current){const le=G.clientX-R.current.left,me=G.clientY-R.current.top;g({x:le,y:me})}}return v.useEffect(()=>{const G=le=>{const me=le.target;j!=null&&j.contains(me)&&L(le,k)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,j,k,L]),v.useEffect($,[i,$]),mi(j,Y),mi(E.content,Y),h.jsx(LT,{scope:r,scrollbar:j,hasThumb:s,onThumbChange:We(c),onThumbPointerUp:We(d),onThumbPositionChange:$,onThumbPointerDown:We(m),children:h.jsx(oe.div,{...w,ref:N,style:{position:"absolute",...w.style},onPointerDown:ne(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),R.current=j.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",E.viewport&&(E.viewport.style.scrollBehavior="auto"),H(G))}),onPointerMove:ne(n.onPointerMove,H),onPointerUp:ne(n.onPointerUp,G=>{const le=G.target;le.hasPointerCapture(G.pointerId)&&le.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=_.current,E.viewport&&(E.viewport.style.scrollBehavior=""),R.current=null})})})}),Bu="ScrollAreaThumb",aw=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=tw(Bu,n.__scopeScrollArea);return h.jsx(ot,{present:r||s.hasThumb,children:h.jsx(UT,{ref:l,...i})})}),UT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,style:i,...s}=n,c=wn(Bu,r),d=tw(Bu,r),{onThumbPositionChange:m}=d,p=we(l,b=>d.onThumbChange(b)),g=v.useRef(void 0),y=ic(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const b=c.viewport;if(b){const w=()=>{if(y(),!g.current){const E=BT(b,m);g.current=E,m()}};return m(),b.addEventListener("scroll",w),()=>b.removeEventListener("scroll",w)}},[c.viewport,y,m]),h.jsx(oe.div,{"data-state":d.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ne(n.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),E=b.clientX-w.left,j=b.clientY-w.top;d.onThumbPointerDown({x:E,y:j})}),onPointerUp:ne(n.onPointerUp,d.onThumbPointerUp)})});aw.displayName=Bu;var xm="ScrollAreaCorner",lw=v.forwardRef((n,l)=>{const r=wn(xm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?h.jsx(HT,{...n,ref:l}):null});lw.displayName=xm;var HT=v.forwardRef((n,l)=>{const{__scopeScrollArea:r,...i}=n,s=wn(xm,r),[c,d]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return mi(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),mi(s.scrollbarY,()=>{var y;const b=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(b),d(b)}),g?h.jsx(oe.div,{...i,ref:l,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 Yu(n){return n?parseInt(n,10):0}function rw(n,l){const r=n/l;return isNaN(r)?0:r}function rc(n){const l=rw(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*l;return Math.max(i,18)}function qT(n,l,r,i="ltr"){const s=rc(r),c=s/2,d=l||c,m=s-d,p=r.scrollbar.paddingStart+d,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,b=i==="ltr"?[0,y]:[y*-1,0];return iw([p,g],b)(n)}function nb(n,l,r="ltr"){const i=rc(l),s=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,c=l.scrollbar.size-s,d=l.content-l.viewport,m=c-i,p=r==="ltr"?[0,d]:[d*-1,0],g=kh(n,p);return iw([0,d],[0,m])(g)}function iw(n,l){return r=>{if(n[0]===n[1]||l[0]===l[1])return l[0];const i=(l[1]-l[0])/(n[1]-n[0]);return l[0]+i*(r-n[0])}}function ow(n,l){return n>0&&n<l}var BT=(n,l=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},d=r.left!==c.left,m=r.top!==c.top;(d||m)&&l(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function ic(n,l){const r=We(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,l)},[r,l])}function mi(n,l){const r=We(l);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var YT=Jx,QT=Wx,GT=lw;function VT({className:n,children:l,...r}){return h.jsxs(YT,{"data-slot":"scroll-area",className:ue("relative",n),...r,children:[h.jsx(QT,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:l}),h.jsx(KT,{}),h.jsx(GT,{})]})}function KT({className:n,orientation:l="vertical",...r}){return h.jsx(Ix,{"data-slot":"scroll-area-scrollbar",orientation:l,className:ue("flex touch-none p-px transition-colors select-none",l==="vertical"&&"h-full w-2.5 border-l border-l-transparent",l==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:h.jsx(aw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var XT=ox[" useInsertionEffect ".trim().toString()]||et;function Zn({prop:n,defaultProp:l,onChange:r=()=>{},caller:i}){const[s,c,d]=$T({defaultProp:l,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const b=y.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var b;if(m){const w=ZT(y)?y(n):y;w!==n&&((b=d.current)==null||b.call(d,w))}else c(y)},[m,n,c,d]);return[p,g]}function $T({defaultProp:n,onChange:l}){const[r,i]=v.useState(n),s=v.useRef(r),c=v.useRef(l);return XT(()=>{c.current=l},[l]),v.useEffect(()=>{var d;s.current!==r&&((d=c.current)==null||d.call(c,r),s.current=r)},[r,s]),[r,i,c]}function ZT(n){return typeof n=="function"}function Ci(n){const l=n+"CollectionProvider",[r,i]=dt(l),[s,c]=r(l,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:N,children:R}=S,_=lt.useRef(null),T=lt.useRef(new Map).current;return h.jsx(s,{scope:N,itemMap:T,collectionRef:_,children:R})};d.displayName=l;const m=n+"CollectionSlot",p=Pl(m),g=lt.forwardRef((S,N)=>{const{scope:R,children:_}=S,T=c(m,R),k=we(N,T.collectionRef);return h.jsx(p,{ref:k,children:_})});g.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=Pl(y),E=lt.forwardRef((S,N)=>{const{scope:R,children:_,...T}=S,k=lt.useRef(null),L=we(N,k),$=c(y,R);return lt.useEffect(()=>($.itemMap.set(k,{ref:k,...T}),()=>void $.itemMap.delete(k))),h.jsx(w,{[b]:"",ref:L,children:_})});E.displayName=y;function j(S){const N=c(n+"CollectionConsumer",S);return lt.useCallback(()=>{const R=N.collectionRef.current;if(!R)return[];const _=Array.from(R.querySelectorAll(`[${b}]`));return Array.from(N.itemMap.values()).sort((T,k)=>_.indexOf(T.ref.current)-_.indexOf(k.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:d,Slot:g,ItemSlot:E},j,i]}function FT(n,l=globalThis==null?void 0:globalThis.document){const r=We(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[r,l])}var JT="DismissableLayer",zh="dismissableLayer.update",PT="dismissableLayer.pointerDownOutside",WT="dismissableLayer.focusOutside",ab,sw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ji=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:m,...p}=n,g=v.useContext(sw),[y,b]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=v.useState({}),j=we(l,Y=>b(Y)),S=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=S.indexOf(N),_=y?S.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,k=_>=R,L=tM(Y=>{const H=Y.target,G=[...g.branches].some(le=>le.contains(H));!k||G||(s==null||s(Y),d==null||d(Y),Y.defaultPrevented||m==null||m())},w),$=nM(Y=>{const H=Y.target;[...g.branches].some(G=>G.contains(H))||(c==null||c(Y),d==null||d(Y),Y.defaultPrevented||m==null||m())},w);return FT(Y=>{_===g.layers.size-1&&(i==null||i(Y),!Y.defaultPrevented&&m&&(Y.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(ab=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),lb(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=ab)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),lb())},[y,g]),v.useEffect(()=>{const Y=()=>E({});return document.addEventListener(zh,Y),()=>document.removeEventListener(zh,Y)},[]),h.jsx(oe.div,{...p,ref:j,style:{pointerEvents:T?k?"auto":"none":void 0,...n.style},onFocusCapture:ne(n.onFocusCapture,$.onFocusCapture),onBlurCapture:ne(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:ne(n.onPointerDownCapture,L.onPointerDownCapture)})});ji.displayName=JT;var IT="DismissableLayerBranch",eM=v.forwardRef((n,l)=>{const r=v.useContext(sw),i=v.useRef(null),s=we(l,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),h.jsx(oe.div,{...n,ref:s})});eM.displayName=IT;function tM(n,l=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){uw(PT,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(l.removeEventListener("click",s.current),s.current=p,l.addEventListener("click",s.current,{once:!0})):p()}else l.removeEventListener("click",s.current);i.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",c),l.removeEventListener("click",s.current)}},[l,r]),{onPointerDownCapture:()=>i.current=!0}}function nM(n,l=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1);return v.useEffect(()=>{const s=c=>{c.target&&!i.current&&uw(WT,r,{originalEvent:c},{discrete:!1})};return l.addEventListener("focusin",s),()=>l.removeEventListener("focusin",s)},[l,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function lb(){const n=new CustomEvent(zh);document.dispatchEvent(n)}function uw(n,l,r,{discrete:i}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});l&&s.addEventListener(n,l,{once:!0}),i?qu(s,c):s.dispatchEvent(c)}var ah=0;function wm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??rb()),document.body.insertAdjacentElement("beforeend",n[1]??rb()),ah++,()=>{ah===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),ah--}},[])}function rb(){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 lh="focusScope.autoFocusOnMount",rh="focusScope.autoFocusOnUnmount",ib={bubbles:!1,cancelable:!0},aM="FocusScope",oc=v.forwardRef((n,l)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...d}=n,[m,p]=v.useState(null),g=We(s),y=We(c),b=v.useRef(null),w=we(l,S=>p(S)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(E.paused||!m)return;const k=T.target;m.contains(k)?b.current=k:ll(b.current,{select:!0})},N=function(T){if(E.paused||!m)return;const k=T.relatedTarget;k!==null&&(m.contains(k)||ll(b.current,{select:!0}))},R=function(T){if(document.activeElement===document.body)for(const k of T)k.removedNodes.length>0&&ll(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",N);const _=new MutationObserver(R);return m&&_.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",N),_.disconnect()}}},[i,m,E.paused]),v.useEffect(()=>{if(m){sb.add(E);const S=document.activeElement;if(!m.contains(S)){const N=new CustomEvent(lh,ib);m.addEventListener(lh,g),m.dispatchEvent(N),N.defaultPrevented||(lM(uM(cw(m)),{select:!0}),document.activeElement===S&&ll(m))}return()=>{m.removeEventListener(lh,g),setTimeout(()=>{const N=new CustomEvent(rh,ib);m.addEventListener(rh,y),m.dispatchEvent(N),N.defaultPrevented||ll(S??document.body,{select:!0}),m.removeEventListener(rh,y),sb.remove(E)},0)}}},[m,g,y,E]);const j=v.useCallback(S=>{if(!r&&!i||E.paused)return;const N=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,R=document.activeElement;if(N&&R){const _=S.currentTarget,[T,k]=rM(_);T&&k?!S.shiftKey&&R===k?(S.preventDefault(),r&&ll(T,{select:!0})):S.shiftKey&&R===T&&(S.preventDefault(),r&&ll(k,{select:!0})):R===_&&S.preventDefault()}},[r,i,E.paused]);return h.jsx(oe.div,{tabIndex:-1,...d,ref:w,onKeyDown:j})});oc.displayName=aM;function lM(n,{select:l=!1}={}){const r=document.activeElement;for(const i of n)if(ll(i,{select:l}),document.activeElement!==r)return}function rM(n){const l=cw(n),r=ob(l,n),i=ob(l.reverse(),n);return[r,i]}function cw(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function ob(n,l){for(const r of n)if(!iM(r,{upTo:l}))return r}function iM(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function oM(n){return n instanceof HTMLInputElement&&"select"in n}function ll(n,{select:l=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&oM(n)&&l&&n.select()}}var sb=sM();function sM(){let n=[];return{add(l){const r=n[0];l!==r&&(r==null||r.pause()),n=ub(n,l),n.unshift(l)},remove(l){var r;n=ub(n,l),(r=n[0])==null||r.resume()}}}function ub(n,l){const r=[...n],i=r.indexOf(l);return i!==-1&&r.splice(i,1),r}function uM(n){return n.filter(l=>l.tagName!=="A")}var cM=ox[" useId ".trim().toString()]||(()=>{}),fM=0;function bl(n){const[l,r]=v.useState(cM());return et(()=>{r(i=>i??String(fM++))},[n]),l?`radix-${l}`:""}const dM=["top","right","bottom","left"],gl=Math.min,Wt=Math.max,Qu=Math.round,Su=Math.floor,Kn=n=>({x:n,y:n}),hM={left:"right",right:"left",bottom:"top",top:"bottom"},mM={start:"end",end:"start"};function Lh(n,l,r){return Wt(n,gl(l,r))}function Na(n,l){return typeof n=="function"?n(l):n}function Ra(n){return n.split("-")[0]}function Ni(n){return n.split("-")[1]}function Sm(n){return n==="x"?"y":"x"}function Em(n){return n==="y"?"height":"width"}const pM=new Set(["top","bottom"]);function Vn(n){return pM.has(Ra(n))?"y":"x"}function Cm(n){return Sm(Vn(n))}function vM(n,l,r){r===void 0&&(r=!1);const i=Ni(n),s=Cm(n),c=Em(s);let d=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[c]>l.floating[c]&&(d=Gu(d)),[d,Gu(d)]}function gM(n){const l=Gu(n);return[Uh(n),l,Uh(l)]}function Uh(n){return n.replace(/start|end/g,l=>mM[l])}const cb=["left","right"],fb=["right","left"],yM=["top","bottom"],bM=["bottom","top"];function xM(n,l,r){switch(n){case"top":case"bottom":return r?l?fb:cb:l?cb:fb;case"left":case"right":return l?yM:bM;default:return[]}}function wM(n,l,r,i){const s=Ni(n);let c=xM(Ra(n),r==="start",i);return s&&(c=c.map(d=>d+"-"+s),l&&(c=c.concat(c.map(Uh)))),c}function Gu(n){return n.replace(/left|right|bottom|top/g,l=>hM[l])}function SM(n){return{top:0,right:0,bottom:0,left:0,...n}}function fw(n){return typeof n!="number"?SM(n):{top:n,right:n,bottom:n,left:n}}function Vu(n){const{x:l,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:l,right:l+i,bottom:r+s,x:l,y:r}}function db(n,l,r){let{reference:i,floating:s}=n;const c=Vn(l),d=Cm(l),m=Em(d),p=Ra(l),g=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 E;switch(p){case"top":E={x:y,y:i.y-s.height};break;case"bottom":E={x:y,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:b};break;case"left":E={x:i.x-s.width,y:b};break;default:E={x:i.x,y:i.y}}switch(Ni(l)){case"start":E[d]-=w*(r&&g?-1:1);break;case"end":E[d]+=w*(r&&g?-1:1);break}return E}const EM=async(n,l,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:d}=r,m=c.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(l));let g=await d.getElementRects({reference:n,floating:l,strategy:s}),{x:y,y:b}=db(g,i,p),w=i,E={},j=0;for(let S=0;S<m.length;S++){const{name:N,fn:R}=m[S],{x:_,y:T,data:k,reset:L}=await R({x:y,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:E,rects:g,platform:d,elements:{reference:n,floating:l}});y=_??y,b=T??b,E={...E,[N]:{...E[N],...k}},L&&j<=50&&(j++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await d.getElementRects({reference:n,floating:l,strategy:s}):L.rects),{x:y,y:b}=db(g,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:E}};async function zo(n,l){var r;l===void 0&&(l={});const{x:i,y:s,platform:c,rects:d,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:w=!1,padding:E=0}=Na(l,n),j=fw(E),S=m[w?b==="floating"?"reference":"floating":b],N=Vu(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:g,rootBoundary:y,strategy:p})),R=b==="floating"?{x:i,y:s,width:d.floating.width,height:d.floating.height}:d.reference,_=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),T=await(c.isElement==null?void 0:c.isElement(_))?await(c.getScale==null?void 0:c.getScale(_))||{x:1,y:1}:{x:1,y:1},k=Vu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:R,offsetParent:_,strategy:p}):R);return{top:(N.top-k.top+j.top)/T.y,bottom:(k.bottom-N.bottom+j.bottom)/T.y,left:(N.left-k.left+j.left)/T.x,right:(k.right-N.right+j.right)/T.x}}const CM=n=>({name:"arrow",options:n,async fn(l){const{x:r,y:i,placement:s,rects:c,platform:d,elements:m,middlewareData:p}=l,{element:g,padding:y=0}=Na(n,l)||{};if(g==null)return{};const b=fw(y),w={x:r,y:i},E=Cm(s),j=Em(E),S=await d.getDimensions(g),N=E==="y",R=N?"top":"left",_=N?"bottom":"right",T=N?"clientHeight":"clientWidth",k=c.reference[j]+c.reference[E]-w[E]-c.floating[j],L=w[E]-c.reference[E],$=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let Y=$?$[T]:0;(!Y||!await(d.isElement==null?void 0:d.isElement($)))&&(Y=m.floating[T]||c.floating[j]);const H=k/2-L/2,G=Y/2-S[j]/2-1,le=gl(b[R],G),me=gl(b[_],G),fe=le,W=Y-S[j]-me,ie=Y/2-S[j]/2+H,re=Lh(fe,ie,W),U=!p.arrow&&Ni(s)!=null&&ie!==re&&c.reference[j]/2-(ie<fe?le:me)-S[j]/2<0,P=U?ie<fe?ie-fe:ie-W:0;return{[E]:w[E]+P,data:{[E]:re,centerOffset:ie-re-P,...U&&{alignmentOffset:P}},reset:U}}}),jM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var r,i;const{placement:s,middlewareData:c,rects:d,initialPlacement:m,platform:p,elements:g}=l,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,...N}=Na(n,l);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const R=Ra(s),_=Vn(m),T=Ra(m)===m,k=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[Gu(m)]:gM(m)),$=j!=="none";!w&&$&&L.push(...wM(m,S,j,k));const Y=[m,...L],H=await zo(l,N),G=[];let le=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[R]),b){const ie=vM(s,d,k);G.push(H[ie[0]],H[ie[1]])}if(le=[...le,{placement:s,overflows:G}],!G.every(ie=>ie<=0)){var me,fe;const ie=(((me=c.flip)==null?void 0:me.index)||0)+1,re=Y[ie];if(re&&(!(b==="alignment"&&_!==Vn(re))||le.every(P=>Vn(P.placement)===_?P.overflows[0]>0:!0)))return{data:{index:ie,overflows:le},reset:{placement:re}};let U=(fe=le.filter(P=>P.overflows[0]<=0).sort((P,K)=>P.overflows[1]-K.overflows[1])[0])==null?void 0:fe.placement;if(!U)switch(E){case"bestFit":{var W;const P=(W=le.filter(K=>{if($){const ee=Vn(K.placement);return ee===_||ee==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ee=>ee>0).reduce((ee,pe)=>ee+pe,0)]).sort((K,ee)=>K[1]-ee[1])[0])==null?void 0:W[0];P&&(U=P);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function hb(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function mb(n){return dM.some(l=>n[l]>=0)}const NM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:r}=l,{strategy:i="referenceHidden",...s}=Na(n,l);switch(i){case"referenceHidden":{const c=await zo(l,{...s,elementContext:"reference"}),d=hb(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:mb(d)}}}case"escaped":{const c=await zo(l,{...s,altBoundary:!0}),d=hb(c,r.floating);return{data:{escapedOffsets:d,escaped:mb(d)}}}default:return{}}}}},dw=new Set(["left","top"]);async function RM(n,l){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),d=Ra(r),m=Ni(r),p=Vn(r)==="y",g=dw.has(d)?-1:1,y=c&&p?-1:1,b=Na(l,n);let{mainAxis:w,crossAxis:E,alignmentAxis:j}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof j=="number"&&(E=m==="end"?j*-1:j),p?{x:E*y,y:w*g}:{x:w*g,y:E*y}}const _M=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var r,i;const{x:s,y:c,placement:d,middlewareData:m}=l,p=await RM(l,n);return d===((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:d}}}}},TM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:r,y:i,placement:s}=l,{mainAxis:c=!0,crossAxis:d=!1,limiter:m={fn:N=>{let{x:R,y:_}=N;return{x:R,y:_}}},...p}=Na(n,l),g={x:r,y:i},y=await zo(l,p),b=Vn(Ra(s)),w=Sm(b);let E=g[w],j=g[b];if(c){const N=w==="y"?"top":"left",R=w==="y"?"bottom":"right",_=E+y[N],T=E-y[R];E=Lh(_,E,T)}if(d){const N=b==="y"?"top":"left",R=b==="y"?"bottom":"right",_=j+y[N],T=j-y[R];j=Lh(_,j,T)}const S=m.fn({...l,[w]:E,[b]:j});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:c,[b]:d}}}}}},MM=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:r,y:i,placement:s,rects:c,middlewareData:d}=l,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Na(n,l),y={x:r,y:i},b=Vn(s),w=Sm(b);let E=y[w],j=y[b];const S=Na(m,l),N=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",k=c.reference[w]-c.floating[T]+N.mainAxis,L=c.reference[w]+c.reference[T]-N.mainAxis;E<k?E=k:E>L&&(E=L)}if(g){var R,_;const T=w==="y"?"width":"height",k=dw.has(Ra(s)),L=c.reference[b]-c.floating[T]+(k&&((R=d.offset)==null?void 0:R[b])||0)+(k?0:N.crossAxis),$=c.reference[b]+c.reference[T]+(k?0:((_=d.offset)==null?void 0:_[b])||0)-(k?N.crossAxis:0);j<L?j=L:j>$&&(j=$)}return{[w]:E,[b]:j}}}},AM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var r,i;const{placement:s,rects:c,platform:d,elements:m}=l,{apply:p=()=>{},...g}=Na(n,l),y=await zo(l,g),b=Ra(s),w=Ni(s),E=Vn(s)==="y",{width:j,height:S}=c.floating;let N,R;b==="top"||b==="bottom"?(N=b,R=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(R=b,N=w==="end"?"top":"bottom");const _=S-y.top-y.bottom,T=j-y.left-y.right,k=gl(S-y[N],_),L=gl(j-y[R],T),$=!l.middlewareData.shift;let Y=k,H=L;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(H=T),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(Y=_),$&&!w){const le=Wt(y.left,0),me=Wt(y.right,0),fe=Wt(y.top,0),W=Wt(y.bottom,0);E?H=j-2*(le!==0||me!==0?le+me:Wt(y.left,y.right)):Y=S-2*(fe!==0||W!==0?fe+W:Wt(y.top,y.bottom))}await p({...l,availableWidth:H,availableHeight:Y});const G=await d.getDimensions(m.floating);return j!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function sc(){return typeof window<"u"}function Ri(n){return hw(n)?(n.nodeName||"").toLowerCase():"#document"}function tn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Fn(n){var l;return(l=(hw(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function hw(n){return sc()?n instanceof Node||n instanceof tn(n).Node:!1}function Mn(n){return sc()?n instanceof Element||n instanceof tn(n).Element:!1}function Xn(n){return sc()?n instanceof HTMLElement||n instanceof tn(n).HTMLElement:!1}function pb(n){return!sc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof tn(n).ShadowRoot}const DM=new Set(["inline","contents"]);function $o(n){const{overflow:l,overflowX:r,overflowY:i,display:s}=An(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+r)&&!DM.has(s)}const OM=new Set(["table","td","th"]);function kM(n){return OM.has(Ri(n))}const zM=[":popover-open",":modal"];function uc(n){return zM.some(l=>{try{return n.matches(l)}catch{return!1}})}const LM=["transform","translate","scale","rotate","perspective"],UM=["transform","translate","scale","rotate","perspective","filter"],HM=["paint","layout","strict","content"];function jm(n){const l=Nm(),r=Mn(n)?An(n):n;return LM.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!l&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!l&&(r.filter?r.filter!=="none":!1)||UM.some(i=>(r.willChange||"").includes(i))||HM.some(i=>(r.contain||"").includes(i))}function qM(n){let l=yl(n);for(;Xn(l)&&!pi(l);){if(jm(l))return l;if(uc(l))return null;l=yl(l)}return null}function Nm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const BM=new Set(["html","body","#document"]);function pi(n){return BM.has(Ri(n))}function An(n){return tn(n).getComputedStyle(n)}function cc(n){return Mn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function yl(n){if(Ri(n)==="html")return n;const l=n.assignedSlot||n.parentNode||pb(n)&&n.host||Fn(n);return pb(l)?l.host:l}function mw(n){const l=yl(n);return pi(l)?n.ownerDocument?n.ownerDocument.body:n.body:Xn(l)&&$o(l)?l:mw(l)}function Lo(n,l,r){var i;l===void 0&&(l=[]),r===void 0&&(r=!0);const s=mw(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),d=tn(s);if(c){const m=Hh(d);return l.concat(d,d.visualViewport||[],$o(s)?s:[],m&&r?Lo(m):[])}return l.concat(s,Lo(s,[],r))}function Hh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function pw(n){const l=An(n);let r=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const s=Xn(n),c=s?n.offsetWidth:r,d=s?n.offsetHeight:i,m=Qu(r)!==c||Qu(i)!==d;return m&&(r=c,i=d),{width:r,height:i,$:m}}function Rm(n){return Mn(n)?n:n.contextElement}function Jr(n){const l=Rm(n);if(!Xn(l))return Kn(1);const r=l.getBoundingClientRect(),{width:i,height:s,$:c}=pw(l);let d=(c?Qu(r.width):r.width)/i,m=(c?Qu(r.height):r.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const YM=Kn(0);function vw(n){const l=tn(n);return!Nm()||!l.visualViewport?YM:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function QM(n,l,r){return l===void 0&&(l=!1),!r||l&&r!==tn(n)?!1:l}function Wl(n,l,r,i){l===void 0&&(l=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Rm(n);let d=Kn(1);l&&(i?Mn(i)&&(d=Jr(i)):d=Jr(n));const m=QM(c,r,i)?vw(c):Kn(0);let p=(s.left+m.x)/d.x,g=(s.top+m.y)/d.y,y=s.width/d.x,b=s.height/d.y;if(c){const w=tn(c),E=i&&Mn(i)?tn(i):i;let j=w,S=Hh(j);for(;S&&i&&E!==j;){const N=Jr(S),R=S.getBoundingClientRect(),_=An(S),T=R.left+(S.clientLeft+parseFloat(_.paddingLeft))*N.x,k=R.top+(S.clientTop+parseFloat(_.paddingTop))*N.y;p*=N.x,g*=N.y,y*=N.x,b*=N.y,p+=T,g+=k,j=tn(S),S=Hh(j)}}return Vu({width:y,height:b,x:p,y:g})}function fc(n,l){const r=cc(n).scrollLeft;return l?l.left+r:Wl(Fn(n)).left+r}function gw(n,l){const r=n.getBoundingClientRect(),i=r.left+l.scrollLeft-fc(n,r),s=r.top+l.scrollTop;return{x:i,y:s}}function GM(n){let{elements:l,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",d=Fn(i),m=l?uc(l.floating):!1;if(i===d||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=Kn(1);const y=Kn(0),b=Xn(i);if((b||!b&&!c)&&((Ri(i)!=="body"||$o(d))&&(p=cc(i)),Xn(i))){const E=Wl(i);g=Jr(i),y.x=E.x+i.clientLeft,y.y=E.y+i.clientTop}const w=d&&!b&&!c?gw(d,p):Kn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function VM(n){return Array.from(n.getClientRects())}function KM(n){const l=Fn(n),r=cc(n),i=n.ownerDocument.body,s=Wt(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),c=Wt(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let d=-r.scrollLeft+fc(n);const m=-r.scrollTop;return An(i).direction==="rtl"&&(d+=Wt(l.clientWidth,i.clientWidth)-s),{width:s,height:c,x:d,y:m}}const vb=25;function XM(n,l){const r=tn(n),i=Fn(n),s=r.visualViewport;let c=i.clientWidth,d=i.clientHeight,m=0,p=0;if(s){c=s.width,d=s.height;const y=Nm();(!y||y&&l==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=fc(i);if(g<=0){const y=i.ownerDocument,b=y.body,w=getComputedStyle(b),E=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,j=Math.abs(i.clientWidth-b.clientWidth-E);j<=vb&&(c-=j)}else g<=vb&&(c+=g);return{width:c,height:d,x:m,y:p}}const $M=new Set(["absolute","fixed"]);function ZM(n,l){const r=Wl(n,!0,l==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=Xn(n)?Jr(n):Kn(1),d=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,g=i*c.y;return{width:d,height:m,x:p,y:g}}function gb(n,l,r){let i;if(l==="viewport")i=XM(n,r);else if(l==="document")i=KM(Fn(n));else if(Mn(l))i=ZM(l,r);else{const s=vw(n);i={x:l.x-s.x,y:l.y-s.y,width:l.width,height:l.height}}return Vu(i)}function yw(n,l){const r=yl(n);return r===l||!Mn(r)||pi(r)?!1:An(r).position==="fixed"||yw(r,l)}function FM(n,l){const r=l.get(n);if(r)return r;let i=Lo(n,[],!1).filter(m=>Mn(m)&&Ri(m)!=="body"),s=null;const c=An(n).position==="fixed";let d=c?yl(n):n;for(;Mn(d)&&!pi(d);){const m=An(d),p=jm(d);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&s&&$M.has(s.position)||$o(d)&&!p&&yw(n,d))?i=i.filter(g=>g!==d):s=m,d=yl(d)}return l.set(n,i),i}function JM(n){let{element:l,boundary:r,rootBoundary:i,strategy:s}=n;const c=[...r==="clippingAncestors"?uc(l)?[]:FM(l,this._c):[].concat(r),i],d=c[0],m=c.reduce((p,g)=>{const y=gb(l,g,s);return p.top=Wt(y.top,p.top),p.right=gl(y.right,p.right),p.bottom=gl(y.bottom,p.bottom),p.left=Wt(y.left,p.left),p},gb(l,d,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function PM(n){const{width:l,height:r}=pw(n);return{width:l,height:r}}function WM(n,l,r){const i=Xn(l),s=Fn(l),c=r==="fixed",d=Wl(n,!0,c,l);let m={scrollLeft:0,scrollTop:0};const p=Kn(0);function g(){p.x=fc(s)}if(i||!i&&!c)if((Ri(l)!=="body"||$o(s))&&(m=cc(l)),i){const E=Wl(l,!0,c,l);p.x=E.x+l.clientLeft,p.y=E.y+l.clientTop}else s&&g();c&&!i&&s&&g();const y=s&&!i&&!c?gw(s,m):Kn(0),b=d.left+m.scrollLeft-p.x-y.x,w=d.top+m.scrollTop-p.y-y.y;return{x:b,y:w,width:d.width,height:d.height}}function ih(n){return An(n).position==="static"}function yb(n,l){if(!Xn(n)||An(n).position==="fixed")return null;if(l)return l(n);let r=n.offsetParent;return Fn(n)===r&&(r=r.ownerDocument.body),r}function bw(n,l){const r=tn(n);if(uc(n))return r;if(!Xn(n)){let s=yl(n);for(;s&&!pi(s);){if(Mn(s)&&!ih(s))return s;s=yl(s)}return r}let i=yb(n,l);for(;i&&kM(i)&&ih(i);)i=yb(i,l);return i&&pi(i)&&ih(i)&&!jm(i)?r:i||qM(n)||r}const IM=async function(n){const l=this.getOffsetParent||bw,r=this.getDimensions,i=await r(n.floating);return{reference:WM(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function eA(n){return An(n).direction==="rtl"}const tA={convertOffsetParentRelativeRectToViewportRelativeRect:GM,getDocumentElement:Fn,getClippingRect:JM,getOffsetParent:bw,getElementRects:IM,getClientRects:VM,getDimensions:PM,getScale:Jr,isElement:Mn,isRTL:eA};function xw(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function nA(n,l){let r=null,i;const s=Fn(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function d(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:y,top:b,width:w,height:E}=g;if(m||l(),!w||!E)return;const j=Su(b),S=Su(s.clientWidth-(y+w)),N=Su(s.clientHeight-(b+E)),R=Su(y),_={rootMargin:-j+"px "+-S+"px "+-N+"px "+-R+"px",threshold:Wt(0,gl(1,p))||1};let T=!0;function k(L){const $=L[0].intersectionRatio;if($!==p){if(!T)return d();$?d(!1,$):i=setTimeout(()=>{d(!1,1e-7)},1e3)}$===1&&!xw(g,n.getBoundingClientRect())&&d(),T=!1}try{r=new IntersectionObserver(k,{..._,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,_)}r.observe(n)}return d(!0),c}function aA(n,l,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Rm(n),y=s||c?[...g?Lo(g):[],...Lo(l)]:[];y.forEach(R=>{s&&R.addEventListener("scroll",r,{passive:!0}),c&&R.addEventListener("resize",r)});const b=g&&m?nA(g,r):null;let w=-1,E=null;d&&(E=new ResizeObserver(R=>{let[_]=R;_&&_.target===g&&E&&(E.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=E)==null||T.observe(l)})),r()}),g&&!p&&E.observe(g),E.observe(l));let j,S=p?Wl(n):null;p&&N();function N(){const R=Wl(n);S&&!xw(S,R)&&r(),S=R,j=requestAnimationFrame(N)}return r(),()=>{var R;y.forEach(_=>{s&&_.removeEventListener("scroll",r),c&&_.removeEventListener("resize",r)}),b==null||b(),(R=E)==null||R.disconnect(),E=null,p&&cancelAnimationFrame(j)}}const lA=_M,rA=TM,iA=jM,oA=AM,sA=NM,bb=CM,uA=MM,cA=(n,l,r)=>{const i=new Map,s={platform:tA,...r},c={...s.platform,_c:i};return EM(n,l,{...s,platform:c})};var fA=typeof document<"u",dA=function(){},Mu=fA?v.useLayoutEffect:dA;function Ku(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let r,i,s;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==l.length)return!1;for(i=r;i--!==0;)if(!Ku(n[i],l[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(l).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(l,s[i]))return!1;for(i=r;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!Ku(n[c],l[c]))return!1}return!0}return n!==n&&l!==l}function ww(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function xb(n,l){const r=ww(n);return Math.round(l*r)/r}function oh(n){const l=v.useRef(n);return Mu(()=>{l.current=n}),l}function hA(n){n===void 0&&(n={});const{placement:l="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:d}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,b]=v.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[w,E]=v.useState(i);Ku(w,i)||E(i);const[j,S]=v.useState(null),[N,R]=v.useState(null),_=v.useCallback(K=>{K!==$.current&&($.current=K,S(K))},[]),T=v.useCallback(K=>{K!==Y.current&&(Y.current=K,R(K))},[]),k=c||j,L=d||N,$=v.useRef(null),Y=v.useRef(null),H=v.useRef(y),G=p!=null,le=oh(p),me=oh(s),fe=oh(g),W=v.useCallback(()=>{if(!$.current||!Y.current)return;const K={placement:l,strategy:r,middleware:w};me.current&&(K.platform=me.current),cA($.current,Y.current,K).then(ee=>{const pe={...ee,isPositioned:fe.current!==!1};ie.current&&!Ku(H.current,pe)&&(H.current=pe,Ko.flushSync(()=>{b(pe)}))})},[w,l,r,me,fe]);Mu(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(K=>({...K,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Mu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Mu(()=>{if(k&&($.current=k),L&&(Y.current=L),k&&L){if(le.current)return le.current(k,L,W);W()}},[k,L,W,le,G]);const re=v.useMemo(()=>({reference:$,floating:Y,setReference:_,setFloating:T}),[_,T]),U=v.useMemo(()=>({reference:k,floating:L}),[k,L]),P=v.useMemo(()=>{const K={position:r,left:0,top:0};if(!U.floating)return K;const ee=xb(U.floating,y.x),pe=xb(U.floating,y.y);return m?{...K,transform:"translate("+ee+"px, "+pe+"px)",...ww(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:pe}},[r,m,U.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:W,refs:re,elements:U,floatingStyles:P}),[y,W,re,U,P])}const mA=n=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:s}=typeof n=="function"?n(r):n;return i&&l(i)?i.current!=null?bb({element:i.current,padding:s}).fn(r):{}:i?bb({element:i,padding:s}).fn(r):{}}}},pA=(n,l)=>({...lA(n),options:[n,l]}),vA=(n,l)=>({...rA(n),options:[n,l]}),gA=(n,l)=>({...uA(n),options:[n,l]}),yA=(n,l)=>({...iA(n),options:[n,l]}),bA=(n,l)=>({...oA(n),options:[n,l]}),xA=(n,l)=>({...sA(n),options:[n,l]}),wA=(n,l)=>({...mA(n),options:[n,l]});var SA="Arrow",Sw=v.forwardRef((n,l)=>{const{children:r,width:i=10,height:s=5,...c}=n;return h.jsx(oe.svg,{...c,ref:l,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sw.displayName=SA;var EA=Sw;function dc(n){const[l,r]=v.useState(void 0);return et(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let d,m;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;d=g.inlineSize,m=g.blockSize}else d=n.offsetWidth,m=n.offsetHeight;r({width:d,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),l}var Ew="Popper",[Cw,_i]=dt(Ew),[Vz,jw]=Cw(Ew),Nw="PopperAnchor",Rw=v.forwardRef((n,l)=>{const{__scopePopper:r,virtualRef:i,...s}=n,c=jw(Nw,r),d=v.useRef(null),m=we(l,d),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||d.current,g!==p.current&&c.onAnchorChange(p.current)}),i?null:h.jsx(oe.div,{...s,ref:m})});Rw.displayName=Nw;var _m="PopperContent",[CA,jA]=Cw(_m),_w=v.forwardRef((n,l)=>{var r,i,s,c,d,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:b="center",alignOffset:w=0,arrowPadding:E=0,avoidCollisions:j=!0,collisionBoundary:S=[],collisionPadding:N=0,sticky:R="partial",hideWhenDetached:_=!1,updatePositionStrategy:T="optimized",onPlaced:k,...L}=n,$=jw(_m,p),[Y,H]=v.useState(null),G=we(l,Ct=>H(Ct)),[le,me]=v.useState(null),fe=dc(le),W=(fe==null?void 0:fe.width)??0,ie=(fe==null?void 0:fe.height)??0,re=g+(b!=="center"?"-"+b:""),U=typeof N=="number"?N:{top:0,right:0,bottom:0,left:0,...N},P=Array.isArray(S)?S:[S],K=P.length>0,ee={padding:U,boundary:P.filter(RA),altBoundary:K},{refs:pe,floatingStyles:A,placement:X,isPositioned:I,middlewareData:ae}=hA({strategy:"fixed",placement:re,whileElementsMounted:(...Ct)=>aA(...Ct,{animationFrame:T==="always"}),elements:{reference:$.anchor},middleware:[pA({mainAxis:y+ie,alignmentAxis:w}),j&&vA({mainAxis:!0,crossAxis:!1,limiter:R==="partial"?gA():void 0,...ee}),j&&yA({...ee}),bA({...ee,apply:({elements:Ct,rects:Yt,availableWidth:Pn,availableHeight:Wn})=>{const{width:Rc,height:Wo}=Yt.reference,Ma=Ct.floating.style;Ma.setProperty("--radix-popper-available-width",`${Pn}px`),Ma.setProperty("--radix-popper-available-height",`${Wn}px`),Ma.setProperty("--radix-popper-anchor-width",`${Rc}px`),Ma.setProperty("--radix-popper-anchor-height",`${Wo}px`)}}),le&&wA({element:le,padding:E}),_A({arrowWidth:W,arrowHeight:ie}),_&&xA({strategy:"referenceHidden",...ee})]}),[ve,Ee]=Aw(X),te=We(k);et(()=>{I&&(te==null||te())},[I,te]);const Ce=(r=ae.arrow)==null?void 0:r.x,ye=(i=ae.arrow)==null?void 0:i.y,je=((s=ae.arrow)==null?void 0:s.centerOffset)!==0,[Ue,Qe]=v.useState();return et(()=>{Y&&Qe(window.getComputedStyle(Y).zIndex)},[Y]),h.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:I?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(c=ae.transformOrigin)==null?void 0:c.x,(d=ae.transformOrigin)==null?void 0:d.y].join(" "),...((m=ae.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:h.jsx(CA,{scope:p,placedSide:ve,onArrowChange:me,arrowX:Ce,arrowY:ye,shouldHideArrow:je,children:h.jsx(oe.div,{"data-side":ve,"data-align":Ee,...L,ref:G,style:{...L.style,animation:I?void 0:"none"}})})})});_w.displayName=_m;var Tw="PopperArrow",NA={top:"bottom",right:"left",bottom:"top",left:"right"},Mw=v.forwardRef(function(n,l){const{__scopePopper:r,...i}=n,s=jA(Tw,r),c=NA[s.placedSide];return h.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:h.jsx(EA,{...i,ref:l,style:{...i.style,display:"block"}})})});Mw.displayName=Tw;function RA(n){return n!==null}var _A=n=>({name:"transformOrigin",options:n,fn(l){var r,i,s;const{placement:c,rects:d,middlewareData:m}=l,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[b,w]=Aw(c),E={start:"0%",center:"50%",end:"100%"}[w],j=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let N="",R="";return b==="bottom"?(N=p?E:`${j}px`,R=`${-y}px`):b==="top"?(N=p?E:`${j}px`,R=`${d.floating.height+y}px`):b==="right"?(N=`${-y}px`,R=p?E:`${S}px`):b==="left"&&(N=`${d.floating.width+y}px`,R=p?E:`${S}px`),{data:{x:N,y:R}}}});function Aw(n){const[l,r="center"]=n.split("-");return[l,r]}var Tm=Rw,Mm=_w,Am=Mw,TA="Portal",Dm=v.forwardRef((n,l)=>{var r;const{container:i,...s}=n,[c,d]=v.useState(!1);et(()=>d(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?_x.createPortal(h.jsx(oe.div,{...s,ref:l}),m):null});Dm.displayName=TA;var sh="rovingFocusGroup.onEntryFocus",MA={bubbles:!1,cancelable:!0},Zo="RovingFocusGroup",[qh,Dw,AA]=Ci(Zo),[DA,Ti]=dt(Zo,[AA]),[OA,kA]=DA(Zo),Ow=v.forwardRef((n,l)=>h.jsx(qh.Provider,{scope:n.__scopeRovingFocusGroup,children:h.jsx(qh.Slot,{scope:n.__scopeRovingFocusGroup,children:h.jsx(zA,{...n,ref:l})})}));Ow.displayName=Zo;var zA=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...b}=n,w=v.useRef(null),E=we(l,w),j=Ei(c),[S,N]=Zn({prop:d,defaultProp:m??null,onChange:p,caller:Zo}),[R,_]=v.useState(!1),T=We(g),k=Dw(r),L=v.useRef(!1),[$,Y]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(sh,T),()=>H.removeEventListener(sh,T)},[T]),h.jsx(OA,{scope:r,orientation:i,dir:j,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(H=>N(H),[N]),onItemShiftTab:v.useCallback(()=>_(!0),[]),onFocusableItemAdd:v.useCallback(()=>Y(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>Y(H=>H-1),[]),children:h.jsx(oe.div,{tabIndex:R||$===0?-1:0,"data-orientation":i,...b,ref:E,style:{outline:"none",...n.style},onMouseDown:ne(n.onMouseDown,()=>{L.current=!0}),onFocus:ne(n.onFocus,H=>{const G=!L.current;if(H.target===H.currentTarget&&G&&!R){const le=new CustomEvent(sh,MA);if(H.currentTarget.dispatchEvent(le),!le.defaultPrevented){const me=k().filter(re=>re.focusable),fe=me.find(re=>re.active),W=me.find(re=>re.id===S),ie=[fe,W,...me].filter(Boolean).map(re=>re.ref.current);Lw(ie,y)}}L.current=!1}),onBlur:ne(n.onBlur,()=>_(!1))})})}),kw="RovingFocusGroupItem",zw=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:d,...m}=n,p=bl(),g=c||p,y=kA(kw,r),b=y.currentTabStopId===g,w=Dw(r),{onFocusableItemAdd:E,onFocusableItemRemove:j,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return E(),()=>j()},[i,E,j]),h.jsx(qh.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:h.jsx(oe.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...m,ref:l,onMouseDown:ne(n.onMouseDown,N=>{i?y.onItemFocus(g):N.preventDefault()}),onFocus:ne(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ne(n.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){y.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const R=HA(N,y.orientation,y.dir);if(R!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let _=w().filter(T=>T.focusable).map(T=>T.ref.current);if(R==="last")_.reverse();else if(R==="prev"||R==="next"){R==="prev"&&_.reverse();const T=_.indexOf(N.currentTarget);_=y.loop?qA(_,T+1):_.slice(T+1)}setTimeout(()=>Lw(_))}}),children:typeof d=="function"?d({isCurrentTabStop:b,hasTabStop:S!=null}):d})})});zw.displayName=kw;var LA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function UA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function HA(n,l,r){const i=UA(n.key,r);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return LA[i]}function Lw(n,l=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:l}),document.activeElement!==r))return}function qA(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var Om=Ow,km=zw,BA=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Kr=new WeakMap,Eu=new WeakMap,Cu={},uh=0,Uw=function(n){return n&&(n.host||Uw(n.parentNode))},YA=function(n,l){return l.map(function(r){if(n.contains(r))return r;var i=Uw(r);return i&&n.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},QA=function(n,l,r,i){var s=YA(l,Array.isArray(n)?n:[n]);Cu[r]||(Cu[r]=new WeakMap);var c=Cu[r],d=[],m=new Set,p=new Set(s),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};s.forEach(g);var y=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))y(w);else try{var E=w.getAttribute(i),j=E!==null&&E!=="false",S=(Kr.get(w)||0)+1,N=(c.get(w)||0)+1;Kr.set(w,S),c.set(w,N),d.push(w),S===1&&j&&Eu.set(w,!0),N===1&&w.setAttribute(r,"true"),j||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return y(l),m.clear(),uh++,function(){d.forEach(function(b){var w=Kr.get(b)-1,E=c.get(b)-1;Kr.set(b,w),c.set(b,E),w||(Eu.has(b)||b.removeAttribute(i),Eu.delete(b)),E||b.removeAttribute(r)}),uh--,uh||(Kr=new WeakMap,Kr=new WeakMap,Eu=new WeakMap,Cu={})}},zm=function(n,l,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=BA(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),QA(i,s,r,"aria-hidden")):function(){return null}},Gn=function(){return Gn=Object.assign||function(n){for(var l,r=1,i=arguments.length;r<i;r++){l=arguments[r];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Gn.apply(this,arguments)};function Hw(n,l){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)l.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function GA(n,l,r){for(var i=0,s=l.length,c;i<s;i++)(c||!(i in l))&&(c||(c=Array.prototype.slice.call(l,0,i)),c[i]=l[i]);return n.concat(c||Array.prototype.slice.call(l))}var Au="right-scroll-bar-position",Du="width-before-scroll-bar",VA="with-scroll-bars-hidden",KA="--removed-body-scroll-bar-size";function ch(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function XA(n,l){var r=v.useState(function(){return{value:n,callback:l,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=l,r.facade}var $A=typeof window<"u"?v.useLayoutEffect:v.useEffect,wb=new WeakMap;function ZA(n,l){var r=XA(null,function(i){return n.forEach(function(s){return ch(s,i)})});return $A(function(){var i=wb.get(r);if(i){var s=new Set(i),c=new Set(n),d=r.current;s.forEach(function(m){c.has(m)||ch(m,null)}),c.forEach(function(m){s.has(m)||ch(m,d)})}wb.set(r,n)},[n]),r}function FA(n){return n}function JA(n,l){l===void 0&&(l=FA);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 d=l(c,i);return r.push(d),function(){r=r.filter(function(m){return m!==d})}},assignSyncMedium:function(c){for(i=!0;r.length;){var d=r;r=[],d.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var d=[];if(r.length){var m=r;r=[],m.forEach(c),d=r}var p=function(){var y=d;d=[],y.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),r}}}};return s}function PA(n){n===void 0&&(n={});var l=JA(null);return l.options=Gn({async:!0,ssr:!1},n),l}var qw=function(n){var l=n.sideCar,r=Hw(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Gn({},r))};qw.isSideCarExport=!0;function WA(n,l){return n.useMedium(l),qw}var Bw=PA(),fh=function(){},hc=v.forwardRef(function(n,l){var r=v.useRef(null),i=v.useState({onScrollCapture:fh,onWheelCapture:fh,onTouchMoveCapture:fh}),s=i[0],c=i[1],d=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,b=n.shards,w=n.sideCar,E=n.noRelative,j=n.noIsolation,S=n.inert,N=n.allowPinchZoom,R=n.as,_=R===void 0?"div":R,T=n.gapMode,k=Hw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,$=ZA([r,l]),Y=Gn(Gn({},k),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:Bw,removeScrollBar:g,shards:b,noRelative:E,noIsolation:j,inert:S,setCallbacks:c,allowPinchZoom:!!N,lockRef:r,gapMode:T}),d?v.cloneElement(v.Children.only(m),Gn(Gn({},Y),{ref:$})):v.createElement(_,Gn({},Y,{className:p,ref:$}),m))});hc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hc.classNames={fullWidth:Du,zeroRight:Au};var IA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eD(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=IA();return l&&n.setAttribute("nonce",l),n}function tD(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function nD(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var aD=function(){var n=0,l=null;return{add:function(r){n==0&&(l=eD())&&(tD(l,r),nD(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},lD=function(){var n=aD();return function(l,r){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&r])}},Yw=function(){var n=lD(),l=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return l},rD={left:0,top:0,right:0,gap:0},dh=function(n){return parseInt(n||"",10)||0},iD=function(n){var l=window.getComputedStyle(document.body),r=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],s=l[n==="padding"?"paddingRight":"marginRight"];return[dh(r),dh(i),dh(s)]},oD=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return rD;var l=iD(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-r+l[2]-l[0])}},sD=Yw(),Pr="data-scroll-locked",uD=function(n,l,r,i){var s=n.left,c=n.top,d=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
242
|
+
.`.concat(VA,` {
|
|
243
|
+
overflow: hidden `).concat(i,`;
|
|
244
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
245
|
+
}
|
|
246
|
+
body[`).concat(Pr,`] {
|
|
247
|
+
overflow: hidden `).concat(i,`;
|
|
248
|
+
overscroll-behavior: contain;
|
|
249
|
+
`).concat([l&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
250
|
+
padding-left: `.concat(s,`px;
|
|
251
|
+
padding-top: `).concat(c,`px;
|
|
252
|
+
padding-right: `).concat(d,`px;
|
|
253
|
+
margin-left:0;
|
|
254
|
+
margin-top:0;
|
|
255
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
256
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.`).concat(Au,` {
|
|
260
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.`).concat(Du,` {
|
|
264
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.`).concat(Au," .").concat(Au,` {
|
|
268
|
+
right: 0 `).concat(i,`;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.`).concat(Du," .").concat(Du,` {
|
|
272
|
+
margin-right: 0 `).concat(i,`;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
body[`).concat(Pr,`] {
|
|
276
|
+
`).concat(KA,": ").concat(m,`px;
|
|
277
|
+
}
|
|
278
|
+
`)},Sb=function(){var n=parseInt(document.body.getAttribute(Pr)||"0",10);return isFinite(n)?n:0},cD=function(){v.useEffect(function(){return document.body.setAttribute(Pr,(Sb()+1).toString()),function(){var n=Sb()-1;n<=0?document.body.removeAttribute(Pr):document.body.setAttribute(Pr,n.toString())}},[])},fD=function(n){var l=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;cD();var c=v.useMemo(function(){return oD(s)},[s]);return v.createElement(sD,{styles:uD(c,!l,s,r?"":"!important")})},Bh=!1;if(typeof window<"u")try{var ju=Object.defineProperty({},"passive",{get:function(){return Bh=!0,!0}});window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{Bh=!1}var Xr=Bh?{passive:!1}:!1,dD=function(n){return n.tagName==="TEXTAREA"},Qw=function(n,l){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!dD(n)&&r[l]==="visible")},hD=function(n){return Qw(n,"overflowY")},mD=function(n){return Qw(n,"overflowX")},Eb=function(n,l){var r=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Gw(n,i);if(s){var c=Vw(n,i),d=c[1],m=c[2];if(d>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},pD=function(n){var l=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[l,r,i]},vD=function(n){var l=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[l,r,i]},Gw=function(n,l){return n==="v"?hD(l):mD(l)},Vw=function(n,l){return n==="v"?pD(l):vD(l)},gD=function(n,l){return n==="h"&&l==="rtl"?-1:1},yD=function(n,l,r,i,s){var c=gD(n,window.getComputedStyle(l).direction),d=c*i,m=r.target,p=l.contains(m),g=!1,y=d>0,b=0,w=0;do{if(!m)break;var E=Vw(n,m),j=E[0],S=E[1],N=E[2],R=S-N-c*j;(j||R)&&Gw(n,m)&&(b+=R,w+=j);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!p&&m!==document.body||p&&(l.contains(m)||l===m));return(y&&Math.abs(b)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Nu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Cb=function(n){return[n.deltaX,n.deltaY]},jb=function(n){return n&&"current"in n?n.current:n},bD=function(n,l){return n[0]===l[0]&&n[1]===l[1]},xD=function(n){return`
|
|
279
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
280
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
281
|
+
`)},wD=0,$r=[];function SD(n){var l=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(wD++)[0],c=v.useState(Yw)[0],d=v.useRef(n);v.useEffect(function(){d.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var S=GA([n.lockRef.current],(n.shards||[]).map(jb)).filter(Boolean);return S.forEach(function(N){return N.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,N){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var R=Nu(S),_=r.current,T="deltaX"in S?S.deltaX:_[0]-R[0],k="deltaY"in S?S.deltaY:_[1]-R[1],L,$=S.target,Y=Math.abs(T)>Math.abs(k)?"h":"v";if("touches"in S&&Y==="h"&&$.type==="range")return!1;var H=Eb(Y,$);if(!H)return!0;if(H?L=Y:(L=Y==="v"?"h":"v",H=Eb(Y,$)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||k)&&(i.current=L),!L)return!0;var G=i.current||L;return yD(G,N,S,G==="h"?T:k)},[]),p=v.useCallback(function(S){var N=S;if(!(!$r.length||$r[$r.length-1]!==c)){var R="deltaY"in N?Cb(N):Nu(N),_=l.current.filter(function(L){return L.name===N.type&&(L.target===N.target||N.target===L.shadowParent)&&bD(L.delta,R)})[0];if(_&&_.should){N.cancelable&&N.preventDefault();return}if(!_){var T=(d.current.shards||[]).map(jb).filter(Boolean).filter(function(L){return L.contains(N.target)}),k=T.length>0?m(N,T[0]):!d.current.noIsolation;k&&N.cancelable&&N.preventDefault()}}},[]),g=v.useCallback(function(S,N,R,_){var T={name:S,delta:N,target:R,should:_,shadowParent:ED(R)};l.current.push(T),setTimeout(function(){l.current=l.current.filter(function(k){return k!==T})},1)},[]),y=v.useCallback(function(S){r.current=Nu(S),i.current=void 0},[]),b=v.useCallback(function(S){g(S.type,Cb(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Nu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return $r.push(c),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Xr),document.addEventListener("touchmove",p,Xr),document.addEventListener("touchstart",y,Xr),function(){$r=$r.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,Xr),document.removeEventListener("touchmove",p,Xr),document.removeEventListener("touchstart",y,Xr)}},[]);var E=n.removeScrollBar,j=n.inert;return v.createElement(v.Fragment,null,j?v.createElement(c,{styles:xD(s)}):null,E?v.createElement(fD,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ED(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const CD=WA(Bw,SD);var mc=v.forwardRef(function(n,l){return v.createElement(hc,Gn({},n,{ref:l,sideCar:CD}))});mc.classNames=hc.classNames;var Yh=["Enter"," "],jD=["ArrowDown","PageUp","Home"],Kw=["ArrowUp","PageDown","End"],ND=[...jD,...Kw],RD={ltr:[...Yh,"ArrowRight"],rtl:[...Yh,"ArrowLeft"]},_D={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pc="Menu",[Uo,TD,MD]=Ci(pc),[nr,Xw]=dt(pc,[MD,_i,Ti]),Lm=_i(),$w=Ti(),[Kz,ar]=nr(pc),[Xz,Fo]=nr(pc),AD="MenuAnchor",Um=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=Lm(r);return h.jsx(Tm,{...s,...i,ref:l})});Um.displayName=AD;var Hm="MenuPortal",[DD,Zw]=nr(Hm,{forceMount:void 0}),Fw=n=>{const{__scopeMenu:l,forceMount:r,children:i,container:s}=n,c=ar(Hm,l);return h.jsx(DD,{scope:l,forceMount:r,children:h.jsx(ot,{present:r||c.open,children:h.jsx(Dm,{asChild:!0,container:s,children:i})})})};Fw.displayName=Hm;var bn="MenuContent",[OD,qm]=nr(bn),Jw=v.forwardRef((n,l)=>{const r=Zw(bn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=ar(bn,n.__scopeMenu),d=Fo(bn,n.__scopeMenu);return h.jsx(Uo.Provider,{scope:n.__scopeMenu,children:h.jsx(ot,{present:i||c.open,children:h.jsx(Uo.Slot,{scope:n.__scopeMenu,children:d.modal?h.jsx(kD,{...s,ref:l}):h.jsx(zD,{...s,ref:l})})})})}),kD=v.forwardRef((n,l)=>{const r=ar(bn,n.__scopeMenu),i=v.useRef(null),s=we(l,i);return v.useEffect(()=>{const c=i.current;if(c)return zm(c)},[]),h.jsx(Bm,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),zD=v.forwardRef((n,l)=>{const r=ar(bn,n.__scopeMenu);return h.jsx(Bm,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),LD=Pl("MenuContent.ScrollLock"),Bm=v.forwardRef((n,l)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:E,disableOutsideScroll:j,...S}=n,N=ar(bn,r),R=Fo(bn,r),_=Lm(r),T=$w(r),k=TD(r),[L,$]=v.useState(null),Y=v.useRef(null),H=we(l,Y,N.onContentChange),G=v.useRef(0),le=v.useRef(""),me=v.useRef(0),fe=v.useRef(null),W=v.useRef("right"),ie=v.useRef(0),re=j?mc:v.Fragment,U=j?{as:LD,allowPinchZoom:!0}:void 0,P=ee=>{var pe,A;const X=le.current+ee,I=k().filter(ye=>!ye.disabled),ae=document.activeElement,ve=(pe=I.find(ye=>ye.ref.current===ae))==null?void 0:pe.textValue,Ee=I.map(ye=>ye.textValue),te=ZD(Ee,X,ve),Ce=(A=I.find(ye=>ye.textValue===te))==null?void 0:A.ref.current;(function ye(je){le.current=je,window.clearTimeout(G.current),je!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(X),Ce&&setTimeout(()=>Ce.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),wm();const K=v.useCallback(ee=>{var pe,A;return W.current===((pe=fe.current)==null?void 0:pe.side)&&JD(ee,(A=fe.current)==null?void 0:A.area)},[]);return h.jsx(OD,{scope:r,searchRef:le,onItemEnter:v.useCallback(ee=>{K(ee)&&ee.preventDefault()},[K]),onItemLeave:v.useCallback(ee=>{var pe;K(ee)||((pe=Y.current)==null||pe.focus(),$(null))},[K]),onTriggerLeave:v.useCallback(ee=>{K(ee)&&ee.preventDefault()},[K]),pointerGraceTimerRef:me,onPointerGraceIntentChange:v.useCallback(ee=>{fe.current=ee},[]),children:h.jsx(re,{...U,children:h.jsx(oc,{asChild:!0,trapped:s,onMountAutoFocus:ne(c,ee=>{var pe;ee.preventDefault(),(pe=Y.current)==null||pe.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:h.jsx(ji,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:E,children:h.jsx(Om,{asChild:!0,...T,dir:R.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:$,onEntryFocus:ne(p,ee=>{R.isUsingKeyboardRef.current||ee.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(Mm,{role:"menu","aria-orientation":"vertical","data-state":d1(N.open),"data-radix-menu-content":"",dir:R.dir,..._,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ne(S.onKeyDown,ee=>{const pe=ee.target.closest("[data-radix-menu-content]")===ee.currentTarget,A=ee.ctrlKey||ee.altKey||ee.metaKey,X=ee.key.length===1;pe&&(ee.key==="Tab"&&ee.preventDefault(),!A&&X&&P(ee.key));const I=Y.current;if(ee.target!==I||!ND.includes(ee.key))return;ee.preventDefault();const ae=k().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);Kw.includes(ee.key)&&ae.reverse(),XD(ae)}),onBlur:ne(n.onBlur,ee=>{ee.currentTarget.contains(ee.target)||(window.clearTimeout(G.current),le.current="")}),onPointerMove:ne(n.onPointerMove,Ho(ee=>{const pe=ee.target,A=ie.current!==ee.clientX;if(ee.currentTarget.contains(pe)&&A){const X=ee.clientX>ie.current?"right":"left";W.current=X,ie.current=ee.clientX}}))})})})})})})});Jw.displayName=bn;var UD="MenuGroup",Ym=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return h.jsx(oe.div,{role:"group",...i,ref:l})});Ym.displayName=UD;var HD="MenuLabel",Pw=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return h.jsx(oe.div,{...i,ref:l})});Pw.displayName=HD;var Xu="MenuItem",Nb="menu.itemSelect",vc=v.forwardRef((n,l)=>{const{disabled:r=!1,onSelect:i,...s}=n,c=v.useRef(null),d=Fo(Xu,n.__scopeMenu),m=qm(Xu,n.__scopeMenu),p=we(l,c),g=v.useRef(!1),y=()=>{const b=c.current;if(!r&&b){const w=new CustomEvent(Nb,{bubbles:!0,cancelable:!0});b.addEventListener(Nb,E=>i==null?void 0:i(E),{once:!0}),qu(b,w),w.defaultPrevented?g.current=!1:d.onClose()}};return h.jsx(Ww,{...s,ref:p,disabled:r,onClick:ne(n.onClick,y),onPointerDown:b=>{var w;(w=n.onPointerDown)==null||w.call(n,b),g.current=!0},onPointerUp:ne(n.onPointerUp,b=>{var w;g.current||(w=b.currentTarget)==null||w.click()}),onKeyDown:ne(n.onKeyDown,b=>{const w=m.searchRef.current!=="";r||w&&b.key===" "||Yh.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});vc.displayName=Xu;var Ww=v.forwardRef((n,l)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...c}=n,d=qm(Xu,r),m=$w(r),p=v.useRef(null),g=we(l,p),[y,b]=v.useState(!1),[w,E]=v.useState("");return v.useEffect(()=>{const j=p.current;j&&E((j.textContent??"").trim())},[c.children]),h.jsx(Uo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:h.jsx(km,{asChild:!0,...m,focusable:!i,children:h.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ne(n.onPointerMove,Ho(j=>{i?d.onItemLeave(j):(d.onItemEnter(j),j.defaultPrevented||j.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(n.onPointerLeave,Ho(j=>d.onItemLeave(j))),onFocus:ne(n.onFocus,()=>b(!0)),onBlur:ne(n.onBlur,()=>b(!1))})})})}),qD="MenuCheckboxItem",Iw=v.forwardRef((n,l)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return h.jsx(l1,{scope:n.__scopeMenu,checked:r,children:h.jsx(vc,{role:"menuitemcheckbox","aria-checked":$u(r)?"mixed":r,...s,ref:l,"data-state":Gm(r),onSelect:ne(s.onSelect,()=>i==null?void 0:i($u(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Iw.displayName=qD;var e1="MenuRadioGroup",[BD,YD]=nr(e1,{value:void 0,onValueChange:()=>{}}),t1=v.forwardRef((n,l)=>{const{value:r,onValueChange:i,...s}=n,c=We(i);return h.jsx(BD,{scope:n.__scopeMenu,value:r,onValueChange:c,children:h.jsx(Ym,{...s,ref:l})})});t1.displayName=e1;var n1="MenuRadioItem",a1=v.forwardRef((n,l)=>{const{value:r,...i}=n,s=YD(n1,n.__scopeMenu),c=r===s.value;return h.jsx(l1,{scope:n.__scopeMenu,checked:c,children:h.jsx(vc,{role:"menuitemradio","aria-checked":c,...i,ref:l,"data-state":Gm(c),onSelect:ne(i.onSelect,()=>{var d;return(d=s.onValueChange)==null?void 0:d.call(s,r)},{checkForDefaultPrevented:!1})})})});a1.displayName=n1;var Qm="MenuItemIndicator",[l1,QD]=nr(Qm,{checked:!1}),r1=v.forwardRef((n,l)=>{const{__scopeMenu:r,forceMount:i,...s}=n,c=QD(Qm,r);return h.jsx(ot,{present:i||$u(c.checked)||c.checked===!0,children:h.jsx(oe.span,{...s,ref:l,"data-state":Gm(c.checked)})})});r1.displayName=Qm;var GD="MenuSeparator",i1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n;return h.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:l})});i1.displayName=GD;var VD="MenuArrow",o1=v.forwardRef((n,l)=>{const{__scopeMenu:r,...i}=n,s=Lm(r);return h.jsx(Am,{...s,...i,ref:l})});o1.displayName=VD;var KD="MenuSub",[$z,s1]=nr(KD),Mo="MenuSubTrigger",u1=v.forwardRef((n,l)=>{const r=ar(Mo,n.__scopeMenu),i=Fo(Mo,n.__scopeMenu),s=s1(Mo,n.__scopeMenu),c=qm(Mo,n.__scopeMenu),d=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const b=m.current;return()=>{window.clearTimeout(b),p(null)}},[m,p]),h.jsx(Um,{asChild:!0,...g,children:h.jsx(Ww,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":d1(r.open),...n,ref:Xo(l,s.onTriggerChange),onClick:b=>{var w;(w=n.onClick)==null||w.call(n,b),!(n.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ne(n.onPointerMove,Ho(b=>{c.onItemEnter(b),!b.defaultPrevented&&!n.disabled&&!r.open&&!d.current&&(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ne(n.onPointerLeave,Ho(b=>{var w,E;y();const j=(w=r.content)==null?void 0:w.getBoundingClientRect();if(j){const S=(E=r.content)==null?void 0:E.dataset.side,N=S==="right",R=N?-5:5,_=j[N?"left":"right"],T=j[N?"right":"left"];c.onPointerGraceIntentChange({area:[{x:b.clientX+R,y:b.clientY},{x:_,y:j.top},{x:T,y:j.top},{x:T,y:j.bottom},{x:_,y:j.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:ne(n.onKeyDown,b=>{var w;const E=c.searchRef.current!=="";n.disabled||E&&b.key===" "||RD[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});u1.displayName=Mo;var c1="MenuSubContent",f1=v.forwardRef((n,l)=>{const r=Zw(bn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=ar(bn,n.__scopeMenu),d=Fo(bn,n.__scopeMenu),m=s1(c1,n.__scopeMenu),p=v.useRef(null),g=we(l,p);return h.jsx(Uo.Provider,{scope:n.__scopeMenu,children:h.jsx(ot,{present:i||c.open,children:h.jsx(Uo.Slot,{scope:n.__scopeMenu,children:h.jsx(Bm,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var b;d.isUsingKeyboardRef.current&&((b=p.current)==null||b.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ne(n.onFocusOutside,y=>{y.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ne(n.onEscapeKeyDown,y=>{d.onClose(),y.preventDefault()}),onKeyDown:ne(n.onKeyDown,y=>{var b;const w=y.currentTarget.contains(y.target),E=_D[d.dir].includes(y.key);w&&E&&(c.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});f1.displayName=c1;function d1(n){return n?"open":"closed"}function $u(n){return n==="indeterminate"}function Gm(n){return $u(n)?"indeterminate":n?"checked":"unchecked"}function XD(n){const l=document.activeElement;for(const r of n)if(r===l||(r.focus(),document.activeElement!==l))return}function $D(n,l){return n.map((r,i)=>n[(l+i)%n.length])}function ZD(n,l,r){const i=l.length>1&&Array.from(l).every(m=>m===l[0])?l[0]:l,s=r?n.indexOf(r):-1;let c=$D(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const d=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return d!==r?d:void 0}function FD(n,l){const{x:r,y:i}=n;let s=!1;for(let c=0,d=l.length-1;c<l.length;d=c++){const m=l[c],p=l[d],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function JD(n,l){if(!l)return!1;const r={x:n.clientX,y:n.clientY};return FD(r,l)}function Ho(n){return l=>l.pointerType==="mouse"?n(l):void 0}var PD=Um,WD=Fw,ID=Jw,eO=Ym,tO=Pw,nO=vc,aO=Iw,lO=t1,rO=a1,iO=r1,oO=i1,sO=o1,uO=u1,cO=f1,h1="DropdownMenu",[fO,Zz]=dt(h1,[Xw]),Bt=Xw(),[Fz,m1]=fO(h1),p1="DropdownMenuTrigger",dO=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,c=m1(p1,r),d=Bt(r);return h.jsx(PD,{asChild:!0,...d,children:h.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:Xo(l,c.triggerRef),onPointerDown:ne(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ne(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});dO.displayName=p1;var hO="DropdownMenuPortal",v1=n=>{const{__scopeDropdownMenu:l,...r}=n,i=Bt(l);return h.jsx(WD,{...i,...r})};v1.displayName=hO;var g1="DropdownMenuContent",y1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=m1(g1,r),c=Bt(r),d=v.useRef(!1);return h.jsx(ID,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...i,ref:l,onCloseAutoFocus:ne(n.onCloseAutoFocus,m=>{var p;d.current||(p=s.triggerRef.current)==null||p.focus(),d.current=!1,m.preventDefault()}),onInteractOutside:ne(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!s.modal||y)&&(d.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)"}})});y1.displayName=g1;var mO="DropdownMenuGroup",pO=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(eO,{...s,...i,ref:l})});pO.displayName=mO;var vO="DropdownMenuLabel",b1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(tO,{...s,...i,ref:l})});b1.displayName=vO;var gO="DropdownMenuItem",x1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(nO,{...s,...i,ref:l})});x1.displayName=gO;var yO="DropdownMenuCheckboxItem",w1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(aO,{...s,...i,ref:l})});w1.displayName=yO;var bO="DropdownMenuRadioGroup",xO=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(lO,{...s,...i,ref:l})});xO.displayName=bO;var wO="DropdownMenuRadioItem",S1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(rO,{...s,...i,ref:l})});S1.displayName=wO;var SO="DropdownMenuItemIndicator",E1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(iO,{...s,...i,ref:l})});E1.displayName=SO;var EO="DropdownMenuSeparator",C1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(oO,{...s,...i,ref:l})});C1.displayName=EO;var CO="DropdownMenuArrow",jO=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(sO,{...s,...i,ref:l})});jO.displayName=CO;var NO="DropdownMenuSubTrigger",j1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(uO,{...s,...i,ref:l})});j1.displayName=NO;var RO="DropdownMenuSubContent",N1=v.forwardRef((n,l)=>{const{__scopeDropdownMenu:r,...i}=n,s=Bt(r);return h.jsx(cO,{...s,...i,ref:l,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});N1.displayName=RO;var _O=v1,R1=y1,_1=b1,T1=x1,M1=w1,A1=S1,D1=E1,O1=C1,k1=j1,z1=N1;const L1=ue("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)]");ue("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",L1,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");ue("z-50 min-w-[8rem] p-1 rounded-xl",L1,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");ue("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");ue("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");ue("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");ue("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var U1="Dialog",[H1,q1]=dt(U1),[Jz,Jn]=H1(U1),B1="DialogTrigger",Y1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=Jn(B1,r),c=we(l,s.triggerRef);return h.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Km(s.open),...i,ref:c,onClick:ne(n.onClick,s.onOpenToggle)})});Y1.displayName=B1;var TO="DialogPortal",[Pz,Q1]=H1(TO,{forceMount:void 0}),Zu="DialogOverlay",G1=v.forwardRef((n,l)=>{const r=Q1(Zu,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=Jn(Zu,n.__scopeDialog);return c.modal?h.jsx(ot,{present:i||c.open,children:h.jsx(AO,{...s,ref:l})}):null});G1.displayName=Zu;var MO=Pl("DialogOverlay.RemoveScroll"),AO=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=Jn(Zu,r);return h.jsx(mc,{as:MO,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(oe.div,{"data-state":Km(s.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Il="DialogContent",V1=v.forwardRef((n,l)=>{const r=Q1(Il,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=Jn(Il,n.__scopeDialog);return h.jsx(ot,{present:i||c.open,children:c.modal?h.jsx(DO,{...s,ref:l}):h.jsx(OO,{...s,ref:l})})});V1.displayName=Il;var DO=v.forwardRef((n,l)=>{const r=Jn(Il,n.__scopeDialog),i=v.useRef(null),s=we(l,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return zm(c)},[]),h.jsx(K1,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(n.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:ne(n.onPointerDownOutside,c=>{const d=c.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&c.preventDefault()}),onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault())})}),OO=v.forwardRef((n,l)=>{const r=Jn(Il,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return h.jsx(K1,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,m;(d=n.onCloseAutoFocus)==null||d.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 d,m;(d=n.onInteractOutside)==null||d.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()}})}),K1=v.forwardRef((n,l)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...d}=n,m=Jn(Il,r),p=v.useRef(null),g=we(l,p);return wm(),h.jsxs(h.Fragment,{children:[h.jsx(oc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:h.jsx(ji,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Km(m.open),...d,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(zO,{titleId:m.titleId}),h.jsx(UO,{contentRef:p,descriptionId:m.descriptionId})]})]})}),Vm="DialogTitle",X1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=Jn(Vm,r);return h.jsx(oe.h2,{id:s.titleId,...i,ref:l})});X1.displayName=Vm;var $1="DialogDescription",Z1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=Jn($1,r);return h.jsx(oe.p,{id:s.descriptionId,...i,ref:l})});Z1.displayName=$1;var F1="DialogClose",J1=v.forwardRef((n,l)=>{const{__scopeDialog:r,...i}=n,s=Jn(F1,r);return h.jsx(oe.button,{type:"button",...i,ref:l,onClick:ne(n.onClick,()=>s.onOpenChange(!1))})});J1.displayName=F1;function Km(n){return n?"open":"closed"}var P1="DialogTitleWarning",[kO,W1]=RT(P1,{contentName:Il,titleName:Vm,docsSlug:"dialog"}),zO=({titleId:n})=>{const l=W1(P1),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
|
|
282
|
+
|
|
283
|
+
If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
284
|
+
|
|
285
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},LO="DialogDescriptionWarning",UO=({contentRef:n,descriptionId:l})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${W1(LO).contentName}}.`;return v.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");l&&s&&(document.getElementById(l)||console.warn(r))},[r,n,l]),null},HO=Y1,qO=G1,BO=V1,YO=X1,QO=Z1,I1=J1,GO="AlertDialog",[VO,Wz]=dt(GO,[q1]),lr=q1(),KO="AlertDialogTrigger",XO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=lr(r);return h.jsx(HO,{...s,...i,ref:l})});XO.displayName=KO;var $O="AlertDialogOverlay",ZO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=lr(r);return h.jsx(qO,{...s,...i,ref:l})});ZO.displayName=$O;var Wr="AlertDialogContent",[FO,JO]=VO(Wr),PO=Xx("AlertDialogContent"),WO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,children:i,...s}=n,c=lr(r),d=v.useRef(null),m=we(l,d),p=v.useRef(null);return h.jsx(kO,{contentName:Wr,titleName:eS,docsSlug:"alert-dialog",children:h.jsx(FO,{scope:r,cancelRef:p,children:h.jsxs(BO,{role:"alertdialog",...c,...s,ref:m,onOpenAutoFocus:ne(s.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[h.jsx(PO,{children:i}),h.jsx(lk,{contentRef:d})]})})})});WO.displayName=Wr;var eS="AlertDialogTitle",IO=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=lr(r);return h.jsx(YO,{...s,...i,ref:l})});IO.displayName=eS;var tS="AlertDialogDescription",ek=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=lr(r);return h.jsx(QO,{...s,...i,ref:l})});ek.displayName=tS;var tk="AlertDialogAction",nk=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,s=lr(r);return h.jsx(I1,{...s,...i,ref:l})});nk.displayName=tk;var nS="AlertDialogCancel",ak=v.forwardRef((n,l)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=JO(nS,r),c=lr(r),d=we(l,s);return h.jsx(I1,{...c,...i,ref:d})});ak.displayName=nS;var lk=({contentRef:n})=>{const l=`\`${Wr}\` requires a description for the component to be accessible for screen reader users.
|
|
286
|
+
|
|
287
|
+
You can add a description to the \`${Wr}\` by passing a \`${tS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
288
|
+
|
|
289
|
+
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 \`${Wr}\`. 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.
|
|
290
|
+
|
|
291
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null};function Jo(n){const l=v.useRef({value:n,previous:n});return v.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var aS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rk="VisuallyHidden",lS=v.forwardRef((n,l)=>h.jsx(oe.span,{...n,ref:l,style:{...aS,...n.style}}));lS.displayName=rk;var rS=lS,ik=[" ","Enter","ArrowUp","ArrowDown"],ok=[" ","Enter"],gc="Select",[Xm,yc,sk]=Ci(gc),[Mi,Iz]=dt(gc,[sk,_i]),$m=_i(),[e5,xl]=Mi(gc),[t5,uk]=Mi(gc),iS="SelectTrigger",ck=v.forwardRef((n,l)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,c=$m(r),d=xl(iS,r),m=d.disabled||i,p=we(l,d.onTriggerChange),g=yc(r),y=v.useRef("touch"),[b,w,E]=gS(S=>{const N=g().filter(T=>!T.disabled),R=N.find(T=>T.value===d.value),_=yS(N,S,R);_!==void 0&&d.onValueChange(_.value)}),j=S=>{m||(d.onOpenChange(!0),E()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return h.jsx(Tm,{asChild:!0,...c,children:h.jsx(oe.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":vS(d.value)?"":void 0,...s,ref:p,onClick:ne(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&j(S)}),onPointerDown:ne(s.onPointerDown,S=>{y.current=S.pointerType;const N=S.target;N.hasPointerCapture(S.pointerId)&&N.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(j(S),S.preventDefault())}),onKeyDown:ne(s.onKeyDown,S=>{const N=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(N&&S.key===" ")&&ik.includes(S.key)&&(j(),S.preventDefault())})})})});ck.displayName=iS;var oS="SelectValue",fk=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,children:c,placeholder:d="",...m}=n,p=xl(oS,r),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,b=we(l,p.onValueNodeChange);return et(()=>{g(y)},[g,y]),h.jsx(oe.span,{...m,ref:b,style:{pointerEvents:"none"},children:vS(p.value)?h.jsx(h.Fragment,{children:d}):c})});fk.displayName=oS;var dk="SelectIcon",hk=v.forwardRef((n,l)=>{const{__scopeSelect:r,children:i,...s}=n;return h.jsx(oe.span,{"aria-hidden":!0,...s,ref:l,children:i||"▼"})});hk.displayName=dk;var er="SelectContent",mk=v.forwardRef((n,l)=>{const r=xl(er,n.__scopeSelect),[i,s]=v.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const c=i;return c?Ko.createPortal(h.jsx(sS,{scope:n.__scopeSelect,children:h.jsx(Xm.Slot,{scope:n.__scopeSelect,children:h.jsx("div",{children:n.children})})}),c):null}return h.jsx(uS,{...n,ref:l})});mk.displayName=er;var Nn=10,[sS,wl]=Mi(er),pk="SelectContentImpl",vk=Pl("SelectContent.RemoveScroll"),uS=v.forwardRef((n,l)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:d,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:E,sticky:j,hideWhenDetached:S,avoidCollisions:N,...R}=n,_=xl(er,r),[T,k]=v.useState(null),[L,$]=v.useState(null),Y=we(l,te=>k(te)),[H,G]=v.useState(null),[le,me]=v.useState(null),fe=yc(r),[W,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return zm(T)},[T]),wm();const U=v.useCallback(te=>{const[Ce,...ye]=fe().map(Qe=>Qe.ref.current),[je]=ye.slice(-1),Ue=document.activeElement;for(const Qe of te)if(Qe===Ue||(Qe==null||Qe.scrollIntoView({block:"nearest"}),Qe===Ce&&L&&(L.scrollTop=0),Qe===je&&L&&(L.scrollTop=L.scrollHeight),Qe==null||Qe.focus(),document.activeElement!==Ue))return},[fe,L]),P=v.useCallback(()=>U([H,T]),[U,H,T]);v.useEffect(()=>{W&&P()},[W,P]);const{onOpenChange:K,triggerPointerDownPosRef:ee}=_;v.useEffect(()=>{if(T){let te={x:0,y:0};const Ce=je=>{var Ue,Qe;te={x:Math.abs(Math.round(je.pageX)-(((Ue=ee.current)==null?void 0:Ue.x)??0)),y:Math.abs(Math.round(je.pageY)-(((Qe=ee.current)==null?void 0:Qe.y)??0))}},ye=je=>{te.x<=10&&te.y<=10?je.preventDefault():T.contains(je.target)||K(!1),document.removeEventListener("pointermove",Ce),ee.current=null};return ee.current!==null&&(document.addEventListener("pointermove",Ce),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ce),document.removeEventListener("pointerup",ye,{capture:!0})}}},[T,K,ee]),v.useEffect(()=>{const te=()=>K(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[K]);const[pe,A]=gS(te=>{const Ce=fe().filter(Ue=>!Ue.disabled),ye=Ce.find(Ue=>Ue.ref.current===document.activeElement),je=yS(Ce,te,ye);je&&setTimeout(()=>je.ref.current.focus())}),X=v.useCallback((te,Ce,ye)=>{const je=!re.current&&!ye;(_.value!==void 0&&_.value===Ce||je)&&(G(te),je&&(re.current=!0))},[_.value]),I=v.useCallback(()=>T==null?void 0:T.focus(),[T]),ae=v.useCallback((te,Ce,ye)=>{const je=!re.current&&!ye;(_.value!==void 0&&_.value===Ce||je)&&me(te)},[_.value]),ve=i==="popper"?Qh:cS,Ee=ve===Qh?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:E,sticky:j,hideWhenDetached:S,avoidCollisions:N}:{};return h.jsx(sS,{scope:r,content:T,viewport:L,onViewportChange:$,itemRefCallback:X,selectedItem:H,onItemLeave:I,itemTextRefCallback:ae,focusSelectedItem:P,selectedItemText:le,position:i,isPositioned:W,searchRef:pe,children:h.jsx(mc,{as:vk,allowPinchZoom:!0,children:h.jsx(oc,{asChild:!0,trapped:_.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:ne(s,te=>{var Ce;(Ce=_.trigger)==null||Ce.focus({preventScroll:!0}),te.preventDefault()}),children:h.jsx(ji,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:h.jsx(ve,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:te=>te.preventDefault(),...R,...Ee,onPlaced:()=>ie(!0),ref:Y,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ne(R.onKeyDown,te=>{const Ce=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!Ce&&te.key.length===1&&A(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ye=fe().filter(je=>!je.disabled).map(je=>je.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const je=te.target,Ue=ye.indexOf(je);ye=ye.slice(Ue+1)}setTimeout(()=>U(ye)),te.preventDefault()}})})})})})})});uS.displayName=pk;var gk="SelectItemAlignedPosition",cS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,c=xl(er,r),d=wl(er,r),[m,p]=v.useState(null),[g,y]=v.useState(null),b=we(l,Y=>y(Y)),w=yc(r),E=v.useRef(!1),j=v.useRef(!0),{viewport:S,selectedItem:N,selectedItemText:R,focusSelectedItem:_}=d,T=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&S&&N&&R){const Y=c.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),le=R.getBoundingClientRect();if(c.dir!=="rtl"){const je=le.left-H.left,Ue=G.left-je,Qe=Y.left-Ue,Ct=Y.width+Qe,Yt=Math.max(Ct,H.width),Pn=window.innerWidth-Nn,Wn=kh(Ue,[Nn,Math.max(Nn,Pn-Yt)]);m.style.minWidth=Ct+"px",m.style.left=Wn+"px"}else{const je=H.right-le.right,Ue=window.innerWidth-G.right-je,Qe=window.innerWidth-Y.right-Ue,Ct=Y.width+Qe,Yt=Math.max(Ct,H.width),Pn=window.innerWidth-Nn,Wn=kh(Ue,[Nn,Math.max(Nn,Pn-Yt)]);m.style.minWidth=Ct+"px",m.style.right=Wn+"px"}const me=w(),fe=window.innerHeight-Nn*2,W=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),P=parseInt(ie.borderBottomWidth,10),K=parseInt(ie.paddingBottom,10),ee=re+U+W+K+P,pe=Math.min(N.offsetHeight*5,ee),A=window.getComputedStyle(S),X=parseInt(A.paddingTop,10),I=parseInt(A.paddingBottom,10),ae=Y.top+Y.height/2-Nn,ve=fe-ae,Ee=N.offsetHeight/2,te=N.offsetTop+Ee,Ce=re+U+te,ye=ee-Ce;if(Ce<=ae){const je=me.length>0&&N===me[me.length-1].ref.current;m.style.bottom="0px";const Ue=g.clientHeight-S.offsetTop-S.offsetHeight,Qe=Math.max(ve,Ee+(je?I:0)+Ue+P),Ct=Ce+Qe;m.style.height=Ct+"px"}else{const je=me.length>0&&N===me[0].ref.current;m.style.top="0px";const Ue=Math.max(ae,re+S.offsetTop+(je?X:0)+Ee)+ye;m.style.height=Ue+"px",S.scrollTop=Ce-ae+S.offsetTop}m.style.margin=`${Nn}px 0`,m.style.minHeight=pe+"px",m.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[w,c.trigger,c.valueNode,m,g,S,N,R,c.dir,i]);et(()=>T(),[T]);const[k,L]=v.useState();et(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const $=v.useCallback(Y=>{Y&&j.current===!0&&(T(),_==null||_(),j.current=!1)},[T,_]);return h.jsx(bk,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:$,children:h.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:h.jsx(oe.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});cS.displayName=gk;var yk="SelectPopperPosition",Qh=v.forwardRef((n,l)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Nn,...c}=n,d=$m(r);return h.jsx(Mm,{...d,...c,ref:l,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)"}})});Qh.displayName=yk;var[bk,Zm]=Mi(er,{}),Gh="SelectViewport",xk=v.forwardRef((n,l)=>{const{__scopeSelect:r,nonce:i,...s}=n,c=wl(Gh,r),d=Zm(Gh,r),m=we(l,c.onViewportChange),p=v.useRef(0);return h.jsxs(h.Fragment,{children:[h.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}),h.jsx(Xm.Slot,{scope:r,children:h.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ne(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=d;if(w!=null&&w.current&&b){const E=Math.abs(p.current-y.scrollTop);if(E>0){const j=window.innerHeight-Nn*2,S=parseFloat(b.style.minHeight),N=parseFloat(b.style.height),R=Math.max(S,N);if(R<j){const _=R+E,T=Math.min(j,_),k=_-T;b.style.height=T+"px",b.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});xk.displayName=Gh;var fS="SelectGroup",[wk,Sk]=Mi(fS),Ek=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=bl();return h.jsx(wk,{scope:r,id:s,children:h.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:l})})});Ek.displayName=fS;var dS="SelectLabel",Ck=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=Sk(dS,r);return h.jsx(oe.div,{id:s.id,...i,ref:l})});Ck.displayName=dS;var Fu="SelectItem",[jk,hS]=Mi(Fu),Nk=v.forwardRef((n,l)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:c,...d}=n,m=xl(Fu,r),p=wl(Fu,r),g=m.value===i,[y,b]=v.useState(c??""),[w,E]=v.useState(!1),j=we(l,_=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,_,i,s)}),S=bl(),N=v.useRef("touch"),R=()=>{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 h.jsx(jk,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(_=>{b(T=>T||((_==null?void 0:_.textContent)??"").trim())},[]),children:h.jsx(Xm.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:h.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...d,ref:j,onFocus:ne(d.onFocus,()=>E(!0)),onBlur:ne(d.onBlur,()=>E(!1)),onClick:ne(d.onClick,()=>{N.current!=="mouse"&&R()}),onPointerUp:ne(d.onPointerUp,()=>{N.current==="mouse"&&R()}),onPointerDown:ne(d.onPointerDown,_=>{N.current=_.pointerType}),onPointerMove:ne(d.onPointerMove,_=>{var T;N.current=_.pointerType,s?(T=p.onItemLeave)==null||T.call(p):N.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(d.onPointerLeave,_=>{var T;_.currentTarget===document.activeElement&&((T=p.onItemLeave)==null||T.call(p))}),onKeyDown:ne(d.onKeyDown,_=>{var T;((T=p.searchRef)==null?void 0:T.current)!==""&&_.key===" "||(ok.includes(_.key)&&R(),_.key===" "&&_.preventDefault())})})})})});Nk.displayName=Fu;var Ao="SelectItemText",Rk=v.forwardRef((n,l)=>{const{__scopeSelect:r,className:i,style:s,...c}=n,d=xl(Ao,r),m=wl(Ao,r),p=hS(Ao,r),g=uk(Ao,r),[y,b]=v.useState(null),w=we(l,R=>b(R),p.onItemTextChange,R=>{var _;return(_=m.itemTextRefCallback)==null?void 0:_.call(m,R,p.value,p.disabled)}),E=y==null?void 0:y.textContent,j=v.useMemo(()=>h.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:S,onNativeOptionRemove:N}=g;return et(()=>(S(j),()=>N(j)),[S,N,j]),h.jsxs(h.Fragment,{children:[h.jsx(oe.span,{id:p.textId,...c,ref:w}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Ko.createPortal(c.children,d.valueNode):null]})});Rk.displayName=Ao;var mS="SelectItemIndicator",_k=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return hS(mS,r).isSelected?h.jsx(oe.span,{"aria-hidden":!0,...i,ref:l}):null});_k.displayName=mS;var Vh="SelectScrollUpButton",Tk=v.forwardRef((n,l)=>{const r=wl(Vh,n.__scopeSelect),i=Zm(Vh,n.__scopeSelect),[s,c]=v.useState(!1),d=we(l,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?h.jsx(pS,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});Tk.displayName=Vh;var Kh="SelectScrollDownButton",Mk=v.forwardRef((n,l)=>{const r=wl(Kh,n.__scopeSelect),i=Zm(Kh,n.__scopeSelect),[s,c]=v.useState(!1),d=we(l,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;c(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?h.jsx(pS,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});Mk.displayName=Kh;var pS=v.forwardRef((n,l)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,c=wl("SelectScrollButton",r),d=v.useRef(null),m=yc(r),p=v.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),et(()=>{var g;const y=m().find(b=>b.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),h.jsx(oe.div,{"aria-hidden":!0,...s,ref:l,style:{flexShrink:0,...s.style},onPointerDown:ne(s.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(i,50))}),onPointerMove:ne(s.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),d.current===null&&(d.current=window.setInterval(i,50))}),onPointerLeave:ne(s.onPointerLeave,()=>{p()})})}),Ak="SelectSeparator",Dk=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n;return h.jsx(oe.div,{"aria-hidden":!0,...i,ref:l})});Dk.displayName=Ak;var Xh="SelectArrow",Ok=v.forwardRef((n,l)=>{const{__scopeSelect:r,...i}=n,s=$m(r),c=xl(Xh,r),d=wl(Xh,r);return c.open&&d.position==="popper"?h.jsx(Am,{...s,...i,ref:l}):null});Ok.displayName=Xh;var kk="SelectBubbleInput",zk=v.forwardRef(({__scopeSelect:n,value:l,...r},i)=>{const s=v.useRef(null),c=we(i,s),d=Jo(l);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==l&&g){const y=new Event("change",{bubbles:!0});g.call(m,l),m.dispatchEvent(y)}},[d,l]),h.jsx(oe.select,{...r,style:{...aS,...r.style},ref:c,defaultValue:l})});zk.displayName=kk;function vS(n){return n===""||n===void 0}function gS(n){const l=We(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(d=>{const m=r.current+d;l(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[l]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,c]}function yS(n,l,r){const i=l.length>1&&Array.from(l).every(m=>m===l[0])?l[0]:l,s=r?n.indexOf(r):-1;let c=Lk(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const d=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return d!==r?d:void 0}function Lk(n,l){return n.map((r,i)=>n[(l+i)%n.length])}var[bc,n5]=dt("Tooltip",[_i]),Fm=_i(),Uk="TooltipProvider",Rb="tooltip.open",[a5,bS]=bc(Uk),xS="Tooltip",[l5,Po]=bc(xS),$h="TooltipTrigger",Hk=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=Po($h,r),c=bS($h,r),d=Fm(r),m=v.useRef(null),p=we(l,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),b=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),h.jsx(Tm,{asChild:!0,...d,children:h.jsx(oe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:p,onPointerMove:ne(n.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ne(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ne(n.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ne(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ne(n.onBlur,s.onClose),onClick:ne(n.onClick,s.onClose)})})});Hk.displayName=$h;var Jm="TooltipPortal",[qk,Bk]=bc(Jm,{forceMount:void 0}),wS=n=>{const{__scopeTooltip:l,forceMount:r,children:i,container:s}=n,c=Po(Jm,l);return h.jsx(qk,{scope:l,forceMount:r,children:h.jsx(ot,{present:r||c.open,children:h.jsx(Dm,{asChild:!0,container:s,children:i})})})};wS.displayName=Jm;var vi="TooltipContent",SS=v.forwardRef((n,l)=>{const r=Bk(vi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...c}=n,d=Po(vi,n.__scopeTooltip);return h.jsx(ot,{present:i||d.open,children:d.disableHoverableContent?h.jsx(ES,{side:s,...c,ref:l}):h.jsx(Yk,{side:s,...c,ref:l})})}),Yk=v.forwardRef((n,l)=>{const r=Po(vi,n.__scopeTooltip),i=bS(vi,n.__scopeTooltip),s=v.useRef(null),c=we(l,s),[d,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:b}=i,w=v.useCallback(()=>{m(null),b(!1)},[b]),E=v.useCallback((j,S)=>{const N=j.currentTarget,R={x:j.clientX,y:j.clientY},_=Xk(R,N.getBoundingClientRect()),T=$k(R,_),k=Zk(S.getBoundingClientRect()),L=Jk([...T,...k]);m(L),b(!0)},[b]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const j=N=>E(N,y),S=N=>E(N,p);return p.addEventListener("pointerleave",j),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",j),y.removeEventListener("pointerleave",S)}}},[p,y,E,w]),v.useEffect(()=>{if(d){const j=S=>{const N=S.target,R={x:S.clientX,y:S.clientY},_=(p==null?void 0:p.contains(N))||(y==null?void 0:y.contains(N)),T=!Fk(R,d);_?w():T&&(w(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[p,y,d,g,w]),h.jsx(ES,{...n,ref:c})}),[Qk,Gk]=bc(xS,{isInside:!1}),Vk=Xx("TooltipContent"),ES=v.forwardRef((n,l)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:d,...m}=n,p=Po(vi,r),g=Fm(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Rb,y),()=>document.removeEventListener(Rb,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=w=>{const E=w.target;E!=null&&E.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),h.jsx(ji,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:h.jsxs(Mm,{"data-state":p.stateAttribute,...g,...m,ref:l,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(Vk,{children:i}),h.jsx(Qk,{scope:r,isInside:!0,children:h.jsx(rS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});SS.displayName=vi;var CS="TooltipArrow",Kk=v.forwardRef((n,l)=>{const{__scopeTooltip:r,...i}=n,s=Fm(r);return Gk(CS,r).isInside?null:h.jsx(Am,{...s,...i,ref:l})});Kk.displayName=CS;function Xk(n,l){const r=Math.abs(l.top-n.y),i=Math.abs(l.bottom-n.y),s=Math.abs(l.right-n.x),c=Math.abs(l.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 $k(n,l,r=5){const i=[];switch(l){case"top":i.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":i.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":i.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":i.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return i}function Zk(n){const{top:l,right:r,bottom:i,left:s}=n;return[{x:s,y:l},{x:r,y:l},{x:r,y:i},{x:s,y:i}]}function Fk(n,l){const{x:r,y:i}=n;let s=!1;for(let c=0,d=l.length-1;c<l.length;d=c++){const m=l[c],p=l[d],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function Jk(n){const l=n.slice();return l.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Pk(l)}function Pk(n){if(n.length<=1)return n.slice();const l=[];for(let i=0;i<n.length;i++){const s=n[i];for(;l.length>=2;){const c=l[l.length-1],d=l[l.length-2];if((c.x-d.x)*(s.y-d.y)>=(c.y-d.y)*(s.x-d.x))l.pop();else break}l.push(s)}l.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const c=r[r.length-1],d=r[r.length-2];if((c.x-d.x)*(s.y-d.y)>=(c.y-d.y)*(s.x-d.x))r.pop();else break}r.push(s)}return r.pop(),l.length===1&&r.length===1&&l[0].x===r[0].x&&l[0].y===r[0].y?l:l.concat(r)}var Wk=wS,jS=SS;const Ik=v.forwardRef(({className:n,sideOffset:l=4,...r},i)=>h.jsx(Wk,{children:h.jsx(jS,{ref:i,sideOffset:l,className:ue("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",n),...r})}));Ik.displayName=jS.displayName;var xc="Checkbox",[e3,r5]=dt(xc),[t3,Pm]=e3(xc);function n3(n){const{__scopeCheckbox:l,checked:r,children:i,defaultChecked:s,disabled:c,form:d,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:b}=n,[w,E]=Zn({prop:r,defaultProp:s??!1,onChange:p,caller:xc}),[j,S]=v.useState(null),[N,R]=v.useState(null),_=v.useRef(!1),T=j?!!d||!!j.closest("form"):!0,k={checked:w,disabled:c,setChecked:E,control:j,setControl:S,name:m,form:d,value:y,hasConsumerStoppedPropagationRef:_,required:g,defaultChecked:vl(s)?!1:s,isFormControl:T,bubbleInput:N,setBubbleInput:R};return h.jsx(t3,{scope:l,...k,children:r3(b)?b(k):i})}var NS="CheckboxTrigger",RS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:r,...i},s)=>{const{control:c,value:d,disabled:m,checked:p,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:E,bubbleInput:j}=Pm(NS,n),S=we(s,y),N=v.useRef(p);return v.useEffect(()=>{const R=c==null?void 0:c.form;if(R){const _=()=>b(N.current);return R.addEventListener("reset",_),()=>R.removeEventListener("reset",_)}},[c,b]),h.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":vl(p)?"mixed":p,"aria-required":g,"data-state":AS(p),"data-disabled":m?"":void 0,disabled:m,value:d,...i,ref:S,onKeyDown:ne(l,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ne(r,R=>{b(_=>vl(_)?!0:!_),j&&E&&(w.current=R.isPropagationStopped(),w.current||R.stopPropagation())})})});RS.displayName=NS;var a3=v.forwardRef((n,l)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:c,required:d,disabled:m,value:p,onCheckedChange:g,form:y,...b}=n;return h.jsx(n3,{__scopeCheckbox:r,checked:s,defaultChecked:c,disabled:m,required:d,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>h.jsxs(h.Fragment,{children:[h.jsx(RS,{...b,ref:l,__scopeCheckbox:r}),w&&h.jsx(MS,{__scopeCheckbox:r})]})})});a3.displayName=xc;var _S="CheckboxIndicator",l3=v.forwardRef((n,l)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,c=Pm(_S,r);return h.jsx(ot,{present:i||vl(c.checked)||c.checked===!0,children:h.jsx(oe.span,{"data-state":AS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:l,style:{pointerEvents:"none",...n.style}})})});l3.displayName=_S;var TS="CheckboxBubbleInput",MS=v.forwardRef(({__scopeCheckbox:n,...l},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:d,required:m,disabled:p,name:g,value:y,form:b,bubbleInput:w,setBubbleInput:E}=Pm(TS,n),j=we(r,E),S=Jo(c),N=dc(i);v.useEffect(()=>{const _=w;if(!_)return;const T=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==c&&k){const $=new Event("click",{bubbles:L});_.indeterminate=vl(c),k.call(_,vl(c)?!1:c),_.dispatchEvent($)}},[w,S,c,s]);const R=v.useRef(vl(c)?!1:c);return h.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??R.current,required:m,disabled:p,name:g,value:y,form:b,...l,tabIndex:-1,ref:j,style:{...l.style,...N,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});MS.displayName=TS;function r3(n){return typeof n=="function"}function vl(n){return n==="indeterminate"}function AS(n){return vl(n)?"indeterminate":n?"checked":"unchecked"}var Wm="Radio",[i3,DS]=dt(Wm),[o3,s3]=i3(Wm),OS=v.forwardRef((n,l)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:c,disabled:d,value:m="on",onCheck:p,form:g,...y}=n,[b,w]=v.useState(null),E=we(l,N=>w(N)),j=v.useRef(!1),S=b?g||!!b.closest("form"):!0;return h.jsxs(o3,{scope:r,checked:s,disabled:d,children:[h.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":US(s),"data-disabled":d?"":void 0,disabled:d,value:m,...y,ref:E,onClick:ne(n.onClick,N=>{s||p==null||p(),S&&(j.current=N.isPropagationStopped(),j.current||N.stopPropagation())})}),S&&h.jsx(LS,{control:b,bubbles:!j.current,name:i,value:m,checked:s,required:c,disabled:d,form:g,style:{transform:"translateX(-100%)"}})]})});OS.displayName=Wm;var kS="RadioIndicator",zS=v.forwardRef((n,l)=>{const{__scopeRadio:r,forceMount:i,...s}=n,c=s3(kS,r);return h.jsx(ot,{present:i||c.checked,children:h.jsx(oe.span,{"data-state":US(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:l})})});zS.displayName=kS;var u3="RadioBubbleInput",LS=v.forwardRef(({__scopeRadio:n,control:l,checked:r,bubbles:i=!0,...s},c)=>{const d=v.useRef(null),m=we(d,c),p=Jo(r),g=dc(l);return v.useEffect(()=>{const y=d.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const E=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(E)}},[p,r,i]),h.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});LS.displayName=u3;function US(n){return n?"checked":"unchecked"}var c3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wc="RadioGroup",[f3,i5]=dt(wc,[Ti,DS]),HS=Ti(),qS=DS(),[d3,h3]=f3(wc),BS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:c,required:d=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:b,...w}=n,E=HS(r),j=Ei(g),[S,N]=Zn({prop:c,defaultProp:s??null,onChange:b,caller:wc});return h.jsx(d3,{scope:r,name:i,required:d,disabled:m,value:S,onValueChange:N,children:h.jsx(Om,{asChild:!0,...E,orientation:p,dir:j,loop:y,children:h.jsx(oe.div,{role:"radiogroup","aria-required":d,"aria-orientation":p,"data-disabled":m?"":void 0,dir:j,...w,ref:l})})})});BS.displayName=wc;var YS="RadioGroupItem",QS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,c=h3(YS,r),d=c.disabled||i,m=HS(r),p=qS(r),g=v.useRef(null),y=we(l,g),b=c.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const E=S=>{c3.includes(S.key)&&(w.current=!0)},j=()=>w.current=!1;return document.addEventListener("keydown",E),document.addEventListener("keyup",j),()=>{document.removeEventListener("keydown",E),document.removeEventListener("keyup",j)}},[]),h.jsx(km,{asChild:!0,...m,focusable:!d,active:b,children:h.jsx(OS,{disabled:d,required:c.required,checked:b,...p,...s,name:c.name,ref:y,onCheck:()=>c.onValueChange(s.value),onKeyDown:ne(E=>{E.key==="Enter"&&E.preventDefault()}),onFocus:ne(s.onFocus,()=>{var E;w.current&&((E=g.current)==null||E.click())})})})});QS.displayName=YS;var m3="RadioGroupIndicator",GS=v.forwardRef((n,l)=>{const{__scopeRadioGroup:r,...i}=n,s=qS(r);return h.jsx(zS,{...s,...i,ref:l})});GS.displayName=m3;var VS=BS,KS=QS,p3=GS;const v3=v.forwardRef(({className:n,...l},r)=>h.jsx(VS,{className:ue("grid gap-2",n),...l,ref:r}));v3.displayName=VS.displayName;const g3=v.forwardRef(({className:n,...l},r)=>h.jsx(KS,{ref:r,className:ue("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...l,children:h.jsx(p3,{className:"flex items-center justify-center",children:h.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}));g3.displayName=KS.displayName;var Sc="Switch",[y3,o5]=dt(Sc),[b3,x3]=y3(Sc),w3=v.forwardRef((n,l)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:c,required:d,disabled:m,value:p="on",onCheckedChange:g,form:y,...b}=n,[w,E]=v.useState(null),j=we(l,T=>E(T)),S=v.useRef(!1),N=w?y||!!w.closest("form"):!0,[R,_]=Zn({prop:s,defaultProp:c??!1,onChange:g,caller:Sc});return h.jsxs(b3,{scope:r,checked:R,disabled:m,children:[h.jsx(oe.button,{type:"button",role:"switch","aria-checked":R,"aria-required":d,"data-state":ZS(R),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:j,onClick:ne(n.onClick,T=>{_(k=>!k),N&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),N&&h.jsx($S,{control:w,bubbles:!S.current,name:i,value:p,checked:R,required:d,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});w3.displayName=Sc;var XS="SwitchThumb",S3=v.forwardRef((n,l)=>{const{__scopeSwitch:r,...i}=n,s=x3(XS,r);return h.jsx(oe.span,{"data-state":ZS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:l})});S3.displayName=XS;var E3="SwitchBubbleInput",$S=v.forwardRef(({__scopeSwitch:n,control:l,checked:r,bubbles:i=!0,...s},c)=>{const d=v.useRef(null),m=we(d,c),p=Jo(r),g=dc(l);return v.useEffect(()=>{const y=d.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const E=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(E)}},[p,r,i]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$S.displayName=E3;function ZS(n){return n?"checked":"unchecked"}var Ec="Tabs",[C3,s5]=dt(Ec,[Ti]),FS=Ti(),[j3,Im]=C3(Ec),JS=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:c,orientation:d="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Ei(m),[b,w]=Zn({prop:i,onChange:s,defaultProp:c??"",caller:Ec});return h.jsx(j3,{scope:r,baseId:bl(),value:b,onValueChange:w,orientation:d,dir:y,activationMode:p,children:h.jsx(oe.div,{dir:y,"data-orientation":d,...g,ref:l})})});JS.displayName=Ec;var PS="TabsList",WS=v.forwardRef((n,l)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,c=Im(PS,r),d=FS(r);return h.jsx(Om,{asChild:!0,...d,orientation:c.orientation,dir:c.dir,loop:i,children:h.jsx(oe.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:l})})});WS.displayName=PS;var IS="TabsTrigger",eE=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...c}=n,d=Im(IS,r),m=FS(r),p=aE(d.baseId,i),g=lE(d.baseId,i),y=i===d.value;return h.jsx(km,{asChild:!0,...m,focusable:!s,active:y,children:h.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...c,ref:l,onMouseDown:ne(n.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?d.onValueChange(i):b.preventDefault()}),onKeyDown:ne(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&d.onValueChange(i)}),onFocus:ne(n.onFocus,()=>{const b=d.activationMode!=="manual";!y&&!s&&b&&d.onValueChange(i)})})})});eE.displayName=IS;var tE="TabsContent",nE=v.forwardRef((n,l)=>{const{__scopeTabs:r,value:i,forceMount:s,children:c,...d}=n,m=Im(tE,r),p=aE(m.baseId,i),g=lE(m.baseId,i),y=i===m.value,b=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),h.jsx(ot,{present:s||y,children:({present:w})=>h.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...d,ref:l,style:{...n.style,animationDuration:b.current?"0s":void 0},children:w&&c})})});nE.displayName=tE;function aE(n,l){return`${n}-trigger-${l}`}function lE(n,l){return`${n}-content-${l}`}var N3=JS,R3=WS,_b=eE,_3=nE;const ep=v.createContext("underline"),T3=gm("flex",{variants:{variant:{underline:"border-b border-border",pill:"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]"}},defaultVariants:{variant:"underline"}}),M3=ue("cursor-pointer data-[state=active]:bg-background dark:data-[state=active]:text-foreground","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring","dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30","text-foreground dark:text-muted-foreground","inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5","whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium","transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0");function A3({className:n,variant:l="underline",...r}){return h.jsx(ep.Provider,{value:l??"underline",children:h.jsx(N3,{"data-slot":"tabs",className:ue("flex flex-col gap-2",n),...r})})}function D3({className:n,...l}){const r=v.useContext(ep);return h.jsx(R3,{"data-slot":"tabs-list",className:ue(T3({variant:r}),n),...l})}function Tb({className:n,children:l,...r}){return v.useContext(ep)==="pill"?h.jsx(_b,{"data-slot":"tabs-trigger",className:ue(M3,n),...r,children:l}):h.jsx(_b,{asChild:!0,...r,children:h.jsx(Zx,{className:n,children:l})})}function Mb({className:n,...l}){return h.jsx(_3,{"data-slot":"tabs-content",className:ue("flex-1 outline-none",n),...l})}function O3(n){const l=k3(n),r=v.forwardRef((i,s)=>{const{children:c,...d}=i,m=v.Children.toArray(c),p=m.find(L3);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return h.jsx(l,{...d,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return h.jsx(l,{...d,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function k3(n){const l=v.forwardRef((r,i)=>{const{children:s,...c}=r,d=v.isValidElement(s)?H3(s):void 0,m=we(d,i);if(v.isValidElement(s)){const p=U3(c,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var z3=Symbol("radix.slottable");function L3(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===z3}function U3(n,l){const r={...l};for(const i in l){const s=n[i],c=l[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...d)=>{const m=c(...d);return s(...d),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function H3(n){var l,r;let i=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var q3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],tp=q3.reduce((n,l)=>{const r=O3(`Primitive.${l}`),i=v.forwardRef((s,c)=>{const{asChild:d,...m}=s,p=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{}),np="Progress",ap=100,[B3,u5]=dt(np),[Y3,Q3]=B3(np),G3=v.forwardRef((n,l)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:c=K3,...d}=n;(s||s===0)&&!Ab(s)&&console.error(X3(`${s}`,"Progress"));const m=Ab(s)?s:ap;i!==null&&!Db(i,m)&&console.error($3(`${i}`,"Progress"));const p=Db(i,m)?i:null,g=Ju(p)?c(p,m):void 0;return h.jsx(Y3,{scope:r,value:p,max:m,children:h.jsx(tp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":Ju(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":iE(p,m),"data-value":p??void 0,"data-max":m,...d,ref:l})})});G3.displayName=np;var rE="ProgressIndicator",V3=v.forwardRef((n,l)=>{const{__scopeProgress:r,...i}=n,s=Q3(rE,r);return h.jsx(tp.div,{"data-state":iE(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:l})});V3.displayName=rE;function K3(n,l){return`${Math.round(n/l*100)}%`}function iE(n,l){return n==null?"indeterminate":n===l?"complete":"loading"}function Ju(n){return typeof n=="number"}function Ab(n){return Ju(n)&&!isNaN(n)&&n>0}function Db(n,l){return Ju(n)&&!isNaN(n)&&n<=l&&n>=0}function X3(n,l){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${l}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ap}\`.`}function $3(n,l){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${l}\`. The \`value\` prop must be:
|
|
292
|
+
- a positive number
|
|
293
|
+
- less than the value passed to \`max\` (or ${ap} if no \`max\` prop is set)
|
|
294
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
295
|
+
|
|
296
|
+
Defaulting to \`null\`.`}var Z3="Separator",Ob="horizontal",F3=["horizontal","vertical"],J3=v.forwardRef((n,l)=>{const{decorative:r,orientation:i=Ob,...s}=n,c=P3(i)?i:Ob,d=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return h.jsx(tp.div,{"data-orientation":c,...d,...s,ref:l})});J3.displayName=Z3;function P3(n){return F3.includes(n)}var W3="Label",oE=v.forwardRef((n,l)=>h.jsx(oe.label,{...n,ref:l,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));oE.displayName=W3;var sE=oE;const I3=gm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),e4=v.forwardRef(({className:n,...l},r)=>h.jsx(sE,{ref:r,className:ue(I3(),n),...l}));e4.displayName=sE.displayName;var Cc="Collapsible",[t4,uE]=dt(Cc),[n4,lp]=t4(Cc),cE=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:c,onOpenChange:d,...m}=n,[p,g]=Zn({prop:i,defaultProp:s??!1,onChange:d,caller:Cc});return h.jsx(n4,{scope:r,disabled:c,contentId:bl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:h.jsx(oe.div,{"data-state":sp(p),"data-disabled":c?"":void 0,...m,ref:l})})});cE.displayName=Cc;var fE="CollapsibleTrigger",rp=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,...i}=n,s=lp(fE,r);return h.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":sp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:l,onClick:ne(n.onClick,s.onOpenToggle)})});rp.displayName=fE;var ip="CollapsibleContent",op=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=lp(ip,n.__scopeCollapsible);return h.jsx(ot,{present:r||s.open,children:({present:c})=>h.jsx(a4,{...i,ref:l,present:c})})});op.displayName=ip;var a4=v.forwardRef((n,l)=>{const{__scopeCollapsible:r,present:i,children:s,...c}=n,d=lp(ip,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(l,g),b=v.useRef(0),w=b.current,E=v.useRef(0),j=E.current,S=d.open||m,N=v.useRef(S),R=v.useRef(void 0);return v.useEffect(()=>{const _=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(_)},[]),et(()=>{const _=g.current;if(_){R.current=R.current||{transitionDuration:_.style.transitionDuration,animationName:_.style.animationName},_.style.transitionDuration="0s",_.style.animationName="none";const T=_.getBoundingClientRect();b.current=T.height,E.current=T.width,N.current||(_.style.transitionDuration=R.current.transitionDuration,_.style.animationName=R.current.animationName),p(i)}},[d.open,i]),h.jsx(oe.div,{"data-state":sp(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!S,...c,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...n.style},children:S&&s})});function sp(n){return n?"open":"closed"}var dE=cE,l4=rp,r4=op,zn="Accordion",i4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[up,o4,s4]=Ci(zn),[jc,c5]=dt(zn,[s4,uE]),cp=uE(),u4=lt.forwardRef((n,l)=>{const{type:r,...i}=n,s=i,c=i;return h.jsx(up.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?h.jsx(h4,{...c,ref:l}):h.jsx(d4,{...s,ref:l})})});u4.displayName=zn;var[hE,c4]=jc(zn),[mE,f4]=jc(zn,{collapsible:!1}),d4=lt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...d}=n,[m,p]=Zn({prop:r,defaultProp:i??"",onChange:s,caller:zn});return h.jsx(hE,{scope:n.__scopeAccordion,value:lt.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:lt.useCallback(()=>c&&p(""),[c,p]),children:h.jsx(mE,{scope:n.__scopeAccordion,collapsible:c,children:h.jsx(pE,{...d,ref:l})})})}),h4=lt.forwardRef((n,l)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...c}=n,[d,m]=Zn({prop:r,defaultProp:i??[],onChange:s,caller:zn}),p=lt.useCallback(y=>m((b=[])=>[...b,y]),[m]),g=lt.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return h.jsx(hE,{scope:n.__scopeAccordion,value:d,onItemOpen:p,onItemClose:g,children:h.jsx(mE,{scope:n.__scopeAccordion,collapsible:!0,children:h.jsx(pE,{...c,ref:l})})})}),[m4,Nc]=jc(zn),pE=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:c="vertical",...d}=n,m=lt.useRef(null),p=we(m,l),g=o4(r),y=Ei(s)==="ltr",b=ne(n.onKeyDown,w=>{var E;if(!i4.includes(w.key))return;const j=w.target,S=g().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),N=S.findIndex(H=>H.ref.current===j),R=S.length;if(N===-1)return;w.preventDefault();let _=N;const T=0,k=R-1,L=()=>{_=N+1,_>k&&(_=T)},$=()=>{_=N-1,_<T&&(_=k)};switch(w.key){case"Home":_=T;break;case"End":_=k;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 Y=_%R;(E=S[Y].ref.current)==null||E.focus()});return h.jsx(m4,{scope:r,disabled:i,direction:s,orientation:c,children:h.jsx(up.Slot,{scope:r,children:h.jsx(oe.div,{...d,"data-orientation":c,ref:p,onKeyDown:i?void 0:b})})})}),Pu="AccordionItem",[p4,fp]=jc(Pu),v4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,value:i,...s}=n,c=Nc(Pu,r),d=c4(Pu,r),m=cp(r),p=bl(),g=i&&d.value.includes(i)||!1,y=c.disabled||n.disabled;return h.jsx(p4,{scope:r,open:g,disabled:y,triggerId:p,children:h.jsx(dE,{"data-orientation":c.orientation,"data-state":yE(g),...m,...s,ref:l,disabled:y,open:g,onOpenChange:b=>{b?d.onItemOpen(i):d.onItemClose(i)}})})});v4.displayName=Pu;var vE="AccordionHeader",g4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Nc(zn,r),c=fp(vE,r);return h.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":yE(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:l})});g4.displayName=vE;var Zh="AccordionTrigger",y4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Nc(zn,r),c=fp(Zh,r),d=f4(Zh,r),m=cp(r);return h.jsx(up.ItemSlot,{scope:r,children:h.jsx(l4,{"aria-disabled":c.open&&!d.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...m,...i,ref:l})})});y4.displayName=Zh;var gE="AccordionContent",b4=lt.forwardRef((n,l)=>{const{__scopeAccordion:r,...i}=n,s=Nc(zn,r),c=fp(gE,r),d=cp(r);return h.jsx(r4,{role:"region","aria-labelledby":c.triggerId,"data-orientation":s.orientation,...d,...i,ref:l,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});b4.displayName=gE;function yE(n){return n?"open":"closed"}const x4=dE,w4=rp,S4=op;var rr="NavigationMenu",[dp,bE,E4]=Ci(rr),[Fh,C4,j4]=Ci(rr),[hp,f5]=dt(rr,[E4,j4]),[N4,Sn]=hp(rr),[R4,_4]=hp(rr),T4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,delayDuration:d=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[b,w]=v.useState(null),E=we(l,G=>w(G)),j=Ei(g),S=v.useRef(0),N=v.useRef(0),R=v.useRef(0),[_,T]=v.useState(!0),[k,L]=Zn({prop:i,onChange:G=>{const le=G!=="",me=m>0;le?(window.clearTimeout(R.current),me&&T(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>T(!0),m)),s==null||s(G)},defaultProp:c??"",caller:rr}),$=v.useCallback(()=>{window.clearTimeout(N.current),N.current=window.setTimeout(()=>L(""),150)},[L]),Y=v.useCallback(G=>{window.clearTimeout(N.current),L(G)},[L]),H=v.useCallback(G=>{k===G?window.clearTimeout(N.current):S.current=window.setTimeout(()=>{window.clearTimeout(N.current),L(G)},d)},[k,L,d]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(N.current),window.clearTimeout(R.current)},[]),h.jsx(xE,{scope:r,isRootMenu:!0,value:k,dir:j,orientation:p,rootNavigationMenu:b,onTriggerEnter:G=>{window.clearTimeout(S.current),_?H(G):Y(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),$()},onContentEnter:()=>window.clearTimeout(N.current),onContentLeave:$,onItemSelect:G=>{L(le=>le===G?"":G)},onItemDismiss:()=>L(""),children:h.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:j,...y,ref:E})})});T4.displayName=rr;var Jh="NavigationMenuSub",M4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,orientation:d="horizontal",...m}=n,p=Sn(Jh,r),[g,y]=Zn({prop:i,onChange:s,defaultProp:c??"",caller:Jh});return h.jsx(xE,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:d,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:b=>y(b),onItemSelect:b=>y(b),onItemDismiss:()=>y(""),children:h.jsx(oe.div,{"data-orientation":d,...m,ref:l})})});M4.displayName=Jh;var xE=n=>{const{scope:l,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:c,children:d,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:b,onContentEnter:w,onContentLeave:E}=n,[j,S]=v.useState(null),[N,R]=v.useState(new Map),[_,T]=v.useState(null);return h.jsx(N4,{scope:l,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:Jo(m),baseId:bl(),dir:s,orientation:c,viewport:j,onViewportChange:S,indicatorTrack:_,onIndicatorTrackChange:T,onTriggerEnter:We(y),onTriggerLeave:We(b),onContentEnter:We(w),onContentLeave:We(E),onItemSelect:We(p),onItemDismiss:We(g),onViewportContentChange:v.useCallback((k,L)=>{R($=>($.set(k,L),new Map($)))},[]),onViewportContentRemove:v.useCallback(k=>{R(L=>L.has(k)?(L.delete(k),new Map(L)):L)},[]),children:h.jsx(dp.Provider,{scope:l,children:h.jsx(R4,{scope:l,items:N,children:d})})})},wE="NavigationMenuList",A4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=Sn(wE,r),c=h.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:l});return h.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:h.jsx(dp.Slot,{scope:r,children:s.isRootMenu?h.jsx(jE,{asChild:!0,children:c}):c})})});A4.displayName=wE;var SE="NavigationMenuItem",[D4,EE]=hp(SE),O4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,c=bl(),d=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),b=v.useRef(!1),w=v.useCallback((j="start")=>{if(m.current){y.current();const S=Wh(m.current);S.length&&vp(j==="start"?S:S.reverse())}},[]),E=v.useCallback(()=>{if(m.current){const j=Wh(m.current);j.length&&(y.current=K4(j))}},[]);return h.jsx(D4,{scope:r,value:d,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:E,onContentFocusOutside:E,children:h.jsx(oe.li,{...s,ref:l})})});O4.displayName=SE;var Ph="NavigationMenuTrigger",k4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,c=Sn(Ph,n.__scopeNavigationMenu),d=EE(Ph,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,d.triggerRef,l),g=RE(c.baseId,d.value),y=_E(c.baseId,d.value),b=v.useRef(!1),w=v.useRef(!1),E=d.value===c.value;return h.jsxs(h.Fragment,{children:[h.jsx(dp.ItemSlot,{scope:r,value:d.value,children:h.jsx(NE,{asChild:!0,children:h.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":gp(E),"aria-expanded":E,"aria-controls":y,...s,ref:p,onPointerEnter:ne(n.onPointerEnter,()=>{w.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:ne(n.onPointerMove,Wu(()=>{i||w.current||d.wasEscapeCloseRef.current||b.current||(c.onTriggerEnter(d.value),b.current=!0)})),onPointerLeave:ne(n.onPointerLeave,Wu(()=>{i||(c.onTriggerLeave(),b.current=!1)})),onClick:ne(n.onClick,()=>{c.onItemSelect(d.value),w.current=E}),onKeyDown:ne(n.onKeyDown,j=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];E&&j.key===S&&(d.onEntryKeyDown(),j.preventDefault())})})})}),E&&h.jsxs(h.Fragment,{children:[h.jsx(rS,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:j=>{const S=d.contentRef.current,N=j.relatedTarget,R=N===m.current,_=S==null?void 0:S.contains(N);(R||!_)&&d.onFocusProxyEnter(R?"start":"end")}}),c.viewport&&h.jsx("span",{"aria-owns":y})]})]})});k4.displayName=Ph;var z4="NavigationMenuLink",kb="navigationMenu.linkSelect",L4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...c}=n;return h.jsx(NE,{asChild:!0,children:h.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:l,onClick:ne(n.onClick,d=>{const m=d.target,p=new CustomEvent(kb,{bubbles:!0,cancelable:!0});if(m.addEventListener(kb,g=>s==null?void 0:s(g),{once:!0}),qu(m,p),!p.defaultPrevented&&!d.metaKey){const g=new CustomEvent(Ou,{bubbles:!0,cancelable:!0});qu(m,g)}},{checkForDefaultPrevented:!1})})})});L4.displayName=z4;var mp="NavigationMenuIndicator",U4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=Sn(mp,n.__scopeNavigationMenu),c=!!s.value;return s.indicatorTrack?_x.createPortal(h.jsx(ot,{present:r||c,children:h.jsx(H4,{...i,ref:l})}),s.indicatorTrack):null});U4.displayName=mp;var H4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=Sn(mp,r),c=bE(r),[d,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",b=!!s.value;v.useEffect(()=>{var E;const j=(E=c().find(S=>S.value===s.value))==null?void 0:E.ref.current;j&&m(j)},[c,s.value]);const w=()=>{d&&g({size:y?d.offsetWidth:d.offsetHeight,offset:y?d.offsetLeft:d.offsetTop})};return Ih(d,w),Ih(s.indicatorTrack,w),p?h.jsx(oe.div,{"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":s.orientation,...i,ref:l,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),gi="NavigationMenuContent",q4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=Sn(gi,n.__scopeNavigationMenu),c=EE(gi,n.__scopeNavigationMenu),d=we(c.contentRef,l),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?h.jsx(B4,{forceMount:r,...p,ref:d}):h.jsx(ot,{present:r||m,children:h.jsx(CE,{"data-state":gp(m),...p,ref:d,onPointerEnter:ne(n.onPointerEnter,s.onContentEnter),onPointerLeave:ne(n.onPointerLeave,Wu(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});q4.displayName=gi;var B4=v.forwardRef((n,l)=>{const r=Sn(gi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return et(()=>{i(n.value,{ref:l,...n})},[n,l,i]),et(()=>()=>s(n.value),[n.value,s]),null}),Ou="navigationMenu.rootContentDismiss",CE=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:c,wasEscapeCloseRef:d,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=Sn(gi,r),b=v.useRef(null),w=we(b,l),E=RE(y.baseId,i),j=_E(y.baseId,i),S=bE(r),N=v.useRef(null),{onItemDismiss:R}=y;v.useEffect(()=>{const T=b.current;if(y.isRootMenu&&T){const k=()=>{var L;R(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(Ou,k),()=>T.removeEventListener(Ou,k)}},[y.isRootMenu,n.value,s,R,m]);const _=v.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const k=T.indexOf(y.value),L=T.indexOf(y.previousValue),$=i===y.value,Y=L===T.indexOf(i);if(!$&&!Y)return N.current;const H=(()=>{if(k!==L){if($&&L!==-1)return k>L?"from-end":"from-start";if(Y&&k!==-1)return k>L?"to-start":"to-end"}return null})();return N.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return h.jsx(jE,{asChild:!0,children:h.jsx(ji,{id:j,"aria-labelledby":E,"data-motion":_,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const k=new Event(Ou,{bubbles:!0,cancelable:!0});(T=b.current)==null||T.dispatchEvent(k)},onFocusOutside:ne(n.onFocusOutside,T=>{var k;p();const L=T.target;(k=y.rootNavigationMenu)!=null&&k.contains(L)&&T.preventDefault()}),onPointerDownOutside:ne(n.onPointerDownOutside,T=>{var k;const L=T.target,$=S().some(H=>{var G;return(G=H.ref.current)==null?void 0:G.contains(L)}),Y=y.isRootMenu&&((k=y.viewport)==null?void 0:k.contains(L));($||Y||!y.isRootMenu)&&T.preventDefault()}),onKeyDown:ne(n.onKeyDown,T=>{var k;const L=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!L){const $=Wh(T.currentTarget),Y=document.activeElement,H=$.findIndex(le=>le===Y),G=T.shiftKey?$.slice(0,H).reverse():$.slice(H+1,$.length);vp(G)?T.preventDefault():(k=c.current)==null||k.focus()}}),onEscapeKeyDown:ne(n.onEscapeKeyDown,T=>{d.current=!0})})})}),pp="NavigationMenuViewport",Y4=v.forwardRef((n,l)=>{const{forceMount:r,...i}=n,s=!!Sn(pp,n.__scopeNavigationMenu).value;return h.jsx(ot,{present:r||s,children:h.jsx(Q4,{...i,ref:l})})});Y4.displayName=pp;var Q4=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,c=Sn(pp,r),d=we(l,c.onViewportChange),m=_4(gi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,b]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,E=p?(p==null?void 0:p.height)+"px":void 0,j=!!c.value,S=j?c.value:c.previousValue;return Ih(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),h.jsx(oe.div,{"data-state":gp(j),"data-orientation":c.orientation,...s,ref:d,style:{pointerEvents:!j&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":E,...s.style},onPointerEnter:ne(n.onPointerEnter,c.onContentEnter),onPointerLeave:ne(n.onPointerLeave,Wu(c.onContentLeave)),children:Array.from(m.items).map(([N,{ref:R,forceMount:_,...T}])=>{const k=S===N;return h.jsx(ot,{present:_||k,children:h.jsx(CE,{...T,ref:Xo(R,L=>{k&&L&&b(L)})})},N)})})}),G4="FocusGroup",jE=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=Sn(G4,r);return h.jsx(Fh.Provider,{scope:r,children:h.jsx(Fh.Slot,{scope:r,children:h.jsx(oe.div,{dir:s.dir,...i,ref:l})})})}),zb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],V4="FocusGroupItem",NE=v.forwardRef((n,l)=>{const{__scopeNavigationMenu:r,...i}=n,s=C4(r),c=Sn(V4,r);return h.jsx(Fh.ItemSlot,{scope:r,children:h.jsx(oe.button,{...i,ref:l,onKeyDown:ne(n.onKeyDown,d=>{if(["Home","End",...zb].includes(d.key)){let m=s().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(d.key)&&m.reverse(),zb.includes(d.key)){const p=m.indexOf(d.currentTarget);m=m.slice(p+1)}setTimeout(()=>vp(m)),d.preventDefault()}})})})});function Wh(n){const l=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function vp(n){const l=document.activeElement;return n.some(r=>r===l?!0:(r.focus(),document.activeElement!==l))}function K4(n){return n.forEach(l=>{l.dataset.tabindex=l.getAttribute("tabindex")||"",l.setAttribute("tabindex","-1")}),()=>{n.forEach(l=>{const r=l.dataset.tabindex;l.setAttribute("tabindex",r)})}}function Ih(n,l){const r=We(l);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function gp(n){return n?"open":"closed"}function RE(n,l){return`${n}-trigger-${l}`}function _E(n,l){return`${n}-content-${l}`}function Wu(n){return l=>l.pointerType==="mouse"?n(l):void 0}var Lb={exports:{}},hh={};/**
|
|
297
|
+
* @license React
|
|
298
|
+
* use-sync-external-store-shim.production.js
|
|
299
|
+
*
|
|
300
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the MIT license found in the
|
|
303
|
+
* LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/var Ub;function X4(){if(Ub)return hh;Ub=1;var n=lt;function l(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var r=typeof Object.is=="function"?Object.is:l,i=n.useState,s=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function m(b,w){var E=w(),j=i({inst:{value:E,getSnapshot:w}}),S=j[0].inst,N=j[1];return c(function(){S.value=E,S.getSnapshot=w,p(S)&&N({inst:S})},[b,E,w]),s(function(){return p(S)&&N({inst:S}),b(function(){p(S)&&N({inst:S})})},[b]),d(E),E}function p(b){var w=b.getSnapshot;b=b.value;try{var E=w();return!r(b,E)}catch{return!0}}function g(b,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return hh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,hh}var Hb;function $4(){return Hb||(Hb=1,Lb.exports=X4()),Lb.exports}var Z4=$4();function F4(){return Z4.useSyncExternalStore(J4,()=>!0,()=>!1)}function J4(){return()=>{}}var yp="Avatar",[P4,d5]=dt(yp),[W4,TE]=P4(yp),ME=v.forwardRef((n,l)=>{const{__scopeAvatar:r,...i}=n,[s,c]=v.useState("idle");return h.jsx(W4,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:h.jsx(oe.span,{...i,ref:l})})});ME.displayName=yp;var AE="AvatarImage",DE=v.forwardRef((n,l)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...c}=n,d=TE(AE,r),m=I4(i,c),p=We(g=>{s(g),d.onImageLoadingStatusChange(g)});return et(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?h.jsx(oe.img,{...c,ref:l,src:i}):null});DE.displayName=AE;var OE="AvatarFallback",kE=v.forwardRef((n,l)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,c=TE(OE,r),[d,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),d&&c.imageLoadingStatus!=="loaded"?h.jsx(oe.span,{...s,ref:l}):null});kE.displayName=OE;function qb(n,l){return n?l?(n.src!==l&&(n.src=l),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function I4(n,{referrerPolicy:l,crossOrigin:r}){const i=F4(),s=v.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[d,m]=v.useState(()=>qb(c,n));return et(()=>{m(qb(c,n))},[c,n]),et(()=>{const p=b=>()=>{m(b)};if(!c)return;const g=p("loaded"),y=p("error");return c.addEventListener("load",g),c.addEventListener("error",y),l&&(c.referrerPolicy=l),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",y)}},[c,r,l]),d}var zE=ME,LE=DE,UE=kE;const ez=v.forwardRef(({className:n,...l},r)=>h.jsx(zE,{ref:r,className:ue("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...l}));ez.displayName=zE.displayName;const tz=v.forwardRef(({className:n,...l},r)=>h.jsx(LE,{ref:r,className:ue("aspect-square h-full w-full",n),...l}));tz.displayName=LE.displayName;const nz=v.forwardRef(({className:n,...l},r)=>h.jsx(UE,{ref:r,className:ue("bg-muted flex h-full w-full items-center justify-center rounded-full",n),...l}));nz.displayName=UE.displayName;const az=v.forwardRef(({className:n,inset:l,children:r,...i},s)=>h.jsxs(k1,{ref:s,className:ue("focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",l&&"pl-8",n),...i,children:[r,h.jsx(Oh,{className:"ml-auto h-4 w-4"})]}));az.displayName=k1.displayName;const lz=v.forwardRef(({className:n,...l},r)=>h.jsx(z1,{ref:r,className:ue("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",n),...l}));lz.displayName=z1.displayName;const rz=v.forwardRef(({className:n,sideOffset:l=4,...r},i)=>h.jsx(_O,{children:h.jsx(R1,{ref:i,sideOffset:l,className:ue("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md","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",n),...r})}));rz.displayName=R1.displayName;const iz=v.forwardRef(({className:n,inset:l,...r},i)=>h.jsx(T1,{ref:i,className:ue("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l&&"pl-8",n),...r}));iz.displayName=T1.displayName;const oz=v.forwardRef(({className:n,children:l,checked:r,...i},s)=>h.jsxs(M1,{ref:s,className:ue("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r,...i,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(D1,{children:h.jsx(hm,{className:"h-4 w-4"})})}),l]}));oz.displayName=M1.displayName;const sz=v.forwardRef(({className:n,children:l,...r},i)=>h.jsxs(A1,{ref:i,className:ue("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(D1,{children:h.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}),l]}));sz.displayName=A1.displayName;const uz=v.forwardRef(({className:n,inset:l,...r},i)=>h.jsx(_1,{ref:i,className:ue("px-2 py-1.5 text-sm font-semibold",l&&"pl-8",n),...r}));uz.displayName=_1.displayName;const cz=v.forwardRef(({className:n,...l},r)=>h.jsx(O1,{ref:r,className:ue("bg-muted -mx-1 my-1 h-px",n),...l}));cz.displayName=O1.displayName;ue("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 fz="";async function Ta(n,l){const r=await fetch(`${fz}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return r.json()}async function HE(){return Ta("/api/config")}async function dz(n,l){return Ta(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:l})})}async function hz(n){return Ta(`/api/db/${n}/tables`)}async function mz(n,l,r,i){return Ta(`/api/db/${n}/tables/${l}?limit=${r}&offset=${i}`)}async function pz(n){return Ta(`/api/db/${n}/schema`)}async function vz(n){return Ta(`/api/queue/${n}/metrics`)}async function gz(n,l=10){return Ta(`/api/queue/${n}/messages?limit=${l}`)}async function yz(n,l=20){return Ta(`/api/workflow/${n}/executions?limit=${l}`)}async function bz(n,l){return Ta(`/api/workflow/${n}/executions/${l}`)}function xz({column:n,onInsertText:l}){return h.jsxs("button",{onClick:()=>l==null?void 0:l(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?h.jsx(ZR,{className:"h-3 w-3 shrink-0 text-yellow-500"}):h.jsx(BR,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),h.jsx("span",{className:"truncate font-mono",children:n.name}),h.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function wz({table:n,onInsertText:l}){const[r,i]=v.useState(!1);return h.jsxs(x4,{open:r,onOpenChange:i,children:[h.jsxs(w4,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?h.jsx(MR,{className:"h-4 w-4 shrink-0"}):h.jsx(Mx,{className:"h-4 w-4 shrink-0"}),h.jsx(Dx,{className:"h-4 w-4 shrink-0 text-blue-500"}),h.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),l==null||l(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),h.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),h.jsx(S4,{children:h.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>h.jsx(xz,{column:s,onInsertText:l},s.name))})})]})}function Sz({bindingName:n,onInsertText:l}){const{data:r,isLoading:i,refetch:s}=Ca({queryKey:["schema",n],queryFn:()=>pz(n),staleTime:3e4}),d=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return h.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[h.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),h.jsx(wa,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:h.jsx(Ax,{className:ue("h-4 w-4",i&&"animate-spin")})})]}),h.jsx(VT,{className:"flex-1",children:h.jsx("div",{className:"p-2",children:i?h.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):d.length===0?h.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):h.jsx("div",{className:"space-y-0.5",children:d.map(m=>h.jsx(wz,{table:m,onInsertText:l},m.name))})})}),h.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function Ez(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Cz(){var G,le,me,fe;const{binding:n}=ec(),l=n||"",[r,i]=v.useState("query"),[s,c]=v.useState(""),[d,m]=v.useState(null),[p,g]=v.useState(null),[y,b]=v.useState(null),[w,E]=v.useState(0),j=50,S=v.useCallback(W=>{c(ie=>ie+W)},[]),N=Vj({mutationFn:W=>dz(l,W),onSuccess:W=>{m(W),g(null)},onError:W=>{g(W instanceof Error?W.message:"Failed to execute query"),m(null)}}),R=()=>{s.trim()&&N.mutate(s)},_=Ca({queryKey:["tables",l],queryFn:()=>hz(l),staleTime:0,gcTime:0,enabled:!!l}),T=Ca({queryKey:["tableData",l,y,j,w],queryFn:()=>mz(l,y,j,w),staleTime:0,gcTime:0,enabled:!!l&&!!y}),k=((G=_.data)==null?void 0:G.tables)||[],L=((le=T.data)==null?void 0:le.data)||[],$=((me=T.data)==null?void 0:me.columns)||[],Y=((fe=T.data)==null?void 0:fe.total)||0,H=W=>{b(W),E(0)};return h.jsx("div",{className:"flex flex-col",children:h.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[h.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",l]}),h.jsxs(A3,{value:r,onValueChange:i,variant:"pill",children:[h.jsxs(D3,{children:[h.jsx(Tb,{value:"query",children:"SQL Editor"}),h.jsx(Tb,{value:"tables",children:"Tables"})]}),h.jsx(Mb,{value:"query",className:"mt-4",children:h.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs(It,{children:[h.jsxs(gn,{children:[h.jsx(yn,{children:"SQL Query"}),h.jsx(di,{children:"Execute SQL queries against your database"})]}),h.jsxs(en,{className:"space-y-4",children:[h.jsx("textarea",{value:s,onChange:W=>c(W.target.value),onKeyDown:W=>{(W.metaKey||W.ctrlKey)&&W.key==="Enter"&&R()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),h.jsxs(wa,{onClick:R,disabled:N.isPending||!s.trim(),children:[h.jsx(IR,{className:"mr-2 h-4 w-4"}),N.isPending?"Executing...":"Execute"]})]})]})]}),p&&h.jsx(It,{className:"border-destructive/50",children:h.jsx(en,{className:"pt-6",children:h.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),d&&h.jsx(pT,{results:d.results,meta:d.meta,error:d.error})]}),h.jsx("div",{className:"hidden h-[500px] lg:block",children:h.jsx(Sz,{bindingName:l,onInsertText:S})})]})}),h.jsx(Mb,{value:"tables",className:"mt-4",children:h.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[h.jsxs(It,{className:"md:col-span-1",children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-base",children:"Tables"}),h.jsx(wa,{variant:"ghost",size:"icon",onClick:()=>_.refetch(),className:"h-8 w-8",children:h.jsx(Ax,{className:"h-4 w-4"})})]}),h.jsx(en,{children:_.isLoading?h.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):k.length===0?h.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):h.jsx("div",{className:"space-y-1",children:k.map(W=>h.jsxs("button",{onClick:()=>H(W.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===W.name?"bg-muted font-medium":""}`,children:[h.jsx(Dx,{className:"h-4 w-4 shrink-0"}),h.jsx("span",{className:"truncate",children:W.name})]},W.name))})})]}),h.jsxs(It,{className:"md:col-span-3",children:[h.jsxs(gn,{children:[h.jsx(yn,{children:y||"Select a Table"}),y&&h.jsxs(di,{children:[Y," total rows"]})]}),h.jsx(en,{children:y?T.isLoading?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?h.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"overflow-x-auto rounded-md border",children:h.jsxs(mm,{children:[h.jsx(pm,{children:h.jsx(hi,{children:$.map(W=>h.jsx(pn,{className:"font-mono",children:W},W))})}),h.jsx(vm,{children:L.map((W,ie)=>h.jsx(hi,{children:$.map(re=>h.jsx(vn,{className:"font-mono text-sm",children:Ez(W[re])},re))},ie))})]})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," - ",Math.min(w+j,Y)," of ",Y]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsxs(wa,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>E(Math.max(0,w-j)),children:[h.jsx(DR,{className:"mr-1 h-4 w-4"}),"Previous"]}),h.jsxs(wa,{variant:"outline",size:"sm",disabled:w+j>=Y,onClick:()=>E(w+j),children:["Next",h.jsx(Mx,{className:"ml-1 h-4 w-4"})]})]})]})]}):h.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const jz={PENDING:{variant:"default",icon:h.jsx(lc,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:h.jsx(Mt,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:h.jsx(nc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:h.jsx(ac,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:h.jsx(_R,{className:"h-3 w-3"}),label:"Cancelled"}},Nz={PENDING:{variant:"default",icon:h.jsx(lc,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:h.jsx(Mt,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:h.jsx(nc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:h.jsx(ac,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:h.jsx(zR,{className:"h-3 w-3"}),label:"Dead Letter"}};function qE({status:n}){const l=jz[n];return l?h.jsx(Hu,{variant:l.variant,icon:l.icon,children:l.label}):h.jsx(Hu,{children:n})}function Rz({status:n}){const l=Nz[n];return l?h.jsx(Hu,{variant:l.variant,icon:l.icon,children:l.label}):h.jsx(Hu,{children:n})}function _z({metrics:n,isLoading:l}){return h.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[h.jsxs(It,{children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-sm font-medium",children:"Pending"}),h.jsx(lc,{className:"h-4 w-4 text-muted-foreground"})]}),h.jsx(en,{children:h.jsx("div",{className:"text-2xl font-bold",children:l?h.jsx(Mt,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.pending)??0})})]}),h.jsxs(It,{children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-sm font-medium",children:"Processing"}),h.jsx(Mt,{className:"h-4 w-4 text-muted-foreground"})]}),h.jsx(en,{children:h.jsx("div",{className:"text-2xl font-bold",children:l?h.jsx(Mt,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.processing)??0})})]}),h.jsxs(It,{children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-sm font-medium",children:"Acknowledged"}),h.jsx(nc,{className:"h-4 w-4 text-green-500"})]}),h.jsx(en,{children:h.jsx("div",{className:"text-2xl font-bold",children:l?h.jsx(Mt,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.acknowledged)??0})})]}),h.jsxs(It,{children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-sm font-medium",children:"Failed"}),h.jsx(ac,{className:"h-4 w-4 text-red-500"})]}),h.jsx(en,{children:h.jsx("div",{className:"text-2xl font-bold",children:l?h.jsx(Mt,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.failed)??0})})]}),h.jsxs(It,{children:[h.jsxs(gn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[h.jsx(yn,{className:"text-sm font-medium",children:"Dead Letter"}),h.jsx(PR,{className:"h-4 w-4 text-orange-500"})]}),h.jsx(en,{children:h.jsx("div",{className:"text-2xl font-bold",children:l?h.jsx(Mt,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.deadLetter)??0})})]})]})}function Tz({messages:n,isLoading:l}){return h.jsxs(It,{children:[h.jsxs(gn,{children:[h.jsx(yn,{children:"Recent Messages"}),h.jsx(di,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),h.jsx(en,{children:l?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):n!=null&&n.length?h.jsxs(mm,{children:[h.jsx(pm,{children:h.jsxs(hi,{children:[h.jsx(pn,{children:"ID"}),h.jsx(pn,{children:"Status"}),h.jsx(pn,{children:"Payload"}),h.jsx(pn,{children:"Attempt"}),h.jsx(pn,{children:"Created"})]})}),h.jsx(vm,{children:n.map(r=>h.jsxs(hi,{children:[h.jsxs(vn,{className:"font-mono text-xs",children:[r.id.slice(0,8),"..."]}),h.jsx(vn,{children:h.jsx(Rz,{status:r.status})}),h.jsx(vn,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),h.jsx(vn,{children:r.attempt}),h.jsx(vn,{className:"text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]},r.id))})]}):h.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No messages in this queue"})})]})}function Mz(){const{binding:n}=ec(),l=n||"",{data:r,isLoading:i}=Ca({queryKey:["queueMetrics",l],queryFn:()=>vz(l),enabled:!!l,refetchInterval:5e3}),{data:s,isLoading:c}=Ca({queryKey:["queueMessages",l],queryFn:()=>gz(l,10),enabled:!!l,refetchInterval:5e3});return h.jsx("div",{className:"flex flex-col",children:h.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[h.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Queue: ",l]}),h.jsx(_z,{metrics:r==null?void 0:r.metrics,isLoading:i}),h.jsx(Tz,{messages:s==null?void 0:s.messages,isLoading:c})]})})}function Az({status:n}){switch(n){case"COMPLETED":return h.jsx(nc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return h.jsx(Mt,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return h.jsx(ac,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return h.jsx(lc,{className:"h-5 w-5 text-gray-400"})}}function Dz(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 Oz({steps:n}){if(n.length===0)return h.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No steps recorded for this execution"});const l=n.reduce((r,i)=>r+(i.durationMs||0),0);return h.jsxs("div",{className:"space-y-4",children:[l>0&&h.jsxs("div",{className:"mb-6",children:[h.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[h.jsx("span",{children:"Total Duration"}),h.jsx("span",{children:Do(l)})]}),h.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const s=r.durationMs?r.durationMs/l*100:0;return h.jsx("div",{className:ue(Dz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${Do(r.durationMs)}`},r.id)})})]}),h.jsx("div",{className:"relative",children:n.map((r,i)=>h.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&h.jsx("div",{className:ue("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:h.jsx(Az,{status:r.status})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"font-medium",children:r.stepName}),h.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),h.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:Do(r.durationMs)})]}),r.errorMessage&&h.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"&&h.jsxs("details",{className:"mt-2",children:[h.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),h.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),h.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]})]})]},r.id))})]})}function kz(){const{binding:n,executionId:l}=ec(),r=n||"",i=l||"",{data:s,isLoading:c}=Ca({queryKey:["workflowExecution",r,i],queryFn:()=>bz(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),d=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return h.jsx("div",{className:"flex flex-col",children:h.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx(pl,{to:`/workflows/${r}`,children:h.jsxs(wa,{variant:"ghost",size:"sm",children:[h.jsx(NR,{className:"mr-2 h-4 w-4"}),"Back"]})}),h.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",i.slice(0,8),"..."]})]}),c?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):d?h.jsxs(h.Fragment,{children:[h.jsxs(It,{children:[h.jsx(gn,{children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx(yn,{children:"Execution Details"}),h.jsx(di,{children:d.startedAt?`Started ${new Date(d.startedAt).toLocaleString()}`:"Not started yet"})]}),h.jsx(qE,{status:d.status})]})}),h.jsxs(en,{children:[h.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),h.jsx("p",{className:"font-mono",children:Do(d.durationMs)})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),h.jsxs("p",{className:"font-mono",children:[d.stepsCompleted," / ",d.stepsCount]})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),h.jsx("p",{className:"font-mono text-sm",children:new Date(d.createdAt).toLocaleString()})]}),d.completedAt&&h.jsxs("div",{children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),h.jsx("p",{className:"font-mono text-sm",children:new Date(d.completedAt).toLocaleString()})]})]}),d.errorMessage&&h.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:d.errorMessage})]})]}),h.jsxs(It,{children:[h.jsxs(gn,{children:[h.jsx(yn,{children:"Steps"}),h.jsx(di,{children:"Workflow step execution timeline"})]}),h.jsx(en,{children:h.jsx(Oz,{steps:m})})]})]}):h.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Execution not found"})]})})}function zz({executions:n,isLoading:l,bindingName:r}){return h.jsxs(It,{children:[h.jsxs(gn,{children:[h.jsx(yn,{children:"Recent Executions"}),h.jsx(di,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),h.jsx(en,{children:l?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):n!=null&&n.length?h.jsxs(mm,{children:[h.jsx(pm,{children:h.jsxs(hi,{children:[h.jsx(pn,{children:"ID"}),h.jsx(pn,{children:"Status"}),h.jsx(pn,{children:"Steps"}),h.jsx(pn,{children:"Duration"}),h.jsx(pn,{children:"Started"}),h.jsx(pn,{})]})}),h.jsx(vm,{children:n.map(i=>h.jsxs(hi,{children:[h.jsxs(vn,{className:"font-mono text-xs",children:[i.id.slice(0,8),"..."]}),h.jsx(vn,{children:h.jsx(qE,{status:i.status})}),h.jsx(vn,{children:h.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),h.jsx(vn,{className:"text-sm",children:Do(i.durationMs)}),h.jsx(vn,{className:"text-xs text-muted-foreground",children:i.startedAt?new Date(i.startedAt).toLocaleString():"-"}),h.jsx(vn,{children:h.jsx(pl,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):h.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No executions for this workflow"})})]})}function Lz(){const{binding:n}=ec(),l=n||"",{data:r,isLoading:i}=Ca({queryKey:["workflowExecutions",l],queryFn:()=>yz(l,20),enabled:!!l,refetchInterval:5e3});return h.jsx("div",{className:"flex flex-col",children:h.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[h.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Workflow: ",l]}),h.jsx(zz,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:l})]})})}function Uz(){const n=_a(),{data:l,isLoading:r}=Ca({queryKey:["config"],queryFn:HE,staleTime:6e4}),i=l!=null&&l.db?Object.keys(l.db):[],s=l!=null&&l.queue?Object.keys(l.queue):[],c=l!=null&&l.workflow?Object.keys(l.workflow):[];return h.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[h.jsx("div",{className:"flex h-14 items-center border-b px-4",children:h.jsxs(pl,{to:"/",className:"flex items-center gap-2 font-semibold",children:[h.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),h.jsx("span",{children:"Ploy Dev"})]})}),h.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsx(Mt,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):h.jsxs("div",{className:"space-y-6",children:[i.length>0&&h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),h.jsx("div",{className:"space-y-1",children:i.map(d=>{const m=n.pathname===`/db/${d}`;return h.jsx(pl,{to:`/db/${d}`,children:h.jsxs(wa,{variant:m?"secondary":"ghost",className:ue("w-full justify-start",m&&"bg-muted"),children:[h.jsx(QR,{className:"mr-2 h-4 w-4"}),d]})},d)})})]}),s.length>0&&h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),h.jsx("div",{className:"space-y-1",children:s.map(d=>{const m=n.pathname===`/queues/${d}`;return h.jsx(pl,{to:`/queues/${d}`,children:h.jsxs(wa,{variant:m?"secondary":"ghost",className:ue("w-full justify-start",m&&"bg-muted"),children:[h.jsx(XR,{className:"mr-2 h-4 w-4"}),d]})},d)})})]}),c.length>0&&h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),h.jsx("div",{className:"space-y-1",children:c.map(d=>{const m=n.pathname.startsWith(`/workflows/${d}`);return h.jsx(pl,{to:`/workflows/${d}`,children:h.jsxs(wa,{variant:m?"secondary":"ghost",className:ue("w-full justify-start",m&&"bg-muted"),children:[h.jsx(VR,{className:"mr-2 h-4 w-4"}),d]})},d)})})]}),i.length===0&&s.length===0&&c.length===0&&h.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function Hz(){const{data:n,isLoading:l}=Ca({queryKey:["config"],queryFn:HE,staleTime:6e4});if(!l&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return h.jsx(Wd,{to:`/db/${r[0]}`,replace:!0});if(i.length>0)return h.jsx(Wd,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return h.jsx(Wd,{to:`/workflows/${s[0]}`,replace:!0})}return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[h.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),l?h.jsx(Mt,{className:"h-6 w-6 animate-spin text-muted-foreground"}):h.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function qz(){return h.jsxs("div",{className:"min-h-screen bg-background",children:[h.jsx(Uz,{}),h.jsx("main",{className:"pl-64",children:h.jsx("div",{className:"container mx-auto px-6 py-4",children:h.jsxs(YN,{children:[h.jsx(Zr,{path:"/",element:h.jsx(Hz,{})}),h.jsx(Zr,{path:"/db/:binding",element:h.jsx(Cz,{})}),h.jsx(Zr,{path:"/queues/:binding",element:h.jsx(Mz,{})}),h.jsx(Zr,{path:"/workflows/:binding",element:h.jsx(Lz,{})}),h.jsx(Zr,{path:"/workflows/:binding/:executionId",element:h.jsx(kz,{})})]})})})]})}const Bz=new Nj({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Jj.createRoot(document.getElementById("root")).render(h.jsx(v.StrictMode,{children:h.jsx(Dj,{client:Bz,children:h.jsx(fR,{children:h.jsx(qz,{})})})}));
|