@meetploy/cli 1.11.4 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,166 +0,0 @@
1
- var Ny=l=>{throw TypeError(l)};var df=(l,i,r)=>i.has(l)||Ny("Cannot "+r);var N=(l,i,r)=>(df(l,i,"read from private field"),r?r.call(l):i.get(l)),ce=(l,i,r)=>i.has(l)?Ny("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,r),P=(l,i,r,u)=>(df(l,i,"write to private field"),u?u.call(l,r):i.set(l,r),r),ve=(l,i,r)=>(df(l,i,"access private method"),r);var vu=(l,i,r,u)=>({set _(c){P(l,i,c,r)},get _(){return N(l,i,u)}});function kx(l,i){for(var r=0;r<i.length;r++){const u=i[r];if(typeof u!="string"&&!Array.isArray(u)){for(const c in u)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(u,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>u[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();function Lx(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var hf={exports:{}},Mr={};/**
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 Cy;function qx(){if(Cy)return Mr;Cy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:l,type:u,key:h,ref:c!==void 0?c:null,props:f}}return Mr.Fragment=i,Mr.jsx=r,Mr.jsxs=r,Mr}var Ty;function Hx(){return Ty||(Ty=1,hf.exports=qx()),hf.exports}var m=Hx(),_i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ta=typeof window>"u"||"Deno"in globalThis;function cn(){}function Bx(l,i){return typeof l=="function"?l(i):l}function Af(l){return typeof l=="number"&&l>=0&&l!==1/0}function wg(l,i){return Math.max(l+(i||0)-Date.now(),0)}function vi(l,i){return typeof l=="function"?l(i):l}function vn(l,i){return typeof l=="function"?l(i):l}function jy(l,i){const{type:r="all",exact:u,fetchStatus:c,predicate:f,queryKey:h,stale:g}=l;if(h){if(u){if(i.queryHash!==If(h,i.options))return!1}else if(!Hr(i.queryKey,h))return!1}if(r!=="all"){const y=i.isActive();if(r==="active"&&!y||r==="inactive"&&y)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||c&&c!==i.state.fetchStatus||f&&!f(i))}function Ay(l,i){const{exact:r,status:u,predicate:c,mutationKey:f}=l;if(f){if(!i.options.mutationKey)return!1;if(r){if(ja(i.options.mutationKey)!==ja(f))return!1}else if(!Hr(i.options.mutationKey,f))return!1}return!(u&&i.state.status!==u||c&&!c(i))}function If(l,i){return((i==null?void 0:i.queryKeyHashFn)||ja)(l)}function ja(l){return JSON.stringify(l,(i,r)=>Rf(r)?Object.keys(r).sort().reduce((u,c)=>(u[c]=r[c],u),{}):r)}function Hr(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(r=>Hr(l[r],i[r])):!1}function Eg(l,i){if(l===i)return l;const r=Ry(l)&&Ry(i);if(r||Rf(l)&&Rf(i)){const u=r?l:Object.keys(l),c=u.length,f=r?i:Object.keys(i),h=f.length,g=r?[]:{};let y=0;for(let p=0;p<h;p++){const x=r?p:f[p];(!r&&u.includes(x)||r)&&l[x]===void 0&&i[x]===void 0?(g[x]=void 0,y++):(g[x]=Eg(l[x],i[x]),g[x]===l[x]&&l[x]!==void 0&&y++)}return c===h&&y===c?l:g}return i}function Ou(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const r in l)if(l[r]!==i[r])return!1;return!0}function Ry(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Rf(l){if(!zy(l))return!1;const i=l.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!zy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function zy(l){return Object.prototype.toString.call(l)==="[object Object]"}function Gx(l){return new Promise(i=>{setTimeout(i,l)})}function zf(l,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,i):r.structuralSharing!==!1?Eg(l,i):i}function Qx(l,i,r=0){const u=[...l,i];return r&&u.length>r?u.slice(1):u}function Yx(l,i,r=0){const u=[i,...l];return r&&u.length>r?u.slice(0,-1):u}var ed=Symbol();function Ng(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===ed?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}var ga,Ll,bi,dg,Xx=(dg=class extends _i{constructor(){super();ce(this,ga);ce(this,Ll);ce(this,bi);P(this,bi,i=>{if(!Ta&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,Ll)||this.setEventListener(N(this,bi))}onUnsubscribe(){var i;this.hasListeners()||((i=N(this,Ll))==null||i.call(this),P(this,Ll,void 0))}setEventListener(i){var r;P(this,bi,i),(r=N(this,Ll))==null||r.call(this),P(this,Ll,i(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(i){N(this,ga)!==i&&(P(this,ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof N(this,ga)=="boolean"?N(this,ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},ga=new WeakMap,Ll=new WeakMap,bi=new WeakMap,dg),td=new Xx,xi,ql,Si,hg,Vx=(hg=class extends _i{constructor(){super();ce(this,xi,!0);ce(this,ql);ce(this,Si);P(this,Si,i=>{if(!Ta&&window.addEventListener){const r=()=>i(!0),u=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",u)}}})}onSubscribe(){N(this,ql)||this.setEventListener(N(this,Si))}onUnsubscribe(){var i;this.hasListeners()||((i=N(this,ql))==null||i.call(this),P(this,ql,void 0))}setEventListener(i){var r;P(this,Si,i),(r=N(this,ql))==null||r.call(this),P(this,ql,i(this.setOnline.bind(this)))}setOnline(i){N(this,xi)!==i&&(P(this,xi,i),this.listeners.forEach(u=>{u(i)}))}isOnline(){return N(this,xi)}},xi=new WeakMap,ql=new WeakMap,Si=new WeakMap,hg),Mu=new Vx;function Of(){let l,i;const r=new Promise((c,f)=>{l=c,i=f});r.status="pending",r.catch(()=>{});function u(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{u({status:"fulfilled",value:c}),l(c)},r.reject=c=>{u({status:"rejected",reason:c}),i(c)},r}function Kx(l){return Math.min(1e3*2**l,3e4)}function Cg(l){return(l??"online")==="online"?Mu.isOnline():!0}var Tg=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function mf(l){return l instanceof Tg}function jg(l){let i=!1,r=0,u=!1,c;const f=Of(),h=R=>{var M;u||(w(new Tg(R)),(M=l.abort)==null||M.call(l))},g=()=>{i=!0},y=()=>{i=!1},p=()=>td.isFocused()&&(l.networkMode==="always"||Mu.isOnline())&&l.canRun(),x=()=>Cg(l.networkMode)&&l.canRun(),S=R=>{var M;u||(u=!0,(M=l.onSuccess)==null||M.call(l,R),c==null||c(),f.resolve(R))},w=R=>{var M;u||(u=!0,(M=l.onError)==null||M.call(l,R),c==null||c(),f.reject(R))},z=()=>new Promise(R=>{var M;c=_=>{(u||p())&&R(_)},(M=l.onPause)==null||M.call(l)}).then(()=>{var R;c=void 0,u||(R=l.onContinue)==null||R.call(l)}),j=()=>{if(u)return;let R;const M=r===0?l.initialPromise:void 0;try{R=M??l.fn()}catch(_){R=Promise.reject(_)}Promise.resolve(R).then(S).catch(_=>{var te;if(u)return;const G=l.retry??(Ta?0:3),X=l.retryDelay??Kx,Z=typeof X=="function"?X(r,_):X,I=G===!0||typeof G=="number"&&r<G||typeof G=="function"&&G(r,_);if(i||!I){w(_);return}r++,(te=l.onFail)==null||te.call(l,r,_),Gx(Z).then(()=>p()?void 0:z()).then(()=>{i?w(_):j()})})};return{promise:f,cancel:h,continue:()=>(c==null||c(),f),cancelRetry:g,continueRetry:y,canStart:x,start:()=>(x()?j():z().then(j),f)}}var Zx=l=>setTimeout(l,0);function $x(){let l=[],i=0,r=g=>{g()},u=g=>{g()},c=Zx;const f=g=>{i?l.push(g):c(()=>{r(g)})},h=()=>{const g=l;l=[],g.length&&c(()=>{u(()=>{g.forEach(y=>{r(y)})})})};return{batch:g=>{let y;i++;try{y=g()}finally{i--,i||h()}return y},batchCalls:g=>(...y)=>{f(()=>{g(...y)})},schedule:f,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{u=g},setScheduler:g=>{c=g}}}var st=$x(),va,mg,Ag=(mg=class{constructor(){ce(this,va)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Af(this.gcTime)&&P(this,va,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Ta?1/0:300*1e3))}clearGcTimeout(){N(this,va)&&(clearTimeout(N(this,va)),P(this,va,void 0))}},va=new WeakMap,mg),wi,Ei,on,ba,vt,Yr,xa,yn,Wn,pg,Jx=(pg=class extends Ag{constructor(i){super();ce(this,yn);ce(this,wi);ce(this,Ei);ce(this,on);ce(this,ba);ce(this,vt);ce(this,Yr);ce(this,xa);P(this,xa,!1),P(this,Yr,i.defaultOptions),this.setOptions(i.options),this.observers=[],P(this,ba,i.client),P(this,on,N(this,ba).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,P(this,wi,Fx(this.options)),this.state=i.state??N(this,wi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=N(this,vt))==null?void 0:i.promise}setOptions(i){this.options={...N(this,Yr),...i},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,on).remove(this)}setData(i,r){const u=zf(this.state.data,i,this.options);return ve(this,yn,Wn).call(this,{data:u,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),u}setState(i,r){ve(this,yn,Wn).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var u,c;const r=(u=N(this,vt))==null?void 0:u.promise;return(c=N(this,vt))==null||c.cancel(i),r?r.then(cn).catch(cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,wi))}isActive(){return this.observers.some(i=>vn(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ed||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(i=0){return this.state.isInvalidated||this.state.data===void 0||!wg(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(u=>u.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=N(this,vt))==null||r.continue()}onOnline(){var r;const i=this.observers.find(u=>u.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=N(this,vt))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),N(this,on).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(N(this,vt)&&(N(this,xa)?N(this,vt).cancel({revert:!0}):N(this,vt).cancelRetry()),this.scheduleGc()),N(this,on).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,yn,Wn).call(this,{type:"invalidate"})}fetch(i,r){var y,p,x;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(N(this,vt))return N(this,vt).continueRetry(),N(this,vt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const u=new AbortController,c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(P(this,xa,!0),u.signal)})},f=()=>{const S=Ng(this.options,r),w={client:N(this,ba),queryKey:this.queryKey,meta:this.meta};return c(w),P(this,xa,!1),this.options.persister?this.options.persister(S,w,this):S(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:N(this,ba),state:this.state,fetchFn:f};c(h),(y=this.options.behavior)==null||y.onFetch(h,this),P(this,Ei,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=h.fetchOptions)==null?void 0:p.meta))&&ve(this,yn,Wn).call(this,{type:"fetch",meta:(x=h.fetchOptions)==null?void 0:x.meta});const g=S=>{var w,z,j,R;mf(S)&&S.silent||ve(this,yn,Wn).call(this,{type:"error",error:S}),mf(S)||((z=(w=N(this,on).config).onError)==null||z.call(w,S,this),(R=(j=N(this,on).config).onSettled)==null||R.call(j,this.state.data,S,this)),this.scheduleGc()};return P(this,vt,jg({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:u.abort.bind(u),onSuccess:S=>{var w,z,j,R;if(S===void 0){g(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(S)}catch(M){g(M);return}(z=(w=N(this,on).config).onSuccess)==null||z.call(w,S,this),(R=(j=N(this,on).config).onSettled)==null||R.call(j,S,this.state.error,this),this.scheduleGc()},onError:g,onFail:(S,w)=>{ve(this,yn,Wn).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{ve(this,yn,Wn).call(this,{type:"pause"})},onContinue:()=>{ve(this,yn,Wn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),N(this,vt).start()}},wi=new WeakMap,Ei=new WeakMap,on=new WeakMap,ba=new WeakMap,vt=new WeakMap,Yr=new WeakMap,xa=new WeakMap,yn=new WeakSet,Wn=function(i){const r=u=>{switch(i.type){case"failed":return{...u,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Rg(u.data,this.options),fetchMeta:i.meta??null};case"success":return{...u,data:i.data,dataUpdateCount:u.dataUpdateCount+1,dataUpdatedAt:i.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=i.error;return mf(c)&&c.revert&&N(this,Ei)?{...N(this,Ei),fetchStatus:"idle"}:{...u,error:c,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...i.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),N(this,on).notify({query:this,type:"updated",action:i})})},pg);function Rg(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cg(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Fx(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,r=i!==void 0,u=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Cn,yg,Wx=(yg=class extends _i{constructor(i={}){super();ce(this,Cn);this.config=i,P(this,Cn,new Map)}build(i,r,u){const c=r.queryKey,f=r.queryHash??If(c,r);let h=this.get(f);return h||(h=new Jx({client:i,queryKey:c,queryHash:f,options:i.defaultQueryOptions(r),state:u,defaultOptions:i.getQueryDefaults(c)}),this.add(h)),h}add(i){N(this,Cn).has(i.queryHash)||(N(this,Cn).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=N(this,Cn).get(i.queryHash);r&&(i.destroy(),r===i&&N(this,Cn).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){st.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return N(this,Cn).get(i)}getAll(){return[...N(this,Cn).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(u=>jy(r,u))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(u=>jy(i,u)):r}notify(i){st.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){st.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},Cn=new WeakMap,yg),Tn,wt,Sa,jn,Ul,gg,Px=(gg=class extends Ag{constructor(i){super();ce(this,jn);ce(this,Tn);ce(this,wt);ce(this,Sa);this.mutationId=i.mutationId,P(this,wt,i.mutationCache),P(this,Tn,[]),this.state=i.state||zg(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){N(this,Tn).includes(i)||(N(this,Tn).push(i),this.clearGcTimeout(),N(this,wt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){P(this,Tn,N(this,Tn).filter(r=>r!==i)),this.scheduleGc(),N(this,wt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){N(this,Tn).length||(this.state.status==="pending"?this.scheduleGc():N(this,wt).remove(this))}continue(){var i;return((i=N(this,Sa))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var f,h,g,y,p,x,S,w,z,j,R,M,_,G,X,Z,I,te,W,L;const r=()=>{ve(this,jn,Ul).call(this,{type:"continue"})};P(this,Sa,jg({fn:()=>this.options.mutationFn?this.options.mutationFn(i):Promise.reject(new Error("No mutationFn found")),onFail:($,ue)=>{ve(this,jn,Ul).call(this,{type:"failed",failureCount:$,error:ue})},onPause:()=>{ve(this,jn,Ul).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,wt).canRun(this)}));const u=this.state.status==="pending",c=!N(this,Sa).canStart();try{if(u)r();else{ve(this,jn,Ul).call(this,{type:"pending",variables:i,isPaused:c}),await((h=(f=N(this,wt).config).onMutate)==null?void 0:h.call(f,i,this));const ue=await((y=(g=this.options).onMutate)==null?void 0:y.call(g,i));ue!==this.state.context&&ve(this,jn,Ul).call(this,{type:"pending",context:ue,variables:i,isPaused:c})}const $=await N(this,Sa).start();return await((x=(p=N(this,wt).config).onSuccess)==null?void 0:x.call(p,$,i,this.state.context,this)),await((w=(S=this.options).onSuccess)==null?void 0:w.call(S,$,i,this.state.context)),await((j=(z=N(this,wt).config).onSettled)==null?void 0:j.call(z,$,null,this.state.variables,this.state.context,this)),await((M=(R=this.options).onSettled)==null?void 0:M.call(R,$,null,i,this.state.context)),ve(this,jn,Ul).call(this,{type:"success",data:$}),$}catch($){try{throw await((G=(_=N(this,wt).config).onError)==null?void 0:G.call(_,$,i,this.state.context,this)),await((Z=(X=this.options).onError)==null?void 0:Z.call(X,$,i,this.state.context)),await((te=(I=N(this,wt).config).onSettled)==null?void 0:te.call(I,void 0,$,this.state.variables,this.state.context,this)),await((L=(W=this.options).onSettled)==null?void 0:L.call(W,void 0,$,i,this.state.context)),$}finally{ve(this,jn,Ul).call(this,{type:"error",error:$})}}finally{N(this,wt).runNext(this)}}},Tn=new WeakMap,wt=new WeakMap,Sa=new WeakMap,jn=new WeakSet,Ul=function(i){const r=u=>{switch(i.type){case"failed":return{...u,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...u,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:i.error,failureCount:u.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{N(this,Tn).forEach(u=>{u.onMutationUpdate(i)}),N(this,wt).notify({mutation:this,type:"updated",action:i})})},gg);function zg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pn,gn,Xr,vg,Ix=(vg=class extends _i{constructor(i={}){super();ce(this,Pn);ce(this,gn);ce(this,Xr);this.config=i,P(this,Pn,new Set),P(this,gn,new Map),P(this,Xr,0)}build(i,r,u){const c=new Px({mutationCache:this,mutationId:++vu(this,Xr)._,options:i.defaultMutationOptions(r),state:u});return this.add(c),c}add(i){N(this,Pn).add(i);const r=bu(i);if(typeof r=="string"){const u=N(this,gn).get(r);u?u.push(i):N(this,gn).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(N(this,Pn).delete(i)){const r=bu(i);if(typeof r=="string"){const u=N(this,gn).get(r);if(u)if(u.length>1){const c=u.indexOf(i);c!==-1&&u.splice(c,1)}else u[0]===i&&N(this,gn).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=bu(i);if(typeof r=="string"){const u=N(this,gn).get(r),c=u==null?void 0:u.find(f=>f.state.status==="pending");return!c||c===i}else return!0}runNext(i){var u;const r=bu(i);if(typeof r=="string"){const c=(u=N(this,gn).get(r))==null?void 0:u.find(f=>f!==i&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{N(this,Pn).forEach(i=>{this.notify({type:"removed",mutation:i})}),N(this,Pn).clear(),N(this,gn).clear()})}getAll(){return Array.from(N(this,Pn))}find(i){const r={exact:!0,...i};return this.getAll().find(u=>Ay(r,u))}findAll(i={}){return this.getAll().filter(r=>Ay(i,r))}notify(i){st.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(i.map(r=>r.continue().catch(cn))))}},Pn=new WeakMap,gn=new WeakMap,Xr=new WeakMap,vg);function bu(l){var i;return(i=l.options.scope)==null?void 0:i.id}function Oy(l){return{onFetch:(i,r)=>{var x,S,w,z,j;const u=i.options,c=(w=(S=(x=i.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,f=((z=i.state.data)==null?void 0:z.pages)||[],h=((j=i.state.data)==null?void 0:j.pageParams)||[];let g={pages:[],pageParams:[]},y=0;const p=async()=>{let R=!1;const M=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(i.signal.aborted?R=!0:i.signal.addEventListener("abort",()=>{R=!0}),i.signal)})},_=Ng(i.options,i.fetchOptions),G=async(X,Z,I)=>{if(R)return Promise.reject();if(Z==null&&X.pages.length)return Promise.resolve(X);const te={client:i.client,queryKey:i.queryKey,pageParam:Z,direction:I?"backward":"forward",meta:i.options.meta};M(te);const W=await _(te),{maxPages:L}=i.options,$=I?Yx:Qx;return{pages:$(X.pages,W,L),pageParams:$(X.pageParams,Z,L)}};if(c&&f.length){const X=c==="backward",Z=X?e1:My,I={pages:f,pageParams:h},te=Z(u,I);g=await G(I,te,X)}else{const X=l??f.length;do{const Z=y===0?h[0]??u.initialPageParam:My(u,g);if(y>0&&Z==null)break;g=await G(g,Z),y++}while(y<X)}return g};i.options.persister?i.fetchFn=()=>{var R,M;return(M=(R=i.options).persister)==null?void 0:M.call(R,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=p}}}function My(l,{pages:i,pageParams:r}){const u=i.length-1;return i.length>0?l.getNextPageParam(i[u],i,r[u],r):void 0}function e1(l,{pages:i,pageParams:r}){var u;return i.length>0?(u=l.getPreviousPageParam)==null?void 0:u.call(l,i[0],i,r[0],r):void 0}var Fe,Hl,Bl,Ni,Ci,Gl,Ti,ji,bg,t1=(bg=class{constructor(l={}){ce(this,Fe);ce(this,Hl);ce(this,Bl);ce(this,Ni);ce(this,Ci);ce(this,Gl);ce(this,Ti);ce(this,ji);P(this,Fe,l.queryCache||new Wx),P(this,Hl,l.mutationCache||new Ix),P(this,Bl,l.defaultOptions||{}),P(this,Ni,new Map),P(this,Ci,new Map),P(this,Gl,0)}mount(){vu(this,Gl)._++,N(this,Gl)===1&&(P(this,Ti,td.subscribe(async l=>{l&&(await this.resumePausedMutations(),N(this,Fe).onFocus())})),P(this,ji,Mu.subscribe(async l=>{l&&(await this.resumePausedMutations(),N(this,Fe).onOnline())})))}unmount(){var l,i;vu(this,Gl)._--,N(this,Gl)===0&&((l=N(this,Ti))==null||l.call(this),P(this,Ti,void 0),(i=N(this,ji))==null||i.call(this),P(this,ji,void 0))}isFetching(l){return N(this,Fe).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return N(this,Hl).findAll({...l,status:"pending"}).length}getQueryData(l){var r;const i=this.defaultQueryOptions({queryKey:l});return(r=N(this,Fe).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),r=N(this,Fe).build(this,i),u=r.state.data;return u===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(vi(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(u))}getQueriesData(l){return N(this,Fe).findAll(l).map(({queryKey:i,state:r})=>{const u=r.data;return[i,u]})}setQueryData(l,i,r){const u=this.defaultQueryOptions({queryKey:l}),c=N(this,Fe).get(u.queryHash),f=c==null?void 0:c.state.data,h=Bx(i,f);if(h!==void 0)return N(this,Fe).build(this,u).setData(h,{...r,manual:!0})}setQueriesData(l,i,r){return st.batch(()=>N(this,Fe).findAll(l).map(({queryKey:u})=>[u,this.setQueryData(u,i,r)]))}getQueryState(l){var r;const i=this.defaultQueryOptions({queryKey:l});return(r=N(this,Fe).get(i.queryHash))==null?void 0:r.state}removeQueries(l){const i=N(this,Fe);st.batch(()=>{i.findAll(l).forEach(r=>{i.remove(r)})})}resetQueries(l,i){const r=N(this,Fe);return st.batch(()=>(r.findAll(l).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const r={revert:!0,...i},u=st.batch(()=>N(this,Fe).findAll(l).map(c=>c.cancel(r)));return Promise.all(u).then(cn).catch(cn)}invalidateQueries(l,i={}){return st.batch(()=>(N(this,Fe).findAll(l).forEach(r=>{r.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},u=st.batch(()=>N(this,Fe).findAll(l).filter(c=>!c.isDisabled()).map(c=>{let f=c.fetch(void 0,r);return r.throwOnError||(f=f.catch(cn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(cn)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const r=N(this,Fe).build(this,i);return r.isStaleByTime(vi(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(cn).catch(cn)}fetchInfiniteQuery(l){return l.behavior=Oy(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(cn).catch(cn)}ensureInfiniteQueryData(l){return l.behavior=Oy(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Mu.isOnline()?N(this,Hl).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Fe)}getMutationCache(){return N(this,Hl)}getDefaultOptions(){return N(this,Bl)}setDefaultOptions(l){P(this,Bl,l)}setQueryDefaults(l,i){N(this,Ni).set(ja(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...N(this,Ni).values()],r={};return i.forEach(u=>{Hr(l,u.queryKey)&&Object.assign(r,u.defaultOptions)}),r}setMutationDefaults(l,i){N(this,Ci).set(ja(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...N(this,Ci).values()],r={};return i.forEach(u=>{Hr(l,u.mutationKey)&&Object.assign(r,u.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const i={...N(this,Bl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=If(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===ed&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...N(this,Bl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){N(this,Fe).clear(),N(this,Hl).clear()}},Fe=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,Ni=new WeakMap,Ci=new WeakMap,Gl=new WeakMap,Ti=new WeakMap,ji=new WeakMap,bg),Dt,Ae,Vr,Et,wa,Ai,Ql,Yl,Kr,Ri,zi,Ea,Na,Xl,Oi,ke,qr,Mf,_f,Df,Uf,kf,Lf,qf,Og,xg,n1=(xg=class extends _i{constructor(i,r){super();ce(this,ke);ce(this,Dt);ce(this,Ae);ce(this,Vr);ce(this,Et);ce(this,wa);ce(this,Ai);ce(this,Ql);ce(this,Yl);ce(this,Kr);ce(this,Ri);ce(this,zi);ce(this,Ea);ce(this,Na);ce(this,Xl);ce(this,Oi,new Set);this.options=r,P(this,Dt,i),P(this,Yl,null),P(this,Ql,Of()),this.options.experimental_prefetchInRender||N(this,Ql).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&&(N(this,Ae).addObserver(this),_y(N(this,Ae),this.options)?ve(this,ke,qr).call(this):this.updateResult(),ve(this,ke,Uf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hf(N(this,Ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hf(N(this,Ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,ke,kf).call(this),ve(this,ke,Lf).call(this),N(this,Ae).removeObserver(this)}setOptions(i){const r=this.options,u=N(this,Ae);if(this.options=N(this,Dt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vn(this.options.enabled,N(this,Ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,ke,qf).call(this),N(this,Ae).setOptions(this.options),r._defaulted&&!Ou(this.options,r)&&N(this,Dt).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Ae),observer:this});const c=this.hasListeners();c&&Dy(N(this,Ae),u,this.options,r)&&ve(this,ke,qr).call(this),this.updateResult(),c&&(N(this,Ae)!==u||vn(this.options.enabled,N(this,Ae))!==vn(r.enabled,N(this,Ae))||vi(this.options.staleTime,N(this,Ae))!==vi(r.staleTime,N(this,Ae)))&&ve(this,ke,Mf).call(this);const f=ve(this,ke,_f).call(this);c&&(N(this,Ae)!==u||vn(this.options.enabled,N(this,Ae))!==vn(r.enabled,N(this,Ae))||f!==N(this,Xl))&&ve(this,ke,Df).call(this,f)}getOptimisticResult(i){const r=N(this,Dt).getQueryCache().build(N(this,Dt),i),u=this.createResult(r,i);return a1(this,u)&&(P(this,Et,u),P(this,Ai,this.options),P(this,wa,N(this,Ae).state)),u}getCurrentResult(){return N(this,Et)}trackResult(i,r){const u={};return Object.keys(i).forEach(c=>{Object.defineProperty(u,c,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(c),r==null||r(c),i[c])})}),u}trackProp(i){N(this,Oi).add(i)}getCurrentQuery(){return N(this,Ae)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=N(this,Dt).defaultQueryOptions(i),u=N(this,Dt).getQueryCache().build(N(this,Dt),r);return u.fetch().then(()=>this.createResult(u,r))}fetch(i){return ve(this,ke,qr).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,Et)))}createResult(i,r){var $;const u=N(this,Ae),c=this.options,f=N(this,Et),h=N(this,wa),g=N(this,Ai),p=i!==u?i.state:N(this,Vr),{state:x}=i;let S={...x},w=!1,z;if(r._optimisticResults){const ue=this.hasListeners(),Se=!ue&&_y(i,r),Ne=ue&&Dy(i,u,r,c);(Se||Ne)&&(S={...S,...Rg(x.data,i.options)}),r._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:j,errorUpdatedAt:R,status:M}=S;z=S.data;let _=!1;if(r.placeholderData!==void 0&&z===void 0&&M==="pending"){let ue;f!=null&&f.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(ue=f.data,_=!0):ue=typeof r.placeholderData=="function"?r.placeholderData(($=N(this,zi))==null?void 0:$.state.data,N(this,zi)):r.placeholderData,ue!==void 0&&(M="success",z=zf(f==null?void 0:f.data,ue,r),w=!0)}if(r.select&&z!==void 0&&!_)if(f&&z===(h==null?void 0:h.data)&&r.select===N(this,Kr))z=N(this,Ri);else try{P(this,Kr,r.select),z=r.select(z),z=zf(f==null?void 0:f.data,z,r),P(this,Ri,z),P(this,Yl,null)}catch(ue){P(this,Yl,ue)}N(this,Yl)&&(j=N(this,Yl),z=N(this,Ri),R=Date.now(),M="error");const G=S.fetchStatus==="fetching",X=M==="pending",Z=M==="error",I=X&&G,te=z!==void 0,L={status:M,fetchStatus:S.fetchStatus,isPending:X,isSuccess:M==="success",isError:Z,isInitialLoading:I,isLoading:I,data:z,dataUpdatedAt:S.dataUpdatedAt,error:j,errorUpdatedAt:R,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>p.dataUpdateCount||S.errorUpdateCount>p.errorUpdateCount,isFetching:G,isRefetching:G&&!X,isLoadingError:Z&&!te,isPaused:S.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:Z&&te,isStale:nd(i,r),refetch:this.refetch,promise:N(this,Ql)};if(this.options.experimental_prefetchInRender){const ue=he=>{L.status==="error"?he.reject(L.error):L.data!==void 0&&he.resolve(L.data)},Se=()=>{const he=P(this,Ql,L.promise=Of());ue(he)},Ne=N(this,Ql);switch(Ne.status){case"pending":i.queryHash===u.queryHash&&ue(Ne);break;case"fulfilled":(L.status==="error"||L.data!==Ne.value)&&Se();break;case"rejected":(L.status!=="error"||L.error!==Ne.reason)&&Se();break}}return L}updateResult(){const i=N(this,Et),r=this.createResult(N(this,Ae),this.options);if(P(this,wa,N(this,Ae).state),P(this,Ai,this.options),N(this,wa).data!==void 0&&P(this,zi,N(this,Ae)),Ou(r,i))return;P(this,Et,r);const u=()=>{if(!i)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!N(this,Oi).size)return!0;const h=new Set(f??N(this,Oi));return this.options.throwOnError&&h.add("error"),Object.keys(N(this,Et)).some(g=>{const y=g;return N(this,Et)[y]!==i[y]&&h.has(y)})};ve(this,ke,Og).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,ke,Uf).call(this)}},Dt=new WeakMap,Ae=new WeakMap,Vr=new WeakMap,Et=new WeakMap,wa=new WeakMap,Ai=new WeakMap,Ql=new WeakMap,Yl=new WeakMap,Kr=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Ea=new WeakMap,Na=new WeakMap,Xl=new WeakMap,Oi=new WeakMap,ke=new WeakSet,qr=function(i){ve(this,ke,qf).call(this);let r=N(this,Ae).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(cn)),r},Mf=function(){ve(this,ke,kf).call(this);const i=vi(this.options.staleTime,N(this,Ae));if(Ta||N(this,Et).isStale||!Af(i))return;const u=wg(N(this,Et).dataUpdatedAt,i)+1;P(this,Ea,setTimeout(()=>{N(this,Et).isStale||this.updateResult()},u))},_f=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Ae)):this.options.refetchInterval)??!1},Df=function(i){ve(this,ke,Lf).call(this),P(this,Xl,i),!(Ta||vn(this.options.enabled,N(this,Ae))===!1||!Af(N(this,Xl))||N(this,Xl)===0)&&P(this,Na,setInterval(()=>{(this.options.refetchIntervalInBackground||td.isFocused())&&ve(this,ke,qr).call(this)},N(this,Xl)))},Uf=function(){ve(this,ke,Mf).call(this),ve(this,ke,Df).call(this,ve(this,ke,_f).call(this))},kf=function(){N(this,Ea)&&(clearTimeout(N(this,Ea)),P(this,Ea,void 0))},Lf=function(){N(this,Na)&&(clearInterval(N(this,Na)),P(this,Na,void 0))},qf=function(){const i=N(this,Dt).getQueryCache().build(N(this,Dt),this.options);if(i===N(this,Ae))return;const r=N(this,Ae);P(this,Ae,i),P(this,Vr,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Og=function(i){st.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(N(this,Et))}),N(this,Dt).getQueryCache().notify({query:N(this,Ae),type:"observerResultsUpdated"})})},xg);function l1(l,i){return vn(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function _y(l,i){return l1(l,i)||l.state.data!==void 0&&Hf(l,i,i.refetchOnMount)}function Hf(l,i,r){if(vn(i.enabled,l)!==!1){const u=typeof r=="function"?r(l):r;return u==="always"||u!==!1&&nd(l,i)}return!1}function Dy(l,i,r,u){return(l!==i||vn(u.enabled,l)===!1)&&(!r.suspense||l.state.status!=="error")&&nd(l,r)}function nd(l,i){return vn(i.enabled,l)!==!1&&l.isStaleByTime(vi(i.staleTime,l))}function a1(l,i){return!Ou(l.getCurrentResult(),i)}var Vl,Kl,Ut,In,nl,ju,Bf,Sg,i1=(Sg=class extends _i{constructor(r,u){super();ce(this,nl);ce(this,Vl);ce(this,Kl);ce(this,Ut);ce(this,In);P(this,Vl,r),this.setOptions(u),this.bindMethods(),ve(this,nl,ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var c;const u=this.options;this.options=N(this,Vl).defaultMutationOptions(r),Ou(this.options,u)||N(this,Vl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,Ut),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&ja(u.mutationKey)!==ja(this.options.mutationKey)?this.reset():((c=N(this,Ut))==null?void 0:c.state.status)==="pending"&&N(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=N(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){ve(this,nl,ju).call(this),ve(this,nl,Bf).call(this,r)}getCurrentResult(){return N(this,Kl)}reset(){var r;(r=N(this,Ut))==null||r.removeObserver(this),P(this,Ut,void 0),ve(this,nl,ju).call(this),ve(this,nl,Bf).call(this)}mutate(r,u){var c;return P(this,In,u),(c=N(this,Ut))==null||c.removeObserver(this),P(this,Ut,N(this,Vl).getMutationCache().build(N(this,Vl),this.options)),N(this,Ut).addObserver(this),N(this,Ut).execute(r)}},Vl=new WeakMap,Kl=new WeakMap,Ut=new WeakMap,In=new WeakMap,nl=new WeakSet,ju=function(){var u;const r=((u=N(this,Ut))==null?void 0:u.state)??zg();P(this,Kl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Bf=function(r){st.batch(()=>{var u,c,f,h,g,y,p,x;if(N(this,In)&&this.hasListeners()){const S=N(this,Kl).variables,w=N(this,Kl).context;(r==null?void 0:r.type)==="success"?((c=(u=N(this,In)).onSuccess)==null||c.call(u,r.data,S,w),(h=(f=N(this,In)).onSettled)==null||h.call(f,r.data,null,S,w)):(r==null?void 0:r.type)==="error"&&((y=(g=N(this,In)).onError)==null||y.call(g,r.error,S,w),(x=(p=N(this,In)).onSettled)==null||x.call(p,void 0,r.error,S,w))}this.listeners.forEach(S=>{S(N(this,Kl))})})},Sg),pf={exports:{}},me={};/**
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 Uy;function r1(){if(Uy)return me;Uy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),w=Symbol.iterator;function z(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,M={};function _(T,Q,K){this.props=T,this.context=Q,this.refs=M,this.updater=K||j}_.prototype.isReactComponent={},_.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Q,"setState")},_.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function G(){}G.prototype=_.prototype;function X(T,Q,K){this.props=T,this.context=Q,this.refs=M,this.updater=K||j}var Z=X.prototype=new G;Z.constructor=X,R(Z,_.prototype),Z.isPureReactComponent=!0;var I=Array.isArray;function te(){}var W={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function $(T,Q,K){var F=K.ref;return{$$typeof:l,type:T,key:Q,ref:F!==void 0?F:null,props:K}}function ue(T,Q){return $(T.type,Q,T.props)}function Se(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function Ne(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return Q[K]})}var he=/\/+/g;function Ze(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?Ne(""+T.key):Q.toString(36)}function Ue(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(te,te):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function k(T,Q,K,F,fe){var pe=typeof T;(pe==="undefined"||pe==="boolean")&&(T=null);var ee=!1;if(T===null)ee=!0;else switch(pe){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(T.$$typeof){case l:case i:ee=!0;break;case x:return ee=T._init,k(ee(T._payload),Q,K,F,fe)}}if(ee)return fe=fe(T),ee=F===""?"."+Ze(T,0):F,I(fe)?(K="",ee!=null&&(K=ee.replace(he,"$&/")+"/"),k(fe,Q,K,"",function(xt){return xt})):fe!=null&&(Se(fe)&&(fe=ue(fe,K+(fe.key==null||T&&T.key===fe.key?"":(""+fe.key).replace(he,"$&/")+"/")+ee)),Q.push(fe)),1;ee=0;var We=F===""?".":F+":";if(I(T))for(var _e=0;_e<T.length;_e++)F=T[_e],pe=We+Ze(F,_e),ee+=k(F,Q,K,pe,fe);else if(_e=z(T),typeof _e=="function")for(T=_e.call(T),_e=0;!(F=T.next()).done;)F=F.value,pe=We+Ze(F,_e++),ee+=k(F,Q,K,pe,fe);else if(pe==="object"){if(typeof T.then=="function")return k(Ue(T),Q,K,F,fe);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ee}function J(T,Q,K){if(T==null)return T;var F=[],fe=0;return k(T,F,"","",function(pe){return Q.call(K,pe,fe++)}),F}function q(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var Re=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ze={map:J,forEach:function(T,Q,K){J(T,function(){Q.apply(this,arguments)},K)},count:function(T){var Q=0;return J(T,function(){Q++}),Q},toArray:function(T){return J(T,function(Q){return Q})||[]},only:function(T){if(!Se(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return me.Activity=S,me.Children=ze,me.Component=_,me.Fragment=r,me.Profiler=c,me.PureComponent=X,me.StrictMode=u,me.Suspense=y,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,me.__COMPILER_RUNTIME={__proto__:null,c:function(T){return W.H.useMemoCache(T)}},me.cache=function(T){return function(){return T.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(T,Q,K){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var F=R({},T.props),fe=T.key;if(Q!=null)for(pe in Q.key!==void 0&&(fe=""+Q.key),Q)!L.call(Q,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Q.ref===void 0||(F[pe]=Q[pe]);var pe=arguments.length-2;if(pe===1)F.children=K;else if(1<pe){for(var ee=Array(pe),We=0;We<pe;We++)ee[We]=arguments[We+2];F.children=ee}return $(T.type,fe,F)},me.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},me.createElement=function(T,Q,K){var F,fe={},pe=null;if(Q!=null)for(F in Q.key!==void 0&&(pe=""+Q.key),Q)L.call(Q,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(fe[F]=Q[F]);var ee=arguments.length-2;if(ee===1)fe.children=K;else if(1<ee){for(var We=Array(ee),_e=0;_e<ee;_e++)We[_e]=arguments[_e+2];fe.children=We}if(T&&T.defaultProps)for(F in ee=T.defaultProps,ee)fe[F]===void 0&&(fe[F]=ee[F]);return $(T,pe,fe)},me.createRef=function(){return{current:null}},me.forwardRef=function(T){return{$$typeof:g,render:T}},me.isValidElement=Se,me.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:q}},me.memo=function(T,Q){return{$$typeof:p,type:T,compare:Q===void 0?null:Q}},me.startTransition=function(T){var Q=W.T,K={};W.T=K;try{var F=T(),fe=W.S;fe!==null&&fe(K,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(te,Re)}catch(pe){Re(pe)}finally{Q!==null&&K.types!==null&&(Q.types=K.types),W.T=Q}},me.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},me.use=function(T){return W.H.use(T)},me.useActionState=function(T,Q,K){return W.H.useActionState(T,Q,K)},me.useCallback=function(T,Q){return W.H.useCallback(T,Q)},me.useContext=function(T){return W.H.useContext(T)},me.useDebugValue=function(){},me.useDeferredValue=function(T,Q){return W.H.useDeferredValue(T,Q)},me.useEffect=function(T,Q){return W.H.useEffect(T,Q)},me.useEffectEvent=function(T){return W.H.useEffectEvent(T)},me.useId=function(){return W.H.useId()},me.useImperativeHandle=function(T,Q,K){return W.H.useImperativeHandle(T,Q,K)},me.useInsertionEffect=function(T,Q){return W.H.useInsertionEffect(T,Q)},me.useLayoutEffect=function(T,Q){return W.H.useLayoutEffect(T,Q)},me.useMemo=function(T,Q){return W.H.useMemo(T,Q)},me.useOptimistic=function(T,Q){return W.H.useOptimistic(T,Q)},me.useReducer=function(T,Q,K){return W.H.useReducer(T,Q,K)},me.useRef=function(T){return W.H.useRef(T)},me.useState=function(T){return W.H.useState(T)},me.useSyncExternalStore=function(T,Q,K){return W.H.useSyncExternalStore(T,Q,K)},me.useTransition=function(){return W.H.useTransition()},me.version="19.2.3",me}var ky;function ld(){return ky||(ky=1,pf.exports=r1()),pf.exports}var b=ld();const kl=Lx(b),Mg=kx({__proto__:null,default:kl},[b]);var _g=b.createContext(void 0),Dg=l=>{const i=b.useContext(_g);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},s1=({client:l,children:i})=>(b.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),m.jsx(_g.Provider,{value:l,children:i})),Ug=b.createContext(!1),u1=()=>b.useContext(Ug);Ug.Provider;function o1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var c1=b.createContext(o1()),f1=()=>b.useContext(c1);function kg(l,i){return typeof l=="function"?l(...i):!!l}function Gf(){}var d1=(l,i)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(i.isReset()||(l.retryOnMount=!1))},h1=l=>{b.useEffect(()=>{l.clearReset()},[l])},m1=({result:l,errorResetBoundary:i,throwOnError:r,query:u,suspense:c})=>l.isError&&!i.isReset()&&!l.isFetching&&u&&(c&&l.data===void 0||kg(r,[l.error,u])),p1=l=>{const i=l.staleTime;l.suspense&&(l.staleTime=typeof i=="function"?(...r)=>Math.max(i(...r),1e3):Math.max(i??1e3,1e3),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3)))},y1=(l,i)=>l.isLoading&&l.isFetching&&!i,g1=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,Ly=(l,i,r)=>i.fetchOptimistic(l).catch(()=>{r.clearReset()});function v1(l,i,r){var S,w,z,j,R;const u=Dg(),c=u1(),f=f1(),h=u.defaultQueryOptions(l);(w=(S=u.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||w.call(S,h),h._optimisticResults=c?"isRestoring":"optimistic",p1(h),d1(h,f),h1(f);const g=!u.getQueryCache().get(h.queryHash),[y]=b.useState(()=>new i(u,h)),p=y.getOptimisticResult(h),x=!c&&l.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(M=>{const _=x?y.subscribe(st.batchCalls(M)):Gf;return y.updateResult(),_},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),b.useEffect(()=>{y.setOptions(h)},[h,y]),g1(h,p))throw Ly(h,y,f);if(m1({result:p,errorResetBoundary:f,throwOnError:h.throwOnError,query:u.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw p.error;if((j=(z=u.getDefaultOptions().queries)==null?void 0:z._experimental_afterQuery)==null||j.call(z,h,p),h.experimental_prefetchInRender&&!Ta&&y1(p,c)){const M=g?Ly(h,y,f):(R=u.getQueryCache().get(h.queryHash))==null?void 0:R.promise;M==null||M.catch(Gf).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?p:y.trackResult(p)}function ll(l,i){return v1(l,n1)}function b1(l,i){const r=Dg(),[u]=b.useState(()=>new i1(r,l));b.useEffect(()=>{u.setOptions(l)},[u,l]);const c=b.useSyncExternalStore(b.useCallback(h=>u.subscribe(st.batchCalls(h)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f=b.useCallback((h,g)=>{u.mutate(h,g).catch(Gf)},[u]);if(c.error&&kg(u.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var yf={exports:{}},_r={},gf={exports:{}},vf={};/**
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 qy;function x1(){return qy||(qy=1,(function(l){function i(k,J){var q=k.length;k.push(J);e:for(;0<q;){var Re=q-1>>>1,ze=k[Re];if(0<c(ze,J))k[Re]=J,k[q]=ze,q=Re;else break e}}function r(k){return k.length===0?null:k[0]}function u(k){if(k.length===0)return null;var J=k[0],q=k.pop();if(q!==J){k[0]=q;e:for(var Re=0,ze=k.length,T=ze>>>1;Re<T;){var Q=2*(Re+1)-1,K=k[Q],F=Q+1,fe=k[F];if(0>c(K,q))F<ze&&0>c(fe,K)?(k[Re]=fe,k[F]=q,Re=F):(k[Re]=K,k[Q]=q,Re=Q);else if(F<ze&&0>c(fe,q))k[Re]=fe,k[F]=q,Re=F;else break e}}return J}function c(k,J){var q=k.sortIndex-J.sortIndex;return q!==0?q:k.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var y=[],p=[],x=1,S=null,w=3,z=!1,j=!1,R=!1,M=!1,_=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Z(k){for(var J=r(p);J!==null;){if(J.callback===null)u(p);else if(J.startTime<=k)u(p),J.sortIndex=J.expirationTime,i(y,J);else break;J=r(p)}}function I(k){if(R=!1,Z(k),!j)if(r(y)!==null)j=!0,te||(te=!0,Ne());else{var J=r(p);J!==null&&Ue(I,J.startTime-k)}}var te=!1,W=-1,L=5,$=-1;function ue(){return M?!0:!(l.unstable_now()-$<L)}function Se(){if(M=!1,te){var k=l.unstable_now();$=k;var J=!0;try{e:{j=!1,R&&(R=!1,G(W),W=-1),z=!0;var q=w;try{t:{for(Z(k),S=r(y);S!==null&&!(S.expirationTime>k&&ue());){var Re=S.callback;if(typeof Re=="function"){S.callback=null,w=S.priorityLevel;var ze=Re(S.expirationTime<=k);if(k=l.unstable_now(),typeof ze=="function"){S.callback=ze,Z(k),J=!0;break t}S===r(y)&&u(y),Z(k)}else u(y);S=r(y)}if(S!==null)J=!0;else{var T=r(p);T!==null&&Ue(I,T.startTime-k),J=!1}}break e}finally{S=null,w=q,z=!1}J=void 0}}finally{J?Ne():te=!1}}}var Ne;if(typeof X=="function")Ne=function(){X(Se)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Ze=he.port2;he.port1.onmessage=Se,Ne=function(){Ze.postMessage(null)}}else Ne=function(){_(Se,0)};function Ue(k,J){W=_(function(){k(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(k){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var q=w;w=J;try{return k()}finally{w=q}},l.unstable_requestPaint=function(){M=!0},l.unstable_runWithPriority=function(k,J){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var q=w;w=k;try{return J()}finally{w=q}},l.unstable_scheduleCallback=function(k,J,q){var Re=l.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?Re+q:Re):q=Re,k){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=q+ze,k={id:x++,callback:J,priorityLevel:k,startTime:q,expirationTime:ze,sortIndex:-1},q>Re?(k.sortIndex=q,i(p,k),r(y)===null&&k===r(p)&&(R?(G(W),W=-1):R=!0,Ue(I,q-Re))):(k.sortIndex=ze,i(y,k),j||z||(j=!0,te||(te=!0,Ne()))),k},l.unstable_shouldYield=ue,l.unstable_wrapCallback=function(k){var J=w;return function(){var q=w;w=J;try{return k.apply(this,arguments)}finally{w=q}}}})(vf)),vf}var Hy;function S1(){return Hy||(Hy=1,gf.exports=x1()),gf.exports}var bf={exports:{}},gt={};/**
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 By;function w1(){if(By)return gt;By=1;var l=ld();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,p,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:y,containerInfo:p,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,gt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(y,p,null,x)},gt.flushSync=function(y){var p=h.T,x=u.p;try{if(h.T=null,u.p=2,y)return y()}finally{h.T=p,u.p=x,u.d.f()}},gt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(y,p))},gt.prefetchDNS=function(y){typeof y=="string"&&u.d.D(y)},gt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,S=g(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,z=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?u.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:z}):x==="script"&&u.d.X(y,{crossOrigin:S,integrity:w,fetchPriority:z,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=g(p.as,p.crossOrigin);u.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(y)},gt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,S=g(x,p.crossOrigin);u.d.L(y,x,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=g(p.as,p.crossOrigin);u.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(y)},gt.requestFormReset=function(y){u.d.r(y)},gt.unstable_batchedUpdates=function(y,p){return y(p)},gt.useFormState=function(y,p,x){return h.H.useFormState(y,p,x)},gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},gt.version="19.2.3",gt}var Gy;function Lg(){if(Gy)return bf.exports;Gy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),bf.exports=w1(),bf.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 Qy;function E1(){if(Qy)return _r;Qy=1;var l=S1(),i=ld(),r=Lg();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(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 y(e){if(f(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return y(s),e;if(o===a)return y(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,a=o;break}if(v===a){d=!0,a=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,a=s;break}if(v===a){d=!0,a=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,w=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function Ne(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function Ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case _:return"Profiler";case M:return"StrictMode";case I:return"Suspense";case te:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case X:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ze(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return Ze(e(t))}catch{}}return null}var Ue=Array.isArray,k=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},Re=[],ze=-1;function T(e){return{current:e}}function Q(e){0>ze||(e.current=Re[ze],Re[ze]=null,ze--)}function K(e,t){ze++,Re[ze]=e.current,e.current=t}var F=T(null),fe=T(null),pe=T(null),ee=T(null);function We(e,t){switch(K(pe,t),K(fe,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zp(t),e=$p(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(F),K(F,e)}function _e(){Q(F),Q(fe),Q(pe)}function xt(e){e.memoizedState!==null&&K(ee,e);var t=F.current,n=$p(t,e.type);t!==n&&(K(fe,e),K(F,n))}function Wt(e){fe.current===e&&(Q(F),Q(fe)),ee.current===e&&(Q(ee),Ar._currentValue=q)}var qt,Ed;function Jl(e){if(qt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qt=t&&t[1]||"",Ed=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+qt+e+Ed}var Zu=!1;function $u(e,t){if(!e||Zu)return"";Zu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(H){var U=H}Reflect.construct(e,[],V)}else{try{V.call()}catch(H){U=H}e.call(V.prototype)}}else{try{throw Error()}catch(H){U=H}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var E=d.split(`
44
- `),D=v.split(`
45
- `);for(s=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(a===E.length||s===D.length)for(a=E.length-1,s=D.length-1;1<=a&&0<=s&&E[a]!==D[s];)s--;for(;1<=a&&0<=s;a--,s--)if(E[a]!==D[s]){if(a!==1||s!==1)do if(a--,s--,0>s||E[a]!==D[s]){var B=`
46
- `+E[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=s);break}}}finally{Zu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Jl(n):""}function hb(e,t){switch(e.tag){case 26:case 27:case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return e.child!==t&&t!==null?Jl("Suspense Fallback"):Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return $u(e.type,!1);case 11:return $u(e.type.render,!1);case 1:return $u(e.type,!0);case 31:return Jl("Activity");default:return""}}function Nd(e){try{var t="",n=null;do t+=hb(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Ju=Object.prototype.hasOwnProperty,Fu=l.unstable_scheduleCallback,Wu=l.unstable_cancelCallback,mb=l.unstable_shouldYield,pb=l.unstable_requestPaint,Ht=l.unstable_now,yb=l.unstable_getCurrentPriorityLevel,Cd=l.unstable_ImmediatePriority,Td=l.unstable_UserBlockingPriority,ts=l.unstable_NormalPriority,gb=l.unstable_LowPriority,jd=l.unstable_IdlePriority,vb=l.log,bb=l.unstable_setDisableYieldValue,Bi=null,Bt=null;function ul(e){if(typeof vb=="function"&&bb(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Bi,e)}catch{}}var Gt=Math.clz32?Math.clz32:wb,xb=Math.log,Sb=Math.LN2;function wb(e){return e>>>=0,e===0?32:31-(xb(e)/Sb|0)|0}var ns=256,ls=262144,as=4194304;function Fl(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 is(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?s=Fl(a):(d&=v,d!==0?s=Fl(d):n||(n=v&~e,n!==0&&(s=Fl(n))))):(v=a&~o,v!==0?s=Fl(v):d!==0?s=Fl(d):n||(n=a&~e,n!==0&&(s=Fl(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function Gi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Eb(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 Ad(){var e=as;return as<<=1,(as&62914560)===0&&(as=4194304),e}function Pu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nb(e,t,n,a,s,o){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-Gt(n),V=1<<B;v[B]=0,E[B]=-1;var U=D[B];if(U!==null)for(D[B]=null,B=0;B<U.length;B++){var H=U[B];H!==null&&(H.lane&=-536870913)}n&=~V}a!==0&&Rd(e,a,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function Rd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function zd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Gt(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function Od(e,t){var n=t&-t;return n=(n&42)!==0?1:Iu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Iu(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 eo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Md(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:gy(e.type))}function _d(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var ol=Math.random().toString(36).slice(2),dt="__reactFiber$"+ol,jt="__reactProps$"+ol,Oa="__reactContainer$"+ol,to="__reactEvents$"+ol,Cb="__reactListeners$"+ol,Tb="__reactHandles$"+ol,Dd="__reactResources$"+ol,Yi="__reactMarker$"+ol;function no(e){delete e[dt],delete e[jt],delete e[to],delete e[Cb],delete e[Tb]}function Ma(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Oa]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ty(e);e!==null;){if(n=e[dt])return n;e=ty(e)}return t}e=n,n=e.parentNode}return null}function _a(e){if(e=e[dt]||e[Oa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Da(e){var t=e[Dd];return t||(t=e[Dd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[Yi]=!0}var Ud=new Set,kd={};function Wl(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(kd[e]=t,e=0;e<t.length;e++)Ud.add(t[e])}var jb=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]*$"),Ld={},qd={};function Ab(e){return Ju.call(qd,e)?!0:Ju.call(Ld,e)?!1:jb.test(e)?qd[e]=!0:(Ld[e]=!0,!1)}function rs(e,t,n){if(Ab(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ss(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function On(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rb(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){if(!e._valueTracker){var t=Hd(e)?"checked":"value";e._valueTracker=Rb(e,t,""+e[t])}}function Bd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Hd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function us(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 zb=/[\n"\\]/g;function It(e){return e.replace(zb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ao(e,t,n,a,s,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pt(t)):e.value!==""+Pt(t)&&(e.value=""+Pt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?io(e,d,Pt(t)):n!=null?io(e,d,Pt(n)):a!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Pt(v):e.removeAttribute("name")}function Gd(e,t,n,a,s,o,d,v){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){lo(e);return}n=n!=null?""+Pt(n):"",t=t!=null?""+Pt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),lo(e)}function io(e,t,n){t==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ka(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Pt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Qd(e,t,n){if(t!=null&&(t=""+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Pt(n):""}function Yd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(Ue(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Pt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),lo(e)}function La(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ob=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 Xd(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Ob.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vd(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Xd(e,s,a)}else for(var o in t)t.hasOwnProperty(o)&&Xd(e,o,t[o])}function ro(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 Mb=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"]]),_b=/^[\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 _b.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var so=null;function uo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qa=null,Ha=null;function Kd(e){var t=_a(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ao(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[jt]||null;if(!s)throw Error(u(90));ao(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Bd(a)}break e;case"textarea":Qd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ka(e,!!n.multiple,t,!1)}}}var oo=!1;function Zd(e,t,n){if(oo)return e(t,n);oo=!0;try{var a=e(t);return a}finally{if(oo=!1,(qa!==null||Ha!==null)&&(Fs(),qa&&(t=qa,e=Ha,Ha=qa=null,Kd(t),e)))for(t=0;t<e.length;t++)Kd(e[t])}}function Vi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[jt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),co=!1;if(_n)try{var Ki={};Object.defineProperty(Ki,"passive",{get:function(){co=!0}}),window.addEventListener("test",Ki,Ki),window.removeEventListener("test",Ki,Ki)}catch{co=!1}var cl=null,fo=null,cs=null;function $d(){if(cs)return cs;var e,t=fo,n=t.length,a,s="value"in cl?cl.value:cl.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===s[o-a];a++);return cs=s.slice(e,1<a?1-a:void 0)}function fs(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 ds(){return!0}function Jd(){return!1}function At(e){function t(n,a,s,o,d){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ds:Jd,this.isPropagationStopped=Jd,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ds)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ds)},persist:function(){},isPersistent:ds}),t}var Pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hs=At(Pl),Zi=S({},Pl,{view:0,detail:0}),Db=At(Zi),ho,mo,$i,ms=S({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yo,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!==$i&&($i&&e.type==="mousemove"?(ho=e.screenX-$i.screenX,mo=e.screenY-$i.screenY):mo=ho=0,$i=e),ho)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),Fd=At(ms),Ub=S({},ms,{dataTransfer:0}),kb=At(Ub),Lb=S({},Zi,{relatedTarget:0}),po=At(Lb),qb=S({},Pl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hb=At(qb),Bb=S({},Pl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gb=At(Bb),Qb=S({},Pl,{data:0}),Wd=At(Qb),Yb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xb={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"},Vb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vb[e])?!!t[e]:!1}function yo(){return Kb}var Zb=S({},Zi,{key:function(e){if(e.key){var t=Yb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yo,charCode:function(e){return e.type==="keypress"?fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$b=At(Zb),Jb=S({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pd=At(Jb),Fb=S({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yo}),Wb=At(Fb),Pb=S({},Pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ib=At(Pb),e0=S({},ms,{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}),t0=At(e0),n0=S({},Pl,{newState:0,oldState:0}),l0=At(n0),a0=[9,13,27,32],go=_n&&"CompositionEvent"in window,Ji=null;_n&&"documentMode"in document&&(Ji=document.documentMode);var i0=_n&&"TextEvent"in window&&!Ji,Id=_n&&(!go||Ji&&8<Ji&&11>=Ji),eh=" ",th=!1;function nh(e,t){switch(e){case"keyup":return a0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function r0(e,t){switch(e){case"compositionend":return lh(t);case"keypress":return t.which!==32?null:(th=!0,eh);case"textInput":return e=t.data,e===eh&&th?null:e;default:return null}}function s0(e,t){if(Ba)return e==="compositionend"||!go&&nh(e,t)?(e=$d(),cs=fo=cl=null,Ba=!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 Id&&t.locale!=="ko"?null:t.data;default:return null}}var u0={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 ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u0[e.type]:t==="textarea"}function ih(e,t,n,a){qa?Ha?Ha.push(a):Ha=[a]:qa=a,t=lu(t,"onChange"),0<t.length&&(n=new hs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Fi=null,Wi=null;function o0(e){Gp(e,0)}function ps(e){var t=Xi(e);if(Bd(t))return e}function rh(e,t){if(e==="change")return t}var sh=!1;if(_n){var vo;if(_n){var bo="oninput"in document;if(!bo){var uh=document.createElement("div");uh.setAttribute("oninput","return;"),bo=typeof uh.oninput=="function"}vo=bo}else vo=!1;sh=vo&&(!document.documentMode||9<document.documentMode)}function oh(){Fi&&(Fi.detachEvent("onpropertychange",ch),Wi=Fi=null)}function ch(e){if(e.propertyName==="value"&&ps(Wi)){var t=[];ih(t,Wi,e,uo(e)),Zd(o0,t)}}function c0(e,t,n){e==="focusin"?(oh(),Fi=t,Wi=n,Fi.attachEvent("onpropertychange",ch)):e==="focusout"&&oh()}function f0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Wi)}function d0(e,t){if(e==="click")return ps(t)}function h0(e,t){if(e==="input"||e==="change")return ps(t)}function m0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:m0;function Pi(e,t){if(Qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!Ju.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dh(e,t){var n=fh(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fh(n)}}function hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=us(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=us(e.document)}return t}function xo(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 p0=_n&&"documentMode"in document&&11>=document.documentMode,Ga=null,So=null,Ii=null,wo=!1;function ph(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wo||Ga==null||Ga!==us(a)||(a=Ga,"selectionStart"in a&&xo(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ii&&Pi(Ii,a)||(Ii=a,a=lu(So,"onSelect"),0<a.length&&(t=new hs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ga)))}function Il(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qa={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Eo={},yh={};_n&&(yh=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function ea(e){if(Eo[e])return Eo[e];if(!Qa[e])return e;var t=Qa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yh)return Eo[e]=t[n];return e}var gh=ea("animationend"),vh=ea("animationiteration"),bh=ea("animationstart"),y0=ea("transitionrun"),g0=ea("transitionstart"),v0=ea("transitioncancel"),xh=ea("transitionend"),Sh=new Map,No="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(" ");No.push("scrollEnd");function hn(e,t){Sh.set(e,t),Wl(t,[e])}var ys=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],Ya=0,Co=0;function gs(){for(var e=Ya,t=Co=Ya=0;t<e;){var n=en[t];en[t++]=null;var a=en[t];en[t++]=null;var s=en[t];en[t++]=null;var o=en[t];if(en[t++]=null,a!==null&&s!==null){var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}o!==0&&wh(n,s,o)}}function vs(e,t,n,a){en[Ya++]=e,en[Ya++]=t,en[Ya++]=n,en[Ya++]=a,Co|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function To(e,t,n,a){return vs(e,t,n,a),bs(e)}function ta(e,t){return vs(e,null,null,t),bs(e)}function wh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Gt(n),e=o.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),o):null}function bs(e){if(50<Sr)throw Sr=0,Uc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Xa={};function b0(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,n,a){return new b0(e,t,n,a)}function jo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var n=e.alternate;return n===null?(n=Yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Eh(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function xs(e,t,n,a,s,o){var d=0;if(a=e,typeof e=="function")jo(e)&&(d=1);else if(typeof e=="string")d=Nx(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $:return e=Yt(31,n,t,s),e.elementType=$,e.lanes=o,e;case R:return na(n.children,s,o,t);case M:d=8,s|=24;break;case _:return e=Yt(12,n,t,s|2),e.elementType=_,e.lanes=o,e;case I:return e=Yt(13,n,t,s),e.elementType=I,e.lanes=o,e;case te:return e=Yt(19,n,t,s),e.elementType=te,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case G:d=9;break e;case Z:d=11;break e;case W:d=14;break e;case L:d=16,a=null;break e}d=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Yt(d,n,t,s),t.elementType=e,t.type=a,t.lanes=o,t}function na(e,t,n,a){return e=Yt(7,e,a,t),e.lanes=n,e}function Ao(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}function Nh(e){var t=Yt(18,null,null,0);return t.stateNode=e,t}function Ro(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ch=new WeakMap;function tn(e,t){if(typeof e=="object"&&e!==null){var n=Ch.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Nd(t)},Ch.set(e,t),t)}return{value:e,source:t,stack:Nd(t)}}var Va=[],Ka=0,Ss=null,er=0,nn=[],ln=0,fl=null,Sn=1,wn="";function Un(e,t){Va[Ka++]=er,Va[Ka++]=Ss,Ss=e,er=t}function Th(e,t,n){nn[ln++]=Sn,nn[ln++]=wn,nn[ln++]=fl,fl=e;var a=Sn;e=wn;var s=32-Gt(a)-1;a&=~(1<<s),n+=1;var o=32-Gt(t)+s;if(30<o){var d=s-s%5;o=(a&(1<<d)-1).toString(32),a>>=d,s-=d,Sn=1<<32-Gt(t)+s|n<<s|a,wn=o+e}else Sn=1<<o|n<<s|a,wn=e}function zo(e){e.return!==null&&(Un(e,1),Th(e,1,0))}function Oo(e){for(;e===Ss;)Ss=Va[--Ka],Va[Ka]=null,er=Va[--Ka],Va[Ka]=null;for(;e===fl;)fl=nn[--ln],nn[ln]=null,wn=nn[--ln],nn[ln]=null,Sn=nn[--ln],nn[ln]=null}function jh(e,t){nn[ln++]=Sn,nn[ln++]=wn,nn[ln++]=fl,Sn=t.id,wn=t.overflow,fl=e}var ht=null,Ye=null,je=!1,dl=null,an=!1,Mo=Error(u(519));function hl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tr(tn(t,e)),Mo}function Ah(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[dt]=e,t[jt]=a,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<Er.length;n++)Ee(Er[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Gd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Yd(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Vp(t.textContent,n)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||hl(e,!0)}function Rh(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:ht=ht.return}}function Za(e){if(e!==ht)return!1;if(!je)return Rh(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fc(e.type,e.memoizedProps)),n=!n),n&&Ye&&hl(e),Rh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=ey(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ye=ey(e)}else t===27?(t=Ye,jl(e.type)?(e=tf,tf=null,Ye=e):Ye=t):Ye=ht?sn(e.stateNode.nextSibling):null;return!0}function la(){Ye=ht=null,je=!1}function _o(){var e=dl;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),dl=null),e}function tr(e){dl===null?dl=[e]:dl.push(e)}var Do=T(null),aa=null,kn=null;function ml(e,t,n){K(Do,t._currentValue),t._currentValue=n}function Ln(e){e._currentValue=Do.current,Q(Do)}function Uo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ko(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var E=0;E<t.length;E++)if(v.context===t[E]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Uo(o.return,n,e),a||(d=null);break e}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Uo(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function $a(e,t,n,a){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;Qt(s.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(s===ee.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ar):e=[Ar])}s=s.return}e!==null&&ko(t,e,n,a),t.flags|=262144}function ws(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){aa=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return zh(aa,e)}function Es(e,t){return aa===null&&ia(e),zh(e,t)}function zh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},kn===null){if(e===null)throw Error(u(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return n}var x0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},S0=l.unstable_scheduleCallback,w0=l.unstable_NormalPriority,et={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lo(){return{controller:new x0,data:new Map,refCount:0}}function nr(e){e.refCount--,e.refCount===0&&S0(w0,function(){e.controller.abort()})}var lr=null,qo=0,Ja=0,Fa=null;function E0(e,t){if(lr===null){var n=lr=[];qo=0,Ja=Gc(),Fa={status:"pending",value:void 0,then:function(a){n.push(a)}}}return qo++,t.then(Oh,Oh),t}function Oh(){if(--qo===0&&lr!==null){Fa!==null&&(Fa.status="fulfilled");var e=lr;lr=null,Ja=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function N0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Mh=k.S;k.S=function(e,t){pp=Ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&E0(e,t),Mh!==null&&Mh(e,t)};var ra=T(null);function Ho(){var e=ra.current;return e!==null?e:Qe.pooledCache}function Ns(e,t){t===null?K(ra,ra.current):K(ra,t.pool)}function _h(){var e=Ho();return e===null?null:{parent:et._currentValue,pool:e}}var Wa=Error(u(460)),Bo=Error(u(474)),Cs=Error(u(542)),Ts={then:function(){}};function Dh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Mn,Mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lh(e),e;default:if(typeof t.status=="string")t.then(Mn,Mn);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lh(e),e}throw ua=t,Wa}}function sa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ua=n,Wa):n}}var ua=null;function kh(){if(ua===null)throw Error(u(459));var e=ua;return ua=null,e}function Lh(e){if(e===Wa||e===Cs)throw Error(u(483))}var Pa=null,ar=0;function js(e){var t=ar;return ar+=1,Pa===null&&(Pa=[]),Uh(Pa,e,t)}function ir(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function As(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qh(e){function t(A,C){if(e){var O=A.deletions;O===null?(A.deletions=[C],A.flags|=16):O.push(C)}}function n(A,C){if(!e)return null;for(;C!==null;)t(A,C),C=C.sibling;return null}function a(A){for(var C=new Map;A!==null;)A.key!==null?C.set(A.key,A):C.set(A.index,A),A=A.sibling;return C}function s(A,C){return A=Dn(A,C),A.index=0,A.sibling=null,A}function o(A,C,O){return A.index=O,e?(O=A.alternate,O!==null?(O=O.index,O<C?(A.flags|=67108866,C):O):(A.flags|=67108866,C)):(A.flags|=1048576,C)}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,C,O,Y){return C===null||C.tag!==6?(C=Ao(O,A.mode,Y),C.return=A,C):(C=s(C,O),C.return=A,C)}function E(A,C,O,Y){var oe=O.type;return oe===R?B(A,C,O.props.children,Y,O.key):C!==null&&(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===L&&sa(oe)===C.type)?(C=s(C,O.props),ir(C,O),C.return=A,C):(C=xs(O.type,O.key,O.props,null,A.mode,Y),ir(C,O),C.return=A,C)}function D(A,C,O,Y){return C===null||C.tag!==4||C.stateNode.containerInfo!==O.containerInfo||C.stateNode.implementation!==O.implementation?(C=Ro(O,A.mode,Y),C.return=A,C):(C=s(C,O.children||[]),C.return=A,C)}function B(A,C,O,Y,oe){return C===null||C.tag!==7?(C=na(O,A.mode,Y,oe),C.return=A,C):(C=s(C,O),C.return=A,C)}function V(A,C,O){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ao(""+C,A.mode,O),C.return=A,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case z:return O=xs(C.type,C.key,C.props,null,A.mode,O),ir(O,C),O.return=A,O;case j:return C=Ro(C,A.mode,O),C.return=A,C;case L:return C=sa(C),V(A,C,O)}if(Ue(C)||Ne(C))return C=na(C,A.mode,O,null),C.return=A,C;if(typeof C.then=="function")return V(A,js(C),O);if(C.$$typeof===X)return V(A,Es(A,C),O);As(A,C)}return null}function U(A,C,O,Y){var oe=C!==null?C.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return oe!==null?null:v(A,C,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case z:return O.key===oe?E(A,C,O,Y):null;case j:return O.key===oe?D(A,C,O,Y):null;case L:return O=sa(O),U(A,C,O,Y)}if(Ue(O)||Ne(O))return oe!==null?null:B(A,C,O,Y,null);if(typeof O.then=="function")return U(A,C,js(O),Y);if(O.$$typeof===X)return U(A,C,Es(A,O),Y);As(A,O)}return null}function H(A,C,O,Y,oe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return A=A.get(O)||null,v(C,A,""+Y,oe);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case z:return A=A.get(Y.key===null?O:Y.key)||null,E(C,A,Y,oe);case j:return A=A.get(Y.key===null?O:Y.key)||null,D(C,A,Y,oe);case L:return Y=sa(Y),H(A,C,O,Y,oe)}if(Ue(Y)||Ne(Y))return A=A.get(O)||null,B(C,A,Y,oe,null);if(typeof Y.then=="function")return H(A,C,O,js(Y),oe);if(Y.$$typeof===X)return H(A,C,O,Es(C,Y),oe);As(C,Y)}return null}function ne(A,C,O,Y){for(var oe=null,Oe=null,se=C,ge=C=0,Te=null;se!==null&&ge<O.length;ge++){se.index>ge?(Te=se,se=null):Te=se.sibling;var Me=U(A,se,O[ge],Y);if(Me===null){se===null&&(se=Te);break}e&&se&&Me.alternate===null&&t(A,se),C=o(Me,C,ge),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me,se=Te}if(ge===O.length)return n(A,se),je&&Un(A,ge),oe;if(se===null){for(;ge<O.length;ge++)se=V(A,O[ge],Y),se!==null&&(C=o(se,C,ge),Oe===null?oe=se:Oe.sibling=se,Oe=se);return je&&Un(A,ge),oe}for(se=a(se);ge<O.length;ge++)Te=H(se,A,ge,O[ge],Y),Te!==null&&(e&&Te.alternate!==null&&se.delete(Te.key===null?ge:Te.key),C=o(Te,C,ge),Oe===null?oe=Te:Oe.sibling=Te,Oe=Te);return e&&se.forEach(function(Ml){return t(A,Ml)}),je&&Un(A,ge),oe}function de(A,C,O,Y){if(O==null)throw Error(u(151));for(var oe=null,Oe=null,se=C,ge=C=0,Te=null,Me=O.next();se!==null&&!Me.done;ge++,Me=O.next()){se.index>ge?(Te=se,se=null):Te=se.sibling;var Ml=U(A,se,Me.value,Y);if(Ml===null){se===null&&(se=Te);break}e&&se&&Ml.alternate===null&&t(A,se),C=o(Ml,C,ge),Oe===null?oe=Ml:Oe.sibling=Ml,Oe=Ml,se=Te}if(Me.done)return n(A,se),je&&Un(A,ge),oe;if(se===null){for(;!Me.done;ge++,Me=O.next())Me=V(A,Me.value,Y),Me!==null&&(C=o(Me,C,ge),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me);return je&&Un(A,ge),oe}for(se=a(se);!Me.done;ge++,Me=O.next())Me=H(se,A,ge,Me.value,Y),Me!==null&&(e&&Me.alternate!==null&&se.delete(Me.key===null?ge:Me.key),C=o(Me,C,ge),Oe===null?oe=Me:Oe.sibling=Me,Oe=Me);return e&&se.forEach(function(Ux){return t(A,Ux)}),je&&Un(A,ge),oe}function Ge(A,C,O,Y){if(typeof O=="object"&&O!==null&&O.type===R&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case z:e:{for(var oe=O.key;C!==null;){if(C.key===oe){if(oe=O.type,oe===R){if(C.tag===7){n(A,C.sibling),Y=s(C,O.props.children),Y.return=A,A=Y;break e}}else if(C.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===L&&sa(oe)===C.type){n(A,C.sibling),Y=s(C,O.props),ir(Y,O),Y.return=A,A=Y;break e}n(A,C);break}else t(A,C);C=C.sibling}O.type===R?(Y=na(O.props.children,A.mode,Y,O.key),Y.return=A,A=Y):(Y=xs(O.type,O.key,O.props,null,A.mode,Y),ir(Y,O),Y.return=A,A=Y)}return d(A);case j:e:{for(oe=O.key;C!==null;){if(C.key===oe)if(C.tag===4&&C.stateNode.containerInfo===O.containerInfo&&C.stateNode.implementation===O.implementation){n(A,C.sibling),Y=s(C,O.children||[]),Y.return=A,A=Y;break e}else{n(A,C);break}else t(A,C);C=C.sibling}Y=Ro(O,A.mode,Y),Y.return=A,A=Y}return d(A);case L:return O=sa(O),Ge(A,C,O,Y)}if(Ue(O))return ne(A,C,O,Y);if(Ne(O)){if(oe=Ne(O),typeof oe!="function")throw Error(u(150));return O=oe.call(O),de(A,C,O,Y)}if(typeof O.then=="function")return Ge(A,C,js(O),Y);if(O.$$typeof===X)return Ge(A,C,Es(A,O),Y);As(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,C!==null&&C.tag===6?(n(A,C.sibling),Y=s(C,O),Y.return=A,A=Y):(n(A,C),Y=Ao(O,A.mode,Y),Y.return=A,A=Y),d(A)):n(A,C)}return function(A,C,O,Y){try{ar=0;var oe=Ge(A,C,O,Y);return Pa=null,oe}catch(se){if(se===Wa||se===Cs)throw se;var Oe=Yt(29,se,null,A.mode);return Oe.lanes=Y,Oe.return=A,Oe}finally{}}}var oa=qh(!0),Hh=qh(!1),pl=!1;function Go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(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 yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=bs(e),wh(e,null,n),t}return vs(e,a,t,n),bs(e)}function rr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,zd(e,n)}}function Yo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xo=!1;function sr(){if(Xo){var e=Fa;if(e!==null)throw e}}function ur(e,t,n,a){Xo=!1;var s=e.updateQueue;pl=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var E=v,D=E.next;E.next=null,d===null?o=D:d.next=D,d=E;var B=e.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==d&&(v===null?B.firstBaseUpdate=D:v.next=D,B.lastBaseUpdate=E))}if(o!==null){var V=s.baseState;d=0,B=D=E=null,v=o;do{var U=v.lane&-536870913,H=U!==v.lane;if(H?(Ce&U)===U:(a&U)===U){U!==0&&U===Ja&&(Xo=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,de=v;U=t;var Ge=n;switch(de.tag){case 1:if(ne=de.payload,typeof ne=="function"){V=ne.call(Ge,V,U);break e}V=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=de.payload,U=typeof ne=="function"?ne.call(Ge,V,U):ne,U==null)break e;V=S({},V,U);break e;case 2:pl=!0}}U=v.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[U]:H.push(U))}else H={lane:U,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(D=B=H,E=V):B=B.next=H,d|=U;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;H=v,v=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);B===null&&(E=V),s.baseState=E,s.firstBaseUpdate=D,s.lastBaseUpdate=B,o===null&&(s.shared.lanes=0),wl|=d,e.lanes=d,e.memoizedState=V}}function Bh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Gh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Bh(n[e],t)}var Ia=T(null),Rs=T(0);function Qh(e,t){e=Kn,K(Rs,e),K(Ia,t),Kn=e|t.baseLanes}function Vo(){K(Rs,Kn),K(Ia,Ia.current)}function Ko(){Kn=Rs.current,Q(Ia),Q(Rs)}var Xt=T(null),rn=null;function vl(e){var t=e.alternate;K(Pe,Pe.current&1),K(Xt,e),rn===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(rn=e)}function Zo(e){K(Pe,Pe.current),K(Xt,e),rn===null&&(rn=e)}function Yh(e){e.tag===22?(K(Pe,Pe.current),K(Xt,e),rn===null&&(rn=e)):bl()}function bl(){K(Pe,Pe.current),K(Xt,Xt.current)}function Vt(e){Q(Xt),rn===e&&(rn=null),Q(Pe)}var Pe=T(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ic(n)||ef(n)))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 qn=0,ye=null,He=null,tt=null,Os=!1,ei=!1,ca=!1,Ms=0,or=0,ti=null,C0=0;function $e(){throw Error(u(321))}function $o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qt(e[n],t[n]))return!1;return!0}function Jo(e,t,n,a,s,o){return qn=o,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Tm:cc,ca=!1,o=n(a,s),ca=!1,ei&&(o=Vh(t,n,a,s)),Xh(e),o}function Xh(e){k.H=dr;var t=He!==null&&He.next!==null;if(qn=0,tt=He=ye=null,Os=!1,or=0,ti=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&ws(e)&&(nt=!0))}function Vh(e,t,n,a){ye=e;var s=0;do{if(ei&&(ti=null),or=0,ei=!1,25<=s)throw Error(u(301));if(s+=1,tt=He=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}k.H=jm,o=t(n,a)}while(ei);return o}function T0(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?cr(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(ye.flags|=1024),t}function Fo(){var e=Ms!==0;return Ms=0,e}function Wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(Os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Os=!1}qn=0,tt=He=ye=null,ei=!1,or=Ms=0,ti=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ye.memoizedState=tt=e:tt=tt.next=e,tt}function Ie(){if(He===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=tt===null?ye.memoizedState:tt.next;if(t!==null)tt=t,He=e;else{if(e===null)throw ye.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},tt===null?ye.memoizedState=tt=e:tt=tt.next=e}return tt}function _s(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cr(e){var t=or;return or+=1,ti===null&&(ti=[]),e=Uh(ti,e,t),t=ye,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Tm:cc),e}function Ds(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cr(e);if(e.$$typeof===X)return mt(e)}throw Error(u(438,String(e)))}function Io(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ye.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=_s(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ue;return t.index++,n}function Hn(e,t){return typeof t=="function"?t(e):t}function Us(e){var t=Ie();return ec(t,He,e)}function ec(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=e.baseQueue,o=a.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}t.baseQueue=s=o,a.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=d=null,E=null,D=t,B=!1;do{var V=D.lane&-536870913;if(V!==D.lane?(Ce&V)===V:(qn&V)===V){var U=D.revertLane;if(U===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),V===Ja&&(B=!0);else if((qn&U)===U){D=D.next,U===Ja&&(B=!0);continue}else V={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(v=E=V,d=o):E=E.next=V,ye.lanes|=U,wl|=U;V=D.action,ca&&n(o,V),o=D.hasEagerState?D.eagerState:n(o,V)}else U={lane:V,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(v=E=U,d=o):E=E.next=U,ye.lanes|=V,wl|=V;D=D.next}while(D!==null&&D!==t);if(E===null?d=o:E.next=v,!Qt(o,e.memoizedState)&&(nt=!0,B&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=E,a.lastRenderedState=o}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tc(e){var t=Ie(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=e(o,d.action),d=d.next;while(d!==s);Qt(o,t.memoizedState)||(nt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Kh(e,t,n){var a=ye,s=Ie(),o=je;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var d=!Qt((He||s).memoizedState,n);if(d&&(s.memoizedState=n,nt=!0),s=s.queue,ac(Jh.bind(null,a,s,e),[e]),s.getSnapshot!==t||d||tt!==null&&tt.memoizedState.tag&1){if(a.flags|=2048,ni(9,{destroy:void 0},$h.bind(null,a,s,n,t),null),Qe===null)throw Error(u(349));o||(qn&127)!==0||Zh(a,t,n)}return n}function Zh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=_s(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $h(e,t,n,a){t.value=n,t.getSnapshot=a,Fh(t)&&Wh(e)}function Jh(e,t,n){return n(function(){Fh(t)&&Wh(e)})}function Fh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qt(e,n)}catch{return!0}}function Wh(e){var t=ta(e,2);t!==null&&_t(t,e,2)}function nc(e){var t=St();if(typeof e=="function"){var n=e;if(e=n(),ca){ul(!0);try{n()}finally{ul(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},t}function Ph(e,t,n,a){return e.baseState=n,ec(e,He,typeof a=="function"?a:Hn)}function j0(e,t,n,a,s){if(qs(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};k.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Ih(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ih(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var o=k.T,d={};k.T=d;try{var v=n(s,a),E=k.S;E!==null&&E(d,v),em(e,t,v)}catch(D){lc(e,t,D)}finally{o!==null&&d.types!==null&&(o.types=d.types),k.T=o}}else try{o=n(s,a),em(e,t,o)}catch(D){lc(e,t,D)}}function em(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){tm(e,t,a)},function(a){return lc(e,t,a)}):tm(e,t,n)}function tm(e,t,n){t.status="fulfilled",t.value=n,nm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ih(e,n)))}function lc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,nm(t),t=t.next;while(t!==a)}e.action=null}function nm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lm(e,t){return t}function am(e,t){if(je){var n=Qe.formState;if(n!==null){e:{var a=ye;if(je){if(Ye){t:{for(var s=Ye,o=an;s.nodeType!==8;){if(!o){s=null;break t}if(s=sn(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Ye=sn(s.nextSibling),a=s.data==="F!";break e}}hl(a)}a=!1}a&&(t=n[0])}}return n=St(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lm,lastRenderedState:t},n.queue=a,n=Em.bind(null,ye,a),a.dispatch=n,a=nc(!1),o=oc.bind(null,ye,!1,a.queue),a=St(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=j0.bind(null,ye,s,o,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function im(e){var t=Ie();return rm(t,He,e)}function rm(e,t,n){if(t=ec(e,t,lm)[0],e=Us(Hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=cr(t)}catch(d){throw d===Wa?Cs:d}else a=t;t=Ie();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,ni(9,{destroy:void 0},A0.bind(null,s,n),null)),[a,o,e]}function A0(e,t){e.action=t}function sm(e){var t=Ie(),n=He;if(n!==null)return rm(t,n,e);Ie(),t=t.memoizedState,n=Ie();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function ni(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ye.updateQueue,t===null&&(t=_s(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function um(){return Ie().memoizedState}function ks(e,t,n,a){var s=St();ye.flags|=e,s.memoizedState=ni(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ls(e,t,n,a){var s=Ie();a=a===void 0?null:a;var o=s.memoizedState.inst;He!==null&&a!==null&&$o(a,He.memoizedState.deps)?s.memoizedState=ni(t,o,n,a):(ye.flags|=e,s.memoizedState=ni(1|t,o,n,a))}function om(e,t){ks(8390656,8,e,t)}function ac(e,t){Ls(2048,8,e,t)}function R0(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=_s(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function cm(e){var t=Ie().memoizedState;return R0({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function fm(e,t){return Ls(4,2,e,t)}function dm(e,t){return Ls(4,4,e,t)}function hm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mm(e,t,n){n=n!=null?n.concat([e]):null,Ls(4,4,hm.bind(null,t,e),n)}function ic(){}function pm(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&$o(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function ym(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&$o(t,a[1]))return a[0];if(a=e(),ca){ul(!0);try{e()}finally{ul(!1)}}return n.memoizedState=[a,t],a}function rc(e,t,n){return n===void 0||(qn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=gp(),ye.lanes|=e,wl|=e,n)}function gm(e,t,n,a){return Qt(n,t)?n:Ia.current!==null?(e=rc(e,n,a),Qt(e,t)||(nt=!0),e):(qn&42)===0||(qn&1073741824)!==0&&(Ce&261930)===0?(nt=!0,e.memoizedState=n):(e=gp(),ye.lanes|=e,wl|=e,t)}function vm(e,t,n,a,s){var o=J.p;J.p=o!==0&&8>o?o:8;var d=k.T,v={};k.T=v,oc(e,!1,t,n);try{var E=s(),D=k.S;if(D!==null&&D(v,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=N0(E,a);fr(e,t,B,$t(e))}else fr(e,t,a,$t(e))}catch(V){fr(e,t,{then:function(){},status:"rejected",reason:V},$t())}finally{J.p=o,d!==null&&v.types!==null&&(d.types=v.types),k.T=d}}function z0(){}function sc(e,t,n,a){if(e.tag!==5)throw Error(u(476));var s=bm(e).queue;vm(e,s,t,q,n===null?z0:function(){return xm(e),n(a)})}function bm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:q},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xm(e){var t=bm(e);t.next===null&&(t=e.alternate.memoizedState),fr(e,t.next.queue,{},$t())}function uc(){return mt(Ar)}function Sm(){return Ie().memoizedState}function wm(){return Ie().memoizedState}function O0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=yl(n);var a=gl(t,e,n);a!==null&&(_t(a,t,n),rr(a,t,n)),t={cache:Lo()},e.payload=t;return}t=t.return}}function M0(e,t,n){var a=$t();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qs(e)?Nm(t,n):(n=To(e,t,n,a),n!==null&&(_t(n,e,a),Cm(n,t,a)))}function Em(e,t,n){var a=$t();fr(e,t,n,a)}function fr(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(qs(e))Nm(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,Qt(v,d))return vs(e,t,s,0),Qe===null&&gs(),!1}catch{}finally{}if(n=To(e,t,s,a),n!==null)return _t(n,e,a),Cm(n,t,a),!0}return!1}function oc(e,t,n,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},qs(e)){if(t)throw Error(u(479))}else t=To(e,n,a,2),t!==null&&_t(t,e,2)}function qs(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Nm(e,t){ei=Os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,zd(e,n)}}var dr={readContext:mt,use:Ds,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};dr.useEffectEvent=$e;var Tm={readContext:mt,use:Ds,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:om,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ks(4194308,4,hm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var n=St();t=t===void 0?null:t;var a=e();if(ca){ul(!0);try{e()}finally{ul(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=St();if(n!==void 0){var s=n(t);if(ca){ul(!0);try{n(t)}finally{ul(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=M0.bind(null,ye,e),[a.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=nc(e);var t=e.queue,n=Em.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ic,useDeferredValue:function(e,t){var n=St();return rc(n,e,t)},useTransition:function(){var e=nc(!1);return e=vm.bind(null,ye,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ye,s=St();if(je){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Qe===null)throw Error(u(349));(Ce&127)!==0||Zh(a,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,om(Jh.bind(null,a,o,e),[e]),a.flags|=2048,ni(9,{destroy:void 0},$h.bind(null,a,o,n,t),null),n},useId:function(){var e=St(),t=Qe.identifierPrefix;if(je){var n=wn,a=Sn;n=(a&~(1<<32-Gt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ms++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=C0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:uc,useFormState:am,useActionState:am,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return St().memoizedState=O0.bind(null,ye)},useEffectEvent:function(e){var t=St(),n={impl:e};return t.memoizedState=n,function(){if((De&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},cc={readContext:mt,use:Ds,useCallback:pm,useContext:mt,useEffect:ac,useImperativeHandle:mm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:ym,useReducer:Us,useRef:um,useState:function(){return Us(Hn)},useDebugValue:ic,useDeferredValue:function(e,t){var n=Ie();return gm(n,He.memoizedState,e,t)},useTransition:function(){var e=Us(Hn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:Kh,useId:Sm,useHostTransitionStatus:uc,useFormState:im,useActionState:im,useOptimistic:function(e,t){var n=Ie();return Ph(n,He,e,t)},useMemoCache:Io,useCacheRefresh:wm};cc.useEffectEvent=cm;var jm={readContext:mt,use:Ds,useCallback:pm,useContext:mt,useEffect:ac,useImperativeHandle:mm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:ym,useReducer:tc,useRef:um,useState:function(){return tc(Hn)},useDebugValue:ic,useDeferredValue:function(e,t){var n=Ie();return He===null?rc(n,e,t):gm(n,He.memoizedState,e,t)},useTransition:function(){var e=tc(Hn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:Kh,useId:Sm,useHostTransitionStatus:uc,useFormState:sm,useActionState:sm,useOptimistic:function(e,t){var n=Ie();return He!==null?Ph(n,He,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Io,useCacheRefresh:wm};jm.useEffectEvent=cm;function fc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=$t(),s=yl(a);s.payload=t,n!=null&&(s.callback=n),t=gl(e,s,a),t!==null&&(_t(t,e,a),rr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=$t(),s=yl(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=gl(e,s,a),t!==null&&(_t(t,e,a),rr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),a=yl(n);a.tag=2,t!=null&&(a.callback=t),t=gl(e,a,n),t!==null&&(_t(t,e,n),rr(t,e,n))}};function Am(e,t,n,a,s,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!Pi(n,a)||!Pi(s,o):!0}function Rm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function fa(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function zm(e){ys(e)}function Om(e){console.error(e)}function Mm(e){ys(e)}function Hs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _m(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function hc(e,t,n){return n=yl(n),n.tag=3,n.payload={element:null},n.callback=function(){Hs(e,t)},n}function Dm(e){return e=yl(e),e.tag=3,e}function Um(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=a.value;e.payload=function(){return s(o)},e.callback=function(){_m(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){_m(t,n,a),typeof s!="function"&&(El===null?El=new Set([this]):El.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function _0(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&$a(t,n,s,!0),n=Xt.current,n!==null){switch(n.tag){case 31:case 13:return rn===null?Ws():n.alternate===null&&Je===0&&(Je=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Ts?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),qc(e,a,s)),!1;case 22:return n.flags|=65536,a===Ts?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),qc(e,a,s)),!1}throw Error(u(435,n.tag))}return qc(e,a,s),Ws(),!1}if(je)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Mo&&(e=Error(u(422),{cause:a}),tr(tn(e,n)))):(a!==Mo&&(t=Error(u(423),{cause:a}),tr(tn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=tn(a,n),s=hc(e.stateNode,a,s),Yo(e,s),Je!==4&&(Je=2)),!1;var o=Error(u(520),{cause:a});if(o=tn(o,n),xr===null?xr=[o]:xr.push(o),Je!==4&&(Je=2),t===null)return!0;a=tn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=hc(n.stateNode,a,e),Yo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(El===null||!El.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Dm(s),Um(s,e,n,a),Yo(n,s),!1}n=n.return}while(n!==null);return!1}var mc=Error(u(461)),nt=!1;function pt(e,t,n,a){t.child=e===null?Hh(t,null,n,a):oa(t,e.child,n,a)}function km(e,t,n,a,s){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var v in a)v!=="ref"&&(d[v]=a[v])}else d=a;return ia(t),a=Jo(e,t,n,d,o,s),v=Fo(),e!==null&&!nt?(Wo(e,t,s),Bn(e,t,s)):(je&&v&&zo(t),t.flags|=1,pt(e,t,a,s),t.child)}function Lm(e,t,n,a,s){if(e===null){var o=n.type;return typeof o=="function"&&!jo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,qm(e,t,o,a,s)):(e=xs(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!wc(e,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pi,n(d,a)&&e.ref===t.ref)return Bn(e,t,s)}return t.flags|=1,e=Dn(o,a),e.ref=t.ref,e.return=t,t.child=e}function qm(e,t,n,a,s){if(e!==null){var o=e.memoizedProps;if(Pi(o,a)&&e.ref===t.ref)if(nt=!1,t.pendingProps=a=o,wc(e,s))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Bn(e,t,s)}return pc(e,t,n,a,s)}function Hm(e,t,n,a){var s=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~o}else a=0,t.child=null;return Bm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(t,o!==null?o.cachePool:null),o!==null?Qh(t,o):Vo(),Yh(t);else return a=t.lanes=536870912,Bm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(Ns(t,o.cachePool),Qh(t,o),bl(),t.memoizedState=null):(e!==null&&Ns(t,null),Vo(),bl());return pt(e,t,s,n),t.child}function hr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bm(e,t,n,a,s){var o=Ho();return o=o===null?null:{parent:et._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Ns(t,null),Vo(),Yh(t),e!==null&&$a(e,t,a,!0),t.childLanes=s,null}function Bs(e,t){return t=Qs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gm(e,t,n){return oa(t,e.child,null,n),e=Bs(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function D0(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(a.mode==="hidden")return e=Bs(t,a),t.lanes=536870912,hr(null,e);if(Zo(t),(e=Ye)?(e=Ip(e,an),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Sn,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},n=Nh(e),n.return=t,t.child=n,ht=t,Ye=null)):e=null,e===null)throw hl(t);return t.lanes=536870912,null}return Bs(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Zo(t),s)if(t.flags&256)t.flags&=-257,t=Gm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||$a(e,t,n,!1),s=(n&e.childLanes)!==0,nt||s){if(a=Qe,a!==null&&(d=Od(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,ta(e,d),_t(a,e,d),mc;Ws(),t=Gm(e,t,n)}else e=o.treeContext,Ye=sn(d.nextSibling),ht=t,je=!0,dl=null,an=!1,e!==null&&jh(t,e),t=Bs(t,a),t.flags|=4096;return t}return e=Dn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,a,s){return ia(t),n=Jo(e,t,n,a,void 0,s),a=Fo(),e!==null&&!nt?(Wo(e,t,s),Bn(e,t,s)):(je&&a&&zo(t),t.flags|=1,pt(e,t,n,s),t.child)}function Qm(e,t,n,a,s,o){return ia(t),t.updateQueue=null,n=Vh(t,a,n,s),Xh(e),a=Fo(),e!==null&&!nt?(Wo(e,t,o),Bn(e,t,o)):(je&&a&&zo(t),t.flags|=1,pt(e,t,n,o),t.child)}function Ym(e,t,n,a,s){if(ia(t),t.stateNode===null){var o=Xa,d=n.contextType;typeof d=="object"&&d!==null&&(o=mt(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=dc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Go(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?mt(d):Xa,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(fc(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&dc.enqueueReplaceState(o,o.state,null),ur(t,a,o,s),sr(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,E=fa(n,v);o.props=E;var D=o.context,B=n.contextType;d=Xa,typeof B=="object"&&B!==null&&(d=mt(B));var V=n.getDerivedStateFromProps;B=typeof V=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,B||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||D!==d)&&Rm(t,o,a,d),pl=!1;var U=t.memoizedState;o.state=U,ur(t,a,o,s),sr(),D=t.memoizedState,v||U!==D||pl?(typeof V=="function"&&(fc(t,n,V,a),D=t.memoizedState),(E=pl||Am(t,n,E,a,U,D,d))?(B||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),o.props=a,o.state=D,o.context=d,a=E):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Qo(e,t),d=t.memoizedProps,B=fa(n,d),o.props=B,V=t.pendingProps,U=o.context,D=n.contextType,E=Xa,typeof D=="object"&&D!==null&&(E=mt(D)),v=n.getDerivedStateFromProps,(D=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==V||U!==E)&&Rm(t,o,a,E),pl=!1,U=t.memoizedState,o.state=U,ur(t,a,o,s),sr();var H=t.memoizedState;d!==V||U!==H||pl||e!==null&&e.dependencies!==null&&ws(e.dependencies)?(typeof v=="function"&&(fc(t,n,v,a),H=t.memoizedState),(B=pl||Am(t,n,B,a,U,H,E)||e!==null&&e.dependencies!==null&&ws(e.dependencies))?(D||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,H,E),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,H,E)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),o.props=a,o.state=H,o.context=E,a=B):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Gs(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=oa(t,e.child,null,s),t.child=oa(t,null,n,s)):pt(e,t,n,s),t.memoizedState=o.state,e=t.child):e=Bn(e,t,s),e}function Xm(e,t,n,a){return la(),t.flags|=256,pt(e,t,n,a),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:_h()}}function vc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Vm(e,t,n){var a=t.pendingProps,s=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?vl(t):bl(),(e=Ye)?(e=Ip(e,an),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Sn,overflow:wn}:null,retryLane:536870912,hydrationErrors:null},n=Nh(e),n.return=t,t.child=n,ht=t,Ye=null)):e=null,e===null)throw hl(t);return ef(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,s?(bl(),s=t.mode,v=Qs({mode:"hidden",children:v},s),a=na(a,s,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=gc(n),a.childLanes=vc(e,d,n),t.memoizedState=yc,hr(null,a)):(vl(t),bc(t,v))}var E=e.memoizedState;if(E!==null&&(v=E.dehydrated,v!==null)){if(o)t.flags&256?(vl(t),t.flags&=-257,t=xc(e,t,n)):t.memoizedState!==null?(bl(),t.child=e.child,t.flags|=128,t=null):(bl(),v=a.fallback,s=t.mode,a=Qs({mode:"visible",children:a.children},s),v=na(v,s,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,oa(t,e.child,null,n),a=t.child,a.memoizedState=gc(n),a.childLanes=vc(e,d,n),t.memoizedState=yc,t=hr(null,a));else if(vl(t),ef(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var D=d.dgst;d=D,a=Error(u(419)),a.stack="",a.digest=d,tr({value:a,source:null,stack:null}),t=xc(e,t,n)}else if(nt||$a(e,t,n,!1),d=(n&e.childLanes)!==0,nt||d){if(d=Qe,d!==null&&(a=Od(d,n),a!==0&&a!==E.retryLane))throw E.retryLane=a,ta(e,a),_t(d,e,a),mc;Ic(v)||Ws(),t=xc(e,t,n)}else Ic(v)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ye=sn(v.nextSibling),ht=t,je=!0,dl=null,an=!1,e!==null&&jh(t,e),t=bc(t,a.children),t.flags|=4096);return t}return s?(bl(),v=a.fallback,s=t.mode,E=e.child,D=E.sibling,a=Dn(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&65011712,D!==null?v=Dn(D,v):(v=na(v,s,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,hr(null,a),a=t.child,v=e.child.memoizedState,v===null?v=gc(n):(s=v.cachePool,s!==null?(E=et._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=_h(),v={baseLanes:v.baseLanes|n,cachePool:s}),a.memoizedState=v,a.childLanes=vc(e,d,n),t.memoizedState=yc,hr(e.child,a)):(vl(t),n=e.child,e=n.sibling,n=Dn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function bc(e,t){return t=Qs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qs(e,t){return e=Yt(22,e,null,t),e.lanes=0,e}function xc(e,t,n){return oa(t,e.child,null,n),e=bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Km(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Uo(e.return,t,n)}function Sc(e,t,n,a,s,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=s,d.treeForkCount=o)}function Zm(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;a=a.children;var d=Pe.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,K(Pe,d),pt(e,t,a,n),a=je?er:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Km(e,n,t);else if(e.tag===19)Km(e,n,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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&zs(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Sc(t,!1,s,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&zs(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Sc(t,!0,n,null,o,a);break;case"together":Sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if($a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ws(e)))}function U0(e,t,n){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),ml(t,et,e.memoizedState.cache),la();break;case 27:case 5:xt(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:ml(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Zo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(vl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vm(e,t,n):(vl(t),e=Bn(e,t,n),e!==null?e.sibling:null);vl(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||($a(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Zm(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(Pe,Pe.current),a)break;return null;case 22:return t.lanes=0,Hm(e,t,n,t.pendingProps);case 24:ml(t,et,e.memoizedState.cache)}return Bn(e,t,n)}function $m(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!wc(e,n)&&(t.flags&128)===0)return nt=!1,U0(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,je&&(t.flags&1048576)!==0&&Th(t,er,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")jo(e)?(a=fa(e,a),t.tag=1,t=Ym(null,t,e,a,n)):(t.tag=0,t=pc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===Z){t.tag=11,t=km(null,t,e,a,n);break e}else if(s===W){t.tag=14,t=Lm(null,t,e,a,n);break e}}throw t=Ze(e)||e,Error(u(306,t,""))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=fa(a,t.pendingProps),Ym(e,t,a,s,n);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;s=o.element,Qo(e,t),ur(t,a,null,n);var d=t.memoizedState;if(a=d.cache,ml(t,et,a),a!==o.cache&&ko(t,[et],n,!0),sr(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Xm(e,t,a,n);break e}else if(a!==s){s=tn(Error(u(424)),t),tr(s),t=Xm(e,t,a,n);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(Ye=sn(e.firstChild),ht=t,je=!0,dl=null,an=!0,n=Hh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(la(),a===s){t=Bn(e,t,n);break e}pt(e,t,a,n)}t=t.child}return t;case 26:return Gs(e,t),e===null?(n=iy(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,a=au(pe.current).createElement(n),a[dt]=t,a[jt]=e,yt(a,n,e),ot(a),t.stateNode=a):t.memoizedState=iy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xt(t),e===null&&je&&(a=t.stateNode=ny(t.type,t.pendingProps,pe.current),ht=t,an=!0,s=Ye,jl(t.type)?(tf=s,Ye=sn(a.firstChild)):Ye=s),pt(e,t,t.pendingProps.children,n),Gs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=a=Ye)&&(a=fx(a,t.type,t.pendingProps,an),a!==null?(t.stateNode=a,ht=t,Ye=sn(a.firstChild),an=!1,s=!0):s=!1),s||hl(t)),xt(t),s=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,Fc(s,o)?a=null:d!==null&&Fc(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=Jo(e,t,T0,null,null,n),Ar._currentValue=s),Gs(e,t),pt(e,t,a,n),t.child;case 6:return e===null&&je&&((e=n=Ye)&&(n=dx(n,t.pendingProps,an),n!==null?(t.stateNode=n,ht=t,Ye=null,e=!0):e=!1),e||hl(t)),null;case 13:return Vm(e,t,n);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=oa(t,null,a,n):pt(e,t,a,n),t.child;case 11:return km(e,t,t.type,t.pendingProps,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,ml(t,t.type,a.value),pt(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,ia(t),s=mt(s),a=a(s),t.flags|=1,pt(e,t,a,n),t.child;case 14:return Lm(e,t,t.type,t.pendingProps,n);case 15:return qm(e,t,t.type,t.pendingProps,n);case 19:return Zm(e,t,n);case 31:return D0(e,t,n);case 22:return Hm(e,t,n,t.pendingProps);case 24:return ia(t),a=mt(et),e===null?(s=Ho(),s===null&&(s=Qe,o=Lo(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:a,cache:s},Go(t),ml(t,et,s)):((e.lanes&n)!==0&&(Qo(e,t),ur(t,null,null,n),sr()),s=e.memoizedState,o=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),ml(t,et,a)):(a=o.cache,ml(t,et,a),a!==s.cache&&ko(t,[et],n,!0))),pt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Gn(e){e.flags|=4}function Ec(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Sp())e.flags|=8192;else throw ua=Ts,Bo}else e.flags&=-16777217}function Jm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cy(t))if(Sp())e.flags|=8192;else throw ua=Ts,Bo}function Ys(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ad():536870912,e.lanes|=t,ri|=t)}function mr(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function k0(e,t,n){var a=t.pendingProps;switch(Oo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ln(et),_e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Za(t)?Gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_o())),Xe(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(Gn(t),o!==null?(Xe(t),Jm(t,o)):(Xe(t),Ec(t,s,null,a,n))):o?o!==e.memoizedState?(Gn(t),Xe(t),Jm(t,o)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Gn(t),Xe(t),Ec(t,s,e,a,n)),null;case 27:if(Wt(t),n=pe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Gn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}e=F.current,Za(t)?Ah(t):(e=ny(s,a,n),t.stateNode=e,Gn(t))}return Xe(t),null;case 5:if(Wt(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Gn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}if(o=F.current,Za(t))Ah(t);else{var d=au(pe.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(s,{is:a.is}):d.createElement(s)}}o[dt]=t,o[jt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(yt(o,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Gn(t)}}return Xe(t),Ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Gn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=pe.current,Za(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=ht,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vp(e.nodeValue,n)),e||hl(t,!0)}else e=au(e).createTextNode(a),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Za(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[dt]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=_o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Xe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Za(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[dt]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),s=!1}else s=_o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ys(t,t.updateQueue),Xe(t),null);case 4:return _e(),e===null&&Vc(t.stateNode.containerInfo),Xe(t),null;case 10:return Ln(t.type),Xe(t),null;case 19:if(Q(Pe),a=t.memoizedState,a===null)return Xe(t),null;if(s=(t.flags&128)!==0,o=a.rendering,o===null)if(s)mr(a,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=zs(e),o!==null){for(t.flags|=128,mr(a,!1),e=o.updateQueue,t.updateQueue=e,Ys(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Eh(n,e),n=n.sibling;return K(Pe,Pe.current&1|2),je&&Un(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ht()>$s&&(t.flags|=128,s=!0,mr(a,!1),t.lanes=4194304)}else{if(!s)if(e=zs(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ys(t,e),mr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!je)return Xe(t),null}else 2*Ht()-a.renderingStartTime>$s&&n!==536870912&&(t.flags|=128,s=!0,mr(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ht(),e.sibling=null,n=Pe.current,K(Pe,s?n&1|2:n&1),je&&Un(t,a.treeForkCount),e):(Xe(t),null);case 22:case 23:return Vt(t),Ko(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&Ys(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Q(ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ln(et),Xe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function L0(e,t){switch(Oo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(et),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wt(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(u(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Pe),null;case 4:return _e(),null;case 10:return Ln(t.type),null;case 22:case 23:return Vt(t),Ko(),e!==null&&Q(ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ln(et),null;case 25:return null;default:return null}}function Fm(e,t){switch(Oo(t),t.tag){case 3:Ln(et),_e();break;case 26:case 27:case 5:Wt(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:Q(Pe);break;case 10:Ln(t.type);break;case 22:case 23:Vt(t),Ko(),e!==null&&Q(ra);break;case 24:Ln(et)}}function pr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==s)}}catch(v){qe(t,t.return,v)}}function xl(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){var d=a.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=t;var E=n,D=v;try{D()}catch(B){qe(s,E,B)}}}a=a.next}while(a!==o)}}catch(B){qe(t,t.return,B)}}function Wm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Gh(t,n)}catch(a){qe(e,e.return,a)}}}function Pm(e,t,n){n.props=fa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){qe(e,t,a)}}function yr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){qe(e,t,s)}}function En(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){qe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){qe(e,t,s)}else n.current=null}function Im(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){qe(e,e.return,s)}}function Nc(e,t,n){try{var a=e.stateNode;ix(a,e.type,n,t),a[jt]=t}catch(s){qe(e,e.return,s)}}function ep(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jl(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ep(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&&jl(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 Tc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mn));else if(a!==4&&(a===27&&jl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Tc(e,t,n),e=e.sibling;e!==null;)Tc(e,t,n),e=e.sibling}function Xs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&jl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xs(e,t,n),e=e.sibling;e!==null;)Xs(e,t,n),e=e.sibling}function tp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);yt(t,a,n),t[dt]=e,t[jt]=n}catch(o){qe(e,e.return,o)}}var Qn=!1,lt=!1,jc=!1,np=typeof WeakSet=="function"?WeakSet:Set,ct=null;function q0(e,t){if(e=e.containerInfo,$c=fu,e=mh(e),xo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,E=-1,D=0,B=0,V=e,U=null;t:for(;;){for(var H;V!==n||s!==0&&V.nodeType!==3||(v=d+s),V!==o||a!==0&&V.nodeType!==3||(E=d+a),V.nodeType===3&&(d+=V.nodeValue.length),(H=V.firstChild)!==null;)U=V,V=H;for(;;){if(V===e)break t;if(U===n&&++D===s&&(v=d),U===o&&++B===a&&(E=d),(H=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=H}n=v===-1||E===-1?null:{start:v,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jc={focusedElem:e,selectionRange:n},fu=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,o=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(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=fa(n.type,s);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){qe(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Pc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function lp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n),a&4&&pr(5,n);break;case 1:if(Xn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){qe(n,n.return,d)}else{var s=fa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){qe(n,n.return,d)}}a&64&&Wm(n),a&512&&yr(n,n.return);break;case 3:if(Xn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Gh(e,t)}catch(d){qe(n,n.return,d)}}break;case 27:t===null&&a&4&&tp(n);case 26:case 5:Xn(e,n),t===null&&a&4&&Im(n),a&512&&yr(n,n.return);break;case 12:Xn(e,n);break;case 31:Xn(e,n),a&4&&rp(e,n);break;case 13:Xn(e,n),a&4&&sp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Z0.bind(null,n),hx(e,n))));break;case 22:if(a=n.memoizedState!==null||Qn,!a){t=t!==null&&t.memoizedState!==null||lt,s=Qn;var o=lt;Qn=a,(lt=t)&&!o?Vn(e,n,(n.subtreeFlags&8772)!==0):Xn(e,n),Qn=s,lt=o}break;case 30:break;default:Xn(e,n)}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&no(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 Ve=null,Rt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)ip(e,t,n),n=n.sibling}function ip(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Bi,n)}catch{}switch(n.tag){case 26:lt||En(n,t),Yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||En(n,t);var a=Ve,s=Rt;jl(n.type)&&(Ve=n.stateNode,Rt=!1),Yn(e,t,n),Cr(n.stateNode),Ve=a,Rt=s;break;case 5:lt||En(n,t);case 6:if(a=Ve,s=Rt,Ve=null,Yn(e,t,n),Ve=a,Rt=s,Ve!==null)if(Rt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){qe(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){qe(n,t,o)}break;case 18:Ve!==null&&(Rt?(e=Ve,Wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),mi(e)):Wp(Ve,n.stateNode));break;case 4:a=Ve,s=Rt,Ve=n.stateNode.containerInfo,Rt=!0,Yn(e,t,n),Ve=a,Rt=s;break;case 0:case 11:case 14:case 15:xl(2,n,t),lt||xl(4,n,t),Yn(e,t,n);break;case 1:lt||(En(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Pm(n,t,a)),Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:lt=(a=lt)||n.memoizedState!==null,Yn(e,t,n),lt=a;break;default:Yn(e,t,n)}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{mi(e)}catch(n){qe(t,t.return,n)}}}function sp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mi(e)}catch(n){qe(t,t.return,n)}}function H0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new np),t;default:throw Error(u(435,e.tag))}}function Vs(e,t){var n=H0(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=$0.bind(null,e,a);a.then(s,s)}})}function zt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(jl(v.type)){Ve=v.stateNode,Rt=!1;break e}break;case 5:Ve=v.stateNode,Rt=!1;break e;case 3:case 4:Ve=v.stateNode.containerInfo,Rt=!0;break e}v=v.return}if(Ve===null)throw Error(u(160));ip(o,d,s),Ve=null,Rt=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)up(t,e),t=t.sibling}var mn=null;function up(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Ot(e),a&4&&(xl(3,e,e.return),pr(3,e),xl(5,e,e.return));break;case 1:zt(t,e),Ot(e),a&512&&(lt||n===null||En(n,n.return)),a&64&&Qn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=mn;if(zt(t,e),Ot(e),a&512&&(lt||n===null||En(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":o=s.getElementsByTagName("title")[0],(!o||o[Yi]||o[dt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(a),s.head.insertBefore(o,s.querySelector("head > title"))),yt(o,a,n),o[dt]=e,ot(o),a=o;break e;case"link":var d=uy("link","href",s).get(a+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(v,1);break t}}o=s.createElement(a),yt(o,a,n),s.head.appendChild(o);break;case"meta":if(d=uy("meta","content",s).get(a+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(v,1);break t}}o=s.createElement(a),yt(o,a,n),s.head.appendChild(o);break;default:throw Error(u(468,a))}o[dt]=e,ot(o),a=o}e.stateNode=a}else oy(s,e.type,e.stateNode);else e.stateNode=sy(s,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?oy(s,e.type,e.stateNode):sy(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Nc(e,e.memoizedProps,n.memoizedProps)}break;case 27:zt(t,e),Ot(e),a&512&&(lt||n===null||En(n,n.return)),n!==null&&a&4&&Nc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(zt(t,e),Ot(e),a&512&&(lt||n===null||En(n,n.return)),e.flags&32){s=e.stateNode;try{La(s,"")}catch(ne){qe(e,e.return,ne)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Nc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(jc=!0);break;case 6:if(zt(t,e),Ot(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){qe(e,e.return,ne)}}break;case 3:if(su=null,s=mn,mn=iu(t.containerInfo),zt(t,e),mn=s,Ot(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{mi(t.containerInfo)}catch(ne){qe(e,e.return,ne)}jc&&(jc=!1,op(e));break;case 4:a=mn,mn=iu(e.stateNode.containerInfo),zt(t,e),Ot(e),mn=a;break;case 12:zt(t,e),Ot(e);break;case 31:zt(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vs(e,a)));break;case 13:zt(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zs=Ht()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vs(e,a)));break;case 22:s=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,D=Qn,B=lt;if(Qn=D||s,lt=B||E,zt(t,e),lt=B,Qn=D,Ot(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||E||Qn||lt||da(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(o=E.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=E.stateNode;var V=E.memoizedProps.style,U=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ne){qe(E,E.return,ne)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(ne){qe(E,E.return,ne)}}}else if(t.tag===18){if(n===null){E=t;try{var H=E.stateNode;s?Pp(H,!0):Pp(E.stateNode,!1)}catch(ne){qe(E,E.return,ne)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Vs(e,n))));break;case 19:zt(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vs(e,a)));break;case 30:break;case 21:break;default:zt(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ep(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=Cc(e);Xs(e,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(La(d,""),n.flags&=-33);var v=Cc(e);Xs(e,v,d);break;case 3:case 4:var E=n.stateNode.containerInfo,D=Cc(e);Tc(e,D,E);break;default:throw Error(u(161))}}catch(B){qe(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function op(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;op(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lp(e,t.alternate,t),t=t.sibling}function da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xl(4,t,t.return),da(t);break;case 1:En(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Pm(t,t.return,n),da(t);break;case 27:Cr(t.stateNode);case 26:case 5:En(t,t.return),da(t);break;case 22:t.memoizedState===null&&da(t);break;case 30:da(t);break;default:da(t)}e=e.sibling}}function Vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:Vn(s,o,n),pr(4,o);break;case 1:if(Vn(s,o,n),a=o,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){qe(a,a.return,D)}if(a=o,s=a.updateQueue,s!==null){var v=a.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)Bh(E[s],v)}catch(D){qe(a,a.return,D)}}n&&d&64&&Wm(o),yr(o,o.return);break;case 27:tp(o);case 26:case 5:Vn(s,o,n),n&&a===null&&d&4&&Im(o),yr(o,o.return);break;case 12:Vn(s,o,n);break;case 31:Vn(s,o,n),n&&d&4&&rp(s,o);break;case 13:Vn(s,o,n),n&&d&4&&sp(s,o);break;case 22:o.memoizedState===null&&Vn(s,o,n),yr(o,o.return);break;case 30:break;default:Vn(s,o,n)}t=t.sibling}}function Ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&nr(n))}function Rc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nr(e))}function pn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cp(e,t,n,a),t=t.sibling}function cp(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:pn(e,t,n,a),s&2048&&pr(9,t);break;case 1:pn(e,t,n,a);break;case 3:pn(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nr(e)));break;case 12:if(s&2048){pn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){qe(t,t.return,E)}}else pn(e,t,n,a);break;case 31:pn(e,t,n,a);break;case 13:pn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?pn(e,t,n,a):gr(e,t):o._visibility&2?pn(e,t,n,a):(o._visibility|=2,li(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Ac(d,t);break;case 24:pn(e,t,n,a),s&2048&&Rc(t.alternate,t);break;default:pn(e,t,n,a)}}function li(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,E=a,D=d.flags;switch(d.tag){case 0:case 11:case 15:li(o,d,v,E,s),pr(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?li(o,d,v,E,s):gr(o,d):(B._visibility|=2,li(o,d,v,E,s)),s&&D&2048&&Ac(d.alternate,d);break;case 24:li(o,d,v,E,s),s&&D&2048&&Rc(d.alternate,d);break;default:li(o,d,v,E,s)}t=t.sibling}}function gr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:gr(n,a),s&2048&&Ac(a.alternate,a);break;case 24:gr(n,a),s&2048&&Rc(a.alternate,a);break;default:gr(n,a)}t=t.sibling}}var vr=8192;function ai(e,t,n){if(e.subtreeFlags&vr)for(e=e.child;e!==null;)fp(e,t,n),e=e.sibling}function fp(e,t,n){switch(e.tag){case 26:ai(e,t,n),e.flags&vr&&e.memoizedState!==null&&Cx(n,mn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,n);break;case 3:case 4:var a=mn;mn=iu(e.stateNode.containerInfo),ai(e,t,n),mn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=vr,vr=16777216,ai(e,t,n),vr=a):ai(e,t,n));break;default:ai(e,t,n)}}function dp(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 br(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ct=a,mp(a,e)}dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hp(e),e=e.sibling}function hp(e){switch(e.tag){case 0:case 11:case 15:br(e),e.flags&2048&&xl(9,e,e.return);break;case 3:br(e);break;case 12:br(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ks(e)):br(e);break;default:br(e)}}function Ks(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ct=a,mp(a,e)}dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Ks(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ks(t));break;default:Ks(t)}e=e.sibling}}function mp(e,t){for(;ct!==null;){var n=ct;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:nr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ct=a;else e:for(n=e;ct!==null;){a=ct;var s=a.sibling,o=a.return;if(ap(a),a===n){ct=null;break e}if(s!==null){s.return=o,ct=s;break e}ct=o}}}var B0={getCacheForType:function(e){var t=mt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(et).controller.signal}},G0=typeof WeakMap=="function"?WeakMap:Map,De=0,Qe=null,we=null,Ce=0,Le=0,Kt=null,Sl=!1,ii=!1,zc=!1,Kn=0,Je=0,wl=0,ha=0,Oc=0,Zt=0,ri=0,xr=null,Mt=null,Mc=!1,Zs=0,pp=0,$s=1/0,Js=null,El=null,at=0,Nl=null,si=null,Zn=0,_c=0,Dc=null,yp=null,Sr=0,Uc=null;function $t(){return(De&2)!==0&&Ce!==0?Ce&-Ce:k.T!==null?Gc():Md()}function gp(){if(Zt===0)if((Ce&536870912)===0||je){var e=ls;ls<<=1,(ls&3932160)===0&&(ls=262144),Zt=e}else Zt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Zt}function _t(e,t,n){(e===Qe&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(ui(e,0),Cl(e,Ce,Zt,!1)),Qi(e,n),((De&2)===0||e!==Qe)&&(e===Qe&&((De&2)===0&&(ha|=n),Je===4&&Cl(e,Ce,Zt,!1)),Nn(e))}function vp(e,t,n){if((De&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Gi(e,t),s=a?X0(e,t):Lc(e,t,!0),o=a;do{if(s===0){ii&&!a&&Cl(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Q0(n)){s=Lc(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;s=xr;var E=v.current.memoizedState.isDehydrated;if(E&&(ui(v,d).flags|=256),d=Lc(v,d,!1),d!==2){if(zc&&!E){v.errorRecoveryDisabledLanes|=o,ha|=o,s=4;break e}o=Mt,Mt=s,o!==null&&(Mt===null?Mt=o:Mt.push.apply(Mt,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){ui(e,0),Cl(e,t,0,!0);break}e:{switch(a=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Cl(a,t,Zt,!Sl);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Zs+300-Ht(),10<s)){if(Cl(a,t,Zt,!Sl),is(a,0,!0)!==0)break e;Zn=t,a.timeoutHandle=Jp(bp.bind(null,a,n,Mt,Js,Mc,t,Zt,ha,ri,Sl,o,"Throttled",-0,0),s);break e}bp(a,n,Mt,Js,Mc,t,Zt,ha,ri,Sl,o,null,-0,0)}}break}while(!0);Nn(e)}function bp(e,t,n,a,s,o,d,v,E,D,B,V,U,H){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},fp(t,o,V);var ne=(o&62914560)===o?Zs-Ht():(o&4194048)===o?pp-Ht():0;if(ne=Tx(V,ne),ne!==null){Zn=o,e.cancelPendingCommit=ne(jp.bind(null,e,t,o,n,a,s,d,v,E,B,V,null,U,H)),Cl(e,o,d,!D);return}}jp(e,t,o,n,a,s,d,v,E)}function Q0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],o=s.getSnapshot;s=s.value;try{if(!Qt(o(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Cl(e,t,n,a){t&=~Oc,t&=~ha,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var o=31-Gt(s),d=1<<o;a[o]=-1,s&=~d}n!==0&&Rd(e,n,t)}function Fs(){return(De&6)===0?(wr(0),!1):!0}function kc(){if(we!==null){if(Le===0)var e=we.return;else e=we,kn=aa=null,Po(e),Pa=null,ar=0,e=we;for(;e!==null;)Fm(e.alternate,e),e=e.return;we=null}}function ui(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ux(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Zn=0,kc(),Qe=e,we=n=Dn(e.current,null),Ce=t,Le=0,Kt=null,Sl=!1,ii=Gi(e,t),zc=!1,ri=Zt=Oc=ha=wl=Je=0,Mt=xr=null,Mc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Gt(a),o=1<<s;t|=e[s],a&=~o}return Kn=t,gs(),n}function xp(e,t){ye=null,k.H=dr,t===Wa||t===Cs?(t=kh(),Le=3):t===Bo?(t=kh(),Le=4):Le=t===mc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,we===null&&(Je=1,Hs(e,tn(t,e.current)))}function Sp(){var e=Xt.current;return e===null?!0:(Ce&4194048)===Ce?rn===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===rn:!1}function wp(){var e=k.H;return k.H=dr,e===null?dr:e}function Ep(){var e=k.A;return k.A=B0,e}function Ws(){Je=4,Sl||(Ce&4194048)!==Ce&&Xt.current!==null||(ii=!0),(wl&134217727)===0&&(ha&134217727)===0||Qe===null||Cl(Qe,Ce,Zt,!1)}function Lc(e,t,n){var a=De;De|=2;var s=wp(),o=Ep();(Qe!==e||Ce!==t)&&(Js=null,ui(e,t)),t=!1;var d=Je;e:do try{if(Le!==0&&we!==null){var v=we,E=Kt;switch(Le){case 8:kc(),d=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var D=Le;if(Le=0,Kt=null,oi(e,v,E,D),n&&ii){d=0;break e}break;default:D=Le,Le=0,Kt=null,oi(e,v,E,D)}}Y0(),d=Je;break}catch(B){xp(e,B)}while(!0);return t&&e.shellSuspendCounter++,kn=aa=null,De=a,k.H=s,k.A=o,we===null&&(Qe=null,Ce=0,gs()),d}function Y0(){for(;we!==null;)Np(we)}function X0(e,t){var n=De;De|=2;var a=wp(),s=Ep();Qe!==e||Ce!==t?(Js=null,$s=Ht()+500,ui(e,t)):ii=Gi(e,t);e:do try{if(Le!==0&&we!==null){t=we;var o=Kt;t:switch(Le){case 1:Le=0,Kt=null,oi(e,t,o,1);break;case 2:case 9:if(Dh(o)){Le=0,Kt=null,Cp(t);break}t=function(){Le!==2&&Le!==9||Qe!==e||(Le=7),Nn(e)},o.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Dh(o)?(Le=0,Kt=null,Cp(t)):(Le=0,Kt=null,oi(e,t,o,7));break;case 5:var d=null;switch(we.tag){case 26:d=we.memoizedState;case 5:case 27:var v=we;if(d?cy(d):v.stateNode.complete){Le=0,Kt=null;var E=v.sibling;if(E!==null)we=E;else{var D=v.return;D!==null?(we=D,Ps(D)):we=null}break t}}Le=0,Kt=null,oi(e,t,o,5);break;case 6:Le=0,Kt=null,oi(e,t,o,6);break;case 8:kc(),Je=6;break e;default:throw Error(u(462))}}V0();break}catch(B){xp(e,B)}while(!0);return kn=aa=null,k.H=a,k.A=s,De=n,we!==null?0:(Qe=null,Ce=0,gs(),Je)}function V0(){for(;we!==null&&!mb();)Np(we)}function Np(e){var t=$m(e.alternate,e,Kn);e.memoizedProps=e.pendingProps,t===null?Ps(e):we=t}function Cp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qm(n,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=Qm(n,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:Po(t);default:Fm(n,t),t=we=Eh(t,Kn),t=$m(n,t,Kn)}e.memoizedProps=e.pendingProps,t===null?Ps(e):we=t}function oi(e,t,n,a){kn=aa=null,Po(t),Pa=null,ar=0;var s=t.return;try{if(_0(e,s,t,n,Ce)){Je=1,Hs(e,tn(n,e.current)),we=null;return}}catch(o){if(s!==null)throw we=s,o;Je=1,Hs(e,tn(n,e.current)),we=null;return}t.flags&32768?(je||a===1?e=!0:ii||(Ce&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tp(t,e)):Ps(t)}function Ps(e){var t=e;do{if((t.flags&32768)!==0){Tp(t,Sl);return}e=t.return;var n=k0(t.alternate,t,Kn);if(n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);Je===0&&(Je=5)}function Tp(e,t){do{var n=L0(e.alternate,e);if(n!==null){n.flags&=32767,we=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=n}while(e!==null);Je=6,we=null}function jp(e,t,n,a,s,o,d,v,E){e.cancelPendingCommit=null;do Is();while(at!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Co,Nb(e,n,o,d,v,E),e===Qe&&(we=Qe=null,Ce=0),si=t,Nl=e,Zn=n,_c=o,Dc=s,yp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,J0(ts,function(){return Mp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null,s=J.p,J.p=2,d=De,De|=4;try{q0(e,t,n)}finally{De=d,J.p=s,k.T=a}}at=1,Ap(),Rp(),zp()}}function Ap(){if(at===1){at=0;var e=Nl,t=si,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=k.T,k.T=null;var a=J.p;J.p=2;var s=De;De|=4;try{up(t,e);var o=Jc,d=mh(e.containerInfo),v=o.focusedElem,E=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&hh(v.ownerDocument.documentElement,v)){if(E!==null&&xo(v)){var D=E.start,B=E.end;if(B===void 0&&(B=D),"selectionStart"in v)v.selectionStart=D,v.selectionEnd=Math.min(B,v.value.length);else{var V=v.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var H=U.getSelection(),ne=v.textContent.length,de=Math.min(E.start,ne),Ge=E.end===void 0?de:Math.min(E.end,ne);!H.extend&&de>Ge&&(d=Ge,Ge=de,de=d);var A=dh(v,de),C=dh(v,Ge);if(A&&C&&(H.rangeCount!==1||H.anchorNode!==A.node||H.anchorOffset!==A.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var O=V.createRange();O.setStart(A.node,A.offset),H.removeAllRanges(),de>Ge?(H.addRange(O),H.extend(C.node,C.offset)):(O.setEnd(C.node,C.offset),H.addRange(O))}}}}for(V=[],H=v;H=H.parentNode;)H.nodeType===1&&V.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var Y=V[v];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}fu=!!$c,Jc=$c=null}finally{De=s,J.p=a,k.T=n}}e.current=t,at=2}}function Rp(){if(at===2){at=0;var e=Nl,t=si,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=k.T,k.T=null;var a=J.p;J.p=2;var s=De;De|=4;try{lp(e,t.alternate,t)}finally{De=s,J.p=a,k.T=n}}at=3}}function zp(){if(at===4||at===3){at=0,pb();var e=Nl,t=si,n=Zn,a=yp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,si=Nl=null,Op(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(El=null),eo(n),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Bi,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=k.T,s=J.p,J.p=2,k.T=null;try{for(var o=e.onRecoverableError,d=0;d<a.length;d++){var v=a[d];o(v.value,{componentStack:v.stack})}}finally{k.T=t,J.p=s}}(Zn&3)!==0&&Is(),Nn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Uc?Sr++:(Sr=0,Uc=e):Sr=0,wr(0)}}function Op(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nr(t)))}function Is(){return Ap(),Rp(),zp(),Mp()}function Mp(){if(at!==5)return!1;var e=Nl,t=_c;_c=0;var n=eo(Zn),a=k.T,s=J.p;try{J.p=32>n?32:n,k.T=null,n=Dc,Dc=null;var o=Nl,d=Zn;if(at=0,si=Nl=null,Zn=0,(De&6)!==0)throw Error(u(331));var v=De;if(De|=4,hp(o.current),cp(o,o.current,d,n),De=v,wr(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Bi,o)}catch{}return!0}finally{J.p=s,k.T=a,Op(e,t)}}function _p(e,t,n){t=tn(n,t),t=hc(e.stateNode,t,2),e=gl(e,t,2),e!==null&&(Qi(e,2),Nn(e))}function qe(e,t,n){if(e.tag===3)_p(e,e,n);else for(;t!==null;){if(t.tag===3){_p(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=tn(n,e),n=Dm(2),a=gl(t,n,2),a!==null&&(Um(n,a,t,e),Qi(a,2),Nn(a));break}}t=t.return}}function qc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new G0;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(zc=!0,s.add(n),e=K0.bind(null,e,t,n),t.then(e,e))}function K0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qe===e&&(Ce&n)===n&&(Je===4||Je===3&&(Ce&62914560)===Ce&&300>Ht()-Zs?(De&2)===0&&ui(e,0):Oc|=n,ri===Ce&&(ri=0)),Nn(e)}function Dp(e,t){t===0&&(t=Ad()),e=ta(e,t),e!==null&&(Qi(e,t),Nn(e))}function Z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dp(e,n)}function $0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Dp(e,n)}function J0(e,t){return Fu(e,t)}var eu=null,ci=null,Hc=!1,tu=!1,Bc=!1,Tl=0;function Nn(e){e!==ci&&e.next===null&&(ci===null?eu=ci=e:ci=ci.next=e),tu=!0,Hc||(Hc=!0,W0())}function wr(e,t){if(!Bc&&tu){Bc=!0;do for(var n=!1,a=eu;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var o=0;else{var d=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-Gt(42|e)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,qp(a,o))}else o=Ce,o=is(a,a===Qe?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Gi(a,o)||(n=!0,qp(a,o));a=a.next}while(n);Bc=!1}}function F0(){Up()}function Up(){tu=Hc=!1;var e=0;Tl!==0&&sx()&&(e=Tl);for(var t=Ht(),n=null,a=eu;a!==null;){var s=a.next,o=kp(a,t);o===0?(a.next=null,n===null?eu=s:n.next=s,s===null&&(ci=n)):(n=a,(e!==0||(o&3)!==0)&&(tu=!0)),a=s}at!==0&&at!==5||wr(e),Tl!==0&&(Tl=0)}function kp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Gt(o),v=1<<d,E=s[d];E===-1?((v&n)===0||(v&a)!==0)&&(s[d]=Eb(v,t)):E<=t&&(e.expiredLanes|=v),o&=~v}if(t=Qe,n=Ce,n=is(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Wu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Gi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Wu(a),eo(n)){case 2:case 8:n=Td;break;case 32:n=ts;break;case 268435456:n=jd;break;default:n=ts}return a=Lp.bind(null,e),n=Fu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Wu(a),e.callbackPriority=2,e.callbackNode=null,2}function Lp(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Is()&&e.callbackNode!==n)return null;var a=Ce;return a=is(e,e===Qe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(vp(e,a,t),kp(e,Ht()),e.callbackNode!=null&&e.callbackNode===n?Lp.bind(null,e):null)}function qp(e,t){if(Is())return null;vp(e,t,!0)}function W0(){ox(function(){(De&6)!==0?Fu(Cd,F0):Up()})}function Gc(){if(Tl===0){var e=Ja;e===0&&(e=ns,ns<<=1,(ns&261888)===0&&(ns=256)),Tl=e}return Tl}function Hp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:os(""+e)}function Bp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function P0(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var o=Hp((s[jt]||null).action),d=a.submitter;d&&(t=(t=d[jt]||null)?Hp(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new hs("action","action",null,a,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Tl!==0){var E=d?Bp(s,d):new FormData(s);sc(n,{pending:!0,data:E,method:s.method,action:o},null,E)}}else typeof o=="function"&&(v.preventDefault(),E=d?Bp(s,d):new FormData(s),sc(n,{pending:!0,data:E,method:s.method,action:o},o,E))},currentTarget:s}]})}}for(var Qc=0;Qc<No.length;Qc++){var Yc=No[Qc],I0=Yc.toLowerCase(),ex=Yc[0].toUpperCase()+Yc.slice(1);hn(I0,"on"+ex)}hn(gh,"onAnimationEnd"),hn(vh,"onAnimationIteration"),hn(bh,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(y0,"onTransitionRun"),hn(g0,"onTransitionStart"),hn(v0,"onTransitionCancel"),hn(xh,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="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(" "),tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Er));function Gp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var v=a[d],E=v.instance,D=v.currentTarget;if(v=v.listener,E!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=D;try{o(s)}catch(B){ys(B)}s.currentTarget=null,o=E}else for(d=0;d<a.length;d++){if(v=a[d],E=v.instance,D=v.currentTarget,v=v.listener,E!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=D;try{o(s)}catch(B){ys(B)}s.currentTarget=null,o=E}}}}function Ee(e,t){var n=t[to];n===void 0&&(n=t[to]=new Set);var a=e+"__bubble";n.has(a)||(Qp(t,e,2,!1),n.add(a))}function Xc(e,t,n){var a=0;t&&(a|=4),Qp(n,e,a,t)}var nu="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[nu]){e[nu]=!0,Ud.forEach(function(n){n!=="selectionchange"&&(tx.has(n)||Xc(n,!1,e),Xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nu]||(t[nu]=!0,Xc("selectionchange",!1,t))}}function Qp(e,t,n,a){switch(gy(t)){case 2:var s=Rx;break;case 8:s=zx;break;default:s=sf}n=s.bind(null,t,n,e),s=void 0,!co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Kc(e,t,n,a,s){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var v=a.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=a.return;d!==null;){var E=d.tag;if((E===3||E===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=Ma(v),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){a=o=d;continue e}v=v.parentNode}}a=a.return}Zd(function(){var D=o,B=uo(n),V=[];e:{var U=Sh.get(e);if(U!==void 0){var H=hs,ne=e;switch(e){case"keypress":if(fs(n)===0)break e;case"keydown":case"keyup":H=$b;break;case"focusin":ne="focus",H=po;break;case"focusout":ne="blur",H=po;break;case"beforeblur":case"afterblur":H=po;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=kb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Wb;break;case gh:case vh:case bh:H=Hb;break;case xh:H=Ib;break;case"scroll":case"scrollend":H=Db;break;case"wheel":H=t0;break;case"copy":case"cut":case"paste":H=Gb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Pd;break;case"toggle":case"beforetoggle":H=l0}var de=(t&4)!==0,Ge=!de&&(e==="scroll"||e==="scrollend"),A=de?U!==null?U+"Capture":null:U;de=[];for(var C=D,O;C!==null;){var Y=C;if(O=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||O===null||A===null||(Y=Vi(C,A),Y!=null&&de.push(Nr(C,Y,O))),Ge)break;C=C.return}0<de.length&&(U=new H(U,ne,null,n,B),V.push({event:U,listeners:de}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==so&&(ne=n.relatedTarget||n.fromElement)&&(Ma(ne)||ne[Oa]))break e;if((H||U)&&(U=B.window===B?B:(U=B.ownerDocument)?U.defaultView||U.parentWindow:window,H?(ne=n.relatedTarget||n.toElement,H=D,ne=ne?Ma(ne):null,ne!==null&&(Ge=f(ne),de=ne.tag,ne!==Ge||de!==5&&de!==27&&de!==6)&&(ne=null)):(H=null,ne=D),H!==ne)){if(de=Fd,Y="onMouseLeave",A="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(de=Pd,Y="onPointerLeave",A="onPointerEnter",C="pointer"),Ge=H==null?U:Xi(H),O=ne==null?U:Xi(ne),U=new de(Y,C+"leave",H,n,B),U.target=Ge,U.relatedTarget=O,Y=null,Ma(B)===D&&(de=new de(A,C+"enter",ne,n,B),de.target=O,de.relatedTarget=Ge,Y=de),Ge=Y,H&&ne)t:{for(de=nx,A=H,C=ne,O=0,Y=A;Y;Y=de(Y))O++;Y=0;for(var oe=C;oe;oe=de(oe))Y++;for(;0<O-Y;)A=de(A),O--;for(;0<Y-O;)C=de(C),Y--;for(;O--;){if(A===C||C!==null&&A===C.alternate){de=A;break t}A=de(A),C=de(C)}de=null}else de=null;H!==null&&Yp(V,U,H,de,!1),ne!==null&&Ge!==null&&Yp(V,Ge,ne,de,!0)}}e:{if(U=D?Xi(D):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Oe=rh;else if(ah(U))if(sh)Oe=h0;else{Oe=f0;var se=c0}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?D&&ro(D.elementType)&&(Oe=rh):Oe=d0;if(Oe&&(Oe=Oe(e,D))){ih(V,Oe,n,B);break e}se&&se(e,U,D),e==="focusout"&&D&&U.type==="number"&&D.memoizedProps.value!=null&&io(U,"number",U.value)}switch(se=D?Xi(D):window,e){case"focusin":(ah(se)||se.contentEditable==="true")&&(Ga=se,So=D,Ii=null);break;case"focusout":Ii=So=Ga=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,ph(V,n,B);break;case"selectionchange":if(p0)break;case"keydown":case"keyup":ph(V,n,B)}var ge;if(go)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Ba?nh(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Te="onCompositionStart");Te&&(Id&&n.locale!=="ko"&&(Ba||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Ba&&(ge=$d()):(cl=B,fo="value"in cl?cl.value:cl.textContent,Ba=!0)),se=lu(D,Te),0<se.length&&(Te=new Wd(Te,e,null,n,B),V.push({event:Te,listeners:se}),ge?Te.data=ge:(ge=lh(n),ge!==null&&(Te.data=ge)))),(ge=i0?r0(e,n):s0(e,n))&&(Te=lu(D,"onBeforeInput"),0<Te.length&&(se=new Wd("onBeforeInput","beforeinput",null,n,B),V.push({event:se,listeners:Te}),se.data=ge)),P0(V,e,D,n,B)}Gp(V,t)})}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lu(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=Vi(e,n),s!=null&&a.unshift(Nr(e,s,o)),s=Vi(e,t),s!=null&&a.push(Nr(e,s,o))),e.tag===3)return a;e=e.return}return[]}function nx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yp(e,t,n,a,s){for(var o=t._reactName,d=[];n!==null&&n!==a;){var v=n,E=v.alternate,D=v.stateNode;if(v=v.tag,E!==null&&E===a)break;v!==5&&v!==26&&v!==27||D===null||(E=D,s?(D=Vi(n,o),D!=null&&d.unshift(Nr(n,D,E))):s||(D=Vi(n,o),D!=null&&d.push(Nr(n,D,E)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var lx=/\r\n?/g,ax=/\u0000|\uFFFD/g;function Xp(e){return(typeof e=="string"?e:""+e).replace(lx,`
49
- `).replace(ax,"")}function Vp(e,t){return t=Xp(t),Xp(e)===t}function Be(e,t,n,a,s,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||La(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&La(e,""+a);break;case"className":ss(e,"class",a);break;case"tabIndex":ss(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ss(e,n,a);break;case"style":Vd(e,a,o);break;case"data":if(t!=="object"){ss(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=os(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&Be(e,t,"name",s.name,s,null),Be(e,t,"formEncType",s.formEncType,s,null),Be(e,t,"formMethod",s.formMethod,s,null),Be(e,t,"formTarget",s.formTarget,s,null)):(Be(e,t,"encType",s.encType,s,null),Be(e,t,"method",s.method,s,null),Be(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=os(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Mn);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=os(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),rs(e,"popover",a);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":rs(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Mb.get(n)||n,rs(e,n,a))}}function Zc(e,t,n,a,s,o){switch(n){case"style":Vd(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?La(e,a):(typeof a=="number"||typeof a=="bigint")&&La(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[jt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):rs(e,n,a)}}}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var a=!1,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Be(e,t,o,d,n,null)}}s&&Be(e,t,"srcSet",n.srcSet,n,null),a&&Be(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var v=o=d=s=null,E=null,D=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":s=B;break;case"type":d=B;break;case"checked":E=B;break;case"defaultChecked":D=B;break;case"value":o=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Be(e,t,a,B,n,null)}}Gd(e,o,v,E,D,d,s,!1);return;case"select":Ee("invalid",e),a=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":a=v;default:Be(e,t,s,v,n,null)}t=o,n=d,e.multiple=!!a,t!=null?ka(e,!!a,t,!1):n!=null&&ka(e,!!a,n,!0);return;case"textarea":Ee("invalid",e),o=s=a=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":a=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Be(e,t,d,v,n,null)}Yd(e,a,s,o);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(a=n[E],a!=null))switch(E){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Be(e,t,E,a,n,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(a=0;a<Er.length;a++)Ee(Er[a],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(D in n)if(n.hasOwnProperty(D)&&(a=n[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Be(e,t,D,a,n,null)}return;default:if(ro(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Zc(e,t,B,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Be(e,t,v,a,n,null))}function ix(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,o=null,d=null,v=null,E=null,D=null,B=null;for(H in n){var V=n[H];if(n.hasOwnProperty(H)&&V!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":E=V;default:a.hasOwnProperty(H)||Be(e,t,H,null,a,V)}}for(var U in a){var H=a[U];if(V=n[U],a.hasOwnProperty(U)&&(H!=null||V!=null))switch(U){case"type":o=H;break;case"name":s=H;break;case"checked":D=H;break;case"defaultChecked":B=H;break;case"value":d=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==V&&Be(e,t,U,H,a,V)}}ao(e,d,v,E,D,B,o,s);return;case"select":H=d=v=U=null;for(o in n)if(E=n[o],n.hasOwnProperty(o)&&E!=null)switch(o){case"value":break;case"multiple":H=E;default:a.hasOwnProperty(o)||Be(e,t,o,null,a,E)}for(s in a)if(o=a[s],E=n[s],a.hasOwnProperty(s)&&(o!=null||E!=null))switch(s){case"value":U=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==E&&Be(e,t,s,o,a,E)}t=v,n=d,a=H,U!=null?ka(e,!!n,U,!1):!!a!=!!n&&(t!=null?ka(e,!!n,t,!0):ka(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Be(e,t,v,null,a,s)}for(d in a)if(s=a[d],o=n[d],a.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":U=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Be(e,t,d,s,a,o)}Qd(e,U,H);return;case"option":for(var ne in n)if(U=n[ne],n.hasOwnProperty(ne)&&U!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Be(e,t,ne,null,a,U)}for(E in a)if(U=a[E],H=n[E],a.hasOwnProperty(E)&&U!==H&&(U!=null||H!=null))switch(E){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Be(e,t,E,U,a,H)}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 de in n)U=n[de],n.hasOwnProperty(de)&&U!=null&&!a.hasOwnProperty(de)&&Be(e,t,de,null,a,U);for(D in a)if(U=a[D],H=n[D],a.hasOwnProperty(D)&&U!==H&&(U!=null||H!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:Be(e,t,D,U,a,H)}return;default:if(ro(t)){for(var Ge in n)U=n[Ge],n.hasOwnProperty(Ge)&&U!==void 0&&!a.hasOwnProperty(Ge)&&Zc(e,t,Ge,void 0,a,U);for(B in a)U=a[B],H=n[B],!a.hasOwnProperty(B)||U===H||U===void 0&&H===void 0||Zc(e,t,B,U,a,H);return}}for(var A in n)U=n[A],n.hasOwnProperty(A)&&U!=null&&!a.hasOwnProperty(A)&&Be(e,t,A,null,a,U);for(V in a)U=a[V],H=n[V],!a.hasOwnProperty(V)||U===H||U==null&&H==null||Be(e,t,V,U,a,H)}function Kp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],o=s.transferSize,d=s.initiatorType,v=s.duration;if(o&&v&&Kp(d)){for(d=0,v=s.responseEnd,a+=1;a<n.length;a++){var E=n[a],D=E.startTime;if(D>v)break;var B=E.transferSize,V=E.initiatorType;B&&Kp(V)&&(E=E.responseEnd,d+=B*(E<v?1:(v-D)/(E-D)))}if(--a,t+=8*(o+d)/(s.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 $c=null,Jc=null;function au(e){return e.nodeType===9?e:e.ownerDocument}function Zp(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 $p(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 Fc(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 Wc=null;function sx(){var e=window.event;return e&&e.type==="popstate"?e===Wc?!1:(Wc=e,!0):(Wc=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,ux=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,ox=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(cx)}:Jp;function cx(e){setTimeout(function(){throw e})}function jl(e){return e==="head"}function Wp(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),mi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Cr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cr(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[Yi]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&Cr(e.ownerDocument.body);n=s}while(n);mi(t)}function Pp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Pc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Pc(n),no(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function fx(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Yi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=sn(e.nextSibling),e===null)break}return null}function dx(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=sn(e.nextSibling),e===null))return null;return e}function Ip(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=sn(e.nextSibling),e===null))return null;return e}function Ic(e){return e.data==="$?"||e.data==="$~"}function ef(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hx(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function sn(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 tf=null;function ey(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return sn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ty(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ny(e,t,n){switch(t=au(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Cr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);no(e)}var un=new Map,ly=new Set;function iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $n=J.d;J.d={f:mx,r:px,D:yx,C:gx,L:vx,m:bx,X:Sx,S:xx,M:wx};function mx(){var e=$n.f(),t=Fs();return e||t}function px(e){var t=_a(e);t!==null&&t.tag===5&&t.type==="form"?xm(t):$n.r(e)}var fi=typeof document>"u"?null:document;function ay(e,t,n){var a=fi;if(a&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),ly.has(s)||(ly.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),yt(t,"link",e),ot(t),a.head.appendChild(t)))}}function yx(e){$n.D(e),ay("dns-prefetch",e,null)}function gx(e,t){$n.C(e,t),ay("preconnect",e,t)}function vx(e,t,n){$n.L(e,t,n);var a=fi;if(a&&e&&t){var s='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+It(n.imageSizes)+'"]')):s+='[href="'+It(e)+'"]';var o=s;switch(t){case"style":o=di(e);break;case"script":o=hi(e)}un.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),un.set(o,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Tr(o))||t==="script"&&a.querySelector(jr(o))||(t=a.createElement("link"),yt(t,"link",e),ot(t),a.head.appendChild(t)))}}function bx(e,t){$n.m(e,t);var n=fi;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+It(a)+'"][href="'+It(e)+'"]',o=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=hi(e)}if(!un.has(o)&&(e=S({rel:"modulepreload",href:e},t),un.set(o,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(jr(o)))return}a=n.createElement("link"),yt(a,"link",e),ot(a),n.head.appendChild(a)}}}function xx(e,t,n){$n.S(e,t,n);var a=fi;if(a&&e){var s=Da(a).hoistableStyles,o=di(e);t=t||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=a.querySelector(Tr(o)))v.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=un.get(o))&&nf(e,n);var E=d=a.createElement("link");ot(E),yt(E,"link",e),E._p=new Promise(function(D,B){E.onload=D,E.onerror=B}),E.addEventListener("load",function(){v.loading|=1}),E.addEventListener("error",function(){v.loading|=2}),v.loading|=4,ru(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function Sx(e,t){$n.X(e,t);var n=fi;if(n&&e){var a=Da(n).hoistableScripts,s=hi(e),o=a.get(s);o||(o=n.querySelector(jr(s)),o||(e=S({src:e,async:!0},t),(t=un.get(s))&&lf(e,t),o=n.createElement("script"),ot(o),yt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function wx(e,t){$n.M(e,t);var n=fi;if(n&&e){var a=Da(n).hoistableScripts,s=hi(e),o=a.get(s);o||(o=n.querySelector(jr(s)),o||(e=S({src:e,async:!0,type:"module"},t),(t=un.get(s))&&lf(e,t),o=n.createElement("script"),ot(o),yt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(s,o))}}function iy(e,t,n,a){var s=(s=pe.current)?iu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=di(n.href),n=Da(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=di(n.href);var o=Da(s).hoistableStyles,d=o.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=s.querySelector(Tr(e)))&&!o._p&&(d.instance=o,d.state.loading=5),un.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},un.set(e,n),o||Ex(s,e,n,d.state))),t&&a===null)throw Error(u(528,""));return d}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=hi(n),n=Da(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function di(e){return'href="'+It(e)+'"'}function Tr(e){return'link[rel="stylesheet"]['+e+"]"}function ry(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Ex(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),yt(t,"link",n),ot(t),e.head.appendChild(t))}function hi(e){return'[src="'+It(e)+'"]'}function jr(e){return"script[async]"+e}function sy(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(a)return t.instance=a,ot(a),a;var s=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ot(a),yt(a,"style",s),ru(a,n.precedence,e),t.instance=a;case"stylesheet":s=di(n.href);var o=e.querySelector(Tr(s));if(o)return t.state.loading|=4,t.instance=o,ot(o),o;a=ry(n),(s=un.get(s))&&nf(a,s),o=(e.ownerDocument||e).createElement("link"),ot(o);var d=o;return d._p=new Promise(function(v,E){d.onload=v,d.onerror=E}),yt(o,"link",a),t.state.loading|=4,ru(o,n.precedence,e),t.instance=o;case"script":return o=hi(n.src),(s=e.querySelector(jr(o)))?(t.instance=s,ot(s),s):(a=n,(s=un.get(o))&&(a=S({},n),lf(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),ot(s),yt(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ru(a,n.precedence,e));return t.instance}function ru(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,o=s,d=0;d<a.length;d++){var v=a[d];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function nf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var su=null;function uy(e,t,n){if(su===null){var a=new Map,s=su=new Map;s.set(n,a)}else s=su,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[Yi]||o[dt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=a.get(d);v?v.push(o):a.set(d,[o])}}return a}function oy(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Nx(e,t,n){if(n===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 cy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cx(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=di(a.href),o=t.querySelector(Tr(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,ot(o);return}o=t.ownerDocument||t,a=ry(a),(s=un.get(s))&&nf(a,s),o=o.createElement("link"),ot(o);var d=o;d._p=new Promise(function(v,E){d.onload=v,d.onerror=E}),yt(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=uu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var af=0;function Tx(e,t){return e.stylesheets&&e.count===0&&cu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&cu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&af===0&&(af=62500*rx());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ou=null;function cu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ou=new Map,t.forEach(jx,e),ou=null,uu.call(e))}function jx(e,t){if(!(t.state.loading&4)){var n=ou.get(e);if(n)var a=n.get(null);else{n=new Map,ou.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}s=t.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,s),n.set(d,s),this.count++,a=uu.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ar={$$typeof:X,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Ax(e,t,n,a,s,o,d,v,E){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=Pu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pu(0),this.hiddenUpdates=Pu(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function fy(e,t,n,a,s,o,d,v,E,D,B,V){return e=new Ax(e,t,n,d,E,D,B,V,v),t=1,o===!0&&(t|=24),o=Yt(3,null,null,t),e.current=o,o.stateNode=e,t=Lo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Go(o),e}function dy(e){return e?(e=Xa,e):Xa}function hy(e,t,n,a,s,o){s=dy(s),a.context===null?a.context=s:a.pendingContext=s,a=yl(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=gl(e,a,t),n!==null&&(_t(n,e,t),rr(n,e,t))}function my(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function rf(e,t){my(e,t),(e=e.alternate)&&my(e,t)}function py(e){if(e.tag===13||e.tag===31){var t=ta(e,67108864);t!==null&&_t(t,e,67108864),rf(e,67108864)}}function yy(e){if(e.tag===13||e.tag===31){var t=$t();t=Iu(t);var n=ta(e,t);n!==null&&_t(n,e,t),rf(e,t)}}var fu=!0;function Rx(e,t,n,a){var s=k.T;k.T=null;var o=J.p;try{J.p=2,sf(e,t,n,a)}finally{J.p=o,k.T=s}}function zx(e,t,n,a){var s=k.T;k.T=null;var o=J.p;try{J.p=8,sf(e,t,n,a)}finally{J.p=o,k.T=s}}function sf(e,t,n,a){if(fu){var s=uf(a);if(s===null)Kc(e,t,a,du,n),vy(e,a);else if(Mx(s,e,t,n,a))a.stopPropagation();else if(vy(e,a),t&4&&-1<Ox.indexOf(e)){for(;s!==null;){var o=_a(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=Fl(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var E=1<<31-Gt(d);v.entanglements[1]|=E,d&=~E}Nn(o),(De&6)===0&&($s=Ht()+500,wr(0))}}break;case 31:case 13:v=ta(o,2),v!==null&&_t(v,o,2),Fs(),rf(o,2)}if(o=uf(a),o===null&&Kc(e,t,a,du,n),o===s)break;s=o}s!==null&&a.stopPropagation()}else Kc(e,t,a,null,n)}}function uf(e){return e=uo(e),of(e)}var du=null;function of(e){if(du=null,e=Ma(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return du=e,null}function gy(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(yb()){case Cd:return 2;case Td:return 8;case ts:case gb:return 32;case jd:return 268435456;default:return 32}default:return 32}}var cf=!1,Al=null,Rl=null,zl=null,Rr=new Map,zr=new Map,Ol=[],Ox="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 vy(e,t){switch(e){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":Rl=null;break;case"mouseover":case"mouseout":zl=null;break;case"pointerover":case"pointerout":Rr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zr.delete(t.pointerId)}}function Or(e,t,n,a,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[s]},t!==null&&(t=_a(t),t!==null&&py(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Mx(e,t,n,a,s){switch(t){case"focusin":return Al=Or(Al,e,t,n,a,s),!0;case"dragenter":return Rl=Or(Rl,e,t,n,a,s),!0;case"mouseover":return zl=Or(zl,e,t,n,a,s),!0;case"pointerover":var o=s.pointerId;return Rr.set(o,Or(Rr.get(o)||null,e,t,n,a,s)),!0;case"gotpointercapture":return o=s.pointerId,zr.set(o,Or(zr.get(o)||null,e,t,n,a,s)),!0}return!1}function by(e){var t=Ma(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,_d(e.priority,function(){yy(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,_d(e.priority,function(){yy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=uf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);so=a,n.target.dispatchEvent(a),so=null}else return t=_a(n),t!==null&&py(t),e.blockedOn=n,!1;t.shift()}return!0}function xy(e,t,n){hu(e)&&n.delete(t)}function _x(){cf=!1,Al!==null&&hu(Al)&&(Al=null),Rl!==null&&hu(Rl)&&(Rl=null),zl!==null&&hu(zl)&&(zl=null),Rr.forEach(xy),zr.forEach(xy)}function mu(e,t){e.blockedOn===t&&(e.blockedOn=null,cf||(cf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,_x)))}var pu=null;function Sy(e){pu!==e&&(pu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){pu===e&&(pu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(of(a||n)===null)continue;break}var o=_a(n);o!==null&&(e.splice(t,3),t-=3,sc(o,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function mi(e){function t(E){return mu(E,e)}Al!==null&&mu(Al,e),Rl!==null&&mu(Rl,e),zl!==null&&mu(zl,e),Rr.forEach(t),zr.forEach(t);for(var n=0;n<Ol.length;n++){var a=Ol[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(n=Ol[0],n.blockedOn===null);)by(n),n.blockedOn===null&&Ol.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],d=s[jt]||null;if(typeof o=="function")d||Sy(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[jt]||null)v=d.formAction;else if(of(s)!==null)continue}else v=d.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Sy(n)}}}function wy(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function ff(e){this._internalRoot=e}yu.prototype.render=ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=$t();hy(n,a,e,t,null,null)},yu.prototype.unmount=ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hy(e.current,2,null,e,null,null),Fs(),t[Oa]=null}};function yu(e){this._internalRoot=e}yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ol.length&&t!==0&&t<Ol[n].priority;n++);Ol.splice(n,0,e),n===0&&by(e)}};var Ey=i.version;if(Ey!=="19.2.3")throw Error(u(527,Ey,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Dx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{Bi=gu.inject(Dx),Bt=gu}catch{}}return _r.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,a="",s=zm,o=Om,d=Mm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=fy(e,1,!1,null,null,n,a,null,s,o,d,wy),e[Oa]=t.current,Vc(e),new ff(t)},_r.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var a=!1,s="",o=zm,d=Om,v=Mm,E=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=fy(e,1,!0,t,n??null,a,s,E,o,d,v,wy),t.context=dy(null),n=t.current,a=$t(),a=Iu(a),s=yl(a),s.callback=null,gl(n,s,a),n=a,t.current.lanes=n,Qi(t,n),Nn(t),e[Oa]=t.current,Vc(e),new yu(t)},_r.version="19.2.3",_r}var Yy;function N1(){if(Yy)return yf.exports;Yy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),yf.exports=E1(),yf.exports}var C1=N1(),Dr={},Xy;function T1(){if(Xy)return Dr;Xy=1,Object.defineProperty(Dr,"__esModule",{value:!0}),Dr.parse=h,Dr.serialize=p;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,i=/^[\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,u=/^[\u0020-\u003A\u003D-\u007E]*$/,c=Object.prototype.toString,f=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,z){const j=new f,R=w.length;if(R<2)return j;const M=(z==null?void 0:z.decode)||x;let _=0;do{const G=w.indexOf("=",_);if(G===-1)break;const X=w.indexOf(";",_),Z=X===-1?R:X;if(G>Z){_=w.lastIndexOf(";",G-1)+1;continue}const I=g(w,_,G),te=y(w,G,I),W=w.slice(I,te);if(j[W]===void 0){let L=g(w,G+1,Z),$=y(w,Z,L);const ue=M(w.slice(L,$));j[W]=ue}_=Z+1}while(_<R);return j}function g(w,z,j){do{const R=w.charCodeAt(z);if(R!==32&&R!==9)return z}while(++z<j);return j}function y(w,z,j){for(;z>j;){const R=w.charCodeAt(--z);if(R!==32&&R!==9)return z+1}return j}function p(w,z,j){const R=(j==null?void 0:j.encode)||encodeURIComponent;if(!l.test(w))throw new TypeError(`argument name is invalid: ${w}`);const M=R(z);if(!i.test(M))throw new TypeError(`argument val is invalid: ${z}`);let _=w+"="+M;if(!j)return _;if(j.maxAge!==void 0){if(!Number.isInteger(j.maxAge))throw new TypeError(`option maxAge is invalid: ${j.maxAge}`);_+="; Max-Age="+j.maxAge}if(j.domain){if(!r.test(j.domain))throw new TypeError(`option domain is invalid: ${j.domain}`);_+="; Domain="+j.domain}if(j.path){if(!u.test(j.path))throw new TypeError(`option path is invalid: ${j.path}`);_+="; Path="+j.path}if(j.expires){if(!S(j.expires)||!Number.isFinite(j.expires.valueOf()))throw new TypeError(`option expires is invalid: ${j.expires}`);_+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(_+="; HttpOnly"),j.secure&&(_+="; Secure"),j.partitioned&&(_+="; Partitioned"),j.priority)switch(typeof j.priority=="string"?j.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${j.priority}`)}if(j.sameSite)switch(typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${j.sameSite}`)}return _}function x(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function S(w){return c.call(w)==="[object Date]"}return Dr}T1();var Vy="popstate";function j1(l={}){function i(c,f){let{pathname:h="/",search:g="",hash:y=""}=Ra(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Qf("",{pathname:h,search:g,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let y=c.location.href,p=y.indexOf("#");g=p===-1?y:y.slice(0,p)}return g+"#"+(typeof f=="string"?f:Br(f))}function u(c,f){fn(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return R1(i,r,u,l)}function Ke(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function fn(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function A1(){return Math.random().toString(36).substring(2,10)}function Ky(l,i){return{usr:l.state,key:l.key,idx:i}}function Qf(l,i,r=null,u){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Ra(i):i,state:r,key:i&&i.key||u||A1()}}function Br({pathname:l="/",search:i="",hash:r=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function Ra(l){let i={};if(l){let r=l.indexOf("#");r>=0&&(i.hash=l.substring(r),l=l.substring(0,r));let u=l.indexOf("?");u>=0&&(i.search=l.substring(u),l=l.substring(0,u)),l&&(i.pathname=l)}return i}function R1(l,i,r,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,h=c.history,g="POP",y=null,p=x();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function x(){return(h.state||{idx:null}).idx}function S(){g="POP";let M=x(),_=M==null?null:M-p;p=M,y&&y({action:g,location:R.location,delta:_})}function w(M,_){g="PUSH";let G=Qf(R.location,M,_);r&&r(G,M),p=x()+1;let X=Ky(G,p),Z=R.createHref(G);try{h.pushState(X,"",Z)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;c.location.assign(Z)}f&&y&&y({action:g,location:R.location,delta:1})}function z(M,_){g="REPLACE";let G=Qf(R.location,M,_);r&&r(G,M),p=x();let X=Ky(G,p),Z=R.createHref(G);h.replaceState(X,"",Z),f&&y&&y({action:g,location:R.location,delta:0})}function j(M){return z1(M)}let R={get action(){return g},get location(){return l(c,h)},listen(M){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(Vy,S),y=M,()=>{c.removeEventListener(Vy,S),y=null}},createHref(M){return i(c,M)},createURL:j,encodeLocation(M){let _=j(M);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:z,go(M){return h.go(M)}};return R}function z1(l,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ke(r,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:Br(l);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=r+u),new URL(u,r)}function qg(l,i,r="/"){return O1(l,i,r,!1)}function O1(l,i,r,u){let c=typeof i=="string"?Ra(i):i,f=al(c.pathname||"/",r);if(f==null)return null;let h=Hg(l);M1(h);let g=null;for(let y=0;g==null&&y<h.length;++y){let p=Y1(f);g=G1(h[y],p,u)}return g}function Hg(l,i=[],r=[],u=""){let c=(f,h,g)=>{let y={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};y.relativePath.startsWith("/")&&(Ke(y.relativePath.startsWith(u),`Absolute route path "${y.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(u.length));let p=tl([u,y.relativePath]),x=r.concat(y);f.children&&f.children.length>0&&(Ke(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Hg(f.children,i,x,p)),!(f.path==null&&!f.index)&&i.push({path:p,score:H1(p,f.index),routesMeta:x})};return l.forEach((f,h)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,h);else for(let y of Bg(f.path))c(f,h,y)}),i}function Bg(l){let i=l.split("/");if(i.length===0)return[];let[r,...u]=i,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let h=Bg(u.join("/")),g=[];return g.push(...h.map(y=>y===""?f:[f,y].join("/"))),c&&g.push(...h),g.map(y=>l.startsWith("/")&&y===""?"/":y)}function M1(l){l.sort((i,r)=>i.score!==r.score?r.score-i.score:B1(i.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var _1=/^:[\w-]+$/,D1=3,U1=2,k1=1,L1=10,q1=-2,Zy=l=>l==="*";function H1(l,i){let r=l.split("/"),u=r.length;return r.some(Zy)&&(u+=q1),i&&(u+=U1),r.filter(c=>!Zy(c)).reduce((c,f)=>c+(_1.test(f)?D1:f===""?k1:L1),u)}function B1(l,i){return l.length===i.length&&l.slice(0,-1).every((u,c)=>u===i[c])?l[l.length-1]-i[i.length-1]:0}function G1(l,i,r=!1){let{routesMeta:u}=l,c={},f="/",h=[];for(let g=0;g<u.length;++g){let y=u[g],p=g===u.length-1,x=f==="/"?i:i.slice(f.length)||"/",S=_u({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!S&&p&&r&&!u[u.length-1].route.index&&(S=_u({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),h.push({params:c,pathname:tl([f,S.pathname]),pathnameBase:Z1(tl([f,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(f=tl([f,S.pathnameBase]))}return h}function _u(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,u]=Q1(l.path,l.caseSensitive,l.end),c=i.match(r);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:u.reduce((p,{paramName:x,isOptional:S},w)=>{if(x==="*"){let j=g[w]||"";h=f.slice(0,f.length-j.length).replace(/(.)\/+$/,"$1")}const z=g[w];return S&&!z?p[x]=void 0:p[x]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:l}}function Q1(l,i=!1,r=!0){fn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,y)=>(u.push({paramName:g,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(u.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),u]}function Y1(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return fn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function al(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,u=l.charAt(r);return u&&u!=="/"?null:l.slice(r)||"/"}function X1(l,i="/"){let{pathname:r,search:u="",hash:c=""}=typeof l=="string"?Ra(l):l;return{pathname:r?r.startsWith("/")?r:V1(r,i):i,search:$1(u),hash:J1(c)}}function V1(l,i){let r=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function xf(l,i,r,u){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. 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 K1(l){return l.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function ad(l){let i=K1(l);return i.map((r,u)=>u===i.length-1?r.pathname:r.pathnameBase)}function id(l,i,r,u=!1){let c;typeof l=="string"?c=Ra(l):(c={...l},Ke(!c.pathname||!c.pathname.includes("?"),xf("?","pathname","search",c)),Ke(!c.pathname||!c.pathname.includes("#"),xf("#","pathname","hash",c)),Ke(!c.search||!c.search.includes("#"),xf("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=r;else{let S=i.length-1;if(!u&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),S-=1;c.pathname=w.join("/")}g=S>=0?i[S]:"/"}let y=X1(c,g),p=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&r.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var tl=l=>l.join("/").replace(/\/\/+/g,"/"),Z1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),$1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,J1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function F1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Gg=["POST","PUT","PATCH","DELETE"];new Set(Gg);var W1=["GET",...Gg];new Set(W1);var Di=b.createContext(null);Di.displayName="DataRouter";var ku=b.createContext(null);ku.displayName="DataRouterState";var Qg=b.createContext({isTransitioning:!1});Qg.displayName="ViewTransition";var P1=b.createContext(new Map);P1.displayName="Fetchers";var I1=b.createContext(null);I1.displayName="Await";var bn=b.createContext(null);bn.displayName="Navigation";var Zr=b.createContext(null);Zr.displayName="Location";var xn=b.createContext({outlet:null,matches:[],isDataRoute:!1});xn.displayName="Route";var rd=b.createContext(null);rd.displayName="RouteError";function eS(l,{relative:i}={}){Ke(Ui(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=b.useContext(bn),{hash:c,pathname:f,search:h}=$r(l,{relative:i}),g=f;return r!=="/"&&(g=f==="/"?r:tl([r,f])),u.createHref({pathname:g,search:h,hash:c})}function Ui(){return b.useContext(Zr)!=null}function il(){return Ke(Ui(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Zr).location}var Yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xg(l){b.useContext(bn).static||b.useLayoutEffect(l)}function Vg(){let{isDataRoute:l}=b.useContext(xn);return l?hS():tS()}function tS(){Ke(Ui(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(Di),{basename:i,navigator:r}=b.useContext(bn),{matches:u}=b.useContext(xn),{pathname:c}=il(),f=JSON.stringify(ad(u)),h=b.useRef(!1);return Xg(()=>{h.current=!0}),b.useCallback((y,p={})=>{if(fn(h.current,Yg),!h.current)return;if(typeof y=="number"){r.go(y);return}let x=id(y,JSON.parse(f),c,p.relative==="path");l==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:tl([i,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[i,r,f,c,l])}b.createContext(null);function Lu(){let{matches:l}=b.useContext(xn),i=l[l.length-1];return i?i.params:{}}function $r(l,{relative:i}={}){let{matches:r}=b.useContext(xn),{pathname:u}=il(),c=JSON.stringify(ad(r));return b.useMemo(()=>id(l,JSON.parse(c),u,i==="path"),[l,c,u,i])}function nS(l,i){return Kg(l,i)}function Kg(l,i,r,u){var _;Ke(Ui(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=b.useContext(bn),{matches:f}=b.useContext(xn),h=f[f.length-1],g=h?h.params:{},y=h?h.pathname:"/",p=h?h.pathnameBase:"/",x=h&&h.route;{let G=x&&x.path||"";Zg(y,!x||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${G}">) 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="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let S=il(),w;if(i){let G=typeof i=="string"?Ra(i):i;Ke(p==="/"||((_=G.pathname)==null?void 0:_.startsWith(p)),`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 "${p}" but pathname "${G.pathname}" was given in the \`location\` prop.`),w=G}else w=S;let z=w.pathname||"/",j=z;if(p!=="/"){let G=p.replace(/^\//,"").split("/");j="/"+z.replace(/^\//,"").split("/").slice(G.length).join("/")}let R=qg(l,{pathname:j});fn(x||R!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),fn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.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 M=sS(R&&R.map(G=>Object.assign({},G,{params:Object.assign({},g,G.params),pathname:tl([p,c.encodeLocation?c.encodeLocation(G.pathname).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?p:tl([p,c.encodeLocation?c.encodeLocation(G.pathnameBase).pathname:G.pathnameBase])})),f,r,u);return i&&M?b.createElement(Zr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},M):M}function lS(){let l=dS(),i=F1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},i),r?b.createElement("pre",{style:c},r):null,h)}var aS=b.createElement(lS,null),iS=class extends b.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){console.error("React Router caught the following error during render",l,i)}render(){return this.state.error!==void 0?b.createElement(xn.Provider,{value:this.props.routeContext},b.createElement(rd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function rS({routeContext:l,match:i,children:r}){let u=b.useContext(Di);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),b.createElement(xn.Provider,{value:l},r)}function sS(l,i=[],r=null,u=null){if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let c=l,f=r==null?void 0:r.errors;if(f!=null){let y=c.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);Ke(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,y+1))}let h=!1,g=-1;if(r)for(let y=0;y<c.length;y++){let p=c[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=y),p.route.id){let{loaderData:x,errors:S}=r,w=p.route.loader&&!x.hasOwnProperty(p.route.id)&&(!S||S[p.route.id]===void 0);if(p.route.lazy||w){h=!0,g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}return c.reduceRight((y,p,x)=>{let S,w=!1,z=null,j=null;r&&(S=f&&p.route.id?f[p.route.id]:void 0,z=p.route.errorElement||aS,h&&(g<0&&x===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,j=null):g===x&&(w=!0,j=p.route.hydrateFallbackElement||null)));let R=i.concat(c.slice(0,x+1)),M=()=>{let _;return S?_=z:w?_=j:p.route.Component?_=b.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=y,b.createElement(rS,{match:p,routeContext:{outlet:y,matches:R,isDataRoute:r!=null},children:_})};return r&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?b.createElement(iS,{location:r.location,revalidation:r.revalidation,component:z,error:S,children:M(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):M()},null)}function sd(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uS(l){let i=b.useContext(Di);return Ke(i,sd(l)),i}function oS(l){let i=b.useContext(ku);return Ke(i,sd(l)),i}function cS(l){let i=b.useContext(xn);return Ke(i,sd(l)),i}function ud(l){let i=cS(l),r=i.matches[i.matches.length-1];return Ke(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function fS(){return ud("useRouteId")}function dS(){var u;let l=b.useContext(rd),i=oS("useRouteError"),r=ud("useRouteError");return l!==void 0?l:(u=i.errors)==null?void 0:u[r]}function hS(){let{router:l}=uS("useNavigate"),i=ud("useNavigate"),r=b.useRef(!1);return Xg(()=>{r.current=!0}),b.useCallback(async(c,f={})=>{fn(r.current,Yg),r.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:i,...f}))},[l,i])}var $y={};function Zg(l,i,r){!i&&!$y[l]&&($y[l]=!0,fn(!1,r))}b.memo(mS);function mS({routes:l,future:i,state:r}){return Kg(l,void 0,r,i)}function Sf({to:l,replace:i,state:r,relative:u}){Ke(Ui(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=b.useContext(bn);fn(!c,"<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:f}=b.useContext(xn),{pathname:h}=il(),g=Vg(),y=id(l,ad(f),h,u==="path"),p=JSON.stringify(y);return b.useEffect(()=>{g(JSON.parse(p),{replace:i,state:r,relative:u})},[g,p,u,i,r]),null}function gi(l){Ke(!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 pS({basename:l="/",children:i=null,location:r,navigationType:u="POP",navigator:c,static:f=!1}){Ke(!Ui(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),g=b.useMemo(()=>({basename:h,navigator:c,static:f,future:{}}),[h,c,f]);typeof r=="string"&&(r=Ra(r));let{pathname:y="/",search:p="",hash:x="",state:S=null,key:w="default"}=r,z=b.useMemo(()=>{let j=al(y,h);return j==null?null:{location:{pathname:j,search:p,hash:x,state:S,key:w},navigationType:u}},[h,y,p,x,S,w,u]);return fn(z!=null,`<Router basename="${h}"> is not able to match the URL "${y}${p}${x}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:b.createElement(bn.Provider,{value:g},b.createElement(Zr.Provider,{children:i,value:z}))}function yS({children:l,location:i}){return nS(Yf(l),i)}function Yf(l,i=[]){let r=[];return b.Children.forEach(l,(u,c)=>{if(!b.isValidElement(u))return;let f=[...i,c];if(u.type===b.Fragment){r.push.apply(r,Yf(u.props.children,f));return}Ke(u.type===gi,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ke(!u.props.index||!u.props.children,"An index route cannot have child routes.");let h={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(h.children=Yf(u.props.children,f)),r.push(h)}),r}var Au="get",Ru="application/x-www-form-urlencoded";function qu(l){return l!=null&&typeof l.tagName=="string"}function gS(l){return qu(l)&&l.tagName.toLowerCase()==="button"}function vS(l){return qu(l)&&l.tagName.toLowerCase()==="form"}function bS(l){return qu(l)&&l.tagName.toLowerCase()==="input"}function xS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function SS(l,i){return l.button===0&&(!i||i==="_self")&&!xS(l)}var xu=null;function wS(){if(xu===null)try{new FormData(document.createElement("form"),0),xu=!1}catch{xu=!0}return xu}var ES=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wf(l){return l!=null&&!ES.has(l)?(fn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ru}"`),null):l}function NS(l,i){let r,u,c,f,h;if(vS(l)){let g=l.getAttribute("action");u=g?al(g,i):null,r=l.getAttribute("method")||Au,c=wf(l.getAttribute("enctype"))||Ru,f=new FormData(l)}else if(gS(l)||bS(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||g.getAttribute("action");if(u=y?al(y,i):null,r=l.getAttribute("formmethod")||g.getAttribute("method")||Au,c=wf(l.getAttribute("formenctype"))||wf(g.getAttribute("enctype"))||Ru,f=new FormData(g,l),!wS()){let{name:p,type:x,value:S}=l;if(x==="image"){let w=p?`${p}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else p&&f.append(p,S)}}else{if(qu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Au,u=null,c=Ru,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:u,method:r.toLowerCase(),encType:c,formData:f,body:h}}function od(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}async function CS(l,i){if(l.id in i)return i[l.id];try{let r=await import(l.module);return i[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function TS(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function jS(l,i,r){let u=await Promise.all(l.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await CS(f,r);return h.links?h.links():[]}return[]}));return OS(u.flat(1).filter(TS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Jy(l,i,r,u,c,f){let h=(y,p)=>r[p]?y.route.id!==r[p].route.id:!0,g=(y,p)=>{var x;return r[p].pathname!==y.pathname||((x=r[p].route.path)==null?void 0:x.endsWith("*"))&&r[p].params["*"]!==y.params["*"]};return f==="assets"?i.filter((y,p)=>h(y,p)||g(y,p)):f==="data"?i.filter((y,p)=>{var S;let x=u.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(h(y,p)||g(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function AS(l,i,{includeHydrateFallback:r}={}){return RS(l.map(u=>{let c=i.routes[u.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function RS(l){return[...new Set(l)]}function zS(l){let i={},r=Object.keys(l).sort();for(let u of r)i[u]=l[u];return i}function OS(l,i){let r=new Set;return new Set(i),l.reduce((u,c)=>{let f=JSON.stringify(zS(c));return r.has(f)||(r.add(f),u.push({key:f,link:c})),u},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var MS=new Set([100,101,204,205]);function _S(l,i){let r=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r.pathname==="/"?r.pathname="_root.data":i&&al(r.pathname,i)==="/"?r.pathname=`${i.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function $g(){let l=b.useContext(Di);return od(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function DS(){let l=b.useContext(ku);return od(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var cd=b.createContext(void 0);cd.displayName="FrameworkContext";function Jg(){let l=b.useContext(cd);return od(l,"You must render this element inside a <HydratedRouter> element"),l}function US(l,i){let r=b.useContext(cd),[u,c]=b.useState(!1),[f,h]=b.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:S}=i,w=b.useRef(null);b.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let R=_=>{_.forEach(G=>{h(G.isIntersecting)})},M=new IntersectionObserver(R,{threshold:.5});return w.current&&M.observe(w.current),()=>{M.disconnect()}}},[l]),b.useEffect(()=>{if(u){let R=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(R)}}},[u]);let z=()=>{c(!0)},j=()=>{c(!1),h(!1)};return r?l!=="intent"?[f,w,{}]:[f,w,{onFocus:Ur(g,z),onBlur:Ur(y,j),onMouseEnter:Ur(p,z),onMouseLeave:Ur(x,j),onTouchStart:Ur(S,z)}]:[!1,w,{}]}function Ur(l,i){return r=>{l&&l(r),r.defaultPrevented||i(r)}}function kS({page:l,...i}){let{router:r}=$g(),u=b.useMemo(()=>qg(r.routes,l,r.basename),[r.routes,l,r.basename]);return u?b.createElement(qS,{page:l,matches:u,...i}):null}function LS(l){let{manifest:i,routeModules:r}=Jg(),[u,c]=b.useState([]);return b.useEffect(()=>{let f=!1;return jS(l,i,r).then(h=>{f||c(h)}),()=>{f=!0}},[l,i,r]),u}function qS({page:l,matches:i,...r}){let u=il(),{manifest:c,routeModules:f}=Jg(),{basename:h}=$g(),{loaderData:g,matches:y}=DS(),p=b.useMemo(()=>Jy(l,i,y,c,u,"data"),[l,i,y,c,u]),x=b.useMemo(()=>Jy(l,i,y,c,u,"assets"),[l,i,y,c,u]),S=b.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let j=new Set,R=!1;if(i.forEach(_=>{var X;let G=c.routes[_.route.id];!G||!G.hasLoader||(!p.some(Z=>Z.route.id===_.route.id)&&_.route.id in g&&((X=f[_.route.id])!=null&&X.shouldRevalidate)||G.hasClientLoader?R=!0:j.add(_.route.id))}),j.size===0)return[];let M=_S(l,h);return R&&j.size>0&&M.searchParams.set("_routes",i.filter(_=>j.has(_.route.id)).map(_=>_.route.id).join(",")),[M.pathname+M.search]},[h,g,u,c,p,i,l,f]),w=b.useMemo(()=>AS(x,c),[x,c]),z=LS(x);return b.createElement(b.Fragment,null,S.map(j=>b.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...r})),w.map(j=>b.createElement("link",{key:j,rel:"modulepreload",href:j,...r})),z.map(({key:j,link:R})=>b.createElement("link",{key:j,...R})))}function HS(...l){return i=>{l.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var Fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Fg&&(window.__reactRouterVersion="7.6.1")}catch{}function BS({basename:l,children:i,window:r}){let u=b.useRef();u.current==null&&(u.current=j1({window:r,v5Compat:!0}));let c=u.current,[f,h]=b.useState({action:c.action,location:c.location}),g=b.useCallback(y=>{b.startTransition(()=>h(y))},[h]);return b.useLayoutEffect(()=>c.listen(g),[c,g]),b.createElement(pS,{basename:l,children:i,location:f.location,navigationType:f.action,navigator:c})}var Wg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zl=b.forwardRef(function({onClick:i,discover:r="render",prefetch:u="none",relative:c,reloadDocument:f,replace:h,state:g,target:y,to:p,preventScrollReset:x,viewTransition:S,...w},z){let{basename:j}=b.useContext(bn),R=typeof p=="string"&&Wg.test(p),M,_=!1;if(typeof p=="string"&&R&&(M=p,Fg))try{let $=new URL(window.location.href),ue=p.startsWith("//")?new URL($.protocol+p):new URL(p),Se=al(ue.pathname,j);ue.origin===$.origin&&Se!=null?p=Se+ue.search+ue.hash:_=!0}catch{fn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=eS(p,{relative:c}),[X,Z,I]=US(u,w),te=XS(p,{replace:h,state:g,target:y,preventScrollReset:x,relative:c,viewTransition:S});function W($){i&&i($),$.defaultPrevented||te($)}let L=b.createElement("a",{...w,...I,href:M||G,onClick:_||f?i:W,ref:HS(z,Z),target:y,"data-discover":!R&&r==="render"?"true":void 0});return X&&!R?b.createElement(b.Fragment,null,L,b.createElement(kS,{page:G})):L});Zl.displayName="Link";var GS=b.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:u="",end:c=!1,style:f,to:h,viewTransition:g,children:y,...p},x){let S=$r(h,{relative:p.relative}),w=il(),z=b.useContext(ku),{navigator:j,basename:R}=b.useContext(bn),M=z!=null&&JS(S)&&g===!0,_=j.encodeLocation?j.encodeLocation(S).pathname:S.pathname,G=w.pathname,X=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;r||(G=G.toLowerCase(),X=X?X.toLowerCase():null,_=_.toLowerCase()),X&&R&&(X=al(X,R)||X);const Z=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let I=G===_||!c&&G.startsWith(_)&&G.charAt(Z)==="/",te=X!=null&&(X===_||!c&&X.startsWith(_)&&X.charAt(_.length)==="/"),W={isActive:I,isPending:te,isTransitioning:M},L=I?i:void 0,$;typeof u=="function"?$=u(W):$=[u,I?"active":null,te?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let ue=typeof f=="function"?f(W):f;return b.createElement(Zl,{...p,"aria-current":L,className:$,ref:x,style:ue,to:h,viewTransition:g},typeof y=="function"?y(W):y)});GS.displayName="NavLink";var QS=b.forwardRef(({discover:l="render",fetcherKey:i,navigate:r,reloadDocument:u,replace:c,state:f,method:h=Au,action:g,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:S,...w},z)=>{let j=ZS(),R=$S(g,{relative:p}),M=h.toLowerCase()==="get"?"get":"post",_=typeof g=="string"&&Wg.test(g),G=X=>{if(y&&y(X),X.defaultPrevented)return;X.preventDefault();let Z=X.nativeEvent.submitter,I=(Z==null?void 0:Z.getAttribute("formmethod"))||h;j(Z||X.currentTarget,{fetcherKey:i,method:I,navigate:r,replace:c,state:f,relative:p,preventScrollReset:x,viewTransition:S})};return b.createElement("form",{ref:z,method:M,action:R,onSubmit:u?y:G,...w,"data-discover":!_&&l==="render"?"true":void 0})});QS.displayName="Form";function YS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pg(l){let i=b.useContext(Di);return Ke(i,YS(l)),i}function XS(l,{target:i,replace:r,state:u,preventScrollReset:c,relative:f,viewTransition:h}={}){let g=Vg(),y=il(),p=$r(l,{relative:f});return b.useCallback(x=>{if(SS(x,i)){x.preventDefault();let S=r!==void 0?r:Br(y)===Br(p);g(l,{replace:S,state:u,preventScrollReset:c,relative:f,viewTransition:h})}},[y,g,p,r,u,i,l,c,f,h])}var VS=0,KS=()=>`__${String(++VS)}__`;function ZS(){let{router:l}=Pg("useSubmit"),{basename:i}=b.useContext(bn),r=fS();return b.useCallback(async(u,c={})=>{let{action:f,method:h,encType:g,formData:y,body:p}=NS(u,i);if(c.navigate===!1){let x=c.fetcherKey||KS();await l.fetch(x,r,c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:p,formMethod:c.method||h,formEncType:c.encType||g,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:y,body:p,formMethod:c.method||h,formEncType:c.encType||g,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,i,r])}function $S(l,{relative:i}={}){let{basename:r}=b.useContext(bn),u=b.useContext(xn);Ke(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...$r(l||".",{relative:i})},h=il();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),y=g.getAll("index");if(y.some(x=>x==="")){g.delete("index"),y.filter(S=>S).forEach(S=>g.append("index",S));let x=g.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:tl([r,f.pathname])),Br(f)}function JS(l,i={}){let r=b.useContext(Qg);Ke(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Pg("useViewTransitionState"),c=$r(l,{relative:i.relative});if(!r.isTransitioning)return!1;let f=al(r.currentLocation.pathname,u)||r.currentLocation.pathname,h=al(r.nextLocation.pathname,u)||r.nextLocation.pathname;return _u(c.pathname,h)!=null||_u(c.pathname,f)!=null}[...MS];Lg();/**
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 FS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),WS=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,u)=>u?u.toUpperCase():r.toLowerCase()),Fy=l=>{const i=WS(l);return i.charAt(0).toUpperCase()+i.slice(1)},Ig=(...l)=>l.filter((i,r,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===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 PS={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 IS=b.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:h,...g},y)=>b.createElement("svg",{ref:y,...PS,width:i,height:i,stroke:l,strokeWidth:u?Number(r)*24/Number(i):r,className:Ig("lucide",c),...g},[...h.map(([p,x])=>b.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
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 ut=(l,i)=>{const r=b.forwardRef(({className:u,...c},f)=>b.createElement(IS,{ref:f,iconNode:i,className:Ig(`lucide-${FS(Fy(l))}`,`lucide-${l}`,u),...c}));return r.displayName=Fy(l),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 ew=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],tw=ut("arrow-left",ew);/**
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 nw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],ev=ut("ban",nw);/**
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 lw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],aw=ut("chevron-down",lw);/**
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 iw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rw=ut("chevron-left",iw);/**
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 sw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tv=ut("chevron-right",sw);/**
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 uw=[["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"}]],ow=ut("circle-alert",uw);/**
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 cw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jr=ut("circle-check",cw);/**
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 fw=[["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"}]],Fr=ut("circle-x",fw);/**
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 dw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Wr=ut("clock",dw);/**
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 hw=[["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"}]],mw=ut("columns-3",hw);/**
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 pw=[["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"}]],yw=ut("database",pw);/**
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 gw=[["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"}]],vw=ut("git-branch",gw);/**
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 bw=[["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"}]],xw=ut("inbox",bw);/**
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 Sw=[["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"}]],ww=ut("key",Sw);/**
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 Ew=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bt=ut("loader-circle",Ew);/**
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 Nw=[["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"}]],Cw=ut("mail-warning",Nw);/**
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 Tw=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],jw=ut("play",Tw);/**
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 Aw=[["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"}]],nv=ut("refresh-cw",Aw);/**
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 Rw=[["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"}]],lv=ut("table",Rw);function av(l){var i,r,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l))for(i=0;i<l.length;i++)l[i]&&(r=av(l[i]))&&(u&&(u+=" "),u+=r);else for(i in l)l[i]&&(u&&(u+=" "),u+=i);return u}function zw(){for(var l,i,r=0,u="";r<arguments.length;)(l=arguments[r++])&&(i=av(l))&&(u&&(u+=" "),u+=i);return u}const fd="-",Ow=l=>{const i=_w(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:c=>{const f=c.split(fd);return f[0]===""&&f.length!==1&&f.shift(),iv(f,i)||Mw(c)},getConflictingClassGroupIds:(c,f)=>{const h=r[c]||[];return f&&u[c]?[...h,...u[c]]:h}}},iv=(l,i)=>{var r;if(l.length===0)return i.classGroupId;const u=l[0],c=i.nextPart.get(u),f=c?iv(l.slice(1),c):void 0;if(f)return f;if(i.validators.length===0)return;const h=l.join(fd);return(r=i.validators.find(({validator:g})=>g(h)))==null?void 0:r.classGroupId},Wy=/^\[(.+)\]$/,Mw=l=>{if(Wy.test(l)){const i=Wy.exec(l)[1],r=i==null?void 0:i.substring(0,i.indexOf(":"));if(r)return"arbitrary.."+r}},_w=l=>{const{theme:i,classGroups:r}=l,u={nextPart:new Map,validators:[]};for(const c in r)Xf(r[c],u,c,i);return u},Xf=(l,i,r,u)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?i:Py(i,c);f.classGroupId=r;return}if(typeof c=="function"){if(Dw(c)){Xf(c(u),i,r,u);return}i.validators.push({validator:c,classGroupId:r});return}Object.entries(c).forEach(([f,h])=>{Xf(h,Py(i,f),r,u)})})},Py=(l,i)=>{let r=l;return i.split(fd).forEach(u=>{r.nextPart.has(u)||r.nextPart.set(u,{nextPart:new Map,validators:[]}),r=r.nextPart.get(u)}),r},Dw=l=>l.isThemeGetter,Uw=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,r=new Map,u=new Map;const c=(f,h)=>{r.set(f,h),i++,i>l&&(i=0,u=r,r=new Map)};return{get(f){let h=r.get(f);if(h!==void 0)return h;if((h=u.get(f))!==void 0)return c(f,h),h},set(f,h){r.has(f)?r.set(f,h):c(f,h)}}},Vf="!",Kf=":",kw=Kf.length,Lw=l=>{const{prefix:i,experimentalParseClassName:r}=l;let u=c=>{const f=[];let h=0,g=0,y=0,p;for(let j=0;j<c.length;j++){let R=c[j];if(h===0&&g===0){if(R===Kf){f.push(c.slice(y,j)),y=j+kw;continue}if(R==="/"){p=j;continue}}R==="["?h++:R==="]"?h--:R==="("?g++:R===")"&&g--}const x=f.length===0?c:c.substring(y),S=qw(x),w=S!==x,z=p&&p>y?p-y:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:z}};if(i){const c=i+Kf,f=u;u=h=>h.startsWith(c)?f(h.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const c=u;u=f=>r({className:f,parseClassName:c})}return u},qw=l=>l.endsWith(Vf)?l.substring(0,l.length-1):l.startsWith(Vf)?l.substring(1):l,Hw=l=>{const i=Object.fromEntries(l.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const u=[];let c=[];return r.forEach(f=>{f[0]==="["||i[f]?(u.push(...c.sort(),f),c=[]):c.push(f)}),u.push(...c.sort()),u}},Bw=l=>({cache:Uw(l.cacheSize),parseClassName:Lw(l),sortModifiers:Hw(l),...Ow(l)}),Gw=/\s+/,Qw=(l,i)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f}=i,h=[],g=l.trim().split(Gw);let y="";for(let p=g.length-1;p>=0;p-=1){const x=g[p],{isExternal:S,modifiers:w,hasImportantModifier:z,baseClassName:j,maybePostfixModifierPosition:R}=r(x);if(S){y=x+(y.length>0?" "+y:y);continue}let M=!!R,_=u(M?j.substring(0,R):j);if(!_){if(!M){y=x+(y.length>0?" "+y:y);continue}if(_=u(j),!_){y=x+(y.length>0?" "+y:y);continue}M=!1}const G=f(w).join(":"),X=z?G+Vf:G,Z=X+_;if(h.includes(Z))continue;h.push(Z);const I=c(_,M);for(let te=0;te<I.length;++te){const W=I[te];h.push(X+W)}y=x+(y.length>0?" "+y:y)}return y};function Yw(){let l=0,i,r,u="";for(;l<arguments.length;)(i=arguments[l++])&&(r=rv(i))&&(u&&(u+=" "),u+=r);return u}const rv=l=>{if(typeof l=="string")return l;let i,r="";for(let u=0;u<l.length;u++)l[u]&&(i=rv(l[u]))&&(r&&(r+=" "),r+=i);return r};function Xw(l,...i){let r,u,c,f=h;function h(y){const p=i.reduce((x,S)=>S(x),l());return r=Bw(p),u=r.cache.get,c=r.cache.set,f=g,g(y)}function g(y){const p=u(y);if(p)return p;const x=Qw(y,r);return c(y,x),x}return function(){return f(Yw.apply(null,arguments))}}const it=l=>{const i=r=>r[l]||[];return i.isThemeGetter=!0,i},sv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vw=/^\d+\/\d+$/,Kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zw=/\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$/,$w=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pi=l=>Vw.test(l),be=l=>!!l&&!Number.isNaN(Number(l)),_l=l=>!!l&&Number.isInteger(Number(l)),Ef=l=>l.endsWith("%")&&be(l.slice(0,-1)),Jn=l=>Kw.test(l),Ww=()=>!0,Pw=l=>Zw.test(l)&&!$w.test(l),ov=()=>!1,Iw=l=>Jw.test(l),eE=l=>Fw.test(l),tE=l=>!le(l)&&!ae(l),nE=l=>ki(l,dv,ov),le=l=>sv.test(l),ma=l=>ki(l,hv,Pw),Nf=l=>ki(l,sE,be),Iy=l=>ki(l,cv,ov),lE=l=>ki(l,fv,eE),Su=l=>ki(l,mv,Iw),ae=l=>uv.test(l),kr=l=>Li(l,hv),aE=l=>Li(l,uE),eg=l=>Li(l,cv),iE=l=>Li(l,dv),rE=l=>Li(l,fv),wu=l=>Li(l,mv,!0),ki=(l,i,r)=>{const u=sv.exec(l);return u?u[1]?i(u[1]):r(u[2]):!1},Li=(l,i,r=!1)=>{const u=uv.exec(l);return u?u[1]?i(u[1]):r:!1},cv=l=>l==="position"||l==="percentage",fv=l=>l==="image"||l==="url",dv=l=>l==="length"||l==="size"||l==="bg-size",hv=l=>l==="length",sE=l=>l==="number",uE=l=>l==="family-name",mv=l=>l==="shadow",oE=()=>{const l=it("color"),i=it("font"),r=it("text"),u=it("font-weight"),c=it("tracking"),f=it("leading"),h=it("breakpoint"),g=it("container"),y=it("spacing"),p=it("radius"),x=it("shadow"),S=it("inset-shadow"),w=it("text-shadow"),z=it("drop-shadow"),j=it("blur"),R=it("perspective"),M=it("aspect"),_=it("ease"),G=it("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...Z(),ae,le],te=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],L=()=>[ae,le,y],$=()=>[pi,"full","auto",...L()],ue=()=>[_l,"none","subgrid",ae,le],Se=()=>["auto",{span:["full",_l,ae,le]},_l,ae,le],Ne=()=>[_l,"auto",ae,le],he=()=>["auto","min","max","fr",ae,le],Ze=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ue=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...L()],J=()=>[pi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],q=()=>[l,ae,le],Re=()=>[...Z(),eg,Iy,{position:[ae,le]}],ze=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",iE,nE,{size:[ae,le]}],Q=()=>[Ef,kr,ma],K=()=>["","none","full",p,ae,le],F=()=>["",be,kr,ma],fe=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[be,Ef,eg,Iy],We=()=>["","none",j,ae,le],_e=()=>["none",be,ae,le],xt=()=>["none",be,ae,le],Wt=()=>[be,ae,le],qt=()=>[pi,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[Ww],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[tE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",be],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",pi,le,ae,M]}],container:["container"],columns:[{columns:[be,le,ae,g]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:I()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[_l,"auto",ae,le]}],basis:[{basis:[pi,"full","auto",g,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,pi,"auto","initial","none",le]}],grow:[{grow:["",be,ae,le]}],shrink:[{shrink:["",be,ae,le]}],order:[{order:[_l,"first","last","none",ae,le]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Ze(),"normal"]}],"justify-items":[{"justify-items":[...Ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ue()]}],"align-content":[{content:["normal",...Ze()]}],"align-items":[{items:[...Ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ze()}],"place-items":[{"place-items":[...Ue(),"baseline"]}],"place-self":[{"place-self":["auto",...Ue()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[g,"screen",...J()]}],"min-w":[{"min-w":[g,"screen","none",...J()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",r,kr,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,ae,Nf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ef,le]}],"font-family":[{font:[aE,le,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ae,le]}],"line-clamp":[{"line-clamp":[be,"none",ae,Nf]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",ae,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",ae,ma]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[be,"auto",ae,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,le]}],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",ae,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:ze()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_l,ae,le],radial:["",ae,le],conic:[_l,ae,le]},rE,lE]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,ae,le]}],"outline-w":[{outline:["",be,kr,ma]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",x,wu,Su]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",S,wu,Su]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[be,ma]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",w,wu,Su]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[be,ae,le]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[ae,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":Z()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:ze()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,le]}],filter:[{filter:["","none",ae,le]}],blur:[{blur:We()}],brightness:[{brightness:[be,ae,le]}],contrast:[{contrast:[be,ae,le]}],"drop-shadow":[{"drop-shadow":["","none",z,wu,Su]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",be,ae,le]}],"hue-rotate":[{"hue-rotate":[be,ae,le]}],invert:[{invert:["",be,ae,le]}],saturate:[{saturate:[be,ae,le]}],sepia:[{sepia:["",be,ae,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,le]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[be,ae,le]}],"backdrop-contrast":[{"backdrop-contrast":[be,ae,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,ae,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,ae,le]}],"backdrop-invert":[{"backdrop-invert":["",be,ae,le]}],"backdrop-opacity":[{"backdrop-opacity":[be,ae,le]}],"backdrop-saturate":[{"backdrop-saturate":[be,ae,le]}],"backdrop-sepia":[{"backdrop-sepia":["",be,ae,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",ae,le]}],ease:[{ease:["linear","initial",_,ae,le]}],delay:[{delay:[be,ae,le]}],animate:[{animate:["none",G,ae,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,ae,le]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:xt()}],"scale-x":[{"scale-x":xt()}],"scale-y":[{"scale-y":xt()}],"scale-z":[{"scale-z":xt()}],"scale-3d":["scale-3d"],skew:[{skew:Wt()}],"skew-x":[{"skew-x":Wt()}],"skew-y":[{"skew-y":Wt()}],transform:[{transform:[ae,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qt()}],"translate-x":[{"translate-x":qt()}],"translate-y":[{"translate-y":qt()}],"translate-z":[{"translate-z":qt()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",ae,le]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",ae,le]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[be,kr,ma,Nf]}],stroke:[{stroke:["none",...q()]}],"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"]}},cE=Xw(oE);function Tt(...l){return cE(zw(l))}function Nt({className:l,...i}){return m.jsx("div",{"data-slot":"card",className:Tt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",l),...i})}function kt({className:l,...i}){return m.jsx("div",{"data-slot":"card-header",className:Tt("@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6",l),...i})}function Lt({className:l,...i}){return m.jsx("div",{"data-slot":"card-title",className:Tt("font-semibold leading-none",l),...i})}function Aa({className:l,...i}){return m.jsx("div",{"data-slot":"card-description",className:Tt("text-muted-foreground text-sm",l),...i})}function Ct({className:l,...i}){return m.jsx("div",{"data-slot":"card-content",className:Tt("px-6",l),...i})}function Hu({className:l,...i}){return m.jsx("table",{"data-slot":"table",className:Tt("w-full caption-bottom text-sm",l),...i})}function Bu({className:l,...i}){return m.jsx("thead",{"data-slot":"table-header",className:Tt("[&_tr]:border-b",l),...i})}function Gu({className:l,...i}){return m.jsx("tbody",{"data-slot":"table-body",className:Tt("[&_tr:last-child]:border-0",l),...i})}function $l({className:l,...i}){return m.jsx("tr",{"data-slot":"table-row",className:Tt("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",l),...i})}function Jt({className:l,...i}){return m.jsx("th",{"data-slot":"table-head",className:Tt("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i})}function Ft({className:l,...i}){return m.jsx("td",{"data-slot":"table-cell",className:Tt("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i})}function fE(l){return l===null?"NULL":l===void 0?"":typeof l=="object"?JSON.stringify(l):String(l)}function dE({results:l,meta:i,error:r}){if(r)return m.jsxs(Nt,{className:"border-destructive/50",children:[m.jsx(kt,{children:m.jsx(Lt,{className:"text-destructive",children:"Query Error"})}),m.jsx(Ct,{children:m.jsx("p",{className:"font-mono text-sm text-destructive",children:r})})]});const u=l.length>0?Object.keys(l[0]):[];return m.jsxs(Nt,{children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:"Results"}),m.jsxs(Aa,{className:"flex items-center gap-4",children:[m.jsxs("span",{children:[l.length," row(s)"]}),m.jsxs("span",{children:[i.duration.toFixed(2),"ms"]}),i.rows_written>0&&m.jsxs("span",{children:[i.rows_written," row(s) affected"]})]})]}),m.jsx(Ct,{children:l.length>0?m.jsx("div",{className:"overflow-x-auto rounded-md border",children:m.jsxs(Hu,{children:[m.jsx(Bu,{children:m.jsx($l,{children:u.map(c=>m.jsx(Jt,{className:"font-mono",children:c},c))})}),m.jsx(Gu,{children:l.map((c,f)=>m.jsx($l,{children:u.map(h=>m.jsx(Ft,{className:"font-mono text-sm",children:fE(c[h])},h))},f))})]})}):m.jsx("p",{className:"text-center text-muted-foreground",children:"Query executed successfully. No rows returned."})})]})}function tg(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function pv(...l){return i=>{let r=!1;const u=l.map(c=>{const f=tg(c,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():tg(l[c],null)}}}}function za(...l){return b.useCallback(pv(...l),l)}function yv(l){const i=hE(l),r=b.forwardRef((u,c)=>{const{children:f,...h}=u,g=b.Children.toArray(f),y=g.find(pE);if(y){const p=y.props.children,x=g.map(S=>S===y?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:S);return m.jsx(i,{...h,ref:c,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return m.jsx(i,{...h,ref:c,children:f})});return r.displayName=`${l}.Slot`,r}var gv=yv("Slot");function hE(l){const i=b.forwardRef((r,u)=>{const{children:c,...f}=r;if(b.isValidElement(c)){const h=gE(c),g=yE(f,c.props);return c.type!==b.Fragment&&(g.ref=u?pv(u,h):h),b.cloneElement(c,g)}return b.Children.count(c)>1?b.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var mE=Symbol("radix.slottable");function pE(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===mE}function yE(l,i){const r={...i};for(const u in i){const c=l[u],f=i[u];/^on[A-Z]/.test(u)?c&&f?r[u]=(...h)=>{const g=f(...h);return c(...h),g}:c&&(r[u]=c):u==="style"?r[u]={...c,...f}:u==="className"&&(r[u]=[c,f].filter(Boolean).join(" "))}return{...l,...r}}function gE(l){var i,r;let u=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?l.ref:(u=(r=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:r.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?l.props.ref:l.props.ref||l.ref)}function vv(l){var i,r,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(r=vv(l[i]))&&(u&&(u+=" "),u+=r)}else for(r in l)l[r]&&(u&&(u+=" "),u+=r);return u}function vE(){for(var l,i,r=0,u="",c=arguments.length;r<c;r++)(l=arguments[r])&&(i=vv(l))&&(u&&(u+=" "),u+=i);return u}const ng=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,lg=vE,bv=(l,i)=>r=>{var u;if((i==null?void 0:i.variants)==null)return lg(l,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:c,defaultVariants:f}=i,h=Object.keys(c).map(p=>{const x=r==null?void 0:r[p],S=f==null?void 0:f[p];if(x===null)return null;const w=ng(x)||ng(S);return c[p][w]}),g=r&&Object.entries(r).reduce((p,x)=>{let[S,w]=x;return w===void 0||(p[S]=w),p},{}),y=i==null||(u=i.compoundVariants)===null||u===void 0?void 0:u.reduce((p,x)=>{let{class:S,className:w,...z}=x;return Object.entries(z).every(j=>{let[R,M]=j;return Array.isArray(M)?M.includes({...f,...g}[R]):{...f,...g}[R]===M})?[...p,S,w]:p},[]);return lg(l,h,y,r==null?void 0:r.class,r==null?void 0:r.className)},bE=bv("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ft({className:l,variant:i,asChild:r=!1,...u}){return m.jsx(r?gv:"span",{"data-slot":"badge",className:Tt(bE({variant:i}),l),...u})}const xE=bv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"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",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function el({className:l,variant:i,size:r,asChild:u=!1,...c}){return m.jsx(u?gv:"button",{"data-slot":"button",className:Tt(xE({variant:i,size:r,className:l})),...c})}var SE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pr=SE.reduce((l,i)=>{const r=yv(`Primitive.${i}`),u=b.forwardRef((c,f)=>{const{asChild:h,...g}=c,y=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(y,{...g,ref:f})});return u.displayName=`Primitive.${i}`,{...l,[i]:u}},{}),Zf=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{};function wE(l,i){return b.useReducer((r,u)=>i[r][u]??r,l)}var Ir=l=>{const{present:i,children:r}=l,u=EE(i),c=typeof r=="function"?r({present:u.isPresent}):b.Children.only(r),f=za(u.ref,NE(c));return typeof r=="function"||u.isPresent?b.cloneElement(c,{ref:f}):null};Ir.displayName="Presence";function EE(l){const[i,r]=b.useState(),u=b.useRef(null),c=b.useRef(l),f=b.useRef("none"),h=l?"mounted":"unmounted",[g,y]=wE(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=Eu(u.current);f.current=g==="mounted"?p:"none"},[g]),Zf(()=>{const p=u.current,x=c.current;if(x!==l){const S=f.current,w=Eu(p);l?y("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&S!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,y]),Zf(()=>{if(i){let p;const x=i.ownerDocument.defaultView??window,S=z=>{const j=Eu(u.current).includes(CSS.escape(z.animationName));if(z.target===i&&j&&(y("ANIMATION_END"),!c.current)){const R=i.style.animationFillMode;i.style.animationFillMode="forwards",p=x.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=R)})}},w=z=>{z.target===i&&(f.current=Eu(u.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",S),i.addEventListener("animationend",S),()=>{x.clearTimeout(p),i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",S),i.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:b.useCallback(p=>{u.current=p?getComputedStyle(p):null,r(p)},[])}}function Eu(l){return(l==null?void 0:l.animationName)||"none"}function NE(l){var i,r;let u=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,c=u&&"isReactWarning"in u&&u.isReactWarning;return c?l.ref:(u=(r=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:r.get,c=u&&"isReactWarning"in u&&u.isReactWarning,c?l.props.ref:l.props.ref||l.ref)}function CE(l,i=[]){let r=[];function u(f,h){const g=b.createContext(h),y=r.length;r=[...r,h];const p=S=>{var w;const{scope:z,children:j,...R}=S,M=((w=z==null?void 0:z[l])==null?void 0:w[y])||g,_=b.useMemo(()=>R,Object.values(R));return m.jsx(M.Provider,{value:_,children:j})};p.displayName=f+"Provider";function x(S,w){var z;const j=((z=w==null?void 0:w[l])==null?void 0:z[y])||g,R=b.useContext(j);if(R)return R;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[p,x]}const c=()=>{const f=r.map(h=>b.createContext(h));return function(h){const g=(h==null?void 0:h[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...h,[l]:g}}),[h,g])}};return c.scopeName=l,[u,TE(c,...i)]}function TE(...l){const i=l[0];if(l.length===1)return i;const r=()=>{const u=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(c){const f=u.reduce((h,{useScope:g,scopeName:y})=>{const p=g(c)[`__scope${y}`];return{...h,...p}},{});return b.useMemo(()=>({[`__scope${i.scopeName}`]:f}),[f])}};return r.scopeName=i.scopeName,r}function ya(l){const i=b.useRef(l);return b.useEffect(()=>{i.current=l}),b.useMemo(()=>(...r)=>{var u;return(u=i.current)==null?void 0:u.call(i,...r)},[])}var jE=b.createContext(void 0);function AE(l){const i=b.useContext(jE);return l||i||"ltr"}function RE(l,[i,r]){return Math.min(r,Math.max(i,l))}function Ca(l,i,{checkForDefaultPrevented:r=!0}={}){return function(u){if(l==null||l(u),r===!1||!u.defaultPrevented)return i==null?void 0:i(u)}}function zE(l,i){return b.useReducer((r,u)=>i[r][u]??r,l)}var dd="ScrollArea",[xv,WN]=CE(dd),[OE,dn]=xv(dd),Sv=b.forwardRef((l,i)=>{const{__scopeScrollArea:r,type:u="hover",dir:c,scrollHideDelay:f=600,...h}=l,[g,y]=b.useState(null),[p,x]=b.useState(null),[S,w]=b.useState(null),[z,j]=b.useState(null),[R,M]=b.useState(null),[_,G]=b.useState(0),[X,Z]=b.useState(0),[I,te]=b.useState(!1),[W,L]=b.useState(!1),$=za(i,Se=>y(Se)),ue=AE(c);return m.jsx(OE,{scope:r,type:u,dir:ue,scrollHideDelay:f,scrollArea:g,viewport:p,onViewportChange:x,content:S,onContentChange:w,scrollbarX:z,onScrollbarXChange:j,scrollbarXEnabled:I,onScrollbarXEnabledChange:te,scrollbarY:R,onScrollbarYChange:M,scrollbarYEnabled:W,onScrollbarYEnabledChange:L,onCornerWidthChange:G,onCornerHeightChange:Z,children:m.jsx(Pr.div,{dir:ue,...h,ref:$,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":X+"px",...l.style}})})});Sv.displayName=dd;var wv="ScrollAreaViewport",Ev=b.forwardRef((l,i)=>{const{__scopeScrollArea:r,children:u,nonce:c,...f}=l,h=dn(wv,r),g=b.useRef(null),y=za(i,g,h.onViewportChange);return m.jsxs(m.Fragment,{children:[m.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:c}),m.jsx(Pr.div,{"data-radix-scroll-area-viewport":"",...f,ref:y,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...l.style},children:m.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:u})})]})});Ev.displayName=wv;var zn="ScrollAreaScrollbar",Nv=b.forwardRef((l,i)=>{const{forceMount:r,...u}=l,c=dn(zn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:h}=c,g=l.orientation==="horizontal";return b.useEffect(()=>(g?f(!0):h(!0),()=>{g?f(!1):h(!1)}),[g,f,h]),c.type==="hover"?m.jsx(ME,{...u,ref:i,forceMount:r}):c.type==="scroll"?m.jsx(_E,{...u,ref:i,forceMount:r}):c.type==="auto"?m.jsx(Cv,{...u,ref:i,forceMount:r}):c.type==="always"?m.jsx(hd,{...u,ref:i}):null});Nv.displayName=zn;var ME=b.forwardRef((l,i)=>{const{forceMount:r,...u}=l,c=dn(zn,l.__scopeScrollArea),[f,h]=b.useState(!1);return b.useEffect(()=>{const g=c.scrollArea;let y=0;if(g){const p=()=>{window.clearTimeout(y),h(!0)},x=()=>{y=window.setTimeout(()=>h(!1),c.scrollHideDelay)};return g.addEventListener("pointerenter",p),g.addEventListener("pointerleave",x),()=>{window.clearTimeout(y),g.removeEventListener("pointerenter",p),g.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),m.jsx(Ir,{present:r||f,children:m.jsx(Cv,{"data-state":f?"visible":"hidden",...u,ref:i})})}),_E=b.forwardRef((l,i)=>{const{forceMount:r,...u}=l,c=dn(zn,l.__scopeScrollArea),f=l.orientation==="horizontal",h=Yu(()=>y("SCROLL_END"),100),[g,y]=zE("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 b.useEffect(()=>{if(g==="idle"){const p=window.setTimeout(()=>y("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(p)}},[g,c.scrollHideDelay,y]),b.useEffect(()=>{const p=c.viewport,x=f?"scrollLeft":"scrollTop";if(p){let S=p[x];const w=()=>{const z=p[x];S!==z&&(y("SCROLL"),h()),S=z};return p.addEventListener("scroll",w),()=>p.removeEventListener("scroll",w)}},[c.viewport,f,y,h]),m.jsx(Ir,{present:r||g!=="hidden",children:m.jsx(hd,{"data-state":g==="hidden"?"hidden":"visible",...u,ref:i,onPointerEnter:Ca(l.onPointerEnter,()=>y("POINTER_ENTER")),onPointerLeave:Ca(l.onPointerLeave,()=>y("POINTER_LEAVE"))})})}),Cv=b.forwardRef((l,i)=>{const r=dn(zn,l.__scopeScrollArea),{forceMount:u,...c}=l,[f,h]=b.useState(!1),g=l.orientation==="horizontal",y=Yu(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,x=r.viewport.offsetHeight<r.viewport.scrollHeight;h(g?p:x)}},10);return Mi(r.viewport,y),Mi(r.content,y),m.jsx(Ir,{present:u||f,children:m.jsx(hd,{"data-state":f?"visible":"hidden",...c,ref:i})})}),hd=b.forwardRef((l,i)=>{const{orientation:r="vertical",...u}=l,c=dn(zn,l.__scopeScrollArea),f=b.useRef(null),h=b.useRef(0),[g,y]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=zv(g.viewport,g.content),x={...u,sizes:g,onSizesChange:y,hasThumb:p>0&&p<1,onThumbChange:w=>f.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function S(w,z){return HE(w,h.current,g,z)}return r==="horizontal"?m.jsx(DE,{...x,ref:i,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollLeft,z=ag(w,g,c.dir);f.current.style.transform=`translate3d(${z}px, 0, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollLeft=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollLeft=S(w,c.dir))}}):r==="vertical"?m.jsx(UE,{...x,ref:i,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollTop,z=ag(w,g);f.current.style.transform=`translate3d(0, ${z}px, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollTop=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollTop=S(w))}}):null}),DE=b.forwardRef((l,i)=>{const{sizes:r,onSizesChange:u,...c}=l,f=dn(zn,l.__scopeScrollArea),[h,g]=b.useState(),y=b.useRef(null),p=za(i,y,f.onScrollbarXChange);return b.useEffect(()=>{y.current&&g(getComputedStyle(y.current))},[y]),m.jsx(jv,{"data-orientation":"horizontal",...c,ref:p,sizes:r,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qu(r)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.x),onDragScroll:x=>l.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollLeft+x.deltaX;l.onWheelScroll(w),Mv(w,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&h&&u({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:y.current.clientWidth,paddingStart:Uu(h.paddingLeft),paddingEnd:Uu(h.paddingRight)}})}})}),UE=b.forwardRef((l,i)=>{const{sizes:r,onSizesChange:u,...c}=l,f=dn(zn,l.__scopeScrollArea),[h,g]=b.useState(),y=b.useRef(null),p=za(i,y,f.onScrollbarYChange);return b.useEffect(()=>{y.current&&g(getComputedStyle(y.current))},[y]),m.jsx(jv,{"data-orientation":"vertical",...c,ref:p,sizes:r,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qu(r)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.y),onDragScroll:x=>l.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollTop+x.deltaY;l.onWheelScroll(w),Mv(w,S)&&x.preventDefault()}},onResize:()=>{y.current&&f.viewport&&h&&u({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:y.current.clientHeight,paddingStart:Uu(h.paddingTop),paddingEnd:Uu(h.paddingBottom)}})}})}),[kE,Tv]=xv(zn),jv=b.forwardRef((l,i)=>{const{__scopeScrollArea:r,sizes:u,hasThumb:c,onThumbChange:f,onThumbPointerUp:h,onThumbPointerDown:g,onThumbPositionChange:y,onDragScroll:p,onWheelScroll:x,onResize:S,...w}=l,z=dn(zn,r),[j,R]=b.useState(null),M=za(i,$=>R($)),_=b.useRef(null),G=b.useRef(""),X=z.viewport,Z=u.content-u.viewport,I=ya(x),te=ya(y),W=Yu(S,10);function L($){if(_.current){const ue=$.clientX-_.current.left,Se=$.clientY-_.current.top;p({x:ue,y:Se})}}return b.useEffect(()=>{const $=ue=>{const Se=ue.target;j!=null&&j.contains(Se)&&I(ue,Z)};return document.addEventListener("wheel",$,{passive:!1}),()=>document.removeEventListener("wheel",$,{passive:!1})},[X,j,Z,I]),b.useEffect(te,[u,te]),Mi(j,W),Mi(z.content,W),m.jsx(kE,{scope:r,scrollbar:j,hasThumb:c,onThumbChange:ya(f),onThumbPointerUp:ya(h),onThumbPositionChange:te,onThumbPointerDown:ya(g),children:m.jsx(Pr.div,{...w,ref:M,style:{position:"absolute",...w.style},onPointerDown:Ca(l.onPointerDown,$=>{$.button===0&&($.target.setPointerCapture($.pointerId),_.current=j.getBoundingClientRect(),G.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",z.viewport&&(z.viewport.style.scrollBehavior="auto"),L($))}),onPointerMove:Ca(l.onPointerMove,L),onPointerUp:Ca(l.onPointerUp,$=>{const ue=$.target;ue.hasPointerCapture($.pointerId)&&ue.releasePointerCapture($.pointerId),document.body.style.webkitUserSelect=G.current,z.viewport&&(z.viewport.style.scrollBehavior=""),_.current=null})})})}),Du="ScrollAreaThumb",Av=b.forwardRef((l,i)=>{const{forceMount:r,...u}=l,c=Tv(Du,l.__scopeScrollArea);return m.jsx(Ir,{present:r||c.hasThumb,children:m.jsx(LE,{ref:i,...u})})}),LE=b.forwardRef((l,i)=>{const{__scopeScrollArea:r,style:u,...c}=l,f=dn(Du,r),h=Tv(Du,r),{onThumbPositionChange:g}=h,y=za(i,S=>h.onThumbChange(S)),p=b.useRef(void 0),x=Yu(()=>{p.current&&(p.current(),p.current=void 0)},100);return b.useEffect(()=>{const S=f.viewport;if(S){const w=()=>{if(x(),!p.current){const z=BE(S,g);p.current=z,g()}};return g(),S.addEventListener("scroll",w),()=>S.removeEventListener("scroll",w)}},[f.viewport,x,g]),m.jsx(Pr.div,{"data-state":h.hasThumb?"visible":"hidden",...c,ref:y,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...u},onPointerDownCapture:Ca(l.onPointerDownCapture,S=>{const w=S.target.getBoundingClientRect(),z=S.clientX-w.left,j=S.clientY-w.top;h.onThumbPointerDown({x:z,y:j})}),onPointerUp:Ca(l.onPointerUp,h.onThumbPointerUp)})});Av.displayName=Du;var md="ScrollAreaCorner",Rv=b.forwardRef((l,i)=>{const r=dn(md,l.__scopeScrollArea),u=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&u?m.jsx(qE,{...l,ref:i}):null});Rv.displayName=md;var qE=b.forwardRef((l,i)=>{const{__scopeScrollArea:r,...u}=l,c=dn(md,r),[f,h]=b.useState(0),[g,y]=b.useState(0),p=!!(f&&g);return Mi(c.scrollbarX,()=>{var x;const S=((x=c.scrollbarX)==null?void 0:x.offsetHeight)||0;c.onCornerHeightChange(S),y(S)}),Mi(c.scrollbarY,()=>{var x;const S=((x=c.scrollbarY)==null?void 0:x.offsetWidth)||0;c.onCornerWidthChange(S),h(S)}),p?m.jsx(Pr.div,{...u,ref:i,style:{width:f,height:g,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function Uu(l){return l?parseInt(l,10):0}function zv(l,i){const r=l/i;return isNaN(r)?0:r}function Qu(l){const i=zv(l.viewport,l.content),r=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=(l.scrollbar.size-r)*i;return Math.max(u,18)}function HE(l,i,r,u="ltr"){const c=Qu(r),f=c/2,h=i||f,g=c-h,y=r.scrollbar.paddingStart+h,p=r.scrollbar.size-r.scrollbar.paddingEnd-g,x=r.content-r.viewport,S=u==="ltr"?[0,x]:[x*-1,0];return Ov([y,p],S)(l)}function ag(l,i,r="ltr"){const u=Qu(i),c=i.scrollbar.paddingStart+i.scrollbar.paddingEnd,f=i.scrollbar.size-c,h=i.content-i.viewport,g=f-u,y=r==="ltr"?[0,h]:[h*-1,0],p=RE(l,y);return Ov([0,h],[0,g])(p)}function Ov(l,i){return r=>{if(l[0]===l[1]||i[0]===i[1])return i[0];const u=(i[1]-i[0])/(l[1]-l[0]);return i[0]+u*(r-l[0])}}function Mv(l,i){return l>0&&l<i}var BE=(l,i=()=>{})=>{let r={left:l.scrollLeft,top:l.scrollTop},u=0;return(function c(){const f={left:l.scrollLeft,top:l.scrollTop},h=r.left!==f.left,g=r.top!==f.top;(h||g)&&i(),r=f,u=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(u)};function Yu(l,i){const r=ya(l),u=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(u.current),[]),b.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(r,i)},[r,i])}function Mi(l,i){const r=ya(i);Zf(()=>{let u=0;if(l){const c=new ResizeObserver(()=>{cancelAnimationFrame(u),u=window.requestAnimationFrame(r)});return c.observe(l),()=>{window.cancelAnimationFrame(u),c.unobserve(l)}}},[l,r])}var GE=Sv,QE=Ev,YE=Rv;function XE({className:l,children:i,...r}){return m.jsxs(GE,{"data-slot":"scroll-area",className:Tt("relative",l),...r,children:[m.jsx(QE,{"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:i}),m.jsx(VE,{}),m.jsx(YE,{})]})}function VE({className:l,orientation:i="vertical",...r}){return m.jsx(Nv,{"data-slot":"scroll-area-scrollbar",orientation:i,className:Tt("flex touch-none p-px transition-colors select-none",i==="vertical"&&"h-full w-2.5 border-l border-l-transparent",i==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",l),...r,children:m.jsx(Av,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}const KE="";async function rl(l,i){const r=await fetch(`${KE}${l}`,{...i,headers:{"Content-Type":"application/json",...i==null?void 0:i.headers}});if(!r.ok){const u=await r.text();throw new Error(u||`Request failed: ${r.status}`)}return r.json()}async function _v(){return rl("/api/config")}async function ZE(l,i){return rl(`/api/db/${l}/query`,{method:"POST",body:JSON.stringify({query:i})})}async function $E(l){return rl(`/api/db/${l}/tables`)}async function JE(l,i,r,u){return rl(`/api/db/${l}/tables/${i}?limit=${r}&offset=${u}`)}async function FE(l){return rl(`/api/db/${l}/schema`)}async function WE(l){return rl(`/api/queue/${l}/metrics`)}async function PE(l,i=10){return rl(`/api/queue/${l}/messages?limit=${i}`)}async function IE(l,i=20){return rl(`/api/workflow/${l}/executions?limit=${i}`)}async function e2(l,i){return rl(`/api/workflow/${l}/executions/${i}`)}function Dv(l){var i,r,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l))for(i=0;i<l.length;i++)l[i]&&(r=Dv(l[i]))&&(u&&(u+=" "),u+=r);else for(i in l)l[i]&&(u&&(u+=" "),u+=i);return u}function t2(){for(var l,i,r=0,u="";r<arguments.length;)(l=arguments[r++])&&(i=Dv(l))&&(u&&(u+=" "),u+=i);return u}const pd="-",n2=l=>{const i=a2(l),{conflictingClassGroups:r,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:h=>{const g=h.split(pd);return g[0]===""&&g.length!==1&&g.shift(),Uv(g,i)||l2(h)},getConflictingClassGroupIds:(h,g)=>{const y=r[h]||[];return g&&u[h]?[...y,...u[h]]:y}}},Uv=(l,i)=>{var h;if(l.length===0)return i.classGroupId;const r=l[0],u=i.nextPart.get(r),c=u?Uv(l.slice(1),u):void 0;if(c)return c;if(i.validators.length===0)return;const f=l.join(pd);return(h=i.validators.find(({validator:g})=>g(f)))==null?void 0:h.classGroupId},ig=/^\[(.+)\]$/,l2=l=>{if(ig.test(l)){const i=ig.exec(l)[1],r=i==null?void 0:i.substring(0,i.indexOf(":"));if(r)return"arbitrary.."+r}},a2=l=>{const{theme:i,classGroups:r}=l,u={nextPart:new Map,validators:[]};for(const c in r)$f(r[c],u,c,i);return u},$f=(l,i,r,u)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?i:rg(i,c);f.classGroupId=r;return}if(typeof c=="function"){if(i2(c)){$f(c(u),i,r,u);return}i.validators.push({validator:c,classGroupId:r});return}Object.entries(c).forEach(([f,h])=>{$f(h,rg(i,f),r,u)})})},rg=(l,i)=>{let r=l;return i.split(pd).forEach(u=>{r.nextPart.has(u)||r.nextPart.set(u,{nextPart:new Map,validators:[]}),r=r.nextPart.get(u)}),r},i2=l=>l.isThemeGetter,r2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,r=new Map,u=new Map;const c=(f,h)=>{r.set(f,h),i++,i>l&&(i=0,u=r,r=new Map)};return{get(f){let h=r.get(f);if(h!==void 0)return h;if((h=u.get(f))!==void 0)return c(f,h),h},set(f,h){r.has(f)?r.set(f,h):c(f,h)}}},Jf="!",Ff=":",s2=Ff.length,u2=l=>{const{prefix:i,experimentalParseClassName:r}=l;let u=c=>{const f=[];let h=0,g=0,y=0,p;for(let j=0;j<c.length;j++){let R=c[j];if(h===0&&g===0){if(R===Ff){f.push(c.slice(y,j)),y=j+s2;continue}if(R==="/"){p=j;continue}}R==="["?h++:R==="]"?h--:R==="("?g++:R===")"&&g--}const x=f.length===0?c:c.substring(y),S=o2(x),w=S!==x,z=p&&p>y?p-y:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:z}};if(i){const c=i+Ff,f=u;u=h=>h.startsWith(c)?f(h.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const c=u;u=f=>r({className:f,parseClassName:c})}return u},o2=l=>l.endsWith(Jf)?l.substring(0,l.length-1):l.startsWith(Jf)?l.substring(1):l,c2=l=>{const i=Object.fromEntries(l.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let f=[];return u.forEach(h=>{h[0]==="["||i[h]?(c.push(...f.sort(),h),f=[]):f.push(h)}),c.push(...f.sort()),c}},f2=l=>({cache:r2(l.cacheSize),parseClassName:u2(l),sortModifiers:c2(l),...n2(l)}),d2=/\s+/,h2=(l,i)=>{const{parseClassName:r,getClassGroupId:u,getConflictingClassGroupIds:c,sortModifiers:f}=i,h=[],g=l.trim().split(d2);let y="";for(let p=g.length-1;p>=0;p-=1){const x=g[p],{isExternal:S,modifiers:w,hasImportantModifier:z,baseClassName:j,maybePostfixModifierPosition:R}=r(x);if(S){y=x+(y.length>0?" "+y:y);continue}let M=!!R,_=u(M?j.substring(0,R):j);if(!_){if(!M){y=x+(y.length>0?" "+y:y);continue}if(_=u(j),!_){y=x+(y.length>0?" "+y:y);continue}M=!1}const G=f(w).join(":"),X=z?G+Jf:G,Z=X+_;if(h.includes(Z))continue;h.push(Z);const I=c(_,M);for(let te=0;te<I.length;++te){const W=I[te];h.push(X+W)}y=x+(y.length>0?" "+y:y)}return y};function m2(){let l=0,i,r,u="";for(;l<arguments.length;)(i=arguments[l++])&&(r=kv(i))&&(u&&(u+=" "),u+=r);return u}const kv=l=>{if(typeof l=="string")return l;let i,r="";for(let u=0;u<l.length;u++)l[u]&&(i=kv(l[u]))&&(r&&(r+=" "),r+=i);return r};function p2(l,...i){let r,u,c,f=h;function h(y){const p=i.reduce((x,S)=>S(x),l());return r=f2(p),u=r.cache.get,c=r.cache.set,f=g,g(y)}function g(y){const p=u(y);if(p)return p;const x=h2(y,r);return c(y,x),x}return function(){return f(m2.apply(null,arguments))}}const rt=l=>{const i=r=>r[l]||[];return i.isThemeGetter=!0,i},Lv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,y2=/^\d+\/\d+$/,g2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v2=/\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$/,b2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,x2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yi=l=>y2.test(l),xe=l=>!!l&&!Number.isNaN(Number(l)),Dl=l=>!!l&&Number.isInteger(Number(l)),Cf=l=>l.endsWith("%")&&xe(l.slice(0,-1)),Fn=l=>g2.test(l),w2=()=>!0,E2=l=>v2.test(l)&&!b2.test(l),Hv=()=>!1,N2=l=>x2.test(l),C2=l=>S2.test(l),T2=l=>!ie(l)&&!re(l),j2=l=>qi(l,Qv,Hv),ie=l=>Lv.test(l),pa=l=>qi(l,Yv,E2),Tf=l=>qi(l,M2,xe),sg=l=>qi(l,Bv,Hv),A2=l=>qi(l,Gv,C2),Nu=l=>qi(l,Xv,N2),re=l=>qv.test(l),Lr=l=>Hi(l,Yv),R2=l=>Hi(l,_2),ug=l=>Hi(l,Bv),z2=l=>Hi(l,Qv),O2=l=>Hi(l,Gv),Cu=l=>Hi(l,Xv,!0),qi=(l,i,r)=>{const u=Lv.exec(l);return u?u[1]?i(u[1]):r(u[2]):!1},Hi=(l,i,r=!1)=>{const u=qv.exec(l);return u?u[1]?i(u[1]):r:!1},Bv=l=>l==="position"||l==="percentage",Gv=l=>l==="image"||l==="url",Qv=l=>l==="length"||l==="size"||l==="bg-size",Yv=l=>l==="length",M2=l=>l==="number",_2=l=>l==="family-name",Xv=l=>l==="shadow",D2=()=>{const l=rt("color"),i=rt("font"),r=rt("text"),u=rt("font-weight"),c=rt("tracking"),f=rt("leading"),h=rt("breakpoint"),g=rt("container"),y=rt("spacing"),p=rt("radius"),x=rt("shadow"),S=rt("inset-shadow"),w=rt("text-shadow"),z=rt("drop-shadow"),j=rt("blur"),R=rt("perspective"),M=rt("aspect"),_=rt("ease"),G=rt("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...Z(),re,ie],te=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],L=()=>[re,ie,y],$=()=>[yi,"full","auto",...L()],ue=()=>[Dl,"none","subgrid",re,ie],Se=()=>["auto",{span:["full",Dl,re,ie]},Dl,re,ie],Ne=()=>[Dl,"auto",re,ie],he=()=>["auto","min","max","fr",re,ie],Ze=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ue=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...L()],J=()=>[yi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],q=()=>[l,re,ie],Re=()=>[...Z(),ug,sg,{position:[re,ie]}],ze=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",z2,j2,{size:[re,ie]}],Q=()=>[Cf,Lr,pa],K=()=>["","none","full",p,re,ie],F=()=>["",xe,Lr,pa],fe=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[xe,Cf,ug,sg],We=()=>["","none",j,re,ie],_e=()=>["none",xe,re,ie],xt=()=>["none",xe,re,ie],Wt=()=>[xe,re,ie],qt=()=>[yi,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fn],breakpoint:[Fn],color:[w2],container:[Fn],"drop-shadow":[Fn],ease:["in","out","in-out"],font:[T2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fn],shadow:[Fn],spacing:["px",xe],text:[Fn],"text-shadow":[Fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yi,ie,re,M]}],container:["container"],columns:[{columns:[xe,ie,re,g]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:I()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Dl,"auto",re,ie]}],basis:[{basis:[yi,"full","auto",g,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,yi,"auto","initial","none",ie]}],grow:[{grow:["",xe,re,ie]}],shrink:[{shrink:["",xe,re,ie]}],order:[{order:[Dl,"first","last","none",re,ie]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Ze(),"normal"]}],"justify-items":[{"justify-items":[...Ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ue()]}],"align-content":[{content:["normal",...Ze()]}],"align-items":[{items:[...Ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ze()}],"place-items":[{"place-items":[...Ue(),"baseline"]}],"place-self":[{"place-self":["auto",...Ue()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[g,"screen",...J()]}],"min-w":[{"min-w":[g,"screen","none",...J()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",r,Lr,pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[u,re,Tf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cf,ie]}],"font-family":[{font:[R2,ie,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,re,ie]}],"line-clamp":[{"line-clamp":[xe,"none",re,Tf]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",re,ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",re,pa]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[xe,"auto",re,ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ie]}],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",re,ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Re()}],"bg-repeat":[{bg:ze()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dl,re,ie],radial:["",re,ie],conic:[Dl,re,ie]},O2,A2]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,re,ie]}],"outline-w":[{outline:["",xe,Lr,pa]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",x,Cu,Nu]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",S,Cu,Nu]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[xe,pa]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",w,Cu,Nu]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[xe,re,ie]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[re,ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":Z()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Re()}],"mask-repeat":[{mask:ze()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ie]}],filter:[{filter:["","none",re,ie]}],blur:[{blur:We()}],brightness:[{brightness:[xe,re,ie]}],contrast:[{contrast:[xe,re,ie]}],"drop-shadow":[{"drop-shadow":["","none",z,Cu,Nu]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",xe,re,ie]}],"hue-rotate":[{"hue-rotate":[xe,re,ie]}],invert:[{invert:["",xe,re,ie]}],saturate:[{saturate:[xe,re,ie]}],sepia:[{sepia:["",xe,re,ie]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ie]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[xe,re,ie]}],"backdrop-contrast":[{"backdrop-contrast":[xe,re,ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,re,ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,re,ie]}],"backdrop-invert":[{"backdrop-invert":["",xe,re,ie]}],"backdrop-opacity":[{"backdrop-opacity":[xe,re,ie]}],"backdrop-saturate":[{"backdrop-saturate":[xe,re,ie]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,re,ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",re,ie]}],ease:[{ease:["linear","initial",_,re,ie]}],delay:[{delay:[xe,re,ie]}],animate:[{animate:["none",G,re,ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,re,ie]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:xt()}],"scale-x":[{"scale-x":xt()}],"scale-y":[{"scale-y":xt()}],"scale-z":[{"scale-z":xt()}],"scale-3d":["scale-3d"],skew:[{skew:Wt()}],"skew-x":[{"skew-x":Wt()}],"skew-y":[{"skew-y":Wt()}],transform:[{transform:[re,ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qt()}],"translate-x":[{"translate-x":qt()}],"translate-y":[{"translate-y":qt()}],"translate-z":[{"translate-z":qt()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",re,ie]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",re,ie]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[xe,Lr,pa,Tf]}],stroke:[{stroke:["none",...q()]}],"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"]}},U2=p2(D2);function An(...l){return U2(t2(l))}function Rn(l,i,{checkForDefaultPrevented:r=!0}={}){return function(c){if(l==null||l(c),r===!1||!c.defaultPrevented)return i==null?void 0:i(c)}}function Xu(l,i=[]){let r=[];function u(f,h){const g=b.createContext(h),y=r.length;r=[...r,h];const p=S=>{var _;const{scope:w,children:z,...j}=S,R=((_=w==null?void 0:w[l])==null?void 0:_[y])||g,M=b.useMemo(()=>j,Object.values(j));return m.jsx(R.Provider,{value:M,children:z})};p.displayName=f+"Provider";function x(S,w){var R;const z=((R=w==null?void 0:w[l])==null?void 0:R[y])||g,j=b.useContext(z);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[p,x]}const c=()=>{const f=r.map(h=>b.createContext(h));return function(g){const y=(g==null?void 0:g[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...g,[l]:y}}),[g,y])}};return c.scopeName=l,[u,k2(c,...i)]}function k2(...l){const i=l[0];if(l.length===1)return i;const r=()=>{const u=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const h=u.reduce((g,{useScope:y,scopeName:p})=>{const S=y(f)[`__scope${p}`];return{...g,...S}},{});return b.useMemo(()=>({[`__scope${i.scopeName}`]:h}),[h])}};return r.scopeName=i.scopeName,r}var Gr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},L2=Mg[" useInsertionEffect ".trim().toString()]||Gr;function yd({prop:l,defaultProp:i,onChange:r=()=>{},caller:u}){const[c,f,h]=q2({defaultProp:i,onChange:r}),g=l!==void 0,y=g?l:c;{const x=b.useRef(l!==void 0);b.useEffect(()=>{const S=x.current;S!==g&&console.warn(`${u} is changing from ${S?"controlled":"uncontrolled"} to ${g?"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.`),x.current=g},[g,u])}const p=b.useCallback(x=>{var S;if(g){const w=H2(x)?x(l):x;w!==l&&((S=h.current)==null||S.call(h,w))}else f(x)},[g,l,f,h]);return[y,p]}function q2({defaultProp:l,onChange:i}){const[r,u]=b.useState(l),c=b.useRef(r),f=b.useRef(i);return L2(()=>{f.current=i},[i]),b.useEffect(()=>{var h;c.current!==r&&((h=f.current)==null||h.call(f,r),c.current=r)},[r,c]),[r,u,f]}function H2(l){return typeof l=="function"}function og(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function Vv(...l){return i=>{let r=!1;const u=l.map(c=>{const f=og(c,i);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():og(l[c],null)}}}}function Qr(...l){return b.useCallback(Vv(...l),l)}function Wf(l){const i=B2(l),r=b.forwardRef((u,c)=>{const{children:f,...h}=u,g=b.Children.toArray(f),y=g.find(Q2);if(y){const p=y.props.children,x=g.map(S=>S===y?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:S);return m.jsx(i,{...h,ref:c,children:b.isValidElement(p)?b.cloneElement(p,void 0,x):null})}return m.jsx(i,{...h,ref:c,children:f})});return r.displayName=`${l}.Slot`,r}function B2(l){const i=b.forwardRef((r,u)=>{const{children:c,...f}=r;if(b.isValidElement(c)){const h=X2(c),g=Y2(f,c.props);return c.type!==b.Fragment&&(g.ref=u?Vv(u,h):h),b.cloneElement(c,g)}return b.Children.count(c)>1?b.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var G2=Symbol("radix.slottable");function Q2(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===G2}function Y2(l,i){const r={...i};for(const u in i){const c=l[u],f=i[u];/^on[A-Z]/.test(u)?c&&f?r[u]=(...g)=>{const y=f(...g);return c(...g),y}:c&&(r[u]=c):u==="style"?r[u]={...c,...f}:u==="className"&&(r[u]=[c,f].filter(Boolean).join(" "))}return{...l,...r}}function X2(l){var u,c;let i=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?l.ref:(i=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var V2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sl=V2.reduce((l,i)=>{const r=Wf(`Primitive.${i}`),u=b.forwardRef((c,f)=>{const{asChild:h,...g}=c,y=h?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(y,{...g,ref:f})});return u.displayName=`Primitive.${i}`,{...l,[i]:u}},{});function K2(l,i){return b.useReducer((r,u)=>i[r][u]??r,l)}var gd=l=>{const{present:i,children:r}=l,u=Z2(i),c=typeof r=="function"?r({present:u.isPresent}):b.Children.only(r),f=Qr(u.ref,$2(c));return typeof r=="function"||u.isPresent?b.cloneElement(c,{ref:f}):null};gd.displayName="Presence";function Z2(l){const[i,r]=b.useState(),u=b.useRef(null),c=b.useRef(l),f=b.useRef("none"),h=l?"mounted":"unmounted",[g,y]=K2(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=Tu(u.current);f.current=g==="mounted"?p:"none"},[g]),Gr(()=>{const p=u.current,x=c.current;if(x!==l){const w=f.current,z=Tu(p);l?y("MOUNT"):z==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==z?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,y]),Gr(()=>{if(i){let p;const x=i.ownerDocument.defaultView??window,S=z=>{const R=Tu(u.current).includes(CSS.escape(z.animationName));if(z.target===i&&R&&(y("ANIMATION_END"),!c.current)){const M=i.style.animationFillMode;i.style.animationFillMode="forwards",p=x.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=M)})}},w=z=>{z.target===i&&(f.current=Tu(u.current))};return i.addEventListener("animationstart",w),i.addEventListener("animationcancel",S),i.addEventListener("animationend",S),()=>{x.clearTimeout(p),i.removeEventListener("animationstart",w),i.removeEventListener("animationcancel",S),i.removeEventListener("animationend",S)}}else y("ANIMATION_END")},[i,y]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:b.useCallback(p=>{u.current=p?getComputedStyle(p):null,r(p)},[])}}function Tu(l){return(l==null?void 0:l.animationName)||"none"}function $2(l){var u,c;let i=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?l.ref:(i=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?l.props.ref:l.props.ref||l.ref)}var J2=Mg[" useId ".trim().toString()]||(()=>{}),F2=0;function vd(l){const[i,r]=b.useState(J2());return Gr(()=>{r(u=>u??String(F2++))},[l]),l||(i?`radix-${i}`:"")}var Vu="Collapsible",[W2,PN]=Xu(Vu),[P2,bd]=W2(Vu),Kv=b.forwardRef((l,i)=>{const{__scopeCollapsible:r,open:u,defaultOpen:c,disabled:f,onOpenChange:h,...g}=l,[y,p]=yd({prop:u,defaultProp:c??!1,onChange:h,caller:Vu});return m.jsx(P2,{scope:r,disabled:f,contentId:vd(),open:y,onOpenToggle:b.useCallback(()=>p(x=>!x),[p]),children:m.jsx(sl.div,{"data-state":Sd(y),"data-disabled":f?"":void 0,...g,ref:i})})});Kv.displayName=Vu;var Zv="CollapsibleTrigger",$v=b.forwardRef((l,i)=>{const{__scopeCollapsible:r,...u}=l,c=bd(Zv,r);return m.jsx(sl.button,{type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":Sd(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled,...u,ref:i,onClick:Rn(l.onClick,c.onOpenToggle)})});$v.displayName=Zv;var xd="CollapsibleContent",Jv=b.forwardRef((l,i)=>{const{forceMount:r,...u}=l,c=bd(xd,l.__scopeCollapsible);return m.jsx(gd,{present:r||c.open,children:({present:f})=>m.jsx(I2,{...u,ref:i,present:f})})});Jv.displayName=xd;var I2=b.forwardRef((l,i)=>{const{__scopeCollapsible:r,present:u,children:c,...f}=l,h=bd(xd,r),[g,y]=b.useState(u),p=b.useRef(null),x=Qr(i,p),S=b.useRef(0),w=S.current,z=b.useRef(0),j=z.current,R=h.open||g,M=b.useRef(R),_=b.useRef(void 0);return b.useEffect(()=>{const G=requestAnimationFrame(()=>M.current=!1);return()=>cancelAnimationFrame(G)},[]),Gr(()=>{const G=p.current;if(G){_.current=_.current||{transitionDuration:G.style.transitionDuration,animationName:G.style.animationName},G.style.transitionDuration="0s",G.style.animationName="none";const X=G.getBoundingClientRect();S.current=X.height,z.current=X.width,M.current||(G.style.transitionDuration=_.current.transitionDuration,G.style.animationName=_.current.animationName),y(u)}},[h.open,u]),m.jsx(sl.div,{"data-state":Sd(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!R,...f,ref:x,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...l.style},children:R&&c})});function Sd(l){return l?"open":"closed"}var eN=Kv;const tN=eN,nN=$v,lN=Jv;function aN({column:l,onInsertText:i}){return m.jsxs("button",{onClick:()=>i==null?void 0:i(l.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 "${l.name}"`,children:[l.primaryKey?m.jsx(ww,{className:"h-3 w-3 shrink-0 text-yellow-500"}):m.jsx(mw,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),m.jsx("span",{className:"truncate font-mono",children:l.name}),m.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[l.type,l.notNull&&!l.primaryKey&&" NOT NULL"]})]})}function iN({table:l,onInsertText:i}){const[r,u]=b.useState(!1);return m.jsxs(tN,{open:r,onOpenChange:u,children:[m.jsxs(nN,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?m.jsx(aw,{className:"h-4 w-4 shrink-0"}):m.jsx(tv,{className:"h-4 w-4 shrink-0"}),m.jsx(lv,{className:"h-4 w-4 shrink-0 text-blue-500"}),m.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:c=>{c.stopPropagation(),i==null||i(l.name)},title:`Click to insert "${l.name}"`,children:l.name}),m.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[l.columns.length," cols"]})]}),m.jsx(lN,{children:m.jsx("div",{className:"ml-4 border-l pl-2",children:l.columns.map(c=>m.jsx(aN,{column:c,onInsertText:i},c.name))})})]})}function rN({bindingName:l,onInsertText:i}){const{data:r,isLoading:u,refetch:c}=ll({queryKey:["schema",l],queryFn:()=>FE(l),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(g=>!g.name.startsWith("_litestream_"));return m.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[m.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[m.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),m.jsx(el,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>c(),disabled:u,children:m.jsx(nv,{className:An("h-4 w-4",u&&"animate-spin")})})]}),m.jsx(XE,{className:"flex-1",children:m.jsx("div",{className:"p-2",children:u?m.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?m.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):m.jsx("div",{className:"space-y-0.5",children:h.map(g=>m.jsx(iN,{table:g,onInsertText:i},g.name))})})}),m.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function sN(l){const i=l+"CollectionProvider",[r,u]=Xu(i),[c,f]=r(i,{collectionRef:{current:null},itemMap:new Map}),h=R=>{const{scope:M,children:_}=R,G=kl.useRef(null),X=kl.useRef(new Map).current;return m.jsx(c,{scope:M,itemMap:X,collectionRef:G,children:_})};h.displayName=i;const g=l+"CollectionSlot",y=Wf(g),p=kl.forwardRef((R,M)=>{const{scope:_,children:G}=R,X=f(g,_),Z=Qr(M,X.collectionRef);return m.jsx(y,{ref:Z,children:G})});p.displayName=g;const x=l+"CollectionItemSlot",S="data-radix-collection-item",w=Wf(x),z=kl.forwardRef((R,M)=>{const{scope:_,children:G,...X}=R,Z=kl.useRef(null),I=Qr(M,Z),te=f(x,_);return kl.useEffect(()=>(te.itemMap.set(Z,{ref:Z,...X}),()=>void te.itemMap.delete(Z))),m.jsx(w,{[S]:"",ref:I,children:G})});z.displayName=x;function j(R){const M=f(l+"CollectionConsumer",R);return kl.useCallback(()=>{const G=M.collectionRef.current;if(!G)return[];const X=Array.from(G.querySelectorAll(`[${S}]`));return Array.from(M.itemMap.values()).sort((te,W)=>X.indexOf(te.ref.current)-X.indexOf(W.ref.current))},[M.collectionRef,M.itemMap])}return[{Provider:h,Slot:p,ItemSlot:z},j,u]}function uN(l){const i=b.useRef(l);return b.useEffect(()=>{i.current=l}),b.useMemo(()=>(...r)=>{var u;return(u=i.current)==null?void 0:u.call(i,...r)},[])}var oN=b.createContext(void 0);function Fv(l){const i=b.useContext(oN);return l||i||"ltr"}var jf="rovingFocusGroup.onEntryFocus",cN={bubbles:!1,cancelable:!0},es="RovingFocusGroup",[Pf,Wv,fN]=sN(es),[dN,Pv]=Xu(es,[fN]),[hN,mN]=dN(es),Iv=b.forwardRef((l,i)=>m.jsx(Pf.Provider,{scope:l.__scopeRovingFocusGroup,children:m.jsx(Pf.Slot,{scope:l.__scopeRovingFocusGroup,children:m.jsx(pN,{...l,ref:i})})}));Iv.displayName=es;var pN=b.forwardRef((l,i)=>{const{__scopeRovingFocusGroup:r,orientation:u,loop:c=!1,dir:f,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...S}=l,w=b.useRef(null),z=Qr(i,w),j=Fv(f),[R,M]=yd({prop:h,defaultProp:g??null,onChange:y,caller:es}),[_,G]=b.useState(!1),X=uN(p),Z=Wv(r),I=b.useRef(!1),[te,W]=b.useState(0);return b.useEffect(()=>{const L=w.current;if(L)return L.addEventListener(jf,X),()=>L.removeEventListener(jf,X)},[X]),m.jsx(hN,{scope:r,orientation:u,dir:j,loop:c,currentTabStopId:R,onItemFocus:b.useCallback(L=>M(L),[M]),onItemShiftTab:b.useCallback(()=>G(!0),[]),onFocusableItemAdd:b.useCallback(()=>W(L=>L+1),[]),onFocusableItemRemove:b.useCallback(()=>W(L=>L-1),[]),children:m.jsx(sl.div,{tabIndex:_||te===0?-1:0,"data-orientation":u,...S,ref:z,style:{outline:"none",...l.style},onMouseDown:Rn(l.onMouseDown,()=>{I.current=!0}),onFocus:Rn(l.onFocus,L=>{const $=!I.current;if(L.target===L.currentTarget&&$&&!_){const ue=new CustomEvent(jf,cN);if(L.currentTarget.dispatchEvent(ue),!ue.defaultPrevented){const Se=Z().filter(k=>k.focusable),Ne=Se.find(k=>k.active),he=Se.find(k=>k.id===R),Ue=[Ne,he,...Se].filter(Boolean).map(k=>k.ref.current);nb(Ue,x)}}I.current=!1}),onBlur:Rn(l.onBlur,()=>G(!1))})})}),eb="RovingFocusGroupItem",tb=b.forwardRef((l,i)=>{const{__scopeRovingFocusGroup:r,focusable:u=!0,active:c=!1,tabStopId:f,children:h,...g}=l,y=vd(),p=f||y,x=mN(eb,r),S=x.currentTabStopId===p,w=Wv(r),{onFocusableItemAdd:z,onFocusableItemRemove:j,currentTabStopId:R}=x;return b.useEffect(()=>{if(u)return z(),()=>j()},[u,z,j]),m.jsx(Pf.ItemSlot,{scope:r,id:p,focusable:u,active:c,children:m.jsx(sl.span,{tabIndex:S?0:-1,"data-orientation":x.orientation,...g,ref:i,onMouseDown:Rn(l.onMouseDown,M=>{u?x.onItemFocus(p):M.preventDefault()}),onFocus:Rn(l.onFocus,()=>x.onItemFocus(p)),onKeyDown:Rn(l.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){x.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const _=vN(M,x.orientation,x.dir);if(_!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let X=w().filter(Z=>Z.focusable).map(Z=>Z.ref.current);if(_==="last")X.reverse();else if(_==="prev"||_==="next"){_==="prev"&&X.reverse();const Z=X.indexOf(M.currentTarget);X=x.loop?bN(X,Z+1):X.slice(Z+1)}setTimeout(()=>nb(X))}}),children:typeof h=="function"?h({isCurrentTabStop:S,hasTabStop:R!=null}):h})})});tb.displayName=eb;var yN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gN(l,i){return i!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function vN(l,i,r){const u=gN(l.key,r);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(u))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(u)))return yN[u]}function nb(l,i=!1){const r=document.activeElement;for(const u of l)if(u===r||(u.focus({preventScroll:i}),document.activeElement!==r))return}function bN(l,i){return l.map((r,u)=>l[(i+u)%l.length])}var xN=Iv,SN=tb,Ku="Tabs",[wN,IN]=Xu(Ku,[Pv]),lb=Pv(),[EN,wd]=wN(Ku),ab=b.forwardRef((l,i)=>{const{__scopeTabs:r,value:u,onValueChange:c,defaultValue:f,orientation:h="horizontal",dir:g,activationMode:y="automatic",...p}=l,x=Fv(g),[S,w]=yd({prop:u,onChange:c,defaultProp:f??"",caller:Ku});return m.jsx(EN,{scope:r,baseId:vd(),value:S,onValueChange:w,orientation:h,dir:x,activationMode:y,children:m.jsx(sl.div,{dir:x,"data-orientation":h,...p,ref:i})})});ab.displayName=Ku;var ib="TabsList",rb=b.forwardRef((l,i)=>{const{__scopeTabs:r,loop:u=!0,...c}=l,f=wd(ib,r),h=lb(r);return m.jsx(xN,{asChild:!0,...h,orientation:f.orientation,dir:f.dir,loop:u,children:m.jsx(sl.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:i})})});rb.displayName=ib;var sb="TabsTrigger",ub=b.forwardRef((l,i)=>{const{__scopeTabs:r,value:u,disabled:c=!1,...f}=l,h=wd(sb,r),g=lb(r),y=fb(h.baseId,u),p=db(h.baseId,u),x=u===h.value;return m.jsx(SN,{asChild:!0,...g,focusable:!c,active:x,children:m.jsx(sl.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...f,ref:i,onMouseDown:Rn(l.onMouseDown,S=>{!c&&S.button===0&&S.ctrlKey===!1?h.onValueChange(u):S.preventDefault()}),onKeyDown:Rn(l.onKeyDown,S=>{[" ","Enter"].includes(S.key)&&h.onValueChange(u)}),onFocus:Rn(l.onFocus,()=>{const S=h.activationMode!=="manual";!x&&!c&&S&&h.onValueChange(u)})})})});ub.displayName=sb;var ob="TabsContent",cb=b.forwardRef((l,i)=>{const{__scopeTabs:r,value:u,forceMount:c,children:f,...h}=l,g=wd(ob,r),y=fb(g.baseId,u),p=db(g.baseId,u),x=u===g.value,S=b.useRef(x);return b.useEffect(()=>{const w=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(w)},[]),m.jsx(gd,{present:c||x,children:({present:w})=>m.jsx(sl.div,{"data-state":x?"active":"inactive","data-orientation":g.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:p,tabIndex:0,...h,ref:i,style:{...l.style,animationDuration:S.current?"0s":void 0},children:w&&f})})});cb.displayName=ob;function fb(l,i){return`${l}-trigger-${i}`}function db(l,i){return`${l}-content-${i}`}var NN=ab,CN=rb,TN=ub,jN=cb;function AN({className:l,...i}){return m.jsx(NN,{"data-slot":"tabs",className:An("flex flex-col gap-2",l),...i})}function RN({className:l,...i}){return m.jsx(CN,{"data-slot":"tabs-list",className:An("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",l),...i})}function cg({className:l,...i}){return m.jsx(TN,{"data-slot":"tabs-trigger",className:An("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",l),...i})}function fg({className:l,...i}){return m.jsx(jN,{"data-slot":"tabs-content",className:An("flex-1 outline-none",l),...i})}function zN(l){return l===null?"NULL":l===void 0?"":typeof l=="object"?JSON.stringify(l):String(l)}function ON(){var $,ue,Se,Ne;const{binding:l}=Lu(),i=l||"",[r,u]=b.useState("query"),[c,f]=b.useState(""),[h,g]=b.useState(null),[y,p]=b.useState(null),[x,S]=b.useState(null),[w,z]=b.useState(0),j=50,R=b.useCallback(he=>{f(Ze=>Ze+he)},[]),M=b1({mutationFn:he=>ZE(i,he),onSuccess:he=>{g(he),p(null)},onError:he=>{p(he instanceof Error?he.message:"Failed to execute query"),g(null)}}),_=()=>{c.trim()&&M.mutate(c)},G=ll({queryKey:["tables",i],queryFn:()=>$E(i),staleTime:0,gcTime:0,enabled:!!i}),X=ll({queryKey:["tableData",i,x,j,w],queryFn:()=>JE(i,x,j,w),staleTime:0,gcTime:0,enabled:!!i&&!!x}),Z=(($=G.data)==null?void 0:$.tables)||[],I=((ue=X.data)==null?void 0:ue.data)||[],te=((Se=X.data)==null?void 0:Se.columns)||[],W=((Ne=X.data)==null?void 0:Ne.total)||0,L=he=>{S(he),z(0)};return m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[m.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",i]}),m.jsxs(AN,{value:r,onValueChange:u,children:[m.jsxs(RN,{children:[m.jsx(cg,{value:"query",children:"SQL Editor"}),m.jsx(cg,{value:"tables",children:"Tables"})]}),m.jsx(fg,{value:"query",className:"mt-4",children:m.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsxs(Nt,{children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:"SQL Query"}),m.jsx(Aa,{children:"Execute SQL queries against your database"})]}),m.jsxs(Ct,{className:"space-y-4",children:[m.jsx("textarea",{value:c,onChange:he=>f(he.target.value),onKeyDown:he=>{(he.metaKey||he.ctrlKey)&&he.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),m.jsxs(el,{onClick:_,disabled:M.isPending||!c.trim(),children:[m.jsx(jw,{className:"mr-2 h-4 w-4"}),M.isPending?"Executing...":"Execute"]})]})]})]}),y&&m.jsx(Nt,{className:"border-destructive/50",children:m.jsx(Ct,{className:"pt-6",children:m.jsx("p",{className:"font-mono text-sm text-destructive",children:y})})}),h&&m.jsx(dE,{results:h.results,meta:h.meta,error:h.error})]}),m.jsx("div",{className:"hidden h-[500px] lg:block",children:m.jsx(rN,{bindingName:i,onInsertText:R})})]})}),m.jsx(fg,{value:"tables",className:"mt-4",children:m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[m.jsxs(Nt,{className:"md:col-span-1",children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-base",children:"Tables"}),m.jsx(el,{variant:"ghost",size:"icon",onClick:()=>G.refetch(),className:"h-8 w-8",children:m.jsx(nv,{className:"h-4 w-4"})})]}),m.jsx(Ct,{children:G.isLoading?m.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):Z.length===0?m.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):m.jsx("div",{className:"space-y-1",children:Z.map(he=>m.jsxs("button",{onClick:()=>L(he.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${x===he.name?"bg-muted font-medium":""}`,children:[m.jsx(lv,{className:"h-4 w-4 shrink-0"}),m.jsx("span",{className:"truncate",children:he.name})]},he.name))})})]}),m.jsxs(Nt,{className:"md:col-span-3",children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:x||"Select a Table"}),x&&m.jsxs(Aa,{children:[W," total rows"]})]}),m.jsx(Ct,{children:x?X.isLoading?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx(bt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):I.length===0?m.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"overflow-x-auto rounded-md border",children:m.jsxs(Hu,{children:[m.jsx(Bu,{children:m.jsx($l,{children:te.map(he=>m.jsx(Jt,{className:"font-mono",children:he},he))})}),m.jsx(Gu,{children:I.map((he,Ze)=>m.jsx($l,{children:te.map(Ue=>m.jsx(Ft,{className:"font-mono text-sm",children:zN(he[Ue])},Ue))},Ze))})]})}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," - ",Math.min(w+j,W)," of ",W]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsxs(el,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>z(Math.max(0,w-j)),children:[m.jsx(rw,{className:"mr-1 h-4 w-4"}),"Previous"]}),m.jsxs(el,{variant:"outline",size:"sm",disabled:w+j>=W,onClick:()=>z(w+j),children:["Next",m.jsx(tv,{className:"ml-1 h-4 w-4"})]})]})]})]}):m.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function MN({status:l}){switch(l){case"PENDING":return m.jsxs(ft,{variant:"outline",className:"gap-1",children:[m.jsx(Wr,{className:"h-3 w-3"}),"Pending"]});case"PROCESSING":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-blue-500 text-blue-500",children:[m.jsx(bt,{className:"h-3 w-3 animate-spin"}),"Processing"]});case"ACKNOWLEDGED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-green-500 text-green-500",children:[m.jsx(Jr,{className:"h-3 w-3"}),"Acknowledged"]});case"FAILED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-red-500 text-red-500",children:[m.jsx(Fr,{className:"h-3 w-3"}),"Failed"]});case"DEAD_LETTER":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-orange-500 text-orange-500",children:[m.jsx(ow,{className:"h-3 w-3"}),"Dead Letter"]});default:return m.jsx(ft,{variant:"outline",children:l})}}function _N({metrics:l,isLoading:i}){return m.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[m.jsxs(Nt,{children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-sm font-medium",children:"Pending"}),m.jsx(Wr,{className:"h-4 w-4 text-muted-foreground"})]}),m.jsx(Ct,{children:m.jsx("div",{className:"text-2xl font-bold",children:i?m.jsx(bt,{className:"h-5 w-5 animate-spin"}):(l==null?void 0:l.pending)??0})})]}),m.jsxs(Nt,{children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-sm font-medium",children:"Processing"}),m.jsx(bt,{className:"h-4 w-4 text-muted-foreground"})]}),m.jsx(Ct,{children:m.jsx("div",{className:"text-2xl font-bold",children:i?m.jsx(bt,{className:"h-5 w-5 animate-spin"}):(l==null?void 0:l.processing)??0})})]}),m.jsxs(Nt,{children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-sm font-medium",children:"Acknowledged"}),m.jsx(Jr,{className:"h-4 w-4 text-green-500"})]}),m.jsx(Ct,{children:m.jsx("div",{className:"text-2xl font-bold",children:i?m.jsx(bt,{className:"h-5 w-5 animate-spin"}):(l==null?void 0:l.acknowledged)??0})})]}),m.jsxs(Nt,{children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-sm font-medium",children:"Failed"}),m.jsx(Fr,{className:"h-4 w-4 text-red-500"})]}),m.jsx(Ct,{children:m.jsx("div",{className:"text-2xl font-bold",children:i?m.jsx(bt,{className:"h-5 w-5 animate-spin"}):(l==null?void 0:l.failed)??0})})]}),m.jsxs(Nt,{children:[m.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(Lt,{className:"text-sm font-medium",children:"Dead Letter"}),m.jsx(Cw,{className:"h-4 w-4 text-orange-500"})]}),m.jsx(Ct,{children:m.jsx("div",{className:"text-2xl font-bold",children:i?m.jsx(bt,{className:"h-5 w-5 animate-spin"}):(l==null?void 0:l.deadLetter)??0})})]})]})}function DN({messages:l,isLoading:i}){return m.jsxs(Nt,{children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:"Recent Messages"}),m.jsx(Aa,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),m.jsx(Ct,{children:i?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx(bt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):l!=null&&l.length?m.jsxs(Hu,{children:[m.jsx(Bu,{children:m.jsxs($l,{children:[m.jsx(Jt,{children:"ID"}),m.jsx(Jt,{children:"Status"}),m.jsx(Jt,{children:"Payload"}),m.jsx(Jt,{children:"Attempt"}),m.jsx(Jt,{children:"Created"})]})}),m.jsx(Gu,{children:l.map(r=>m.jsxs($l,{children:[m.jsxs(Ft,{className:"font-mono text-xs",children:[r.id.slice(0,8),"..."]}),m.jsx(Ft,{children:m.jsx(MN,{status:r.status})}),m.jsx(Ft,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),m.jsx(Ft,{children:r.attempt}),m.jsx(Ft,{className:"text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]},r.id))})]}):m.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No messages in this queue"})})]})}function UN(){const{binding:l}=Lu(),i=l||"",{data:r,isLoading:u}=ll({queryKey:["queueMetrics",i],queryFn:()=>WE(i),enabled:!!i,refetchInterval:5e3}),{data:c,isLoading:f}=ll({queryKey:["queueMessages",i],queryFn:()=>PE(i,10),enabled:!!i,refetchInterval:5e3});return m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[m.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Queue: ",i]}),m.jsx(_N,{metrics:r==null?void 0:r.metrics,isLoading:u}),m.jsx(DN,{messages:c==null?void 0:c.messages,isLoading:f})]})})}function kN({status:l}){switch(l){case"PENDING":return m.jsxs(ft,{variant:"outline",className:"gap-1",children:[m.jsx(Wr,{className:"h-3 w-3"}),"Pending"]});case"RUNNING":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-blue-500 text-blue-500",children:[m.jsx(bt,{className:"h-3 w-3 animate-spin"}),"Running"]});case"COMPLETED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-green-500 text-green-500",children:[m.jsx(Jr,{className:"h-3 w-3"}),"Completed"]});case"FAILED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-red-500 text-red-500",children:[m.jsx(Fr,{className:"h-3 w-3"}),"Failed"]});case"CANCELLED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-gray-500 text-gray-500",children:[m.jsx(ev,{className:"h-3 w-3"}),"Cancelled"]});default:return m.jsx(ft,{variant:"outline",children:l})}}function zu(l){return l===null?"-":l<1e3?`${l}ms`:l<6e4?`${(l/1e3).toFixed(1)}s`:`${(l/6e4).toFixed(1)}m`}function LN({status:l}){switch(l){case"COMPLETED":return m.jsx(Jr,{className:"h-5 w-5 text-green-500"});case"RUNNING":return m.jsx(bt,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return m.jsx(Fr,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return m.jsx(Wr,{className:"h-5 w-5 text-gray-400"})}}function qN(l){switch(l){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 HN({steps:l}){if(l.length===0)return m.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No steps recorded for this execution"});const i=l.reduce((r,u)=>r+(u.durationMs||0),0);return m.jsxs("div",{className:"space-y-4",children:[i>0&&m.jsxs("div",{className:"mb-6",children:[m.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[m.jsx("span",{children:"Total Duration"}),m.jsx("span",{children:zu(i)})]}),m.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:l.map((r,u)=>{const c=r.durationMs?r.durationMs/i*100:0;return m.jsx("div",{className:An(qN(r.status),"h-full transition-all",u>0&&"border-l border-background"),style:{width:`${c}%`},title:`${r.stepName}: ${zu(r.durationMs)}`},r.id)})})]}),m.jsx("div",{className:"relative",children:l.map((r,u)=>m.jsxs("div",{className:"relative pb-6 last:pb-0",children:[u<l.length-1&&m.jsx("div",{className:An("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),m.jsxs("div",{className:"flex gap-4",children:[m.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:m.jsx(LN,{status:r.status})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"font-medium",children:r.stepName}),m.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),m.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:zu(r.durationMs)})]}),r.errorMessage&&m.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"&&m.jsxs("details",{className:"mt-2",children:[m.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),m.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),m.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]})]})]},r.id))})]})}function BN(){const{binding:l,executionId:i}=Lu(),r=l||"",u=i||"",{data:c,isLoading:f}=ll({queryKey:["workflowExecution",r,u],queryFn:()=>e2(r,u),enabled:!!r&&!!u,refetchInterval:5e3}),h=c==null?void 0:c.execution,g=(c==null?void 0:c.steps)||[];return m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx(Zl,{to:`/workflows/${r}`,children:m.jsxs(el,{variant:"ghost",size:"sm",children:[m.jsx(tw,{className:"mr-2 h-4 w-4"}),"Back"]})}),m.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.slice(0,8),"..."]})]}),f?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx(bt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):h?m.jsxs(m.Fragment,{children:[m.jsxs(Nt,{children:[m.jsx(kt,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx(Lt,{children:"Execution Details"}),m.jsx(Aa,{children:h.startedAt?`Started ${new Date(h.startedAt).toLocaleString()}`:"Not started yet"})]}),m.jsx(kN,{status:h.status})]})}),m.jsxs(Ct,{children:[m.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),m.jsx("p",{className:"font-mono",children:zu(h.durationMs)})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),m.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),m.jsx("p",{className:"font-mono text-sm",children:new Date(h.createdAt).toLocaleString()})]}),h.completedAt&&m.jsxs("div",{children:[m.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),m.jsx("p",{className:"font-mono text-sm",children:new Date(h.completedAt).toLocaleString()})]})]}),h.errorMessage&&m.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage})]})]}),m.jsxs(Nt,{children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:"Steps"}),m.jsx(Aa,{children:"Workflow step execution timeline"})]}),m.jsx(Ct,{children:m.jsx(HN,{steps:g})})]})]}):m.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Execution not found"})]})})}function GN({status:l}){switch(l){case"PENDING":return m.jsxs(ft,{variant:"outline",className:"gap-1",children:[m.jsx(Wr,{className:"h-3 w-3"}),"Pending"]});case"RUNNING":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-blue-500 text-blue-500",children:[m.jsx(bt,{className:"h-3 w-3 animate-spin"}),"Running"]});case"COMPLETED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-green-500 text-green-500",children:[m.jsx(Jr,{className:"h-3 w-3"}),"Completed"]});case"FAILED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-red-500 text-red-500",children:[m.jsx(Fr,{className:"h-3 w-3"}),"Failed"]});case"CANCELLED":return m.jsxs(ft,{variant:"outline",className:"gap-1 border-gray-500 text-gray-500",children:[m.jsx(ev,{className:"h-3 w-3"}),"Cancelled"]});default:return m.jsx(ft,{variant:"outline",children:l})}}function QN(l){return l===null?"-":l<1e3?`${l}ms`:l<6e4?`${(l/1e3).toFixed(1)}s`:`${(l/6e4).toFixed(1)}m`}function YN({executions:l,isLoading:i,bindingName:r}){return m.jsxs(Nt,{children:[m.jsxs(kt,{children:[m.jsx(Lt,{children:"Recent Executions"}),m.jsx(Aa,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),m.jsx(Ct,{children:i?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx(bt,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):l!=null&&l.length?m.jsxs(Hu,{children:[m.jsx(Bu,{children:m.jsxs($l,{children:[m.jsx(Jt,{children:"ID"}),m.jsx(Jt,{children:"Status"}),m.jsx(Jt,{children:"Steps"}),m.jsx(Jt,{children:"Duration"}),m.jsx(Jt,{children:"Started"}),m.jsx(Jt,{})]})}),m.jsx(Gu,{children:l.map(u=>m.jsxs($l,{children:[m.jsxs(Ft,{className:"font-mono text-xs",children:[u.id.slice(0,8),"..."]}),m.jsx(Ft,{children:m.jsx(GN,{status:u.status})}),m.jsx(Ft,{children:m.jsxs("span",{className:"text-sm",children:[u.stepsCompleted,"/",u.stepsCount]})}),m.jsx(Ft,{className:"text-sm",children:QN(u.durationMs)}),m.jsx(Ft,{className:"text-xs text-muted-foreground",children:u.startedAt?new Date(u.startedAt).toLocaleString():"-"}),m.jsx(Ft,{children:m.jsx(Zl,{to:`/workflows/${r}/${u.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},u.id))})]}):m.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No executions for this workflow"})})]})}function XN(){const{binding:l}=Lu(),i=l||"",{data:r,isLoading:u}=ll({queryKey:["workflowExecutions",i],queryFn:()=>IE(i,20),enabled:!!i,refetchInterval:5e3});return m.jsx("div",{className:"flex flex-col",children:m.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[m.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Workflow: ",i]}),m.jsx(YN,{executions:r==null?void 0:r.executions,isLoading:u,bindingName:i})]})})}function VN(){const l=il(),{data:i,isLoading:r}=ll({queryKey:["config"],queryFn:_v,staleTime:6e4}),u=i!=null&&i.db?Object.keys(i.db):[],c=i!=null&&i.queue?Object.keys(i.queue):[],f=i!=null&&i.workflow?Object.keys(i.workflow):[];return m.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[m.jsx("div",{className:"flex h-14 items-center border-b px-4",children:m.jsxs(Zl,{to:"/",className:"flex items-center gap-2 font-semibold",children:[m.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),m.jsx("span",{children:"Ploy Dev"})]})}),m.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?m.jsx("div",{className:"flex items-center justify-center py-8",children:m.jsx(bt,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):m.jsxs("div",{className:"space-y-6",children:[u.length>0&&m.jsxs("div",{children:[m.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),m.jsx("div",{className:"space-y-1",children:u.map(h=>{const g=l.pathname===`/db/${h}`;return m.jsx(Zl,{to:`/db/${h}`,children:m.jsxs(el,{variant:g?"secondary":"ghost",className:An("w-full justify-start",g&&"bg-muted"),children:[m.jsx(yw,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),c.length>0&&m.jsxs("div",{children:[m.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),m.jsx("div",{className:"space-y-1",children:c.map(h=>{const g=l.pathname===`/queues/${h}`;return m.jsx(Zl,{to:`/queues/${h}`,children:m.jsxs(el,{variant:g?"secondary":"ghost",className:An("w-full justify-start",g&&"bg-muted"),children:[m.jsx(xw,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),f.length>0&&m.jsxs("div",{children:[m.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),m.jsx("div",{className:"space-y-1",children:f.map(h=>{const g=l.pathname.startsWith(`/workflows/${h}`);return m.jsx(Zl,{to:`/workflows/${h}`,children:m.jsxs(el,{variant:g?"secondary":"ghost",className:An("w-full justify-start",g&&"bg-muted"),children:[m.jsx(vw,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),u.length===0&&c.length===0&&f.length===0&&m.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function KN(){const{data:l,isLoading:i}=ll({queryKey:["config"],queryFn:_v,staleTime:6e4});if(!i&&l){const r=l.db?Object.keys(l.db):[],u=l.queue?Object.keys(l.queue):[],c=l.workflow?Object.keys(l.workflow):[];if(r.length>0)return m.jsx(Sf,{to:`/db/${r[0]}`,replace:!0});if(u.length>0)return m.jsx(Sf,{to:`/queues/${u[0]}`,replace:!0});if(c.length>0)return m.jsx(Sf,{to:`/workflows/${c[0]}`,replace:!0})}return m.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[m.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),i?m.jsx(bt,{className:"h-6 w-6 animate-spin text-muted-foreground"}):m.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function ZN(){return m.jsxs("div",{className:"min-h-screen bg-background",children:[m.jsx(VN,{}),m.jsx("main",{className:"pl-64",children:m.jsx("div",{className:"container mx-auto px-6 py-4",children:m.jsxs(yS,{children:[m.jsx(gi,{path:"/",element:m.jsx(KN,{})}),m.jsx(gi,{path:"/db/:binding",element:m.jsx(ON,{})}),m.jsx(gi,{path:"/queues/:binding",element:m.jsx(UN,{})}),m.jsx(gi,{path:"/workflows/:binding",element:m.jsx(XN,{})}),m.jsx(gi,{path:"/workflows/:binding/:executionId",element:m.jsx(BN,{})})]})})})]})}const $N=new t1({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});C1.createRoot(document.getElementById("root")).render(m.jsx(b.StrictMode,{children:m.jsx(s1,{client:$N,children:m.jsx(BS,{children:m.jsx(ZN,{})})})}));