@meetploy/emulator 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard-dist/assets/main-Bxo6zxtr.js +364 -0
- package/dist/dashboard-dist/assets/main-BzmV5bYj.css +1 -0
- package/dist/dashboard-dist/index.html +2 -2
- package/dist/runtime/cache-runtime.d.ts +1 -0
- package/dist/runtime/cache-runtime.js +2 -0
- package/dist/runtime/cache-runtime.js.map +1 -0
- package/dist/services/cache-service.d.ts +14 -0
- package/dist/services/cache-service.js +39 -0
- package/dist/services/cache-service.js.map +1 -0
- package/dist/services/dashboard-routes.js +48 -0
- package/dist/services/dashboard-routes.js.map +1 -1
- package/dist/services/dashboard-routes.spec.js +69 -0
- package/dist/services/dashboard-routes.spec.js.map +1 -1
- package/dist/services/mock-server.js +8 -0
- package/dist/services/mock-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-dist/assets/main-B2W_MQ7P.js +0 -359
- package/dist/dashboard-dist/assets/main-oM9iTzuI.css +0 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
var U0=n=>{throw TypeError(n)};var hh=(n,a,r)=>a.has(n)||U0("Cannot "+r);var k=(n,a,r)=>(hh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?U0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),oe=(n,a,r,i)=>(hh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Re=(n,a,r)=>(hh(n,a,"access private method"),r);var qu=(n,a,r,i)=>({set _(o){oe(n,a,o,r)},get _(){return k(n,a,i)}});function gN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function hb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mh={exports:{}},$s={};/**
|
|
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 q0;function yN(){if(q0)return $s;q0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:i,key:h,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=r,$s.jsxs=r,$s}var H0;function xN(){return H0||(H0=1,mh.exports=yN()),mh.exports}var u=xN(),Di=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ur=typeof window>"u"||"Deno"in globalThis;function Nn(){}function bN(n,a){return typeof n=="function"?n(a):n}function Hh(n){return typeof n=="number"&&n>=0&&n!==1/0}function mb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function di(n,a){return typeof n=="function"?n(a):n}function Ln(n,a){return typeof n=="function"?n(a):n}function B0(n,a){const{type:r="all",exact:i,fetchStatus:o,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==Em(h,a.options))return!1}else if(!Ws(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||c&&!c(a))}function $0(n,a){const{exact:r,status:i,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(cr(a.options.mutationKey)!==cr(c))return!1}else if(!Ws(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function Em(n,a){return((a==null?void 0:a.queryKeyHashFn)||cr)(n)}function cr(n){return JSON.stringify(n,(a,r)=>Bh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Ws(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Ws(n[r],a[r])):!1}function pb(n,a){if(n===a)return n;const r=Q0(n)&&Q0(a);if(r||Bh(n)&&Bh(a)){const i=r?n:Object.keys(n),o=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const x=r?g:c[g];(!r&&i.includes(x)||r)&&n[x]===void 0&&a[x]===void 0?(m[x]=void 0,p++):(m[x]=pb(n[x],a[x]),m[x]===n[x]&&n[x]!==void 0&&p++)}return o===h&&p===o?n:m}return a}function lc(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function Q0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Bh(n){if(!G0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!G0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function G0(n){return Object.prototype.toString.call(n)==="[object Object]"}function wN(n){return new Promise(a=>{setTimeout(a,n)})}function $h(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?pb(n,a):a}function jN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function SN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var Nm=Symbol();function vb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===Nm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var tr,yl,pi,ab,EN=(ab=class extends Di{constructor(){super();be(this,tr);be(this,yl);be(this,pi);oe(this,pi,a=>{if(!ur&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,yl)||this.setEventListener(k(this,pi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,yl))==null||a.call(this),oe(this,yl,void 0))}setEventListener(a){var r;oe(this,pi,a),(r=k(this,yl))==null||r.call(this),oe(this,yl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,tr)!==a&&(oe(this,tr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,tr)=="boolean"?k(this,tr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},tr=new WeakMap,yl=new WeakMap,pi=new WeakMap,ab),Cm=new EN,vi,xl,gi,lb,NN=(lb=class extends Di{constructor(){super();be(this,vi,!0);be(this,xl);be(this,gi);oe(this,gi,a=>{if(!ur&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){k(this,xl)||this.setEventListener(k(this,gi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,xl))==null||a.call(this),oe(this,xl,void 0))}setEventListener(a){var r;oe(this,gi,a),(r=k(this,xl))==null||r.call(this),oe(this,xl,a(this.setOnline.bind(this)))}setOnline(a){k(this,vi)!==a&&(oe(this,vi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,vi)}},vi=new WeakMap,xl=new WeakMap,gi=new WeakMap,lb),rc=new NN;function Qh(){let n,a;const r=new Promise((o,c)=>{n=o,a=c});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),n(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}function CN(n){return Math.min(1e3*2**n,3e4)}function gb(n){return(n??"online")==="online"?rc.isOnline():!0}var yb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function ph(n){return n instanceof yb}function xb(n){let a=!1,r=0,i=!1,o;const c=Qh(),h=j=>{var C;i||(b(new yb(j)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Cm.isFocused()&&(n.networkMode==="always"||rc.isOnline())&&n.canRun(),x=()=>gb(n.networkMode)&&n.canRun(),y=j=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,j),o==null||o(),c.resolve(j))},b=j=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,j),o==null||o(),c.reject(j))},S=()=>new Promise(j=>{var C;o=_=>{(i||g())&&j(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var j;o=void 0,i||(j=n.onContinue)==null||j.call(n)}),E=()=>{if(i)return;let j;const C=r===0?n.initialPromise:void 0;try{j=C??n.fn()}catch(_){j=Promise.reject(_)}Promise.resolve(j).then(y).catch(_=>{var K;if(i)return;const T=n.retry??(ur?0:3),R=n.retryDelay??CN,D=typeof R=="function"?R(r,_):R,U=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!U){b(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),wN(D).then(()=>g()?void 0:S()).then(()=>{a?b(_):E()})})};return{promise:c,cancel:h,continue:()=>(o==null||o(),c),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?E():S().then(E),c)}}var _N=n=>setTimeout(n,0);function TN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},o=_N;const c=m=>{a?n.push(m):o(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{o=m}}}var St=TN(),nr,rb,bb=(rb=class{constructor(){be(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hh(this.gcTime)&&oe(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ur?1/0:300*1e3))}clearGcTimeout(){k(this,nr)&&(clearTimeout(k(this,nr)),oe(this,nr,void 0))}},nr=new WeakMap,rb),yi,xi,En,ar,Lt,ro,lr,On,ka,ib,RN=(ib=class extends bb{constructor(a){super();be(this,On);be(this,yi);be(this,xi);be(this,En);be(this,ar);be(this,Lt);be(this,ro);be(this,lr);oe(this,lr,!1),oe(this,ro,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,ar,a.client),oe(this,En,k(this,ar).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,yi,MN(this.options)),this.state=a.state??k(this,yi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,ro),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,En).remove(this)}setData(a,r){const i=$h(this.state.data,a,this.options);return Re(this,On,ka).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Re(this,On,ka).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,o;const r=(i=k(this,Lt))==null?void 0:i.promise;return(o=k(this,Lt))==null||o.cancel(a),r?r.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,yi))}isActive(){return this.observers.some(a=>Ln(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(a=0){return this.state.isInvalidated||this.state.data===void 0||!mb(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,En).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(k(this,Lt)&&(k(this,lr)?k(this,Lt).cancel({revert:!0}):k(this,Lt).cancelRetry()),this.scheduleGc()),k(this,En).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,On,ka).call(this,{type:"invalidate"})}fetch(a,r){var p,g,x;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Lt))return k(this,Lt).continueRetry(),k(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const i=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(oe(this,lr,!0),i.signal)})},c=()=>{const y=vb(this.options,r),b={client:k(this,ar),queryKey:this.queryKey,meta:this.meta};return o(b),oe(this,lr,!1),this.options.persister?this.options.persister(y,b,this):y(b)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,ar),state:this.state,fetchFn:c};o(h),(p=this.options.behavior)==null||p.onFetch(h,this),oe(this,xi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Re(this,On,ka).call(this,{type:"fetch",meta:(x=h.fetchOptions)==null?void 0:x.meta});const m=y=>{var b,S,E,j;ph(y)&&y.silent||Re(this,On,ka).call(this,{type:"error",error:y}),ph(y)||((S=(b=k(this,En).config).onError)==null||S.call(b,y,this),(j=(E=k(this,En).config).onSettled)==null||j.call(E,this.state.data,y,this)),this.scheduleGc()};return oe(this,Lt,xb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:y=>{var b,S,E,j;if(y===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(C){m(C);return}(S=(b=k(this,En).config).onSuccess)==null||S.call(b,y,this),(j=(E=k(this,En).config).onSettled)==null||j.call(E,y,this.state.error,this),this.scheduleGc()},onError:m,onFail:(y,b)=>{Re(this,On,ka).call(this,{type:"failed",failureCount:y,error:b})},onPause:()=>{Re(this,On,ka).call(this,{type:"pause"})},onContinue:()=>{Re(this,On,ka).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Lt).start()}},yi=new WeakMap,xi=new WeakMap,En=new WeakMap,ar=new WeakMap,Lt=new WeakMap,ro=new WeakMap,lr=new WeakMap,On=new WeakSet,ka=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...wb(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=a.error;return ph(o)&&o.revert&&k(this,xi)?{...k(this,xi),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,En).notify({query:this,type:"updated",action:a})})},ib);function wb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function MN(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zn,sb,AN=(sb=class extends Di{constructor(a={}){super();be(this,Zn);this.config=a,oe(this,Zn,new Map)}build(a,r,i){const o=r.queryKey,c=r.queryHash??Em(o,r);let h=this.get(c);return h||(h=new RN({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){k(this,Zn).has(a.queryHash)||(k(this,Zn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Zn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Zn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){St.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Zn).get(a)}getAll(){return[...k(this,Zn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>B0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>B0(a,i)):r}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){St.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Zn=new WeakMap,sb),Pn,qt,rr,Jn,vl,ob,kN=(ob=class extends bb{constructor(a){super();be(this,Jn);be(this,Pn);be(this,qt);be(this,rr);this.mutationId=a.mutationId,oe(this,qt,a.mutationCache),oe(this,Pn,[]),this.state=a.state||jb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){k(this,Pn).includes(a)||(k(this,Pn).push(a),this.clearGcTimeout(),k(this,qt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,Pn,k(this,Pn).filter(r=>r!==a)),this.scheduleGc(),k(this,qt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():k(this,qt).remove(this))}continue(){var a;return((a=k(this,rr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,x,y,b,S,E,j,C,_,T,R,D,U,K,H,q;const r=()=>{Re(this,Jn,vl).call(this,{type:"continue"})};oe(this,rr,xb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,ee)=>{Re(this,Jn,vl).call(this,{type:"failed",failureCount:G,error:ee})},onPause:()=>{Re(this,Jn,vl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,qt).canRun(this)}));const i=this.state.status==="pending",o=!k(this,rr).canStart();try{if(i)r();else{Re(this,Jn,vl).call(this,{type:"pending",variables:a,isPaused:o}),await((h=(c=k(this,qt).config).onMutate)==null?void 0:h.call(c,a,this));const ee=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));ee!==this.state.context&&Re(this,Jn,vl).call(this,{type:"pending",context:ee,variables:a,isPaused:o})}const G=await k(this,rr).start();return await((x=(g=k(this,qt).config).onSuccess)==null?void 0:x.call(g,G,a,this.state.context,this)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,G,a,this.state.context)),await((E=(S=k(this,qt).config).onSettled)==null?void 0:E.call(S,G,null,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,G,null,a,this.state.context)),Re(this,Jn,vl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((T=(_=k(this,qt).config).onError)==null?void 0:T.call(_,G,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,G,a,this.state.context)),await((K=(U=k(this,qt).config).onSettled)==null?void 0:K.call(U,void 0,G,this.state.variables,this.state.context,this)),await((q=(H=this.options).onSettled)==null?void 0:q.call(H,void 0,G,a,this.state.context)),G}finally{Re(this,Jn,vl).call(this,{type:"error",error:G})}}finally{k(this,qt).runNext(this)}}},Pn=new WeakMap,qt=new WeakMap,rr=new WeakMap,Jn=new WeakSet,vl=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),St.batch(()=>{k(this,Pn).forEach(i=>{i.onMutationUpdate(a)}),k(this,qt).notify({mutation:this,type:"updated",action:a})})},ob);function jb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Da,zn,io,ub,DN=(ub=class extends Di{constructor(a={}){super();be(this,Da);be(this,zn);be(this,io);this.config=a,oe(this,Da,new Set),oe(this,zn,new Map),oe(this,io,0)}build(a,r,i){const o=new kN({mutationCache:this,mutationId:++qu(this,io)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){k(this,Da).add(a);const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r);i?i.push(a):k(this,zn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Da).delete(a)){const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&k(this,zn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r),o=i==null?void 0:i.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=Hu(a);if(typeof r=="string"){const o=(i=k(this,zn).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{k(this,Da).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Da).clear(),k(this,zn).clear()})}getAll(){return Array.from(k(this,Da))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>$0(r,i))}findAll(a={}){return this.getAll().filter(r=>$0(a,r))}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return St.batch(()=>Promise.all(a.map(r=>r.continue().catch(Nn))))}},Da=new WeakMap,zn=new WeakMap,io=new WeakMap,ub);function Hu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function Y0(n){return{onFetch:(a,r)=>{var x,y,b,S,E;const i=a.options,o=(b=(y=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,c=((S=a.state.data)==null?void 0:S.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let j=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?j=!0:a.signal.addEventListener("abort",()=>{j=!0}),a.signal)})},_=vb(a.options,a.fetchOptions),T=async(R,D,U)=>{if(j)return Promise.reject();if(D==null&&R.pages.length)return Promise.resolve(R);const K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:U?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,G=U?SN:jN;return{pages:G(R.pages,H,q),pageParams:G(R.pageParams,D,q)}};if(o&&c.length){const R=o==="backward",D=R?ON:V0,U={pages:c,pageParams:h},K=D(i,U);m=await T(U,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:V0(i,m);if(p>0&&D==null)break;m=await T(m,D),p++}while(p<R)}return m};a.options.persister?a.fetchFn=()=>{var j,C;return(C=(j=a.options).persister)==null?void 0:C.call(j,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function V0(n,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?n.getNextPageParam(a[i],a,r[i],r):void 0}function ON(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var ot,bl,wl,bi,wi,jl,ji,Si,cb,zN=(cb=class{constructor(n={}){be(this,ot);be(this,bl);be(this,wl);be(this,bi);be(this,wi);be(this,jl);be(this,ji);be(this,Si);oe(this,ot,n.queryCache||new AN),oe(this,bl,n.mutationCache||new DN),oe(this,wl,n.defaultOptions||{}),oe(this,bi,new Map),oe(this,wi,new Map),oe(this,jl,0)}mount(){qu(this,jl)._++,k(this,jl)===1&&(oe(this,ji,Cm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onFocus())})),oe(this,Si,rc.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onOnline())})))}unmount(){var n,a;qu(this,jl)._--,k(this,jl)===0&&((n=k(this,ji))==null||n.call(this),oe(this,ji,void 0),(a=k(this,Si))==null||a.call(this),oe(this,Si,void 0))}isFetching(n){return k(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,bl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(di(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,ot).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),o=k(this,ot).get(i.queryHash),c=o==null?void 0:o.state.data,h=bN(a,c);if(h!==void 0)return k(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return St.batch(()=>k(this,ot).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,ot);St.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,ot);return St.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=St.batch(()=>k(this,ot).findAll(n).map(o=>o.cancel(r)));return Promise.all(i).then(Nn).catch(Nn)}invalidateQueries(n,a={}){return St.batch(()=>(k(this,ot).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=St.batch(()=>k(this,ot).findAll(n).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Nn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,ot).build(this,a);return r.isStaleByTime(di(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Nn).catch(Nn)}fetchInfiniteQuery(n){return n.behavior=Y0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Nn).catch(Nn)}ensureInfiniteQueryData(n){return n.behavior=Y0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return rc.isOnline()?k(this,bl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ot)}getMutationCache(){return k(this,bl)}getDefaultOptions(){return k(this,wl)}setDefaultOptions(n){oe(this,wl,n)}setQueryDefaults(n,a){k(this,bi).set(cr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,bi).values()],r={};return a.forEach(i=>{Ws(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,wi).set(cr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,wi).values()],r={};return a.forEach(i=>{Ws(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,wl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Em(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Nm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,wl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,ot).clear(),k(this,bl).clear()}},ot=new WeakMap,bl=new WeakMap,wl=new WeakMap,bi=new WeakMap,wi=new WeakMap,jl=new WeakMap,ji=new WeakMap,Si=new WeakMap,cb),Ft,qe,so,Ht,ir,Ei,Sl,El,oo,Ni,Ci,sr,or,Nl,_i,Ve,Ks,Gh,Yh,Vh,Kh,Xh,Fh,Zh,Sb,db,LN=(db=class extends Di{constructor(a,r){super();be(this,Ve);be(this,Ft);be(this,qe);be(this,so);be(this,Ht);be(this,ir);be(this,Ei);be(this,Sl);be(this,El);be(this,oo);be(this,Ni);be(this,Ci);be(this,sr);be(this,or);be(this,Nl);be(this,_i,new Set);this.options=r,oe(this,Ft,a),oe(this,El,null),oe(this,Sl,Qh()),this.options.experimental_prefetchInRender||k(this,Sl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,qe).addObserver(this),K0(k(this,qe),this.options)?Re(this,Ve,Ks).call(this):this.updateResult(),Re(this,Ve,Kh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ph(k(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ph(k(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Ve,Xh).call(this),Re(this,Ve,Fh).call(this),k(this,qe).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,qe);if(this.options=k(this,Ft).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,k(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Ve,Zh).call(this),k(this,qe).setOptions(this.options),r._defaulted&&!lc(this.options,r)&&k(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,qe),observer:this});const o=this.hasListeners();o&&X0(k(this,qe),i,this.options,r)&&Re(this,Ve,Ks).call(this),this.updateResult(),o&&(k(this,qe)!==i||Ln(this.options.enabled,k(this,qe))!==Ln(r.enabled,k(this,qe))||di(this.options.staleTime,k(this,qe))!==di(r.staleTime,k(this,qe)))&&Re(this,Ve,Gh).call(this);const c=Re(this,Ve,Yh).call(this);o&&(k(this,qe)!==i||Ln(this.options.enabled,k(this,qe))!==Ln(r.enabled,k(this,qe))||c!==k(this,Nl))&&Re(this,Ve,Vh).call(this,c)}getOptimisticResult(a){const r=k(this,Ft).getQueryCache().build(k(this,Ft),a),i=this.createResult(r,a);return qN(this,i)&&(oe(this,Ht,i),oe(this,Ei,this.options),oe(this,ir,k(this,qe).state)),i}getCurrentResult(){return k(this,Ht)}trackResult(a,r){const i={};return Object.keys(a).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),a[o])})}),i}trackProp(a){k(this,_i).add(a)}getCurrentQuery(){return k(this,qe)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Ft).defaultQueryOptions(a),i=k(this,Ft).getQueryCache().build(k(this,Ft),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Re(this,Ve,Ks).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ht)))}createResult(a,r){var G;const i=k(this,qe),o=this.options,c=k(this,Ht),h=k(this,ir),m=k(this,Ei),g=a!==i?a.state:k(this,so),{state:x}=a;let y={...x},b=!1,S;if(r._optimisticResults){const ee=this.hasListeners(),ue=!ee&&K0(a,r),ce=ee&&X0(a,i,r,o);(ue||ce)&&(y={...y,...wb(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:C}=y;S=y.data;let _=!1;if(r.placeholderData!==void 0&&S===void 0&&C==="pending"){let ee;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(ee=c.data,_=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((G=k(this,Ci))==null?void 0:G.state.data,k(this,Ci)):r.placeholderData,ee!==void 0&&(C="success",S=$h(c==null?void 0:c.data,ee,r),b=!0)}if(r.select&&S!==void 0&&!_)if(c&&S===(h==null?void 0:h.data)&&r.select===k(this,oo))S=k(this,Ni);else try{oe(this,oo,r.select),S=r.select(S),S=$h(c==null?void 0:c.data,S,r),oe(this,Ni,S),oe(this,El,null)}catch(ee){oe(this,El,ee)}k(this,El)&&(E=k(this,El),S=k(this,Ni),j=Date.now(),C="error");const T=y.fetchStatus==="fetching",R=C==="pending",D=C==="error",U=R&&T,K=S!==void 0,q={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:U,isLoading:U,data:S,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:D&&!K,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:D&&K,isStale:_m(a,r),refetch:this.refetch,promise:k(this,Sl)};if(this.options.experimental_prefetchInRender){const ee=ie=>{q.status==="error"?ie.reject(q.error):q.data!==void 0&&ie.resolve(q.data)},ue=()=>{const ie=oe(this,Sl,q.promise=Qh());ee(ie)},ce=k(this,Sl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&ee(ce);break;case"fulfilled":(q.status==="error"||q.data!==ce.value)&&ue();break;case"rejected":(q.status!=="error"||q.error!==ce.reason)&&ue();break}}return q}updateResult(){const a=k(this,Ht),r=this.createResult(k(this,qe),this.options);if(oe(this,ir,k(this,qe).state),oe(this,Ei,this.options),k(this,ir).data!==void 0&&oe(this,Ci,k(this,qe)),lc(r,a))return;oe(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!k(this,_i).size)return!0;const h=new Set(c??k(this,_i));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Ht)).some(m=>{const p=m;return k(this,Ht)[p]!==a[p]&&h.has(p)})};Re(this,Ve,Sb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Ve,Kh).call(this)}},Ft=new WeakMap,qe=new WeakMap,so=new WeakMap,Ht=new WeakMap,ir=new WeakMap,Ei=new WeakMap,Sl=new WeakMap,El=new WeakMap,oo=new WeakMap,Ni=new WeakMap,Ci=new WeakMap,sr=new WeakMap,or=new WeakMap,Nl=new WeakMap,_i=new WeakMap,Ve=new WeakSet,Ks=function(a){Re(this,Ve,Zh).call(this);let r=k(this,qe).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Nn)),r},Gh=function(){Re(this,Ve,Xh).call(this);const a=di(this.options.staleTime,k(this,qe));if(ur||k(this,Ht).isStale||!Hh(a))return;const i=mb(k(this,Ht).dataUpdatedAt,a)+1;oe(this,sr,setTimeout(()=>{k(this,Ht).isStale||this.updateResult()},i))},Yh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,qe)):this.options.refetchInterval)??!1},Vh=function(a){Re(this,Ve,Fh).call(this),oe(this,Nl,a),!(ur||Ln(this.options.enabled,k(this,qe))===!1||!Hh(k(this,Nl))||k(this,Nl)===0)&&oe(this,or,setInterval(()=>{(this.options.refetchIntervalInBackground||Cm.isFocused())&&Re(this,Ve,Ks).call(this)},k(this,Nl)))},Kh=function(){Re(this,Ve,Gh).call(this),Re(this,Ve,Vh).call(this,Re(this,Ve,Yh).call(this))},Xh=function(){k(this,sr)&&(clearTimeout(k(this,sr)),oe(this,sr,void 0))},Fh=function(){k(this,or)&&(clearInterval(k(this,or)),oe(this,or,void 0))},Zh=function(){const a=k(this,Ft).getQueryCache().build(k(this,Ft),this.options);if(a===k(this,qe))return;const r=k(this,qe);oe(this,qe,a),oe(this,so,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},Sb=function(a){St.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,Ht))}),k(this,Ft).getQueryCache().notify({query:k(this,qe),type:"observerResultsUpdated"})})},db);function UN(n,a){return Ln(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function K0(n,a){return UN(n,a)||n.state.data!==void 0&&Ph(n,a,a.refetchOnMount)}function Ph(n,a,r){if(Ln(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&_m(n,a)}return!1}function X0(n,a,r,i){return(n!==a||Ln(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&_m(n,r)}function _m(n,a){return Ln(a.enabled,n)!==!1&&n.isStaleByTime(di(a.staleTime,n))}function qN(n,a){return!lc(n.getCurrentResult(),a)}var Cl,_l,Zt,Oa,La,Ju,Jh,fb,HN=(fb=class extends Di{constructor(r,i){super();be(this,La);be(this,Cl);be(this,_l);be(this,Zt);be(this,Oa);oe(this,Cl,r),this.setOptions(i),this.bindMethods(),Re(this,La,Ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=k(this,Cl).defaultMutationOptions(r),lc(this.options,i)||k(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Zt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&cr(i.mutationKey)!==cr(this.options.mutationKey)?this.reset():((o=k(this,Zt))==null?void 0:o.state.status)==="pending"&&k(this,Zt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Zt))==null||r.removeObserver(this)}onMutationUpdate(r){Re(this,La,Ju).call(this),Re(this,La,Jh).call(this,r)}getCurrentResult(){return k(this,_l)}reset(){var r;(r=k(this,Zt))==null||r.removeObserver(this),oe(this,Zt,void 0),Re(this,La,Ju).call(this),Re(this,La,Jh).call(this)}mutate(r,i){var o;return oe(this,Oa,i),(o=k(this,Zt))==null||o.removeObserver(this),oe(this,Zt,k(this,Cl).getMutationCache().build(k(this,Cl),this.options)),k(this,Zt).addObserver(this),k(this,Zt).execute(r)}},Cl=new WeakMap,_l=new WeakMap,Zt=new WeakMap,Oa=new WeakMap,La=new WeakSet,Ju=function(){var i;const r=((i=k(this,Zt))==null?void 0:i.state)??jb();oe(this,_l,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Jh=function(r){St.batch(()=>{var i,o,c,h,m,p,g,x;if(k(this,Oa)&&this.hasListeners()){const y=k(this,_l).variables,b=k(this,_l).context;(r==null?void 0:r.type)==="success"?((o=(i=k(this,Oa)).onSuccess)==null||o.call(i,r.data,y,b),(h=(c=k(this,Oa)).onSettled)==null||h.call(c,r.data,null,y,b)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Oa)).onError)==null||p.call(m,r.error,y,b),(x=(g=k(this,Oa)).onSettled)==null||x.call(g,void 0,r.error,y,b))}this.listeners.forEach(y=>{y(k(this,_l))})})},fb),vh={exports:{}},Ce={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var F0;function BN(){if(F0)return Ce;F0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=b&&A[b]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,C={};function _(A,F,W){this.props=A,this.context=F,this.refs=C,this.updater=W||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,F,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function T(){}T.prototype=_.prototype;function R(A,F,W){this.props=A,this.context=F,this.refs=C,this.updater=W||E}var D=R.prototype=new T;D.constructor=R,j(D,_.prototype),D.isPureReactComponent=!0;var U=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function G(A,F,W){var le=W.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:W}}function ee(A,F){return G(A.type,F,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return F[W]})}var ie=/\/+/g;function ae(A,F){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):F.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(K,K):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function z(A,F,W,le,ve){var Se=typeof A;(Se==="undefined"||Se==="boolean")&&(A=null);var te=!1;if(A===null)te=!0;else switch(Se){case"bigint":case"string":case"number":te=!0;break;case"object":switch(A.$$typeof){case n:case a:te=!0;break;case x:return te=A._init,z(te(A._payload),F,W,le,ve)}}if(te)return ve=ve(A),te=le===""?"."+ae(A,0):le,U(ve)?(W="",te!=null&&(W=te.replace(ie,"$&/")+"/"),z(ve,F,W,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=ee(ve,W+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+te)),F.push(ve)),1;te=0;var Ee=le===""?".":le+":";if(U(A))for(var ye=0;ye<A.length;ye++)le=A[ye],Se=Ee+ae(le,ye),te+=z(le,F,W,Se,ve);else if(ye=S(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,Se=Ee+ae(le,ye++),te+=z(le,F,W,Se,ve);else if(Se==="object"){if(typeof A.then=="function")return z(re(A),F,W,le,ve);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return te}function J(A,F,W){if(A==null)return A;var le=[],ve=0;return z(A,le,"","",function(Se){return F.call(W,Se,ve++)}),le}function Y(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var X=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:J,forEach:function(A,F,W){J(A,function(){F.apply(this,arguments)},W)},count:function(A){var F=0;return J(A,function(){F++}),F},toArray:function(A){return J(A,function(F){return F})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=y,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=o,Ce.PureComponent=R,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return H.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=j({},A.props),ve=A.key;if(F!=null)for(Se in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&F.ref===void 0||(le[Se]=F[Se]);var Se=arguments.length-2;if(Se===1)le.children=W;else if(1<Se){for(var te=Array(Se),Ee=0;Ee<Se;Ee++)te[Ee]=arguments[Ee+2];le.children=te}return G(A.type,ve,le)},Ce.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ce.createElement=function(A,F,W){var le,ve={},Se=null;if(F!=null)for(le in F.key!==void 0&&(Se=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var te=arguments.length-2;if(te===1)ve.children=W;else if(1<te){for(var Ee=Array(te),ye=0;ye<te;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(A&&A.defaultProps)for(le in te=A.defaultProps,te)ve[le]===void 0&&(ve[le]=te[le]);return G(A,Se,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ue,Ce.lazy=function(A){return{$$typeof:x,_payload:{_status:-1,_result:A},_init:Y}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=H.T,W={};H.T=W;try{var le=A(),ve=H.S;ve!==null&&ve(W,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(Se){X(Se)}finally{F!==null&&W.types!==null&&(F.types=W.types),H.T=F}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(A){return H.H.use(A)},Ce.useActionState=function(A,F,W){return H.H.useActionState(A,F,W)},Ce.useCallback=function(A,F){return H.H.useCallback(A,F)},Ce.useContext=function(A){return H.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return H.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return H.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return H.H.useEffectEvent(A)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(A,F,W){return H.H.useImperativeHandle(A,F,W)},Ce.useInsertionEffect=function(A,F){return H.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return H.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return H.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return H.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,W){return H.H.useReducer(A,F,W)},Ce.useRef=function(A){return H.H.useRef(A)},Ce.useState=function(A){return H.H.useState(A)},Ce.useSyncExternalStore=function(A,F,W){return H.H.useSyncExternalStore(A,F,W)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.3",Ce}var Z0;function Tm(){return Z0||(Z0=1,vh.exports=BN()),vh.exports}var v=Tm();const ut=hb(v),Eb=gN({__proto__:null,default:ut},[v]);var Nb=v.createContext(void 0),Ec=n=>{const a=v.useContext(Nb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},$N=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(Nb.Provider,{value:n,children:a})),Cb=v.createContext(!1),QN=()=>v.useContext(Cb);Cb.Provider;function GN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var YN=v.createContext(GN()),VN=()=>v.useContext(YN);function _b(n,a){return typeof n=="function"?n(...a):!!n}function Ih(){}var KN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},XN=n=>{v.useEffect(()=>{n.clearReset()},[n])},FN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(o&&n.data===void 0||_b(r,[n.error,i])),ZN=n=>{const a=n.staleTime;n.suspense&&(n.staleTime=typeof a=="function"?(...r)=>Math.max(a(...r),1e3):Math.max(a??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},PN=(n,a)=>n.isLoading&&n.isFetching&&!a,JN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,P0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function IN(n,a,r){var y,b,S,E,j;const i=Ec(),o=QN(),c=VN(),h=i.defaultQueryOptions(n);(b=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||b.call(y,h),h._optimisticResults=o?"isRestoring":"optimistic",ZN(h),KN(h,c),XN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),x=!o&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=x?p.subscribe(St.batchCalls(C)):Ih;return p.updateResult(),_},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),JN(h,g))throw P0(h,p,c);if(FN({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(S=i.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,h,g),h.experimental_prefetchInRender&&!ur&&PN(g,o)){const C=m?P0(h,p,c):(j=i.getQueryCache().get(h.queryHash))==null?void 0:j.promise;C==null||C.catch(Ih).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function ft(n,a){return IN(n,LN)}function ic(n,a){const r=Ec(),[i]=v.useState(()=>new HN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const o=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(St.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Ih)},[i]);if(o.error&&_b(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var gh={exports:{}},Qs={},yh={exports:{}},xh={};/**
|
|
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 J0;function WN(){return J0||(J0=1,(function(n){function a(z,J){var Y=z.length;z.push(J);e:for(;0<Y;){var X=Y-1>>>1,de=z[X];if(0<o(de,J))z[X]=J,z[Y]=de,Y=X;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var J=z[0],Y=z.pop();if(Y!==J){z[0]=Y;e:for(var X=0,de=z.length,A=de>>>1;X<A;){var F=2*(X+1)-1,W=z[F],le=F+1,ve=z[le];if(0>o(W,Y))le<de&&0>o(ve,W)?(z[X]=ve,z[le]=Y,X=le):(z[X]=W,z[F]=Y,X=F);else if(le<de&&0>o(ve,Y))z[X]=ve,z[le]=Y,X=le;else break e}}return J}function o(z,J){var Y=z.sortIndex-J.sortIndex;return Y!==0?Y:z.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],x=1,y=null,b=3,S=!1,E=!1,j=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(z){for(var J=r(g);J!==null;){if(J.callback===null)i(g);else if(J.startTime<=z)i(g),J.sortIndex=J.expirationTime,a(p,J);else break;J=r(g)}}function U(z){if(j=!1,D(z),!E)if(r(p)!==null)E=!0,K||(K=!0,ce());else{var J=r(g);J!==null&&re(U,J.startTime-z)}}var K=!1,H=-1,q=5,G=-1;function ee(){return C?!0:!(n.unstable_now()-G<q)}function ue(){if(C=!1,K){var z=n.unstable_now();G=z;var J=!0;try{e:{E=!1,j&&(j=!1,T(H),H=-1),S=!0;var Y=b;try{t:{for(D(z),y=r(p);y!==null&&!(y.expirationTime>z&&ee());){var X=y.callback;if(typeof X=="function"){y.callback=null,b=y.priorityLevel;var de=X(y.expirationTime<=z);if(z=n.unstable_now(),typeof de=="function"){y.callback=de,D(z),J=!0;break t}y===r(p)&&i(p),D(z)}else i(p);y=r(p)}if(y!==null)J=!0;else{var A=r(g);A!==null&&re(U,A.startTime-z),J=!1}}break e}finally{y=null,b=Y,S=!1}J=void 0}}finally{J?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ue,ce=function(){ae.postMessage(null)}}else ce=function(){_(ue,0)};function re(z,J){H=_(function(){z(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(z){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var Y=b;b=J;try{return z()}finally{b=Y}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var Y=b;b=z;try{return J()}finally{b=Y}},n.unstable_scheduleCallback=function(z,J,Y){var X=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?X+Y:X):Y=X,z){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=Y+de,z={id:x++,callback:J,priorityLevel:z,startTime:Y,expirationTime:de,sortIndex:-1},Y>X?(z.sortIndex=Y,a(g,z),r(p)===null&&z===r(g)&&(j?(T(H),H=-1):j=!0,re(U,Y-X))):(z.sortIndex=de,a(p,z),E||S||(E=!0,K||(K=!0,ce()))),z},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(z){var J=b;return function(){var Y=b;b=J;try{return z.apply(this,arguments)}finally{b=Y}}}})(xh)),xh}var I0;function eC(){return I0||(I0=1,yh.exports=WN()),yh.exports}var bh={exports:{}},zt={};/**
|
|
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 W0;function tC(){if(W0)return zt;W0=1;var n=Tm();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,g,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:g,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.createPortal=function(p,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,x)},zt.flushSync=function(p){var g=h.T,x=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=x,i.d.f()}},zt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},zt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var x=g.as,y=m(x,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):x==="script"&&i.d.X(p,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},zt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},zt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,y=m(x,g.crossOrigin);i.d.L(p,x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},zt.preloadModule=function(p,g){if(typeof p=="string")if(g){var x=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},zt.requestFormReset=function(p){i.d.r(p)},zt.unstable_batchedUpdates=function(p,g){return p(g)},zt.useFormState=function(p,g,x){return h.H.useFormState(p,g,x)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var ex;function Tb(){if(ex)return bh.exports;ex=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),bh.exports=tC(),bh.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 tx;function nC(){if(tx)return Qs;tx=1;var n=eC(),a=Tm(),r=Tb();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,s=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===s)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==s.return)l=d,s=f;else{for(var w=!1,N=d.child;N;){if(N===l){w=!0,l=d,s=f;break}if(N===s){w=!0,s=d,l=f;break}N=N.sibling}if(!w){for(N=f.child;N;){if(N===l){w=!0,l=f,s=d;break}if(N===s){w=!0,s=f,l=d;break}N=N.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?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 y=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case K:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var re=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},X=[],de=-1;function A(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function W(e,t){de++,X[de]=e.current,e.current=t}var le=A(null),ve=A(null),Se=A(null),te=A(null);function Ee(e,t){switch(W(Se,t),W(ve,e),W(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?i0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=i0(t),e=s0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),W(le,e)}function ye(){F(le),F(ve),F(Se)}function Ne(e){e.memoizedState!==null&&W(te,e);var t=le.current,l=s0(t,e.type);t!==l&&(W(ve,e),W(le,l))}function Be(e){ve.current===e&&(F(le),F(ve)),te.current===e&&(F(te),Us._currentValue=Y)}var Ke,Ot;function Jt(e){if(Ke===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ke+e+Ot}var ca=!1;function da(e,t){if(!e||ca)return"";ca=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(V){var Q=V}Reflect.construct(e,[],I)}else{try{I.call()}catch(V){Q=V}e.call(I.prototype)}}else{try{throw Error()}catch(V){Q=V}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(V){if(V&&Q&&typeof V.stack=="string")return[V.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),w=f[0],N=f[1];if(w&&N){var M=w.split(`
|
|
44
|
+
`),$=N.split(`
|
|
45
|
+
`);for(d=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;d<$.length&&!$[d].includes("DetermineComponentFrameRoot");)d++;if(s===M.length||d===$.length)for(s=M.length-1,d=$.length-1;1<=s&&0<=d&&M[s]!==$[d];)d--;for(;1<=s&&0<=d;s--,d--)if(M[s]!==$[d]){if(s!==1||d!==1)do if(s--,d--,0>d||M[s]!==$[d]){var Z=`
|
|
46
|
+
`+M[s].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=s&&0<=d);break}}}finally{ca=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jt(l):""}function Jc(e,t){switch(e.tag){case 26:case 27:case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return e.child!==t&&t!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return da(e.type,!1);case 11:return da(e.type.render,!1);case 1:return da(e.type,!0);case 31:return Jt("Activity");default:return""}}function bo(e){try{var t="",l=null;do t+=Jc(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}var Ga=Object.prototype.hasOwnProperty,Ic=n.unstable_scheduleCallback,Wc=n.unstable_cancelCallback,ZS=n.unstable_shouldYield,PS=n.unstable_requestPaint,It=n.unstable_now,JS=n.unstable_getCurrentPriorityLevel,qp=n.unstable_ImmediatePriority,Hp=n.unstable_UserBlockingPriority,wo=n.unstable_NormalPriority,IS=n.unstable_LowPriority,Bp=n.unstable_IdlePriority,WS=n.log,e2=n.unstable_setDisableYieldValue,Zi=null,Wt=null;function Ya(e){if(typeof WS=="function"&&e2(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(Zi,e)}catch{}}var en=Math.clz32?Math.clz32:a2,t2=Math.log,n2=Math.LN2;function a2(e){return e>>>=0,e===0?32:31-(t2(e)/n2|0)|0}var jo=256,So=262144,Eo=4194304;function zl(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 No(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,f=e.suspendedLanes,w=e.pingedLanes;e=e.warmLanes;var N=s&134217727;return N!==0?(s=N&~f,s!==0?d=zl(s):(w&=N,w!==0?d=zl(w):l||(l=N&~e,l!==0&&(d=zl(l))))):(N=s&~f,N!==0?d=zl(N):w!==0?d=zl(w):l||(l=s&~e,l!==0&&(d=zl(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function l2(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 $p(){var e=Eo;return Eo<<=1,(Eo&62914560)===0&&(Eo=4194304),e}function ed(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ji(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function r2(e,t,l,s,d,f){var w=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,$=e.hiddenUpdates;for(l=w&~l;0<l;){var Z=31-en(l),I=1<<Z;N[Z]=0,M[Z]=-1;var Q=$[Z];if(Q!==null)for($[Z]=null,Z=0;Z<Q.length;Z++){var V=Q[Z];V!==null&&(V.lane&=-536870913)}l&=~I}s!==0&&Qp(e,s,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(w&~t))}function Qp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-en(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function Gp(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-en(l),d=1<<s;d&t|e[s]&t&&(e[s]|=t),l&=~d}}function Yp(e,t){var l=t&-t;return l=(l&42)!==0?1:td(l),(l&(e.suspendedLanes|t))!==0?0:l}function td(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 nd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:M0(e.type))}function Kp(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Va=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Va,$t="__reactProps$"+Va,jr="__reactContainer$"+Va,ad="__reactEvents$"+Va,i2="__reactListeners$"+Va,s2="__reactHandles$"+Va,Xp="__reactResources$"+Va,Ii="__reactMarker$"+Va;function ld(e){delete e[Rt],delete e[$t],delete e[ad],delete e[i2],delete e[s2]}function Sr(e){var t=e[Rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[jr]||l[Rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=m0(e);e!==null;){if(l=e[Rt])return l;e=m0(e)}return t}e=l,l=e.parentNode}return null}function Er(e){if(e=e[Rt]||e[jr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Nr(e){var t=e[Xp];return t||(t=e[Xp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[Ii]=!0}var Fp=new Set,Zp={};function Ll(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(Zp[e]=t,e=0;e<t.length;e++)Fp.add(t[e])}var o2=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]*$"),Pp={},Jp={};function u2(e){return Ga.call(Jp,e)?!0:Ga.call(Pp,e)?!1:o2.test(e)?Jp[e]=!0:(Pp[e]=!0,!1)}function Co(e,t,l){if(u2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function _o(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fa(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ip(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c2(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,f=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,f.call(this,w)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rd(e){if(!e._valueTracker){var t=Ip(e)?"checked":"value";e._valueTracker=c2(e,t,""+e[t])}}function Wp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=Ip(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function To(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 d2=/[\n"\\]/g;function mn(e){return e.replace(d2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function id(e,t,l,s,d,f,w,N){e.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.type=w:e.removeAttribute("type"),t!=null?w==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):w!=="submit"&&w!=="reset"||e.removeAttribute("value"),t!=null?sd(e,w,hn(t)):l!=null?sd(e,w,hn(l)):s!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+hn(N):e.removeAttribute("name")}function ev(e,t,l,s,d,f,w,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){rd(e);return}l=l!=null?""+hn(l):"",t=t!=null?""+hn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=N?e.checked:!!s,e.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(e.name=w),rd(e)}function sd(e,t,l){t==="number"&&To(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function _r(e,t,l,s){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&s&&(e[l].defaultSelected=!0)}else{for(l=""+hn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function tv(e,t,l){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+hn(l):""}function nv(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if(re(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=hn(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),rd(e)}function Tr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var f2=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 av(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||f2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function lv(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in t)s=t[d],t.hasOwnProperty(d)&&l[d]!==s&&av(e,d,s)}else for(var f in t)t.hasOwnProperty(f)&&av(e,f,t[f])}function od(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 h2=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"]]),m2=/^[\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 Ro(e){return m2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var ud=null;function cd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rr=null,Mr=null;function rv(e){var t=Er(e);if(t&&(e=t.stateNode)){var l=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(id(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var d=s[$t]||null;if(!d)throw Error(i(90));id(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Wp(s)}break e;case"textarea":tv(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&_r(e,!!l.multiple,t,!1)}}}var dd=!1;function iv(e,t,l){if(dd)return e(t,l);dd=!0;try{var s=e(t);return s}finally{if(dd=!1,(Rr!==null||Mr!==null)&&(vu(),Rr&&(t=Rr,e=Mr,Mr=Rr=null,rv(t),e)))for(t=0;t<e.length;t++)rv(e[t])}}function es(e,t){var l=e.stateNode;if(l===null)return null;var s=l[$t]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=!1;if(ma)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){fd=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{fd=!1}var Ka=null,hd=null,Mo=null;function sv(){if(Mo)return Mo;var e,t=hd,l=t.length,s,d="value"in Ka?Ka.value:Ka.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var w=l-e;for(s=1;s<=w&&t[l-s]===d[f-s];s++);return Mo=d.slice(e,1<s?1-s:void 0)}function Ao(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 ko(){return!0}function ov(){return!1}function Qt(e){function t(l,s,d,f,w){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=f,this.target=w,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ko:ov,this.isPropagationStopped=ov,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Do=Qt(Ul),ns=y({},Ul,{view:0,detail:0}),p2=Qt(ns),md,pd,as,Oo=y({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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!==as&&(as&&e.type==="mousemove"?(md=e.screenX-as.screenX,pd=e.screenY-as.screenY):pd=md=0,as=e),md)},movementY:function(e){return"movementY"in e?e.movementY:pd}}),uv=Qt(Oo),v2=y({},Oo,{dataTransfer:0}),g2=Qt(v2),y2=y({},ns,{relatedTarget:0}),vd=Qt(y2),x2=y({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),b2=Qt(x2),w2=y({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),j2=Qt(w2),S2=y({},Ul,{data:0}),cv=Qt(S2),E2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N2={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"},C2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C2[e])?!!t[e]:!1}function gd(){return _2}var T2=y({},ns,{key:function(e){if(e.key){var t=E2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?N2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?Ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),R2=Qt(T2),M2=y({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dv=Qt(M2),A2=y({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),k2=Qt(A2),D2=y({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),O2=Qt(D2),z2=y({},Oo,{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}),L2=Qt(z2),U2=y({},Ul,{newState:0,oldState:0}),q2=Qt(U2),H2=[9,13,27,32],yd=ma&&"CompositionEvent"in window,ls=null;ma&&"documentMode"in document&&(ls=document.documentMode);var B2=ma&&"TextEvent"in window&&!ls,fv=ma&&(!yd||ls&&8<ls&&11>=ls),hv=" ",mv=!1;function pv(e,t){switch(e){case"keyup":return H2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function $2(e,t){switch(e){case"compositionend":return vv(t);case"keypress":return t.which!==32?null:(mv=!0,hv);case"textInput":return e=t.data,e===hv&&mv?null:e;default:return null}}function Q2(e,t){if(Ar)return e==="compositionend"||!yd&&pv(e,t)?(e=sv(),Mo=hd=Ka=null,Ar=!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 fv&&t.locale!=="ko"?null:t.data;default:return null}}var G2={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 gv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G2[e.type]:t==="textarea"}function yv(e,t,l,s){Rr?Mr?Mr.push(s):Mr=[s]:Rr=s,t=Su(t,"onChange"),0<t.length&&(l=new Do("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var rs=null,is=null;function Y2(e){e0(e,0)}function zo(e){var t=Wi(e);if(Wp(t))return e}function xv(e,t){if(e==="change")return t}var bv=!1;if(ma){var xd;if(ma){var bd="oninput"in document;if(!bd){var wv=document.createElement("div");wv.setAttribute("oninput","return;"),bd=typeof wv.oninput=="function"}xd=bd}else xd=!1;bv=xd&&(!document.documentMode||9<document.documentMode)}function jv(){rs&&(rs.detachEvent("onpropertychange",Sv),is=rs=null)}function Sv(e){if(e.propertyName==="value"&&zo(is)){var t=[];yv(t,is,e,cd(e)),iv(Y2,t)}}function V2(e,t,l){e==="focusin"?(jv(),rs=t,is=l,rs.attachEvent("onpropertychange",Sv)):e==="focusout"&&jv()}function K2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zo(is)}function X2(e,t){if(e==="click")return zo(t)}function F2(e,t){if(e==="input"||e==="change")return zo(t)}function Z2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Z2;function ss(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!Ga.call(t,d)||!tn(e[d],t[d]))return!1}return!0}function Ev(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nv(e,t){var l=Ev(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ev(l)}}function Cv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _v(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=To(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=To(e.document)}return t}function wd(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 P2=ma&&"documentMode"in document&&11>=document.documentMode,kr=null,jd=null,os=null,Sd=!1;function Tv(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Sd||kr==null||kr!==To(s)||(s=kr,"selectionStart"in s&&wd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),os&&ss(os,s)||(os=s,s=Su(jd,"onSelect"),0<s.length&&(t=new Do("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=kr)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Dr={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Ed={},Rv={};ma&&(Rv=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function Hl(e){if(Ed[e])return Ed[e];if(!Dr[e])return e;var t=Dr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Rv)return Ed[e]=t[l];return e}var Mv=Hl("animationend"),Av=Hl("animationiteration"),kv=Hl("animationstart"),J2=Hl("transitionrun"),I2=Hl("transitionstart"),W2=Hl("transitioncancel"),Dv=Hl("transitionend"),Ov=new Map,Nd="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(" ");Nd.push("scrollEnd");function Mn(e,t){Ov.set(e,t),Ll(t,[e])}var Lo=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)},pn=[],Or=0,Cd=0;function Uo(){for(var e=Or,t=Cd=Or=0;t<e;){var l=pn[t];pn[t++]=null;var s=pn[t];pn[t++]=null;var d=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,s!==null&&d!==null){var w=s.pending;w===null?d.next=d:(d.next=w.next,w.next=d),s.pending=d}f!==0&&zv(l,d,f)}}function qo(e,t,l,s){pn[Or++]=e,pn[Or++]=t,pn[Or++]=l,pn[Or++]=s,Cd|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function _d(e,t,l,s){return qo(e,t,l,s),Ho(e)}function Bl(e,t){return qo(e,null,null,t),Ho(e)}function zv(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,s=f.alternate,s!==null&&(s.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-en(l),e=f.hiddenUpdates,s=e[d],s===null?e[d]=[t]:s.push(t),t.lane=l|536870912),f):null}function Ho(e){if(50<Ms)throw Ms=0,Uf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zr={};function eE(e,t,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,l,s){return new eE(e,t,l,s)}function Td(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var l=e.alternate;return l===null?(l=nn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Lv(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bo(e,t,l,s,d,f){var w=0;if(s=e,typeof e=="function")Td(e)&&(w=1);else if(typeof e=="string")w=rN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=nn(31,l,t,d),e.elementType=G,e.lanes=f,e;case j:return $l(l.children,d,f,t);case C:w=8,d|=24;break;case _:return e=nn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case U:return e=nn(13,l,t,d),e.elementType=U,e.lanes=f,e;case K:return e=nn(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:w=10;break e;case T:w=9;break e;case D:w=11;break e;case H:w=14;break e;case q:w=16,s=null;break e}w=29,l=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=nn(w,l,t,d),t.elementType=e,t.type=s,t.lanes=f,t}function $l(e,t,l,s){return e=nn(7,e,s,t),e.lanes=l,e}function Rd(e,t,l){return e=nn(6,e,null,t),e.lanes=l,e}function Uv(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Md(e,t,l){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qv=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var l=qv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:bo(t)},qv.set(e,t),t)}return{value:e,source:t,stack:bo(t)}}var Lr=[],Ur=0,$o=null,us=0,gn=[],yn=0,Xa=null,Vn=1,Kn="";function va(e,t){Lr[Ur++]=us,Lr[Ur++]=$o,$o=e,us=t}function Hv(e,t,l){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Xa=e;var s=Vn;e=Kn;var d=32-en(s)-1;s&=~(1<<d),l+=1;var f=32-en(t)+d;if(30<f){var w=d-d%5;f=(s&(1<<w)-1).toString(32),s>>=w,d-=w,Vn=1<<32-en(t)+d|l<<d|s,Kn=f+e}else Vn=1<<f|l<<d|s,Kn=e}function Ad(e){e.return!==null&&(va(e,1),Hv(e,1,0))}function kd(e){for(;e===$o;)$o=Lr[--Ur],Lr[Ur]=null,us=Lr[--Ur],Lr[Ur]=null;for(;e===Xa;)Xa=gn[--yn],gn[yn]=null,Kn=gn[--yn],gn[yn]=null,Vn=gn[--yn],gn[yn]=null}function Bv(e,t){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Vn=t.id,Kn=t.overflow,Xa=e}var Mt=null,We=null,Ue=!1,Fa=null,xn=!1,Dd=Error(i(519));function Za(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cs(vn(t,e)),Dd}function $v(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Rt]=e,t[$t]=s,l){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(l=0;l<ks.length;l++)Oe(ks[l],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),ev(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),nv(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||l0(t.textContent,l)?(s.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),s.onScroll!=null&&Oe("scroll",t),s.onScrollEnd!=null&&Oe("scrollend",t),s.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||Za(e,!0)}function Qv(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Mt=Mt.return}}function qr(e){if(e!==Mt)return!1;if(!Ue)return Qv(e),Ue=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||If(e.type,e.memoizedProps)),l=!l),l&&We&&Za(e),Qv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=h0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=h0(e)}else t===27?(t=We,ul(e.type)?(e=ah,ah=null,We=e):We=t):We=Mt?wn(e.stateNode.nextSibling):null;return!0}function Ql(){We=Mt=null,Ue=!1}function Od(){var e=Fa;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Fa=null),e}function cs(e){Fa===null?Fa=[e]:Fa.push(e)}var zd=A(null),Gl=null,ga=null;function Pa(e,t,l){W(zd,t._currentValue),t._currentValue=l}function ya(e){e._currentValue=zd.current,F(zd)}function Ld(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function Ud(e,t,l,s){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var w=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Ld(f.return,l,e),s||(w=null);break e}f=N.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(i(341));w.lanes|=l,f=w.alternate,f!==null&&(f.lanes|=l),Ld(w,l,e),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===e){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function Hr(e,t,l,s){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var w=d.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var N=d.type;tn(d.pendingProps.value,w.value)||(e!==null?e.push(N):e=[N])}}else if(d===te.current){if(w=d.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}d=d.return}e!==null&&Ud(t,e,l,s),t.flags|=262144}function Qo(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Gl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return Gv(Gl,e)}function Go(e,t){return Gl===null&&Yl(e),Gv(e,t)}function Gv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return l}var tE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},nE=n.unstable_scheduleCallback,aE=n.unstable_NormalPriority,ht={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qd(){return{controller:new tE,data:new Map,refCount:0}}function ds(e){e.refCount--,e.refCount===0&&nE(aE,function(){e.controller.abort()})}var fs=null,Hd=0,Br=0,$r=null;function lE(e,t){if(fs===null){var l=fs=[];Hd=0,Br=Gf(),$r={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Hd++,t.then(Yv,Yv),t}function Yv(){if(--Hd===0&&fs!==null){$r!==null&&($r.status="fulfilled");var e=fs;fs=null,Br=0,$r=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rE(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Vv=z.S;z.S=function(e,t){Ty=It(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lE(e,t),Vv!==null&&Vv(e,t)};var Vl=A(null);function Bd(){var e=Vl.current;return e!==null?e:Ie.pooledCache}function Yo(e,t){t===null?W(Vl,Vl.current):W(Vl,t.pool)}function Kv(){var e=Bd();return e===null?null:{parent:ht._currentValue,pool:e}}var Qr=Error(i(460)),$d=Error(i(474)),Vo=Error(i(542)),Ko={then:function(){}};function Xv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ha,ha),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pv(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pv(e),e}throw Xl=t,Qr}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,Qr):l}}var Xl=null;function Zv(){if(Xl===null)throw Error(i(459));var e=Xl;return Xl=null,e}function Pv(e){if(e===Qr||e===Vo)throw Error(i(483))}var Gr=null,hs=0;function Xo(e){var t=hs;return hs+=1,Gr===null&&(Gr=[]),Fv(Gr,e,t)}function ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fo(e,t){throw t.$$typeof===b?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jv(e){function t(L,O){if(e){var B=L.deletions;B===null?(L.deletions=[O],L.flags|=16):B.push(O)}}function l(L,O){if(!e)return null;for(;O!==null;)t(L,O),O=O.sibling;return null}function s(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function d(L,O){return L=pa(L,O),L.index=0,L.sibling=null,L}function f(L,O,B){return L.index=B,e?(B=L.alternate,B!==null?(B=B.index,B<O?(L.flags|=67108866,O):B):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function w(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function N(L,O,B,P){return O===null||O.tag!==6?(O=Rd(B,L.mode,P),O.return=L,O):(O=d(O,B),O.return=L,O)}function M(L,O,B,P){var xe=B.type;return xe===j?Z(L,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Kl(xe)===O.type)?(O=d(O,B.props),ms(O,B),O.return=L,O):(O=Bo(B.type,B.key,B.props,null,L.mode,P),ms(O,B),O.return=L,O)}function $(L,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Md(B,L.mode,P),O.return=L,O):(O=d(O,B.children||[]),O.return=L,O)}function Z(L,O,B,P,xe){return O===null||O.tag!==7?(O=$l(B,L.mode,P,xe),O.return=L,O):(O=d(O,B),O.return=L,O)}function I(L,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Rd(""+O,L.mode,B),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return B=Bo(O.type,O.key,O.props,null,L.mode,B),ms(B,O),B.return=L,B;case E:return O=Md(O,L.mode,B),O.return=L,O;case q:return O=Kl(O),I(L,O,B)}if(re(O)||ce(O))return O=$l(O,L.mode,B,null),O.return=L,O;if(typeof O.then=="function")return I(L,Xo(O),B);if(O.$$typeof===R)return I(L,Go(L,O),B);Fo(L,O)}return null}function Q(L,O,B,P){var xe=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return xe!==null?null:N(L,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===xe?M(L,O,B,P):null;case E:return B.key===xe?$(L,O,B,P):null;case q:return B=Kl(B),Q(L,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(L,O,B,P,null);if(typeof B.then=="function")return Q(L,O,Xo(B),P);if(B.$$typeof===R)return Q(L,O,Go(L,B),P);Fo(L,B)}return null}function V(L,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return L=L.get(B)||null,N(O,L,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return L=L.get(P.key===null?B:P.key)||null,M(O,L,P,xe);case E:return L=L.get(P.key===null?B:P.key)||null,$(O,L,P,xe);case q:return P=Kl(P),V(L,O,B,P,xe)}if(re(P)||ce(P))return L=L.get(B)||null,Z(O,L,P,xe,null);if(typeof P.then=="function")return V(L,O,B,Xo(P),xe);if(P.$$typeof===R)return V(L,O,B,Go(O,P),xe);Fo(O,P)}return null}function fe(L,O,B,P){for(var xe=null,$e=null,ge=O,Te=O=0,Le=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var Qe=Q(L,ge,B[Te],P);if(Qe===null){ge===null&&(ge=Le);break}e&&ge&&Qe.alternate===null&&t(L,ge),O=f(Qe,O,Te),$e===null?xe=Qe:$e.sibling=Qe,$e=Qe,ge=Le}if(Te===B.length)return l(L,ge),Ue&&va(L,Te),xe;if(ge===null){for(;Te<B.length;Te++)ge=I(L,B[Te],P),ge!==null&&(O=f(ge,O,Te),$e===null?xe=ge:$e.sibling=ge,$e=ge);return Ue&&va(L,Te),xe}for(ge=s(ge);Te<B.length;Te++)Le=V(ge,L,Te,B[Te],P),Le!==null&&(e&&Le.alternate!==null&&ge.delete(Le.key===null?Te:Le.key),O=f(Le,O,Te),$e===null?xe=Le:$e.sibling=Le,$e=Le);return e&&ge.forEach(function(ml){return t(L,ml)}),Ue&&va(L,Te),xe}function je(L,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,$e=null,ge=O,Te=O=0,Le=null,Qe=B.next();ge!==null&&!Qe.done;Te++,Qe=B.next()){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var ml=Q(L,ge,Qe.value,P);if(ml===null){ge===null&&(ge=Le);break}e&&ge&&ml.alternate===null&&t(L,ge),O=f(ml,O,Te),$e===null?xe=ml:$e.sibling=ml,$e=ml,ge=Le}if(Qe.done)return l(L,ge),Ue&&va(L,Te),xe;if(ge===null){for(;!Qe.done;Te++,Qe=B.next())Qe=I(L,Qe.value,P),Qe!==null&&(O=f(Qe,O,Te),$e===null?xe=Qe:$e.sibling=Qe,$e=Qe);return Ue&&va(L,Te),xe}for(ge=s(ge);!Qe.done;Te++,Qe=B.next())Qe=V(ge,L,Te,Qe.value,P),Qe!==null&&(e&&Qe.alternate!==null&&ge.delete(Qe.key===null?Te:Qe.key),O=f(Qe,O,Te),$e===null?xe=Qe:$e.sibling=Qe,$e=Qe);return e&&ge.forEach(function(vN){return t(L,vN)}),Ue&&va(L,Te),xe}function Je(L,O,B,P){if(typeof B=="object"&&B!==null&&B.type===j&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===j){if(O.tag===7){l(L,O.sibling),P=d(O,B.props.children),P.return=L,L=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Kl(xe)===O.type){l(L,O.sibling),P=d(O,B.props),ms(P,B),P.return=L,L=P;break e}l(L,O);break}else t(L,O);O=O.sibling}B.type===j?(P=$l(B.props.children,L.mode,P,B.key),P.return=L,L=P):(P=Bo(B.type,B.key,B.props,null,L.mode,P),ms(P,B),P.return=L,L=P)}return w(L);case E:e:{for(xe=B.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(L,O.sibling),P=d(O,B.children||[]),P.return=L,L=P;break e}else{l(L,O);break}else t(L,O);O=O.sibling}P=Md(B,L.mode,P),P.return=L,L=P}return w(L);case q:return B=Kl(B),Je(L,O,B,P)}if(re(B))return fe(L,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),je(L,O,B,P)}if(typeof B.then=="function")return Je(L,O,Xo(B),P);if(B.$$typeof===R)return Je(L,O,Go(L,B),P);Fo(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(L,O.sibling),P=d(O,B),P.return=L,L=P):(l(L,O),P=Rd(B,L.mode,P),P.return=L,L=P),w(L)):l(L,O)}return function(L,O,B,P){try{hs=0;var xe=Je(L,O,B,P);return Gr=null,xe}catch(ge){if(ge===Qr||ge===Vo)throw ge;var $e=nn(29,ge,null,L.mode);return $e.lanes=P,$e.return=L,$e}finally{}}}var Fl=Jv(!0),Iv=Jv(!1),Ja=!1;function Qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gd(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ge&2)!==0){var d=s.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),s.pending=t,t=Ho(e),zv(e,null,l),t}return qo(e,s,t,l),Ho(e)}function ps(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Gp(e,l)}}function Yd(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=w:f=f.next=w,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vd=!1;function vs(){if(Vd){var e=$r;if(e!==null)throw e}}function gs(e,t,l,s){Vd=!1;var d=e.updateQueue;Ja=!1;var f=d.firstBaseUpdate,w=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,$=M.next;M.next=null,w===null?f=$:w.next=$,w=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==w&&(N===null?Z.firstBaseUpdate=$:N.next=$,Z.lastBaseUpdate=M))}if(f!==null){var I=d.baseState;w=0,Z=$=M=null,N=f;do{var Q=N.lane&-536870913,V=Q!==N.lane;if(V?(ze&Q)===Q:(s&Q)===Q){Q!==0&&Q===Br&&(Vd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,je=N;Q=t;var Je=l;switch(je.tag){case 1:if(fe=je.payload,typeof fe=="function"){I=fe.call(Je,I,Q);break e}I=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=je.payload,Q=typeof fe=="function"?fe.call(Je,I,Q):fe,Q==null)break e;I=y({},I,Q);break e;case 2:Ja=!0}}Q=N.callback,Q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[Q]:V.push(Q))}else V={lane:Q,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?($=Z=V,M=I):Z=Z.next=V,w|=Q;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;V=N,N=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Z===null&&(M=I),d.baseState=M,d.firstBaseUpdate=$,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),ll|=w,e.lanes=w,e.memoizedState=I}}function Wv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function eg(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Wv(l[e],t)}var Yr=A(null),Zo=A(0);function tg(e,t){e=_a,W(Zo,e),W(Yr,t),_a=e|t.baseLanes}function Kd(){W(Zo,_a),W(Yr,Yr.current)}function Xd(){_a=Zo.current,F(Yr),F(Zo)}var an=A(null),bn=null;function el(e){var t=e.alternate;W(ct,ct.current&1),W(an,e),bn===null&&(t===null||Yr.current!==null||t.memoizedState!==null)&&(bn=e)}function Fd(e){W(ct,ct.current),W(an,e),bn===null&&(bn=e)}function ng(e){e.tag===22?(W(ct,ct.current),W(an,e),bn===null&&(bn=e)):tl()}function tl(){W(ct,ct.current),W(an,an.current)}function ln(e){F(an),bn===e&&(bn=null),F(ct)}var ct=A(0);function Po(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||th(l)||nh(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xa=0,_e=null,Ze=null,mt=null,Jo=!1,Vr=!1,Zl=!1,Io=0,ys=0,Kr=null,iE=0;function it(){throw Error(i(321))}function Zd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!tn(e[l],t[l]))return!1;return!0}function Pd(e,t,l,s,d,f){return xa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Hg:ff,Zl=!1,f=l(s,d),Zl=!1,Vr&&(f=lg(t,l,s,d)),ag(e),f}function ag(e){z.H=ws;var t=Ze!==null&&Ze.next!==null;if(xa=0,mt=Ze=_e=null,Jo=!1,ys=0,Kr=null,t)throw Error(i(300));e===null||pt||(e=e.dependencies,e!==null&&Qo(e)&&(pt=!0))}function lg(e,t,l,s){_e=e;var d=0;do{if(Vr&&(Kr=null),ys=0,Vr=!1,25<=d)throw Error(i(301));if(d+=1,mt=Ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=Bg,f=t(l,s)}while(Vr);return f}function sE(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?xs(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(_e.flags|=1024),t}function Jd(){var e=Io!==0;return Io=0,e}function Id(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Wd(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}xa=0,mt=Ze=_e=null,Vr=!1,ys=Io=0,Kr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?_e.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(Ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=mt===null?_e.memoizedState:mt.next;if(t!==null)mt=t,Ze=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},mt===null?_e.memoizedState=mt=e:mt=mt.next=e}return mt}function Wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xs(e){var t=ys;return ys+=1,Kr===null&&(Kr=[]),e=Fv(Kr,e,t),t=_e,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Hg:ff),e}function eu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xs(e);if(e.$$typeof===R)return At(e)}throw Error(i(438,String(e)))}function ef(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=_e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Wo(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=ee;return t.index++,l}function ba(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=dt();return tf(t,Ze,e)}function tf(e,t,l){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var d=e.baseQueue,f=s.pending;if(f!==null){if(d!==null){var w=d.next;d.next=f.next,f.next=w}t.baseQueue=d=f,s.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=w=null,M=null,$=t,Z=!1;do{var I=$.lane&-536870913;if(I!==$.lane?(ze&I)===I:(xa&I)===I){var Q=$.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),I===Br&&(Z=!0);else if((xa&Q)===Q){$=$.next,Q===Br&&(Z=!0);continue}else I={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(N=M=I,w=f):M=M.next=I,_e.lanes|=Q,ll|=Q;I=$.action,Zl&&l(f,I),f=$.hasEagerState?$.eagerState:l(f,I)}else Q={lane:I,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(N=M=Q,w=f):M=M.next=Q,_e.lanes|=I,ll|=I;$=$.next}while($!==null&&$!==t);if(M===null?w=f:M.next=N,!tn(f,e.memoizedState)&&(pt=!0,Z&&(l=$r,l!==null)))throw l;e.memoizedState=f,e.baseState=w,e.baseQueue=M,s.lastRenderedState=f}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function nf(e){var t=dt(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var w=d=d.next;do f=e(f,w.action),w=w.next;while(w!==d);tn(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,s]}function rg(e,t,l){var s=_e,d=dt(),f=Ue;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var w=!tn((Ze||d).memoizedState,l);if(w&&(d.memoizedState=l,pt=!0),d=d.queue,rf(og.bind(null,s,d,e),[e]),d.getSnapshot!==t||w||mt!==null&&mt.memoizedState.tag&1){if(s.flags|=2048,Xr(9,{destroy:void 0},sg.bind(null,s,d,l,t),null),Ie===null)throw Error(i(349));f||(xa&127)!==0||ig(s,t,l)}return l}function ig(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Wo(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function sg(e,t,l,s){t.value=l,t.getSnapshot=s,ug(t)&&cg(e)}function og(e,t,l){return l(function(){ug(t)&&cg(e)})}function ug(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!tn(e,l)}catch{return!0}}function cg(e){var t=Bl(e,2);t!==null&&Xt(t,e,2)}function af(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Zl){Ya(!0);try{l()}finally{Ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t}function dg(e,t,l,s){return e.baseState=l,tf(e,Ze,typeof s=="function"?s:ba)}function oE(e,t,l,s,d){if(lu(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){f.listeners.push(w)}};z.T!==null?l(!0):f.isTransition=!1,s(f),l=t.pending,l===null?(f.next=t.pending=f,fg(t,f)):(f.next=l.next,t.pending=l.next=f)}}function fg(e,t){var l=t.action,s=t.payload,d=e.state;if(t.isTransition){var f=z.T,w={};z.T=w;try{var N=l(d,s),M=z.S;M!==null&&M(w,N),hg(e,t,N)}catch($){lf(e,t,$)}finally{f!==null&&w.types!==null&&(f.types=w.types),z.T=f}}else try{f=l(d,s),hg(e,t,f)}catch($){lf(e,t,$)}}function hg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){mg(e,t,s)},function(s){return lf(e,t,s)}):mg(e,t,l)}function mg(e,t,l){t.status="fulfilled",t.value=l,pg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fg(e,l)))}function lf(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,pg(t),t=t.next;while(t!==s)}e.action=null}function pg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vg(e,t){return t}function gg(e,t){if(Ue){var l=Ie.formState;if(l!==null){e:{var s=_e;if(Ue){if(We){t:{for(var d=We,f=xn;d.nodeType!==8;){if(!f){d=null;break t}if(d=wn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){We=wn(d.nextSibling),s=d.data==="F!";break e}}Za(s)}s=!1}s&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vg,lastRenderedState:t},l.queue=s,l=Lg.bind(null,_e,s),s.dispatch=l,s=af(!1),f=df.bind(null,_e,!1,s.queue),s=Ut(),d={state:t,dispatch:null,action:e,pending:null},s.queue=d,l=oE.bind(null,_e,d,f,l),d.dispatch=l,s.memoizedState=e,[t,l,!1]}function yg(e){var t=dt();return xg(t,Ze,e)}function xg(e,t,l){if(t=tf(e,t,vg)[0],e=tu(ba)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=xs(t)}catch(w){throw w===Qr?Vo:w}else s=t;t=dt();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Xr(9,{destroy:void 0},uE.bind(null,d,l),null)),[s,f,e]}function uE(e,t){e.action=t}function bg(e){var t=dt(),l=Ze;if(l!==null)return xg(t,l,e);dt(),t=t.memoizedState,l=dt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Xr(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Wo(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function wg(){return dt().memoizedState}function nu(e,t,l,s){var d=Ut();_e.flags|=e,d.memoizedState=Xr(1|t,{destroy:void 0},l,s===void 0?null:s)}function au(e,t,l,s){var d=dt();s=s===void 0?null:s;var f=d.memoizedState.inst;Ze!==null&&s!==null&&Zd(s,Ze.memoizedState.deps)?d.memoizedState=Xr(t,f,l,s):(_e.flags|=e,d.memoizedState=Xr(1|t,f,l,s))}function jg(e,t){nu(8390656,8,e,t)}function rf(e,t){au(2048,8,e,t)}function cE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Wo(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Sg(e){var t=dt().memoizedState;return cE({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Eg(e,t){return au(4,2,e,t)}function Ng(e,t){return au(4,4,e,t)}function Cg(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _g(e,t,l){l=l!=null?l.concat([e]):null,au(4,4,Cg.bind(null,t,e),l)}function sf(){}function Tg(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Zd(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function Rg(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Zd(t,s[1]))return s[0];if(s=e(),Zl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s}function of(e,t,l){return l===void 0||(xa&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=My(),_e.lanes|=e,ll|=e,l)}function Mg(e,t,l,s){return tn(l,t)?l:Yr.current!==null?(e=of(e,l,s),tn(e,t)||(pt=!0),e):(xa&42)===0||(xa&1073741824)!==0&&(ze&261930)===0?(pt=!0,e.memoizedState=l):(e=My(),_e.lanes|=e,ll|=e,t)}function Ag(e,t,l,s,d){var f=J.p;J.p=f!==0&&8>f?f:8;var w=z.T,N={};z.T=N,df(e,!1,t,l);try{var M=d(),$=z.S;if($!==null&&$(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=rE(M,s);bs(e,t,Z,on(e))}else bs(e,t,s,on(e))}catch(I){bs(e,t,{then:function(){},status:"rejected",reason:I},on())}finally{J.p=f,w!==null&&N.types!==null&&(w.types=N.types),z.T=w}}function dE(){}function uf(e,t,l,s){if(e.tag!==5)throw Error(i(476));var d=kg(e).queue;Ag(e,d,t,Y,l===null?dE:function(){return Dg(e),l(s)})}function kg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dg(e){var t=kg(e);t.next===null&&(t=e.alternate.memoizedState),bs(e,t.next.queue,{},on())}function cf(){return At(Us)}function Og(){return dt().memoizedState}function zg(){return dt().memoizedState}function fE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Ia(l);var s=Wa(t,e,l);s!==null&&(Xt(s,t,l),ps(s,t,l)),t={cache:qd()},e.payload=t;return}t=t.return}}function hE(e,t,l){var s=on();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},lu(e)?Ug(t,l):(l=_d(e,t,l,s),l!==null&&(Xt(l,e,s),qg(l,t,s)))}function Lg(e,t,l){var s=on();bs(e,t,l,s)}function bs(e,t,l,s){var d={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(lu(e))Ug(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var w=t.lastRenderedState,N=f(w,l);if(d.hasEagerState=!0,d.eagerState=N,tn(N,w))return qo(e,t,d,0),Ie===null&&Uo(),!1}catch{}finally{}if(l=_d(e,t,d,s),l!==null)return Xt(l,e,s),qg(l,t,s),!0}return!1}function df(e,t,l,s){if(s={lane:2,revertLane:Gf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(i(479))}else t=_d(e,l,s,2),t!==null&&Xt(t,e,2)}function lu(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ug(e,t){Vr=Jo=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qg(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Gp(e,l)}}var ws={readContext:At,use:eu,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};ws.useEffectEvent=it;var Hg={readContext:At,use:eu,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:jg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,nu(4194308,4,Cg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return nu(4194308,4,e,t)},useInsertionEffect:function(e,t){nu(4,2,e,t)},useMemo:function(e,t){var l=Ut();t=t===void 0?null:t;var s=e();if(Zl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Ut();if(l!==void 0){var d=l(t);if(Zl){Ya(!0);try{l(t)}finally{Ya(!1)}}}else d=t;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=hE.bind(null,_e,e),[s.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=af(e);var t=e.queue,l=Lg.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:sf,useDeferredValue:function(e,t){var l=Ut();return of(l,e,t)},useTransition:function(){var e=af(!1);return e=Ag.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=_e,d=Ut();if(Ue){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ie===null)throw Error(i(349));(ze&127)!==0||ig(s,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,jg(og.bind(null,s,f,e),[e]),s.flags|=2048,Xr(9,{destroy:void 0},sg.bind(null,s,f,l,t),null),l},useId:function(){var e=Ut(),t=Ie.identifierPrefix;if(Ue){var l=Kn,s=Vn;l=(s&~(1<<32-en(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Io++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=iE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cf,useFormState:gg,useActionState:gg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=df.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:ef,useCacheRefresh:function(){return Ut().memoizedState=fE.bind(null,_e)},useEffectEvent:function(e){var t=Ut(),l={impl:e};return t.memoizedState=l,function(){if((Ge&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},ff={readContext:At,use:eu,useCallback:Tg,useContext:At,useEffect:rf,useImperativeHandle:_g,useInsertionEffect:Eg,useLayoutEffect:Ng,useMemo:Rg,useReducer:tu,useRef:wg,useState:function(){return tu(ba)},useDebugValue:sf,useDeferredValue:function(e,t){var l=dt();return Mg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=tu(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:rg,useId:Og,useHostTransitionStatus:cf,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var l=dt();return dg(l,Ze,e,t)},useMemoCache:ef,useCacheRefresh:zg};ff.useEffectEvent=Sg;var Bg={readContext:At,use:eu,useCallback:Tg,useContext:At,useEffect:rf,useImperativeHandle:_g,useInsertionEffect:Eg,useLayoutEffect:Ng,useMemo:Rg,useReducer:nf,useRef:wg,useState:function(){return nf(ba)},useDebugValue:sf,useDeferredValue:function(e,t){var l=dt();return Ze===null?of(l,e,t):Mg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=nf(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:rg,useId:Og,useHostTransitionStatus:cf,useFormState:bg,useActionState:bg,useOptimistic:function(e,t){var l=dt();return Ze!==null?dg(l,Ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ef,useCacheRefresh:zg};Bg.useEffectEvent=Sg;function hf(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var mf={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=on(),d=Ia(s);d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Xt(t,e,s),ps(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=on(),d=Ia(s);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Xt(t,e,s),ps(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),s=Ia(l);s.tag=2,t!=null&&(s.callback=t),t=Wa(e,s,l),t!==null&&(Xt(t,e,l),ps(t,e,l))}};function $g(e,t,l,s,d,f,w){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,w):t.prototype&&t.prototype.isPureReactComponent?!ss(l,s)||!ss(d,f):!0}function Qg(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&mf.enqueueReplaceState(t,t.state,null)}function Pl(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Gg(e){Lo(e)}function Yg(e){console.error(e)}function Vg(e){Lo(e)}function ru(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Kg(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function pf(e,t,l){return l=Ia(l),l.tag=3,l.payload={element:null},l.callback=function(){ru(e,t)},l}function Xg(e){return e=Ia(e),e.tag=3,e}function Fg(e,t,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=s.value;e.payload=function(){return d(f)},e.callback=function(){Kg(t,l,s)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(e.callback=function(){Kg(t,l,s),typeof d!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var N=s.stack;this.componentDidCatch(s.value,{componentStack:N!==null?N:""})})}function mE(e,t,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Hr(t,l,d,!0),l=an.current,l!==null){switch(l.tag){case 31:case 13:return bn===null?gu():l.alternate===null&&st===0&&(st=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===Ko?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),Bf(e,s,d)),!1;case 22:return l.flags|=65536,s===Ko?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),Bf(e,s,d)),!1}throw Error(i(435,l.tag))}return Bf(e,s,d),gu(),!1}if(Ue)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,s!==Dd&&(e=Error(i(422),{cause:s}),cs(vn(e,l)))):(s!==Dd&&(t=Error(i(423),{cause:s}),cs(vn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=vn(s,l),d=pf(e.stateNode,s,d),Yd(e,d),st!==4&&(st=2)),!1;var f=Error(i(520),{cause:s});if(f=vn(f,l),Rs===null?Rs=[f]:Rs.push(f),st!==4&&(st=2),t===null)return!0;s=vn(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=pf(l.stateNode,s,e),Yd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(rl===null||!rl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Xg(d),Fg(d,e,l,s),Yd(l,d),!1}l=l.return}while(l!==null);return!1}var vf=Error(i(461)),pt=!1;function kt(e,t,l,s){t.child=e===null?Iv(t,null,l,s):Fl(t,e.child,l,s)}function Zg(e,t,l,s,d){l=l.render;var f=t.ref;if("ref"in s){var w={};for(var N in s)N!=="ref"&&(w[N]=s[N])}else w=s;return Yl(t),s=Pd(e,t,l,w,f,d),N=Jd(),e!==null&&!pt?(Id(e,t,d),wa(e,t,d)):(Ue&&N&&Ad(t),t.flags|=1,kt(e,t,s,d),t.child)}function Pg(e,t,l,s,d){if(e===null){var f=l.type;return typeof f=="function"&&!Td(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Jg(e,t,f,s,d)):(e=Bo(l.type,null,s,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ef(e,d)){var w=f.memoizedProps;if(l=l.compare,l=l!==null?l:ss,l(w,s)&&e.ref===t.ref)return wa(e,t,d)}return t.flags|=1,e=pa(f,s),e.ref=t.ref,e.return=t,t.child=e}function Jg(e,t,l,s,d){if(e!==null){var f=e.memoizedProps;if(ss(f,s)&&e.ref===t.ref)if(pt=!1,t.pendingProps=s=f,Ef(e,d))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,wa(e,t,d)}return gf(e,t,l,s,d)}function Ig(e,t,l,s){var d=s.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(s=t.child=e.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~f}else s=0,t.child=null;return Wg(e,t,f,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yo(t,f!==null?f.cachePool:null),f!==null?tg(t,f):Kd(),ng(t);else return s=t.lanes=536870912,Wg(e,t,f!==null?f.baseLanes|l:l,l,s)}else f!==null?(Yo(t,f.cachePool),tg(t,f),tl(),t.memoizedState=null):(e!==null&&Yo(t,null),Kd(),tl());return kt(e,t,d,l),t.child}function js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wg(e,t,l,s,d){var f=Bd();return f=f===null?null:{parent:ht._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Yo(t,null),Kd(),ng(t),e!==null&&Hr(e,t,s,!0),t.childLanes=d,null}function iu(e,t){return t=ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ey(e,t,l){return Fl(t,e.child,null,l),e=iu(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function pE(e,t,l){var s=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(s.mode==="hidden")return e=iu(t,s),t.lanes=536870912,js(null,e);if(Fd(t),(e=We)?(e=f0(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Uv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return t.lanes=536870912,null}return iu(t,s)}var f=e.memoizedState;if(f!==null){var w=f.dehydrated;if(Fd(t),d)if(t.flags&256)t.flags&=-257,t=ey(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(pt||Hr(e,t,l,!1),d=(l&e.childLanes)!==0,pt||d){if(s=Ie,s!==null&&(w=Yp(s,l),w!==0&&w!==f.retryLane))throw f.retryLane=w,Bl(e,w),Xt(s,e,w),vf;gu(),t=ey(e,t,l)}else e=f.treeContext,We=wn(w.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&Bv(t,e),t=iu(t,s),t.flags|=4096;return t}return e=pa(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function su(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function gf(e,t,l,s,d){return Yl(t),l=Pd(e,t,l,s,void 0,d),s=Jd(),e!==null&&!pt?(Id(e,t,d),wa(e,t,d)):(Ue&&s&&Ad(t),t.flags|=1,kt(e,t,l,d),t.child)}function ty(e,t,l,s,d,f){return Yl(t),t.updateQueue=null,l=lg(t,s,l,d),ag(e),s=Jd(),e!==null&&!pt?(Id(e,t,f),wa(e,t,f)):(Ue&&s&&Ad(t),t.flags|=1,kt(e,t,l,f),t.child)}function ny(e,t,l,s,d){if(Yl(t),t.stateNode===null){var f=zr,w=l.contextType;typeof w=="object"&&w!==null&&(f=At(w)),f=new l(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=mf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},Qd(t),w=l.contextType,f.context=typeof w=="object"&&w!==null?At(w):zr,f.state=t.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(hf(t,l,w,s),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(w=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),w!==f.state&&mf.enqueueReplaceState(f,f.state,null),gs(t,s,f,d),vs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=Pl(l,N);f.props=M;var $=f.context,Z=l.contextType;w=zr,typeof Z=="object"&&Z!==null&&(w=At(Z));var I=l.getDerivedStateFromProps;Z=typeof I=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||$!==w)&&Qg(t,f,s,w),Ja=!1;var Q=t.memoizedState;f.state=Q,gs(t,s,f,d),vs(),$=t.memoizedState,N||Q!==$||Ja?(typeof I=="function"&&(hf(t,l,I,s),$=t.memoizedState),(M=Ja||$g(t,l,M,s,Q,$,w))?(Z||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=$),f.props=s,f.state=$,f.context=w,s=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Gd(e,t),w=t.memoizedProps,Z=Pl(l,w),f.props=Z,I=t.pendingProps,Q=f.context,$=l.contextType,M=zr,typeof $=="object"&&$!==null&&(M=At($)),N=l.getDerivedStateFromProps,($=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(w!==I||Q!==M)&&Qg(t,f,s,M),Ja=!1,Q=t.memoizedState,f.state=Q,gs(t,s,f,d),vs();var V=t.memoizedState;w!==I||Q!==V||Ja||e!==null&&e.dependencies!==null&&Qo(e.dependencies)?(typeof N=="function"&&(hf(t,l,N,s),V=t.memoizedState),(Z=Ja||$g(t,l,Z,s,Q,V,M)||e!==null&&e.dependencies!==null&&Qo(e.dependencies))?($||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),f.props=s,f.state=V,f.context=M,s=Z):(typeof f.componentDidUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,su(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Fl(t,e.child,null,d),t.child=Fl(t,null,l,d)):kt(e,t,l,d),t.memoizedState=f.state,e=t.child):e=wa(e,t,d),e}function ay(e,t,l,s){return Ql(),t.flags|=256,kt(e,t,l,s),t.child}var yf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xf(e){return{baseLanes:e,cachePool:Kv()}}function bf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=sn),e}function ly(e,t,l){var s=t.pendingProps,d=!1,f=(t.flags&128)!==0,w;if((w=f)||(w=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),w&&(d=!0,t.flags&=-129),w=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(d?el(t):tl(),(e=We)?(e=f0(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Uv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return nh(e)?t.lanes=32:t.lanes=536870912,null}var N=s.children;return s=s.fallback,d?(tl(),d=t.mode,N=ou({mode:"hidden",children:N},d),s=$l(s,d,l,null),N.return=t,s.return=t,N.sibling=s,t.child=N,s=t.child,s.memoizedState=xf(l),s.childLanes=bf(e,w,l),t.memoizedState=yf,js(null,s)):(el(t),wf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(el(t),t.flags&=-257,t=jf(e,t,l)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),N=s.fallback,d=t.mode,s=ou({mode:"visible",children:s.children},d),N=$l(N,d,l,null),N.flags|=2,s.return=t,N.return=t,s.sibling=N,t.child=s,Fl(t,e.child,null,l),s=t.child,s.memoizedState=xf(l),s.childLanes=bf(e,w,l),t.memoizedState=yf,t=js(null,s));else if(el(t),nh(N)){if(w=N.nextSibling&&N.nextSibling.dataset,w)var $=w.dgst;w=$,s=Error(i(419)),s.stack="",s.digest=w,cs({value:s,source:null,stack:null}),t=jf(e,t,l)}else if(pt||Hr(e,t,l,!1),w=(l&e.childLanes)!==0,pt||w){if(w=Ie,w!==null&&(s=Yp(w,l),s!==0&&s!==M.retryLane))throw M.retryLane=s,Bl(e,s),Xt(w,e,s),vf;th(N)||gu(),t=jf(e,t,l)}else th(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,We=wn(N.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&Bv(t,e),t=wf(t,s.children),t.flags|=4096);return t}return d?(tl(),N=s.fallback,d=t.mode,M=e.child,$=M.sibling,s=pa(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,$!==null?N=pa($,N):(N=$l(N,d,l,null),N.flags|=2),N.return=t,s.return=t,s.sibling=N,t.child=s,js(null,s),s=t.child,N=e.child.memoizedState,N===null?N=xf(l):(d=N.cachePool,d!==null?(M=ht._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Kv(),N={baseLanes:N.baseLanes|l,cachePool:d}),s.memoizedState=N,s.childLanes=bf(e,w,l),t.memoizedState=yf,js(e.child,s)):(el(t),l=e.child,e=l.sibling,l=pa(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(w=t.deletions,w===null?(t.deletions=[e],t.flags|=16):w.push(e)),t.child=l,t.memoizedState=null,l)}function wf(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function jf(e,t,l){return Fl(t,e.child,null,l),e=wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ry(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ld(e.return,t,l)}function Sf(e,t,l,s,d,f){var w=e.memoizedState;w===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d,treeForkCount:f}:(w.isBackwards=t,w.rendering=null,w.renderingStartTime=0,w.last=s,w.tail=l,w.tailMode=d,w.treeForkCount=f)}function iy(e,t,l){var s=t.pendingProps,d=s.revealOrder,f=s.tail;s=s.children;var w=ct.current,N=(w&2)!==0;if(N?(w=w&1|2,t.flags|=128):w&=1,W(ct,w),kt(e,t,s,l),s=Ue?us:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ry(e,l,t);else if(e.tag===19)ry(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Po(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),Sf(t,!1,d,l,f,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Po(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Sf(t,!0,l,null,f,s);break;case"together":Sf(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function wa(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Hr(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,l=pa(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=pa(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ef(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qo(e)))}function vE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Pa(t,ht,e.memoizedState.cache),Ql();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fd(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(el(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ly(e,t,l):(el(t),e=wa(e,t,l),e!==null?e.sibling:null);el(t);break;case 19:var d=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Hr(e,t,l,!1),s=(l&t.childLanes)!==0),d){if(s)return iy(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(ct,ct.current),s)break;return null;case 22:return t.lanes=0,Ig(e,t,l,t.pendingProps);case 24:Pa(t,ht,e.memoizedState.cache)}return wa(e,t,l)}function sy(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!Ef(e,l)&&(t.flags&128)===0)return pt=!1,vE(e,t,l);pt=(e.flags&131072)!==0}else pt=!1,Ue&&(t.flags&1048576)!==0&&Hv(t,us,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")Td(e)?(s=Pl(e,s),t.tag=1,t=ny(null,t,e,s,l)):(t.tag=0,t=gf(null,t,e,s,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Zg(null,t,e,s,l);break e}else if(d===H){t.tag=14,t=Pg(null,t,e,s,l);break e}}throw t=ae(e)||e,Error(i(306,t,""))}}return t;case 0:return gf(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,d=Pl(s,t.pendingProps),ny(e,t,s,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;d=f.element,Gd(e,t),gs(t,s,null,l);var w=t.memoizedState;if(s=w.cache,Pa(t,ht,s),s!==f.cache&&Ud(t,[ht],l,!0),vs(),s=w.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:w.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ay(e,t,s,l);break e}else if(s!==d){d=vn(Error(i(424)),t),cs(d),t=ay(e,t,s,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=wn(e.firstChild),Mt=t,Ue=!0,Fa=null,xn=!0,l=Iv(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),s===d){t=wa(e,t,l);break e}kt(e,t,s,l)}t=t.child}return t;case 26:return su(e,t),e===null?(l=y0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,s=Eu(Se.current).createElement(l),s[Rt]=t,s[$t]=e,Dt(s,l,e),Nt(s),t.stateNode=s):t.memoizedState=y0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Ue&&(s=t.stateNode=p0(t.type,t.pendingProps,Se.current),Mt=t,xn=!0,d=We,ul(t.type)?(ah=d,We=wn(s.firstChild)):We=d),kt(e,t,t.pendingProps.children,l),su(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((d=s=We)&&(s=KE(s,t.type,t.pendingProps,xn),s!==null?(t.stateNode=s,Mt=t,We=wn(s.firstChild),xn=!1,d=!0):d=!1),d||Za(t)),Ne(t),d=t.type,f=t.pendingProps,w=e!==null?e.memoizedProps:null,s=f.children,If(d,f)?s=null:w!==null&&If(d,w)&&(t.flags|=32),t.memoizedState!==null&&(d=Pd(e,t,sE,null,null,l),Us._currentValue=d),su(e,t),kt(e,t,s,l),t.child;case 6:return e===null&&Ue&&((e=l=We)&&(l=XE(l,t.pendingProps,xn),l!==null?(t.stateNode=l,Mt=t,We=null,e=!0):e=!1),e||Za(t)),null;case 13:return ly(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Fl(t,null,s,l):kt(e,t,s,l),t.child;case 11:return Zg(e,t,t.type,t.pendingProps,l);case 7:return kt(e,t,t.pendingProps,l),t.child;case 8:return kt(e,t,t.pendingProps.children,l),t.child;case 12:return kt(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,Pa(t,t.type,s.value),kt(e,t,s.children,l),t.child;case 9:return d=t.type._context,s=t.pendingProps.children,Yl(t),d=At(d),s=s(d),t.flags|=1,kt(e,t,s,l),t.child;case 14:return Pg(e,t,t.type,t.pendingProps,l);case 15:return Jg(e,t,t.type,t.pendingProps,l);case 19:return iy(e,t,l);case 31:return pE(e,t,l);case 22:return Ig(e,t,l,t.pendingProps);case 24:return Yl(t),s=At(ht),e===null?(d=Bd(),d===null&&(d=Ie,f=qd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:s,cache:d},Qd(t),Pa(t,ht,d)):((e.lanes&l)!==0&&(Gd(e,t),gs(t,null,null,l),vs()),d=e.memoizedState,f=t.memoizedState,d.parent!==s?(d={parent:s,cache:s},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Pa(t,ht,s)):(s=f.cache,Pa(t,ht,s),s!==d.cache&&Ud(t,[ht],l,!0))),kt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ja(e){e.flags|=4}function Nf(e,t,l,s,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Oy())e.flags|=8192;else throw Xl=Ko,$d}else e.flags&=-16777217}function oy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!S0(t))if(Oy())e.flags|=8192;else throw Xl=Ko,$d}function uu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$p():536870912,e.lanes|=t,Jr|=t)}function Ss(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function gE(e,t,l){var s=t.pendingProps;switch(kd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ya(ht),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(qr(t)?ja(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Od())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ja(t),f!==null?(et(t),oy(t,f)):(et(t),Nf(t,d,null,s,l))):f?f!==e.memoizedState?(ja(t),et(t),oy(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&ja(t),et(t),Nf(t,d,e,s,l)),null;case 27:if(Be(t),l=Se.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,qr(t)?$v(t):(e=p0(d,s,l),t.stateNode=e,ja(t))}return et(t),null;case 5:if(Be(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,qr(t))$v(t);else{var w=Eu(Se.current);switch(f){case 1:f=w.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=w.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=w.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof s.is=="string"?w.createElement("select",{is:s.is}):w.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?w.createElement(d,{is:s.is}):w.createElement(d)}}f[Rt]=t,f[$t]=s;e:for(w=t.child;w!==null;){if(w.tag===5||w.tag===6)f.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===t)break e;for(;w.sibling===null;){if(w.return===null||w.return===t)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}t.stateNode=f;e:switch(Dt(f,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ja(t)}}return et(t),Nf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=Se.current,qr(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,d=Mt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||l0(e.nodeValue,l)),e||Za(t,!0)}else e=Eu(e).createTextNode(s),e[Rt]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=qr(t),l!==null){if(e===null){if(!s)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Rt]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=qr(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Rt]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Od(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==d&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),uu(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Xf(t.stateNode.containerInfo),et(t),null;case 10:return ya(t.type),et(t),null;case 19:if(F(ct),s=t.memoizedState,s===null)return et(t),null;if(d=(t.flags&128)!==0,f=s.rendering,f===null)if(d)Ss(s,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Po(e),f!==null){for(t.flags|=128,Ss(s,!1),e=f.updateQueue,t.updateQueue=e,uu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Lv(l,e),l=l.sibling;return W(ct,ct.current&1|2),Ue&&va(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&It()>mu&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304)}else{if(!d)if(e=Po(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,uu(t,e),Ss(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!Ue)return et(t),null}else 2*It()-s.renderingStartTime>mu&&l!==536870912&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=It(),e.sibling=null,l=ct.current,W(ct,d?l&1|2:l&1),Ue&&va(t,s.treeForkCount),e):(et(t),null);case 22:case 23:return ln(t),Xd(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&uu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&F(Vl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ya(ht),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function yE(e,t){switch(kd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ht),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Be(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(i(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ct),null;case 4:return ye(),null;case 10:return ya(t.type),null;case 22:case 23:return ln(t),Xd(),e!==null&&F(Vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ht),null;case 25:return null;default:return null}}function uy(e,t){switch(kd(t),t.tag){case 3:ya(ht),ye();break;case 26:case 27:case 5:Be(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:F(ct);break;case 10:ya(t.type);break;case 22:case 23:ln(t),Xd(),e!==null&&F(Vl);break;case 24:ya(ht)}}function Es(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var f=l.create,w=l.inst;s=f(),w.destroy=s}l=l.next}while(l!==d)}}catch(N){Fe(t,t.return,N)}}function nl(e,t,l){try{var s=t.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var f=d.next;s=f;do{if((s.tag&e)===e){var w=s.inst,N=w.destroy;if(N!==void 0){w.destroy=void 0,d=t;var M=l,$=N;try{$()}catch(Z){Fe(d,M,Z)}}}s=s.next}while(s!==f)}}catch(Z){Fe(t,t.return,Z)}}function cy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{eg(t,l)}catch(s){Fe(e,e.return,s)}}}function dy(e,t,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Fe(e,t,s)}}function Ns(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Fe(e,t,d)}}function Xn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Fe(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Fe(e,t,d)}else l.current=null}function fy(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Fe(e,e.return,d)}}function Cf(e,t,l){try{var s=e.stateNode;BE(s,e.type,l,t),s[$t]=t}catch(d){Fe(e,e.return,d)}}function hy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function _f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hy(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&&ul(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 Tf(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ha));else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Tf(e,t,l),e=e.sibling;e!==null;)Tf(e,t,l),e=e.sibling}function cu(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(cu(e,t,l),e=e.sibling;e!==null;)cu(e,t,l),e=e.sibling}function my(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);Dt(t,s,l),t[Rt]=e,t[$t]=l}catch(f){Fe(e,e.return,f)}}var Sa=!1,vt=!1,Rf=!1,py=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function xE(e,t){if(e=e.containerInfo,Pf=Au,e=_v(e),wd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var w=0,N=-1,M=-1,$=0,Z=0,I=e,Q=null;t:for(;;){for(var V;I!==l||d!==0&&I.nodeType!==3||(N=w+d),I!==f||s!==0&&I.nodeType!==3||(M=w+s),I.nodeType===3&&(w+=I.nodeValue.length),(V=I.firstChild)!==null;)Q=I,I=V;for(;;){if(I===e)break t;if(Q===l&&++$===d&&(N=w),Q===f&&++Z===s&&(M=w),(V=I.nextSibling)!==null)break;I=Q,Q=I.parentNode}I=V}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jf={focusedElem:e,selectionRange:l},Au=!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,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,s=l.stateNode;try{var fe=Pl(l.type,d);e=s.getSnapshotBeforeUpdate(fe,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(je){Fe(l,l.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)eh(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function vy(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Na(e,l),s&4&&Es(5,l);break;case 1:if(Na(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(w){Fe(l,l.return,w)}else{var d=Pl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(w){Fe(l,l.return,w)}}s&64&&cy(l),s&512&&Ns(l,l.return);break;case 3:if(Na(e,l),s&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{eg(e,t)}catch(w){Fe(l,l.return,w)}}break;case 27:t===null&&s&4&&my(l);case 26:case 5:Na(e,l),t===null&&s&4&&fy(l),s&512&&Ns(l,l.return);break;case 12:Na(e,l);break;case 31:Na(e,l),s&4&&xy(e,l);break;case 13:Na(e,l),s&4&&by(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=TE.bind(null,l),FE(e,l))));break;case 22:if(s=l.memoizedState!==null||Sa,!s){t=t!==null&&t.memoizedState!==null||vt,d=Sa;var f=vt;Sa=s,(vt=t)&&!f?Ca(e,l,(l.subtreeFlags&8772)!==0):Na(e,l),Sa=d,vt=f}break;case 30:break;default:Na(e,l)}}function gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ld(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 tt=null,Gt=!1;function Ea(e,t,l){for(l=l.child;l!==null;)yy(e,t,l),l=l.sibling}function yy(e,t,l){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Zi,l)}catch{}switch(l.tag){case 26:vt||Xn(l,t),Ea(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vt||Xn(l,t);var s=tt,d=Gt;ul(l.type)&&(tt=l.stateNode,Gt=!1),Ea(e,t,l),Os(l.stateNode),tt=s,Gt=d;break;case 5:vt||Xn(l,t);case 6:if(s=tt,d=Gt,tt=null,Ea(e,t,l),tt=s,Gt=d,tt!==null)if(Gt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Fe(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Fe(l,t,f)}break;case 18:tt!==null&&(Gt?(e=tt,c0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ri(e)):c0(tt,l.stateNode));break;case 4:s=tt,d=Gt,tt=l.stateNode.containerInfo,Gt=!0,Ea(e,t,l),tt=s,Gt=d;break;case 0:case 11:case 14:case 15:nl(2,l,t),vt||nl(4,l,t),Ea(e,t,l);break;case 1:vt||(Xn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&dy(l,t,s)),Ea(e,t,l);break;case 21:Ea(e,t,l);break;case 22:vt=(s=vt)||l.memoizedState!==null,Ea(e,t,l),vt=s;break;default:Ea(e,t,l)}}function xy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ri(e)}catch(l){Fe(t,t.return,l)}}}function by(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ri(e)}catch(l){Fe(t,t.return,l)}}function bE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new py),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new py),t;default:throw Error(i(435,e.tag))}}function du(e,t){var l=bE(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var d=RE.bind(null,e,s);s.then(d,d)}})}function Yt(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],f=e,w=t,N=w;e:for(;N!==null;){switch(N.tag){case 27:if(ul(N.type)){tt=N.stateNode,Gt=!1;break e}break;case 5:tt=N.stateNode,Gt=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,Gt=!0;break e}N=N.return}if(tt===null)throw Error(i(160));yy(f,w,d),tt=null,Gt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wy(t,e),t=t.sibling}var An=null;function wy(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Vt(e),s&4&&(nl(3,e,e.return),Es(3,e),nl(5,e,e.return));break;case 1:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&64&&Sa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=An;if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&4){var f=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ii]||f[Rt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(s),d.head.insertBefore(f,d.querySelector("head > title"))),Dt(f,s,l),f[Rt]=e,Nt(f),s=f;break e;case"link":var w=w0("link","href",d).get(s+(l.href||""));if(w){for(var N=0;N<w.length;N++)if(f=w[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){w.splice(N,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;case"meta":if(w=w0("meta","content",d).get(s+(l.content||""))){for(N=0;N<w.length;N++)if(f=w[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){w.splice(N,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;default:throw Error(i(468,s))}f[Rt]=e,Nt(f),s=f}e.stateNode=s}else j0(d,e.type,e.stateNode);else e.stateNode=b0(d,s,e.memoizedProps);else f!==s?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,s===null?j0(d,e.type,e.stateNode):b0(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Cf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),l!==null&&s&4&&Cf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),e.flags&32){d=e.stateNode;try{Tr(d,"")}catch(fe){Fe(e,e.return,fe)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,Cf(e,d,l!==null?l.memoizedProps:d)),s&1024&&(Rf=!0);break;case 6:if(Yt(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(fe){Fe(e,e.return,fe)}}break;case 3:if(_u=null,d=An,An=Nu(t.containerInfo),Yt(t,e),An=d,Vt(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(fe){Fe(e,e.return,fe)}Rf&&(Rf=!1,jy(e));break;case 4:s=An,An=Nu(e.stateNode.containerInfo),Yt(t,e),Vt(e),An=s;break;case 12:Yt(t,e),Vt(e);break;case 31:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 13:Yt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hu=It()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,$=Sa,Z=vt;if(Sa=$||d,vt=Z||M,Yt(t,e),vt=Z,Sa=$,Vt(e),s&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||Sa||vt||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)w=f.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{N=M.stateNode;var I=M.memoizedProps.style,Q=I!=null&&I.hasOwnProperty("display")?I.display:null;N.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?d0(V,!0):d0(M.stateNode,!1)}catch(fe){Fe(M,M.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,du(e,l))));break;case 19:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,du(e,s)));break;case 30:break;case 21:break;default:Yt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(hy(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=_f(e);cu(e,f,d);break;case 5:var w=l.stateNode;l.flags&32&&(Tr(w,""),l.flags&=-33);var N=_f(e);cu(e,N,w);break;case 3:case 4:var M=l.stateNode.containerInfo,$=_f(e);Tf(e,$,M);break;default:throw Error(i(161))}}catch(Z){Fe(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vy(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Jl(t);break;case 1:Xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&dy(t,t.return,l),Jl(t);break;case 27:Os(t.stateNode);case 26:case 5:Xn(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Ca(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,d=e,f=t,w=f.flags;switch(f.tag){case 0:case 11:case 15:Ca(d,f,l),Es(4,f);break;case 1:if(Ca(d,f,l),s=f,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch($){Fe(s,s.return,$)}if(s=f,d=s.updateQueue,d!==null){var N=s.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Wv(M[d],N)}catch($){Fe(s,s.return,$)}}l&&w&64&&cy(f),Ns(f,f.return);break;case 27:my(f);case 26:case 5:Ca(d,f,l),l&&s===null&&w&4&&fy(f),Ns(f,f.return);break;case 12:Ca(d,f,l);break;case 31:Ca(d,f,l),l&&w&4&&xy(d,f);break;case 13:Ca(d,f,l),l&&w&4&&by(d,f);break;case 22:f.memoizedState===null&&Ca(d,f,l),Ns(f,f.return);break;case 30:break;default:Ca(d,f,l)}t=t.sibling}}function Mf(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ds(l))}function Af(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e))}function kn(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sy(e,t,l,s),t=t.sibling}function Sy(e,t,l,s){var d=t.flags;switch(t.tag){case 0:case 11:case 15:kn(e,t,l,s),d&2048&&Es(9,t);break;case 1:kn(e,t,l,s);break;case 3:kn(e,t,l,s),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e)));break;case 12:if(d&2048){kn(e,t,l,s),e=t.stateNode;try{var f=t.memoizedProps,w=f.id,N=f.onPostCommit;typeof N=="function"&&N(w,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Fe(t,t.return,M)}}else kn(e,t,l,s);break;case 31:kn(e,t,l,s);break;case 13:kn(e,t,l,s);break;case 23:break;case 22:f=t.stateNode,w=t.alternate,t.memoizedState!==null?f._visibility&2?kn(e,t,l,s):Cs(e,t):f._visibility&2?kn(e,t,l,s):(f._visibility|=2,Fr(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Mf(w,t);break;case 24:kn(e,t,l,s),d&2048&&Af(t.alternate,t);break;default:kn(e,t,l,s)}}function Fr(e,t,l,s,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,w=t,N=l,M=s,$=w.flags;switch(w.tag){case 0:case 11:case 15:Fr(f,w,N,M,d),Es(8,w);break;case 23:break;case 22:var Z=w.stateNode;w.memoizedState!==null?Z._visibility&2?Fr(f,w,N,M,d):Cs(f,w):(Z._visibility|=2,Fr(f,w,N,M,d)),d&&$&2048&&Mf(w.alternate,w);break;case 24:Fr(f,w,N,M,d),d&&$&2048&&Af(w.alternate,w);break;default:Fr(f,w,N,M,d)}t=t.sibling}}function Cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,d=s.flags;switch(s.tag){case 22:Cs(l,s),d&2048&&Mf(s.alternate,s);break;case 24:Cs(l,s),d&2048&&Af(s.alternate,s);break;default:Cs(l,s)}t=t.sibling}}var _s=8192;function Zr(e,t,l){if(e.subtreeFlags&_s)for(e=e.child;e!==null;)Ey(e,t,l),e=e.sibling}function Ey(e,t,l){switch(e.tag){case 26:Zr(e,t,l),e.flags&_s&&e.memoizedState!==null&&iN(l,An,e.memoizedState,e.memoizedProps);break;case 5:Zr(e,t,l);break;case 3:case 4:var s=An;An=Nu(e.stateNode.containerInfo),Zr(e,t,l),An=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=_s,_s=16777216,Zr(e,t,l),_s=s):Zr(e,t,l));break;default:Zr(e,t,l)}}function Ny(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 Ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ct=s,_y(s,e)}Ny(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cy(e),e=e.sibling}function Cy(e){switch(e.tag){case 0:case 11:case 15:Ts(e),e.flags&2048&&nl(9,e,e.return);break;case 3:Ts(e);break;case 12:Ts(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Ts(e);break;default:Ts(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ct=s,_y(s,e)}Ny(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(8,t,t.return),fu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function _y(e,t){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ds(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Ct=s;else e:for(l=e;Ct!==null;){s=Ct;var d=s.sibling,f=s.return;if(gy(s),s===l){Ct=null;break e}if(d!==null){d.return=f,Ct=d;break e}Ct=f}}}var wE={getCacheForType:function(e){var t=At(ht),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return At(ht).controller.signal}},jE=typeof WeakMap=="function"?WeakMap:Map,Ge=0,Ie=null,De=null,ze=0,Xe=0,rn=null,al=!1,Pr=!1,kf=!1,_a=0,st=0,ll=0,Il=0,Df=0,sn=0,Jr=0,Rs=null,Kt=null,Of=!1,hu=0,Ty=0,mu=1/0,pu=null,rl=null,wt=0,il=null,Ir=null,Ta=0,zf=0,Lf=null,Ry=null,Ms=0,Uf=null;function on(){return(Ge&2)!==0&&ze!==0?ze&-ze:z.T!==null?Gf():Vp()}function My(){if(sn===0)if((ze&536870912)===0||Ue){var e=So;So<<=1,(So&3932160)===0&&(So=262144),sn=e}else sn=536870912;return e=an.current,e!==null&&(e.flags|=32),sn}function Xt(e,t,l){(e===Ie&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(Wr(e,0),sl(e,ze,sn,!1)),Ji(e,l),((Ge&2)===0||e!==Ie)&&(e===Ie&&((Ge&2)===0&&(Il|=l),st===4&&sl(e,ze,sn,!1)),Fn(e))}function Ay(e,t,l){if((Ge&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),d=s?NE(e,t):Hf(e,t,!0),f=s;do{if(d===0){Pr&&!s&&sl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!SE(l)){d=Hf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var w=0;else w=e.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){t=w;e:{var N=e;d=Rs;var M=N.current.memoizedState.isDehydrated;if(M&&(Wr(N,w).flags|=256),w=Hf(N,w,!1),w!==2){if(kf&&!M){N.errorRecoveryDisabledLanes|=f,Il|=f,d=4;break e}f=Kt,Kt=d,f!==null&&(Kt===null?Kt=f:Kt.push.apply(Kt,f))}d=w}if(f=!1,d!==2)continue}}if(d===1){Wr(e,0),sl(e,t,0,!0);break}e:{switch(s=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:sl(s,t,sn,!al);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=hu+300-It(),10<d)){if(sl(s,t,sn,!al),No(s,0,!0)!==0)break e;Ta=t,s.timeoutHandle=o0(ky.bind(null,s,l,Kt,pu,Of,t,sn,Il,Jr,al,f,"Throttled",-0,0),d);break e}ky(s,l,Kt,pu,Of,t,sn,Il,Jr,al,f,null,-0,0)}}break}while(!0);Fn(e)}function ky(e,t,l,s,d,f,w,N,M,$,Z,I,Q,V){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},Ey(t,f,I);var fe=(f&62914560)===f?hu-It():(f&4194048)===f?Ty-It():0;if(fe=sN(I,fe),fe!==null){Ta=f,e.cancelPendingCommit=fe(By.bind(null,e,t,f,l,s,d,w,N,M,Z,I,null,Q,V)),sl(e,f,w,!$);return}}By(e,t,f,l,s,d,w,N,M)}function SE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var d=l[s],f=d.getSnapshot;d=d.value;try{if(!tn(f(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sl(e,t,l,s){t&=~Df,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var d=t;0<d;){var f=31-en(d),w=1<<f;s[f]=-1,d&=~w}l!==0&&Qp(e,l,t)}function vu(){return(Ge&6)===0?(As(0),!1):!0}function qf(){if(De!==null){if(Xe===0)var e=De.return;else e=De,ga=Gl=null,Wd(e),Gr=null,hs=0,e=De;for(;e!==null;)uy(e.alternate,e),e=e.return;De=null}}function Wr(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,GE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ta=0,qf(),Ie=e,De=l=pa(e.current,null),ze=t,Xe=0,rn=null,al=!1,Pr=Pi(e,t),kf=!1,Jr=sn=Df=Il=ll=st=0,Kt=Rs=null,Of=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var d=31-en(s),f=1<<d;t|=e[d],s&=~f}return _a=t,Uo(),l}function Dy(e,t){_e=null,z.H=ws,t===Qr||t===Vo?(t=Zv(),Xe=3):t===$d?(t=Zv(),Xe=4):Xe=t===vf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,De===null&&(st=1,ru(e,vn(t,e.current)))}function Oy(){var e=an.current;return e===null?!0:(ze&4194048)===ze?bn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===bn:!1}function zy(){var e=z.H;return z.H=ws,e===null?ws:e}function Ly(){var e=z.A;return z.A=wE,e}function gu(){st=4,al||(ze&4194048)!==ze&&an.current!==null||(Pr=!0),(ll&134217727)===0&&(Il&134217727)===0||Ie===null||sl(Ie,ze,sn,!1)}function Hf(e,t,l){var s=Ge;Ge|=2;var d=zy(),f=Ly();(Ie!==e||ze!==t)&&(pu=null,Wr(e,t)),t=!1;var w=st;e:do try{if(Xe!==0&&De!==null){var N=De,M=rn;switch(Xe){case 8:qf(),w=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var $=Xe;if(Xe=0,rn=null,ei(e,N,M,$),l&&Pr){w=0;break e}break;default:$=Xe,Xe=0,rn=null,ei(e,N,M,$)}}EE(),w=st;break}catch(Z){Dy(e,Z)}while(!0);return t&&e.shellSuspendCounter++,ga=Gl=null,Ge=s,z.H=d,z.A=f,De===null&&(Ie=null,ze=0,Uo()),w}function EE(){for(;De!==null;)Uy(De)}function NE(e,t){var l=Ge;Ge|=2;var s=zy(),d=Ly();Ie!==e||ze!==t?(pu=null,mu=It()+500,Wr(e,t)):Pr=Pi(e,t);e:do try{if(Xe!==0&&De!==null){t=De;var f=rn;t:switch(Xe){case 1:Xe=0,rn=null,ei(e,t,f,1);break;case 2:case 9:if(Xv(f)){Xe=0,rn=null,qy(t);break}t=function(){Xe!==2&&Xe!==9||Ie!==e||(Xe=7),Fn(e)},f.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Xv(f)?(Xe=0,rn=null,qy(t)):(Xe=0,rn=null,ei(e,t,f,7));break;case 5:var w=null;switch(De.tag){case 26:w=De.memoizedState;case 5:case 27:var N=De;if(w?S0(w):N.stateNode.complete){Xe=0,rn=null;var M=N.sibling;if(M!==null)De=M;else{var $=N.return;$!==null?(De=$,yu($)):De=null}break t}}Xe=0,rn=null,ei(e,t,f,5);break;case 6:Xe=0,rn=null,ei(e,t,f,6);break;case 8:qf(),st=6;break e;default:throw Error(i(462))}}CE();break}catch(Z){Dy(e,Z)}while(!0);return ga=Gl=null,z.H=s,z.A=d,Ge=l,De!==null?0:(Ie=null,ze=0,Uo(),st)}function CE(){for(;De!==null&&!ZS();)Uy(De)}function Uy(e){var t=sy(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?yu(e):De=t}function qy(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ty(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=ty(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Wd(t);default:uy(l,t),t=De=Lv(t,_a),t=sy(l,t,_a)}e.memoizedProps=e.pendingProps,t===null?yu(e):De=t}function ei(e,t,l,s){ga=Gl=null,Wd(t),Gr=null,hs=0;var d=t.return;try{if(mE(e,d,t,l,ze)){st=1,ru(e,vn(l,e.current)),De=null;return}}catch(f){if(d!==null)throw De=d,f;st=1,ru(e,vn(l,e.current)),De=null;return}t.flags&32768?(Ue||s===1?e=!0:Pr||(ze&536870912)!==0?e=!1:(al=e=!0,(s===2||s===9||s===3||s===6)&&(s=an.current,s!==null&&s.tag===13&&(s.flags|=16384))),Hy(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Hy(t,al);return}e=t.return;var l=gE(t.alternate,t,_a);if(l!==null){De=l;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);st===0&&(st=5)}function Hy(e,t){do{var l=yE(e.alternate,e);if(l!==null){l.flags&=32767,De=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=l}while(e!==null);st=6,De=null}function By(e,t,l,s,d,f,w,N,M){e.cancelPendingCommit=null;do xu();while(wt!==0);if((Ge&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Cd,r2(e,l,f,w,N,M),e===Ie&&(De=Ie=null,ze=0),Ir=t,il=e,Ta=l,zf=f,Lf=d,Ry=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ME(wo,function(){return Vy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,d=J.p,J.p=2,w=Ge,Ge|=4;try{xE(e,t,l)}finally{Ge=w,J.p=d,z.T=s}}wt=1,$y(),Qy(),Gy()}}function $y(){if(wt===1){wt=0;var e=il,t=Ir,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var s=J.p;J.p=2;var d=Ge;Ge|=4;try{wy(t,e);var f=Jf,w=_v(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(w!==N&&N&&N.ownerDocument&&Cv(N.ownerDocument.documentElement,N)){if(M!==null&&wd(N)){var $=M.start,Z=M.end;if(Z===void 0&&(Z=$),"selectionStart"in N)N.selectionStart=$,N.selectionEnd=Math.min(Z,N.value.length);else{var I=N.ownerDocument||document,Q=I&&I.defaultView||window;if(Q.getSelection){var V=Q.getSelection(),fe=N.textContent.length,je=Math.min(M.start,fe),Je=M.end===void 0?je:Math.min(M.end,fe);!V.extend&&je>Je&&(w=Je,Je=je,je=w);var L=Nv(N,je),O=Nv(N,Je);if(L&&O&&(V.rangeCount!==1||V.anchorNode!==L.node||V.anchorOffset!==L.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=I.createRange();B.setStart(L.node,L.offset),V.removeAllRanges(),je>Je?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(I=[],V=N;V=V.parentNode;)V.nodeType===1&&I.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<I.length;N++){var P=I[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Au=!!Pf,Jf=Pf=null}finally{Ge=d,J.p=s,z.T=l}}e.current=t,wt=2}}function Qy(){if(wt===2){wt=0;var e=il,t=Ir,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var s=J.p;J.p=2;var d=Ge;Ge|=4;try{vy(e,t.alternate,t)}finally{Ge=d,J.p=s,z.T=l}}wt=3}}function Gy(){if(wt===4||wt===3){wt=0,PS();var e=il,t=Ir,l=Ta,s=Ry;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,Ir=il=null,Yy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(rl=null),nd(l),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Zi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=z.T,d=J.p,J.p=2,z.T=null;try{for(var f=e.onRecoverableError,w=0;w<s.length;w++){var N=s[w];f(N.value,{componentStack:N.stack})}}finally{z.T=t,J.p=d}}(Ta&3)!==0&&xu(),Fn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Uf?Ms++:(Ms=0,Uf=e):Ms=0,As(0)}}function Yy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ds(t)))}function xu(){return $y(),Qy(),Gy(),Vy()}function Vy(){if(wt!==5)return!1;var e=il,t=zf;zf=0;var l=nd(Ta),s=z.T,d=J.p;try{J.p=32>l?32:l,z.T=null,l=Lf,Lf=null;var f=il,w=Ta;if(wt=0,Ir=il=null,Ta=0,(Ge&6)!==0)throw Error(i(331));var N=Ge;if(Ge|=4,Cy(f.current),Sy(f,f.current,w,l),Ge=N,As(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Zi,f)}catch{}return!0}finally{J.p=d,z.T=s,Yy(e,t)}}function Ky(e,t,l){t=vn(l,t),t=pf(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Ji(e,2),Fn(e))}function Fe(e,t,l){if(e.tag===3)Ky(e,e,l);else for(;t!==null;){if(t.tag===3){Ky(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(rl===null||!rl.has(s))){e=vn(l,e),l=Xg(2),s=Wa(t,l,2),s!==null&&(Fg(l,s,t,e),Ji(s,2),Fn(s));break}}t=t.return}}function Bf(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new jE;var d=new Set;s.set(t,d)}else d=s.get(t),d===void 0&&(d=new Set,s.set(t,d));d.has(l)||(kf=!0,d.add(l),e=_E.bind(null,e,t,l),t.then(e,e))}function _E(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ie===e&&(ze&l)===l&&(st===4||st===3&&(ze&62914560)===ze&&300>It()-hu?(Ge&2)===0&&Wr(e,0):Df|=l,Jr===ze&&(Jr=0)),Fn(e)}function Xy(e,t){t===0&&(t=$p()),e=Bl(e,t),e!==null&&(Ji(e,t),Fn(e))}function TE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Xy(e,l)}function RE(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),Xy(e,l)}function ME(e,t){return Ic(e,t)}var bu=null,ti=null,$f=!1,wu=!1,Qf=!1,ol=0;function Fn(e){e!==ti&&e.next===null&&(ti===null?bu=ti=e:ti=ti.next=e),wu=!0,$f||($f=!0,kE())}function As(e,t){if(!Qf&&wu){Qf=!0;do for(var l=!1,s=bu;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var f=0;else{var w=s.suspendedLanes,N=s.pingedLanes;f=(1<<31-en(42|e)+1)-1,f&=d&~(w&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Jy(s,f))}else f=ze,f=No(s,s===Ie?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Pi(s,f)||(l=!0,Jy(s,f));s=s.next}while(l);Qf=!1}}function AE(){Fy()}function Fy(){wu=$f=!1;var e=0;ol!==0&&QE()&&(e=ol);for(var t=It(),l=null,s=bu;s!==null;){var d=s.next,f=Zy(s,t);f===0?(s.next=null,l===null?bu=d:l.next=d,d===null&&(ti=l)):(l=s,(e!==0||(f&3)!==0)&&(wu=!0)),s=d}wt!==0&&wt!==5||As(e),ol!==0&&(ol=0)}function Zy(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var w=31-en(f),N=1<<w,M=d[w];M===-1?((N&l)===0||(N&s)!==0)&&(d[w]=l2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Ie,l=ze,l=No(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Wc(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Wc(s),nd(l)){case 2:case 8:l=Hp;break;case 32:l=wo;break;case 268435456:l=Bp;break;default:l=wo}return s=Py.bind(null,e),l=Ic(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Wc(s),e.callbackPriority=2,e.callbackNode=null,2}function Py(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(xu()&&e.callbackNode!==l)return null;var s=ze;return s=No(e,e===Ie?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Ay(e,s,t),Zy(e,It()),e.callbackNode!=null&&e.callbackNode===l?Py.bind(null,e):null)}function Jy(e,t){if(xu())return null;Ay(e,t,!0)}function kE(){YE(function(){(Ge&6)!==0?Ic(qp,AE):Fy()})}function Gf(){if(ol===0){var e=Br;e===0&&(e=jo,jo<<=1,(jo&261888)===0&&(jo=256)),ol=e}return ol}function Iy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ro(""+e)}function Wy(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function DE(e,t,l,s,d){if(t==="submit"&&l&&l.stateNode===d){var f=Iy((d[$t]||null).action),w=s.submitter;w&&(t=(t=w[$t]||null)?Iy(t.formAction):w.getAttribute("formAction"),t!==null&&(f=t,w=null));var N=new Do("action","action",null,s,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ol!==0){var M=w?Wy(d,w):new FormData(d);uf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=w?Wy(d,w):new FormData(d),uf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Yf=0;Yf<Nd.length;Yf++){var Vf=Nd[Yf],OE=Vf.toLowerCase(),zE=Vf[0].toUpperCase()+Vf.slice(1);Mn(OE,"on"+zE)}Mn(Mv,"onAnimationEnd"),Mn(Av,"onAnimationIteration"),Mn(kv,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(J2,"onTransitionRun"),Mn(I2,"onTransitionStart"),Mn(W2,"onTransitionCancel"),Mn(Dv,"onTransitionEnd"),Cr("onMouseEnter",["mouseout","mouseover"]),Cr("onMouseLeave",["mouseout","mouseover"]),Cr("onPointerEnter",["pointerout","pointerover"]),Cr("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ks="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(" "),LE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ks));function e0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var w=s.length-1;0<=w;w--){var N=s[w],M=N.instance,$=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=$;try{f(d)}catch(Z){Lo(Z)}d.currentTarget=null,f=M}else for(w=0;w<s.length;w++){if(N=s[w],M=N.instance,$=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=$;try{f(d)}catch(Z){Lo(Z)}d.currentTarget=null,f=M}}}}function Oe(e,t){var l=t[ad];l===void 0&&(l=t[ad]=new Set);var s=e+"__bubble";l.has(s)||(t0(t,e,2,!1),l.add(s))}function Kf(e,t,l){var s=0;t&&(s|=4),t0(l,e,s,t)}var ju="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[ju]){e[ju]=!0,Fp.forEach(function(l){l!=="selectionchange"&&(LE.has(l)||Kf(l,!1,e),Kf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ju]||(t[ju]=!0,Kf("selectionchange",!1,t))}}function t0(e,t,l,s){switch(M0(t)){case 2:var d=cN;break;case 8:d=dN;break;default:d=oh}l=d.bind(null,t,l,e),d=void 0,!fd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function Ff(e,t,l,s,d){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var w=s.tag;if(w===3||w===4){var N=s.stateNode.containerInfo;if(N===d)break;if(w===4)for(w=s.return;w!==null;){var M=w.tag;if((M===3||M===4)&&w.stateNode.containerInfo===d)return;w=w.return}for(;N!==null;){if(w=Sr(N),w===null)return;if(M=w.tag,M===5||M===6||M===26||M===27){s=f=w;continue e}N=N.parentNode}}s=s.return}iv(function(){var $=f,Z=cd(l),I=[];e:{var Q=Ov.get(e);if(Q!==void 0){var V=Do,fe=e;switch(e){case"keypress":if(Ao(l)===0)break e;case"keydown":case"keyup":V=R2;break;case"focusin":fe="focus",V=vd;break;case"focusout":fe="blur",V=vd;break;case"beforeblur":case"afterblur":V=vd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=uv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=g2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=k2;break;case Mv:case Av:case kv:V=b2;break;case Dv:V=O2;break;case"scroll":case"scrollend":V=p2;break;case"wheel":V=L2;break;case"copy":case"cut":case"paste":V=j2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=dv;break;case"toggle":case"beforetoggle":V=q2}var je=(t&4)!==0,Je=!je&&(e==="scroll"||e==="scrollend"),L=je?Q!==null?Q+"Capture":null:Q;je=[];for(var O=$,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||L===null||(P=es(O,L),P!=null&&je.push(Ds(O,P,B))),Je)break;O=O.return}0<je.length&&(Q=new V(Q,fe,null,l,Z),I.push({event:Q,listeners:je}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Q&&l!==ud&&(fe=l.relatedTarget||l.fromElement)&&(Sr(fe)||fe[jr]))break e;if((V||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=$,fe=fe?Sr(fe):null,fe!==null&&(Je=c(fe),je=fe.tag,fe!==Je||je!==5&&je!==27&&je!==6)&&(fe=null)):(V=null,fe=$),V!==fe)){if(je=uv,P="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(je=dv,P="onPointerLeave",L="onPointerEnter",O="pointer"),Je=V==null?Q:Wi(V),B=fe==null?Q:Wi(fe),Q=new je(P,O+"leave",V,l,Z),Q.target=Je,Q.relatedTarget=B,P=null,Sr(Z)===$&&(je=new je(L,O+"enter",fe,l,Z),je.target=B,je.relatedTarget=Je,P=je),Je=P,V&&fe)t:{for(je=UE,L=V,O=fe,B=0,P=L;P;P=je(P))B++;P=0;for(var xe=O;xe;xe=je(xe))P++;for(;0<B-P;)L=je(L),B--;for(;0<P-B;)O=je(O),P--;for(;B--;){if(L===O||O!==null&&L===O.alternate){je=L;break t}L=je(L),O=je(O)}je=null}else je=null;V!==null&&n0(I,Q,V,je,!1),fe!==null&&Je!==null&&n0(I,Je,fe,je,!0)}}e:{if(Q=$?Wi($):window,V=Q.nodeName&&Q.nodeName.toLowerCase(),V==="select"||V==="input"&&Q.type==="file")var $e=xv;else if(gv(Q))if(bv)$e=F2;else{$e=K2;var ge=V2}else V=Q.nodeName,!V||V.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?$&&od($.elementType)&&($e=xv):$e=X2;if($e&&($e=$e(e,$))){yv(I,$e,l,Z);break e}ge&&ge(e,Q,$),e==="focusout"&&$&&Q.type==="number"&&$.memoizedProps.value!=null&&sd(Q,"number",Q.value)}switch(ge=$?Wi($):window,e){case"focusin":(gv(ge)||ge.contentEditable==="true")&&(kr=ge,jd=$,os=null);break;case"focusout":os=jd=kr=null;break;case"mousedown":Sd=!0;break;case"contextmenu":case"mouseup":case"dragend":Sd=!1,Tv(I,l,Z);break;case"selectionchange":if(P2)break;case"keydown":case"keyup":Tv(I,l,Z)}var Te;if(yd)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Ar?pv(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(fv&&l.locale!=="ko"&&(Ar||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ar&&(Te=sv()):(Ka=Z,hd="value"in Ka?Ka.value:Ka.textContent,Ar=!0)),ge=Su($,Le),0<ge.length&&(Le=new cv(Le,e,null,l,Z),I.push({event:Le,listeners:ge}),Te?Le.data=Te:(Te=vv(l),Te!==null&&(Le.data=Te)))),(Te=B2?$2(e,l):Q2(e,l))&&(Le=Su($,"onBeforeInput"),0<Le.length&&(ge=new cv("onBeforeInput","beforeinput",null,l,Z),I.push({event:ge,listeners:Le}),ge.data=Te)),DE(I,e,$,l,Z)}e0(I,t)})}function Ds(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Su(e,t){for(var l=t+"Capture",s=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=es(e,l),d!=null&&s.unshift(Ds(e,d,f)),d=es(e,t),d!=null&&s.push(Ds(e,d,f))),e.tag===3)return s;e=e.return}return[]}function UE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function n0(e,t,l,s,d){for(var f=t._reactName,w=[];l!==null&&l!==s;){var N=l,M=N.alternate,$=N.stateNode;if(N=N.tag,M!==null&&M===s)break;N!==5&&N!==26&&N!==27||$===null||(M=$,d?($=es(l,f),$!=null&&w.unshift(Ds(l,$,M))):d||($=es(l,f),$!=null&&w.push(Ds(l,$,M)))),l=l.return}w.length!==0&&e.push({event:t,listeners:w})}var qE=/\r\n?/g,HE=/\u0000|\uFFFD/g;function a0(e){return(typeof e=="string"?e:""+e).replace(qE,`
|
|
49
|
+
`).replace(HE,"")}function l0(e,t){return t=a0(t),a0(e)===t}function Pe(e,t,l,s,d,f){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Tr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Tr(e,""+s);break;case"className":_o(e,"class",s);break;case"tabIndex":_o(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":_o(e,l,s);break;case"style":lv(e,s,f);break;case"data":if(t!=="object"){_o(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ro(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Pe(e,t,"name",d.name,d,null),Pe(e,t,"formEncType",d.formEncType,d,null),Pe(e,t,"formMethod",d.formMethod,d,null),Pe(e,t,"formTarget",d.formTarget,d,null)):(Pe(e,t,"encType",d.encType,d,null),Pe(e,t,"method",d.method,d,null),Pe(e,t,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Ro(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ha);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Ro(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Co(e,"popover",s);break;case"xlinkActuate":fa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":fa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":fa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":fa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":fa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":fa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":fa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":fa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":fa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Co(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=h2.get(l)||l,Co(e,l,s))}}function Zf(e,t,l,s,d,f){switch(l){case"style":lv(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Tr(e,s):(typeof s=="number"||typeof s=="bigint")&&Tr(e,""+s);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[$t]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof s=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,d);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):Co(e,l,s)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var s=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var w=l[f];if(w!=null)switch(f){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,f,w,l,null)}}d&&Pe(e,t,"srcSet",l.srcSet,l,null),s&&Pe(e,t,"src",l.src,l,null);return;case"input":Oe("invalid",e);var N=f=w=d=null,M=null,$=null;for(s in l)if(l.hasOwnProperty(s)){var Z=l[s];if(Z!=null)switch(s){case"name":d=Z;break;case"type":w=Z;break;case"checked":M=Z;break;case"defaultChecked":$=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Pe(e,t,s,Z,l,null)}}ev(e,f,N,M,$,w,d,!1);return;case"select":Oe("invalid",e),s=w=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":w=N;break;case"multiple":s=N;default:Pe(e,t,d,N,l,null)}t=f,l=w,e.multiple=!!s,t!=null?_r(e,!!s,t,!1):l!=null&&_r(e,!!s,l,!0);return;case"textarea":Oe("invalid",e),f=d=s=null;for(w in l)if(l.hasOwnProperty(w)&&(N=l[w],N!=null))switch(w){case"value":s=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Pe(e,t,w,N,l,null)}nv(e,s,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(s=l[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(e,t,M,s,l,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(s=0;s<ks.length;s++)Oe(ks[s],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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($ in l)if(l.hasOwnProperty($)&&(s=l[$],s!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,$,s,l,null)}return;default:if(od(t)){for(Z in l)l.hasOwnProperty(Z)&&(s=l[Z],s!==void 0&&Zf(e,t,Z,s,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(s=l[N],s!=null&&Pe(e,t,N,s,l,null))}function BE(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,w=null,N=null,M=null,$=null,Z=null;for(V in l){var I=l[V];if(l.hasOwnProperty(V)&&I!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=I;default:s.hasOwnProperty(V)||Pe(e,t,V,null,s,I)}}for(var Q in s){var V=s[Q];if(I=l[Q],s.hasOwnProperty(Q)&&(V!=null||I!=null))switch(Q){case"type":f=V;break;case"name":d=V;break;case"checked":$=V;break;case"defaultChecked":Z=V;break;case"value":w=V;break;case"defaultValue":N=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==I&&Pe(e,t,Q,V,s,I)}}id(e,w,N,M,$,Z,f,d);return;case"select":V=w=N=Q=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:s.hasOwnProperty(f)||Pe(e,t,f,null,s,M)}for(d in s)if(f=s[d],M=l[d],s.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Q=f;break;case"defaultValue":N=f;break;case"multiple":w=f;default:f!==M&&Pe(e,t,d,f,s,M)}t=N,l=w,s=V,Q!=null?_r(e,!!l,Q,!1):!!s!=!!l&&(t!=null?_r(e,!!l,t,!0):_r(e,!!l,l?[]:"",!1));return;case"textarea":V=Q=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!s.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Pe(e,t,N,null,s,d)}for(w in s)if(d=s[w],f=l[w],s.hasOwnProperty(w)&&(d!=null||f!=null))switch(w){case"value":Q=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Pe(e,t,w,d,s,f)}tv(e,Q,V);return;case"option":for(var fe in l)if(Q=l[fe],l.hasOwnProperty(fe)&&Q!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Pe(e,t,fe,null,s,Q)}for(M in s)if(Q=s[M],V=l[M],s.hasOwnProperty(M)&&Q!==V&&(Q!=null||V!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Pe(e,t,M,Q,s,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var je in l)Q=l[je],l.hasOwnProperty(je)&&Q!=null&&!s.hasOwnProperty(je)&&Pe(e,t,je,null,s,Q);for($ in s)if(Q=s[$],V=l[$],s.hasOwnProperty($)&&Q!==V&&(Q!=null||V!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Pe(e,t,$,Q,s,V)}return;default:if(od(t)){for(var Je in l)Q=l[Je],l.hasOwnProperty(Je)&&Q!==void 0&&!s.hasOwnProperty(Je)&&Zf(e,t,Je,void 0,s,Q);for(Z in s)Q=s[Z],V=l[Z],!s.hasOwnProperty(Z)||Q===V||Q===void 0&&V===void 0||Zf(e,t,Z,Q,s,V);return}}for(var L in l)Q=l[L],l.hasOwnProperty(L)&&Q!=null&&!s.hasOwnProperty(L)&&Pe(e,t,L,null,s,Q);for(I in s)Q=s[I],V=l[I],!s.hasOwnProperty(I)||Q===V||Q==null&&V==null||Pe(e,t,I,Q,s,V)}function r0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $E(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var d=l[s],f=d.transferSize,w=d.initiatorType,N=d.duration;if(f&&N&&r0(w)){for(w=0,N=d.responseEnd,s+=1;s<l.length;s++){var M=l[s],$=M.startTime;if($>N)break;var Z=M.transferSize,I=M.initiatorType;Z&&r0(I)&&(M=M.responseEnd,w+=Z*(M<N?1:(N-$)/(M-$)))}if(--s,t+=8*(f+w)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Pf=null,Jf=null;function Eu(e){return e.nodeType===9?e:e.ownerDocument}function i0(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 s0(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 If(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 Wf=null;function QE(){var e=window.event;return e&&e.type==="popstate"?e===Wf?!1:(Wf=e,!0):(Wf=null,!1)}var o0=typeof setTimeout=="function"?setTimeout:void 0,GE=typeof clearTimeout=="function"?clearTimeout:void 0,u0=typeof Promise=="function"?Promise:void 0,YE=typeof queueMicrotask=="function"?queueMicrotask:typeof u0<"u"?function(e){return u0.resolve(null).then(e).catch(VE)}:o0;function VE(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function c0(e,t){var l=t,s=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(d),ri(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Os(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Os(l);for(var f=l.firstChild;f;){var w=f.nextSibling,N=f.nodeName;f[Ii]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=w}}else l==="body"&&Os(e.ownerDocument.body);l=d}while(l);ri(t)}function d0(e,t){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function eh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":eh(l),ld(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function KE(e,t,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Ii])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function XE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function f0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function th(e){return e.data==="$?"||e.data==="$~"}function nh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function FE(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function wn(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 ah=null;function h0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return wn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function m0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function p0(e,t,l){switch(t=Eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Os(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ld(e)}var jn=new Map,v0=new Set;function Nu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=J.d;J.d={f:ZE,r:PE,D:JE,C:IE,L:WE,m:eN,X:nN,S:tN,M:aN};function ZE(){var e=Ra.f(),t=vu();return e||t}function PE(e){var t=Er(e);t!==null&&t.tag===5&&t.type==="form"?Dg(t):Ra.r(e)}var ni=typeof document>"u"?null:document;function g0(e,t,l){var s=ni;if(s&&typeof t=="string"&&t){var d=mn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),v0.has(d)||(v0.add(d),e={rel:e,crossOrigin:l,href:t},s.querySelector(d)===null&&(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function JE(e){Ra.D(e),g0("dns-prefetch",e,null)}function IE(e,t){Ra.C(e,t),g0("preconnect",e,t)}function WE(e,t,l){Ra.L(e,t,l);var s=ni;if(s&&e&&t){var d='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+mn(l.imageSizes)+'"]')):d+='[href="'+mn(e)+'"]';var f=d;switch(t){case"style":f=ai(e);break;case"script":f=li(e)}jn.has(f)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),jn.set(f,e),s.querySelector(d)!==null||t==="style"&&s.querySelector(zs(f))||t==="script"&&s.querySelector(Ls(f))||(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function eN(e,t){Ra.m(e,t);var l=ni;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+mn(s)+'"][href="'+mn(e)+'"]',f=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=li(e)}if(!jn.has(f)&&(e=y({rel:"modulepreload",href:e},t),jn.set(f,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ls(f)))return}s=l.createElement("link"),Dt(s,"link",e),Nt(s),l.head.appendChild(s)}}}function tN(e,t,l){Ra.S(e,t,l);var s=ni;if(s&&e){var d=Nr(s).hoistableStyles,f=ai(e);t=t||"default";var w=d.get(f);if(!w){var N={loading:0,preload:null};if(w=s.querySelector(zs(f)))N.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=jn.get(f))&&lh(e,l);var M=w=s.createElement("link");Nt(M),Dt(M,"link",e),M._p=new Promise(function($,Z){M.onload=$,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Cu(w,t,s)}w={type:"stylesheet",instance:w,count:1,state:N},d.set(f,w)}}}function nN(e,t){Ra.X(e,t);var l=ni;if(l&&e){var s=Nr(l).hoistableScripts,d=li(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=y({src:e,async:!0},t),(t=jn.get(d))&&rh(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function aN(e,t){Ra.M(e,t);var l=ni;if(l&&e){var s=Nr(l).hoistableScripts,d=li(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=y({src:e,async:!0,type:"module"},t),(t=jn.get(d))&&rh(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function y0(e,t,l,s){var d=(d=Se.current)?Nu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ai(l.href),l=Nr(d).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ai(l.href);var f=Nr(d).hoistableStyles,w=f.get(e);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,w),(f=d.querySelector(zs(e)))&&!f._p&&(w.instance=f,w.state.loading=5),jn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},jn.set(e,l),f||lN(d,e,l,w.state))),t&&s===null)throw Error(i(528,""));return w}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=li(l),l=Nr(d).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ai(e){return'href="'+mn(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function x0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function lN(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Dt(t,"link",l),Nt(t),e.head.appendChild(t))}function li(e){return'[src="'+mn(e)+'"]'}function Ls(e){return"script[async]"+e}function b0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+mn(l.href)+'"]');if(s)return t.instance=s,Nt(s),s;var d=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Nt(s),Dt(s,"style",d),Cu(s,l.precedence,e),t.instance=s;case"stylesheet":d=ai(l.href);var f=e.querySelector(zs(d));if(f)return t.state.loading|=4,t.instance=f,Nt(f),f;s=x0(l),(d=jn.get(d))&&lh(s,d),f=(e.ownerDocument||e).createElement("link"),Nt(f);var w=f;return w._p=new Promise(function(N,M){w.onload=N,w.onerror=M}),Dt(f,"link",s),t.state.loading|=4,Cu(f,l.precedence,e),t.instance=f;case"script":return f=li(l.src),(d=e.querySelector(Ls(f)))?(t.instance=d,Nt(d),d):(s=l,(d=jn.get(f))&&(s=y({},l),rh(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),Nt(d),Dt(d,"link",s),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Cu(s,l.precedence,e));return t.instance}function Cu(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,f=d,w=0;w<s.length;w++){var N=s[w];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function lh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function rh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _u=null;function w0(e,t,l){if(_u===null){var s=new Map,d=_u=new Map;d.set(l,s)}else d=_u,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Ii]||f[Rt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var w=f.getAttribute(t)||"";w=e+w;var N=s.get(w);N?N.push(f):s.set(w,[f])}}return s}function j0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function rN(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function S0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function iN(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=ai(s.href),f=t.querySelector(zs(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Tu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,Nt(f);return}f=t.ownerDocument||t,s=x0(s),(d=jn.get(d))&&lh(s,d),f=f.createElement("link"),Nt(f);var w=f;w._p=new Promise(function(N,M){w.onload=N,w.onerror=M}),Dt(f,"link",s),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Tu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ih=0;function sN(e,t){return e.stylesheets&&e.count===0&&Mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&ih===0&&(ih=62500*$E());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>ih?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function Tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ru=null;function Mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ru=new Map,t.forEach(oN,e),Ru=null,Tu.call(e))}function oN(e,t){if(!(t.state.loading&4)){var l=Ru.get(e);if(l)var s=l.get(null);else{l=new Map,Ru.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var w=d[f];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),s=w)}s&&l.set(null,s)}d=t.instance,w=d.getAttribute("data-precedence"),f=l.get(w)||s,f===s&&l.set(null,d),l.set(w,d),this.count++,s=Tu.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function uN(e,t,l,s,d,f,w,N,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ed(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ed(0),this.hiddenUpdates=ed(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function E0(e,t,l,s,d,f,w,N,M,$,Z,I){return e=new uN(e,t,l,w,M,$,Z,I,N),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=qd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:l,cache:t},Qd(f),e}function N0(e){return e?(e=zr,e):zr}function C0(e,t,l,s,d,f){d=N0(d),s.context===null?s.context=d:s.pendingContext=d,s=Ia(t),s.payload={element:l},f=f===void 0?null:f,f!==null&&(s.callback=f),l=Wa(e,s,t),l!==null&&(Xt(l,e,t),ps(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function sh(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function T0(e){if(e.tag===13||e.tag===31){var t=Bl(e,67108864);t!==null&&Xt(t,e,67108864),sh(e,67108864)}}function R0(e){if(e.tag===13||e.tag===31){var t=on();t=td(t);var l=Bl(e,t);l!==null&&Xt(l,e,t),sh(e,t)}}var Au=!0;function cN(e,t,l,s){var d=z.T;z.T=null;var f=J.p;try{J.p=2,oh(e,t,l,s)}finally{J.p=f,z.T=d}}function dN(e,t,l,s){var d=z.T;z.T=null;var f=J.p;try{J.p=8,oh(e,t,l,s)}finally{J.p=f,z.T=d}}function oh(e,t,l,s){if(Au){var d=uh(s);if(d===null)Ff(e,t,s,ku,l),A0(e,s);else if(hN(d,e,t,l,s))s.stopPropagation();else if(A0(e,s),t&4&&-1<fN.indexOf(e)){for(;d!==null;){var f=Er(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var w=zl(f.pendingLanes);if(w!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;w;){var M=1<<31-en(w);N.entanglements[1]|=M,w&=~M}Fn(f),(Ge&6)===0&&(mu=It()+500,As(0))}}break;case 31:case 13:N=Bl(f,2),N!==null&&Xt(N,f,2),vu(),sh(f,2)}if(f=uh(s),f===null&&Ff(e,t,s,ku,l),f===d)break;d=f}d!==null&&s.stopPropagation()}else Ff(e,t,s,null,l)}}function uh(e){return e=cd(e),ch(e)}var ku=null;function ch(e){if(ku=null,e=Sr(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ku=e,null}function M0(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(JS()){case qp:return 2;case Hp:return 8;case wo:case IS:return 32;case Bp:return 268435456;default:return 32}default:return 32}}var dh=!1,cl=null,dl=null,fl=null,qs=new Map,Hs=new Map,hl=[],fN="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 A0(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":qs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function Bs(e,t,l,s,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Er(t),t!==null&&T0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function hN(e,t,l,s,d){switch(t){case"focusin":return cl=Bs(cl,e,t,l,s,d),!0;case"dragenter":return dl=Bs(dl,e,t,l,s,d),!0;case"mouseover":return fl=Bs(fl,e,t,l,s,d),!0;case"pointerover":var f=d.pointerId;return qs.set(f,Bs(qs.get(f)||null,e,t,l,s,d)),!0;case"gotpointercapture":return f=d.pointerId,Hs.set(f,Bs(Hs.get(f)||null,e,t,l,s,d)),!0}return!1}function k0(e){var t=Sr(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Kp(e.priority,function(){R0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Kp(e.priority,function(){R0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=uh(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);ud=s,l.target.dispatchEvent(s),ud=null}else return t=Er(l),t!==null&&T0(t),e.blockedOn=l,!1;t.shift()}return!0}function D0(e,t,l){Du(e)&&l.delete(t)}function mN(){dh=!1,cl!==null&&Du(cl)&&(cl=null),dl!==null&&Du(dl)&&(dl=null),fl!==null&&Du(fl)&&(fl=null),qs.forEach(D0),Hs.forEach(D0)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,dh||(dh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mN)))}var zu=null;function O0(e){zu!==e&&(zu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){zu===e&&(zu=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],d=e[t+2];if(typeof s!="function"){if(ch(s||l)===null)continue;break}var f=Er(l);f!==null&&(e.splice(t,3),t-=3,uf(f,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function ri(e){function t(M){return Ou(M,e)}cl!==null&&Ou(cl,e),dl!==null&&Ou(dl,e),fl!==null&&Ou(fl,e),qs.forEach(t),Hs.forEach(t);for(var l=0;l<hl.length;l++){var s=hl[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)k0(l),l.blockedOn===null&&hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],f=l[s+1],w=d[$t]||null;if(typeof f=="function")w||O0(l);else if(w){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,w=f[$t]||null)N=w.formAction;else if(ch(d)!==null)continue}else N=w.action;typeof N=="function"?l[s+1]=N:(l.splice(s,3),s-=3),O0(l)}}}function z0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(w){return d=w})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function fh(e){this._internalRoot=e}Lu.prototype.render=fh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=on();C0(l,s,e,t,null,null)},Lu.prototype.unmount=fh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;C0(e.current,2,null,e,null,null),vu(),t[jr]=null}};function Lu(e){this._internalRoot=e}Lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<hl.length&&t!==0&&t<hl[l].priority;l++);hl.splice(l,0,e),l===0&&k0(e)}};var L0=a.version;if(L0!=="19.2.3")throw Error(i(527,L0,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var pN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Uu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Uu.isDisabled&&Uu.supportsFiber)try{Zi=Uu.inject(pN),Wt=Uu}catch{}}return Qs.createRoot=function(e,t){if(!o(e))throw Error(i(299));var l=!1,s="",d=Gg,f=Yg,w=Vg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(w=t.onRecoverableError)),t=E0(e,1,!1,null,null,l,s,null,d,f,w,z0),e[jr]=t.current,Xf(e),new fh(t)},Qs.hydrateRoot=function(e,t,l){if(!o(e))throw Error(i(299));var s=!1,d="",f=Gg,w=Yg,N=Vg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=E0(e,1,!0,t,l??null,s,d,M,f,w,N,z0),t.context=N0(null),l=t.current,s=on(),s=td(s),d=Ia(s),d.callback=null,Wa(l,d,s),l=s,t.current.lanes=l,Ji(t,l),Fn(t),e[jr]=t.current,Xf(e),new Lu(t)},Qs.version="19.2.3",Qs}var nx;function aC(){if(nx)return gh.exports;nx=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),gh.exports=nC(),gh.exports}var lC=aC(),Gs={},ax;function rC(){if(ax)return Gs;ax=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.parse=h,Gs.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,c=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function h(b,S){const E=new c,j=b.length;if(j<2)return E;const C=(S==null?void 0:S.decode)||x;let _=0;do{const T=b.indexOf("=",_);if(T===-1)break;const R=b.indexOf(";",_),D=R===-1?j:R;if(T>D){_=b.lastIndexOf(";",T-1)+1;continue}const U=m(b,_,T),K=p(b,T,U),H=b.slice(U,K);if(E[H]===void 0){let q=m(b,T+1,D),G=p(b,D,q);const ee=C(b.slice(q,G));E[H]=ee}_=D+1}while(_<j);return E}function m(b,S,E){do{const j=b.charCodeAt(S);if(j!==32&&j!==9)return S}while(++S<E);return E}function p(b,S,E){for(;S>E;){const j=b.charCodeAt(--S);if(j!==32&&j!==9)return S+1}return E}function g(b,S,E){const j=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=j(S);if(!a.test(C))throw new TypeError(`argument val is invalid: ${S}`);let _=b+"="+C;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!y(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function x(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function y(b){return o.call(b)==="[object Date]"}return Gs}rC();var lx="popstate";function iC(n={}){function a(o,c){let{pathname:h="/",search:m="",hash:p=""}=pr(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Wh("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let h=o.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:eo(c))}function i(o,c){_n(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return oC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function _n(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function sC(){return Math.random().toString(36).substring(2,10)}function rx(n,a){return{usr:n.state,key:n.key,idx:a}}function Wh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?pr(a):a,state:r,key:a&&a.key||i||sC()}}function eo({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function pr(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function oC(n,a,r,i={}){let{window:o=document.defaultView,v5Compat:c=!1}=i,h=o.history,m="POP",p=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function y(){m="POP";let C=x(),_=C==null?null:C-g;g=C,p&&p({action:m,location:j.location,delta:_})}function b(C,_){m="PUSH";let T=Wh(j.location,C,_);r&&r(T,C),g=x()+1;let R=rx(T,g),D=j.createHref(T);try{h.pushState(R,"",D)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(D)}c&&p&&p({action:m,location:j.location,delta:1})}function S(C,_){m="REPLACE";let T=Wh(j.location,C,_);r&&r(T,C),g=x();let R=rx(T,g),D=j.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:j.location,delta:0})}function E(C){return uC(C)}let j={get action(){return m},get location(){return n(o,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(lx,y),p=C,()=>{o.removeEventListener(lx,y),p=null}},createHref(C){return a(o,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:b,replace:S,go(C){return h.go(C)}};return j}function uC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),at(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:eo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Rb(n,a,r="/"){return cC(n,a,r,!1)}function cC(n,a,r,i){let o=typeof a=="string"?pr(a):a,c=Ua(o.pathname||"/",r);if(c==null)return null;let h=Mb(n);dC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=jC(c);m=bC(h[p],g,i)}return m}function Mb(n,a=[],r=[],i=""){let o=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(at(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=za([i,p.relativePath]),x=r.concat(p);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Mb(c.children,a,x,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:yC(g,c.index),routesMeta:x})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))o(c,h);else for(let p of Ab(c.path))o(c,h,p)}),a}function Ab(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return o?[c,""]:[c];let h=Ab(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),o&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function dC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:xC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var fC=/^:[\w-]+$/,hC=3,mC=2,pC=1,vC=10,gC=-2,ix=n=>n==="*";function yC(n,a){let r=n.split("/"),i=r.length;return r.some(ix)&&(i+=gC),a&&(i+=mC),r.filter(o=>!ix(o)).reduce((o,c)=>o+(fC.test(c)?hC:c===""?pC:vC),i)}function xC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,o)=>i===a[o])?n[n.length-1]-a[a.length-1]:0}function bC(n,a,r=!1){let{routesMeta:i}=n,o={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,x=c==="/"?a:a.slice(c.length)||"/",y=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},x),b=p.route;if(!y&&g&&r&&!i[i.length-1].route.index&&(y=sc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!y)return null;Object.assign(o,y.params),h.push({params:o,pathname:za([c,y.pathname]),pathnameBase:CC(za([c,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(c=za([c,y.pathnameBase]))}return h}function sc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=wC(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],h=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:i.reduce((g,{paramName:x,isOptional:y},b)=>{if(x==="*"){let E=m[b]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const S=m[b];return y&&!S?g[x]=void 0:g[x]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function wC(n,a=!1,r=!0){_n(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),i]}function jC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return _n(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Ua(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function SC(n,a="/"){let{pathname:r,search:i="",hash:o=""}=typeof n=="string"?pr(n):n;return{pathname:r?r.startsWith("/")?r:EC(r,a):a,search:_C(i),hash:TC(o)}}function EC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function wh(n,a,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function NC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Rm(n){let a=NC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Mm(n,a,r,i=!1){let o;typeof n=="string"?o=pr(n):(o={...n},at(!o.pathname||!o.pathname.includes("?"),wh("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),wh("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),wh("#","search","hash",o)));let c=n===""||o.pathname==="",h=c?"/":o.pathname,m;if(h==null)m=r;else{let y=a.length-1;if(!i&&h.startsWith("..")){let b=h.split("/");for(;b[0]==="..";)b.shift(),y-=1;o.pathname=b.join("/")}m=y>=0?a[y]:"/"}let p=SC(o,m),g=h&&h!=="/"&&h.endsWith("/"),x=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var za=n=>n.join("/").replace(/\/\/+/g,"/"),CC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),_C=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,TC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function RC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var kb=["POST","PUT","PATCH","DELETE"];new Set(kb);var MC=["GET",...kb];new Set(MC);var Oi=v.createContext(null);Oi.displayName="DataRouter";var Nc=v.createContext(null);Nc.displayName="DataRouterState";var Db=v.createContext({isTransitioning:!1});Db.displayName="ViewTransition";var AC=v.createContext(new Map);AC.displayName="Fetchers";var kC=v.createContext(null);kC.displayName="Await";var $n=v.createContext(null);$n.displayName="Navigation";var uo=v.createContext(null);uo.displayName="Location";var Qn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Am=v.createContext(null);Am.displayName="RouteError";function DC(n,{relative:a}={}){at(zi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext($n),{hash:o,pathname:c,search:h}=co(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:za([r,c])),i.createHref({pathname:m,search:h,hash:o})}function zi(){return v.useContext(uo)!=null}function Ba(){return at(zi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(uo).location}var Ob="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zb(n){v.useContext($n).static||v.useLayoutEffect(n)}function Lb(){let{isDataRoute:n}=v.useContext(Qn);return n?KC():OC()}function OC(){at(zi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Oi),{basename:a,navigator:r}=v.useContext($n),{matches:i}=v.useContext(Qn),{pathname:o}=Ba(),c=JSON.stringify(Rm(i)),h=v.useRef(!1);return zb(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(_n(h.current,Ob),!h.current)return;if(typeof p=="number"){r.go(p);return}let x=Mm(p,JSON.parse(c),o,g.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:za([a,x.pathname])),(g.replace?r.replace:r.push)(x,g.state,g)},[a,r,c,o,n])}v.createContext(null);function $a(){let{matches:n}=v.useContext(Qn),a=n[n.length-1];return a?a.params:{}}function co(n,{relative:a}={}){let{matches:r}=v.useContext(Qn),{pathname:i}=Ba(),o=JSON.stringify(Rm(r));return v.useMemo(()=>Mm(n,JSON.parse(o),i,a==="path"),[n,o,i,a])}function zC(n,a){return Ub(n,a)}function Ub(n,a,r,i){var _;at(zi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=v.useContext($n),{matches:c}=v.useContext(Qn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",x=h&&h.route;{let T=x&&x.path||"";qb(p,!x||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=Ba(),b;if(a){let T=typeof a=="string"?pr(a):a;at(g==="/"||((_=T.pathname)==null?void 0:_.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),b=T}else b=y;let S=b.pathname||"/",E=S;if(g!=="/"){let T=g.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=Rb(n,{pathname:E});_n(x||j!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),_n(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=BC(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:za([g,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:za([g,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(uo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},C):C}function LC(){let n=VC(),a=RC(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:o},r):null,h)}var UC=v.createElement(LC,null),qC=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?v.createElement(Qn.Provider,{value:this.props.routeContext},v.createElement(Am.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function HC({routeContext:n,match:a,children:r}){let i=v.useContext(Oi);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Qn.Provider,{value:n},r)}function BC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,c=r==null?void 0:r.errors;if(c!=null){let p=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);at(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:x,errors:y}=r,b=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!y||y[g.route.id]===void 0);if(g.route.lazy||b){h=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,x)=>{let y,b=!1,S=null,E=null;r&&(y=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||UC,h&&(m<0&&x===0?(qb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,E=null):m===x&&(b=!0,E=g.route.hydrateFallbackElement||null)));let j=a.concat(o.slice(0,x+1)),C=()=>{let _;return y?_=S:b?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(HC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?v.createElement(qC,{location:r.location,revalidation:r.revalidation,component:S,error:y,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function km(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $C(n){let a=v.useContext(Oi);return at(a,km(n)),a}function QC(n){let a=v.useContext(Nc);return at(a,km(n)),a}function GC(n){let a=v.useContext(Qn);return at(a,km(n)),a}function Dm(n){let a=GC(n),r=a.matches[a.matches.length-1];return at(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function YC(){return Dm("useRouteId")}function VC(){var i;let n=v.useContext(Am),a=QC("useRouteError"),r=Dm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function KC(){let{router:n}=$C("useNavigate"),a=Dm("useNavigate"),r=v.useRef(!1);return zb(()=>{r.current=!0}),v.useCallback(async(o,c={})=>{_n(r.current,Ob),r.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var sx={};function qb(n,a,r){!a&&!sx[n]&&(sx[n]=!0,_n(!1,r))}v.memo(XC);function XC({routes:n,future:a,state:r}){return Ub(n,void 0,r,a)}function Ma({to:n,replace:a,state:r,relative:i}){at(zi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=v.useContext($n);_n(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Qn),{pathname:h}=Ba(),m=Lb(),p=Mm(n,Rm(c),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:a,state:r,relative:i})},[m,g,i,a,r]),null}function Sn(n){at(!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 FC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:o,static:c=!1}){at(!zi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:o,static:c,future:{}}),[h,o,c]);typeof r=="string"&&(r=pr(r));let{pathname:p="/",search:g="",hash:x="",state:y=null,key:b="default"}=r,S=v.useMemo(()=>{let E=Ua(p,h);return E==null?null:{location:{pathname:E,search:g,hash:x,state:y,key:b},navigationType:i}},[h,p,g,x,y,b,i]);return _n(S!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:v.createElement($n.Provider,{value:m},v.createElement(uo.Provider,{children:a,value:S}))}function ZC({children:n,location:a}){return zC(em(n),a)}function em(n,a=[]){let r=[];return v.Children.forEach(n,(i,o)=>{if(!v.isValidElement(i))return;let c=[...a,o];if(i.type===v.Fragment){r.push.apply(r,em(i.props.children,c));return}at(i.type===Sn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=em(i.props.children,c)),r.push(h)}),r}var Iu="get",Wu="application/x-www-form-urlencoded";function Cc(n){return n!=null&&typeof n.tagName=="string"}function PC(n){return Cc(n)&&n.tagName.toLowerCase()==="button"}function JC(n){return Cc(n)&&n.tagName.toLowerCase()==="form"}function IC(n){return Cc(n)&&n.tagName.toLowerCase()==="input"}function WC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function e_(n,a){return n.button===0&&(!a||a==="_self")&&!WC(n)}var Bu=null;function t_(){if(Bu===null)try{new FormData(document.createElement("form"),0),Bu=!1}catch{Bu=!0}return Bu}var n_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jh(n){return n!=null&&!n_.has(n)?(_n(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wu}"`),null):n}function a_(n,a){let r,i,o,c,h;if(JC(n)){let m=n.getAttribute("action");i=m?Ua(m,a):null,r=n.getAttribute("method")||Iu,o=jh(n.getAttribute("enctype"))||Wu,c=new FormData(n)}else if(PC(n)||IC(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?Ua(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Iu,o=jh(n.getAttribute("formenctype"))||jh(m.getAttribute("enctype"))||Wu,c=new FormData(m,n),!t_()){let{name:g,type:x,value:y}=n;if(x==="image"){let b=g?`${g}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else g&&c.append(g,y)}}else{if(Cc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Iu,i=null,o=Wu,h=n}return c&&o==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:c,body:h}}function Om(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function l_(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r_(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function i_(n,a,r){let i=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let h=await l_(c,r);return h.links?h.links():[]}return[]}));return c_(i.flat(1).filter(r_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ox(n,a,r,i,o,c){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var x;return r[g].pathname!==p.pathname||((x=r[g].route.path)==null?void 0:x.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):c==="data"?a.filter((p,g)=>{var y;let x=i.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=r[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function s_(n,a,{includeHydrateFallback:r}={}){return o_(n.map(i=>{let o=a.routes[i.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function o_(n){return[...new Set(n)]}function u_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function c_(n,a){let r=new Set;return new Set(a),n.reduce((i,o)=>{let c=JSON.stringify(u_(o));return r.has(c)||(r.add(c),i.push({key:c,link:o})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var d_=new Set([100,101,204,205]);function f_(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&Ua(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Hb(){let n=v.useContext(Oi);return Om(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function h_(){let n=v.useContext(Nc);return Om(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zm=v.createContext(void 0);zm.displayName="FrameworkContext";function Bb(){let n=v.useContext(zm);return Om(n,"You must render this element inside a <HydratedRouter> element"),n}function m_(n,a){let r=v.useContext(zm),[i,o]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:x,onTouchStart:y}=a,b=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let j=_=>{_.forEach(T=>{h(T.isIntersecting)})},C=new IntersectionObserver(j,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let j=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(j)}}},[i]);let S=()=>{o(!0)},E=()=>{o(!1),h(!1)};return r?n!=="intent"?[c,b,{}]:[c,b,{onFocus:Ys(m,S),onBlur:Ys(p,E),onMouseEnter:Ys(g,S),onMouseLeave:Ys(x,E),onTouchStart:Ys(y,S)}]:[!1,b,{}]}function Ys(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function p_({page:n,...a}){let{router:r}=Hb(),i=v.useMemo(()=>Rb(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(g_,{page:n,matches:i,...a}):null}function v_(n){let{manifest:a,routeModules:r}=Bb(),[i,o]=v.useState([]);return v.useEffect(()=>{let c=!1;return i_(n,a,r).then(h=>{c||o(h)}),()=>{c=!0}},[n,a,r]),i}function g_({page:n,matches:a,...r}){let i=Ba(),{manifest:o,routeModules:c}=Bb(),{basename:h}=Hb(),{loaderData:m,matches:p}=h_(),g=v.useMemo(()=>ox(n,a,p,o,i,"data"),[n,a,p,o,i]),x=v.useMemo(()=>ox(n,a,p,o,i,"assets"),[n,a,p,o,i]),y=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,j=!1;if(a.forEach(_=>{var R;let T=o.routes[_.route.id];!T||!T.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((R=c[_.route.id])!=null&&R.shouldRevalidate)||T.hasClientLoader?j=!0:E.add(_.route.id))}),E.size===0)return[];let C=f_(n,h);return j&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,o,g,a,n,c]),b=v.useMemo(()=>s_(x,o),[x,o]),S=v_(x);return v.createElement(v.Fragment,null,y.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),S.map(({key:E,link:j})=>v.createElement("link",{key:E,...j})))}function y_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var $b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$b&&(window.__reactRouterVersion="7.6.1")}catch{}function x_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=iC({window:r,v5Compat:!0}));let o=i.current,[c,h]=v.useState({action:o.action,location:o.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>o.listen(m),[o,m]),v.createElement(FC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var Qb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:o,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:x,viewTransition:y,...b},S){let{basename:E}=v.useContext($n),j=typeof g=="string"&&Qb.test(g),C,_=!1;if(typeof g=="string"&&j&&(C=g,$b))try{let G=new URL(window.location.href),ee=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=Ua(ee.pathname,E);ee.origin===G.origin&&ue!=null?g=ue+ee.search+ee.hash:_=!0}catch{_n(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=DC(g,{relative:o}),[R,D,U]=m_(i,b),K=S_(g,{replace:h,state:m,target:p,preventScrollReset:x,relative:o,viewTransition:y});function H(G){a&&a(G),G.defaultPrevented||K(G)}let q=v.createElement("a",{...b,...U,href:C||T,onClick:_||c?a:H,ref:y_(S,D),target:p,"data-discover":!j&&r==="render"?"true":void 0});return R&&!j?v.createElement(v.Fragment,null,q,v.createElement(p_,{page:T})):q});Pt.displayName="Link";var b_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:o=!1,style:c,to:h,viewTransition:m,children:p,...g},x){let y=co(h,{relative:g.relative}),b=Ba(),S=v.useContext(Nc),{navigator:E,basename:j}=v.useContext($n),C=S!=null&&T_(y)&&m===!0,_=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,T=b.pathname,R=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(T=T.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&j&&(R=Ua(R,j)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let U=T===_||!o&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!o&&R.startsWith(_)&&R.charAt(_.length)==="/"),H={isActive:U,isPending:K,isTransitioning:C},q=U?a:void 0,G;typeof i=="function"?G=i(H):G=[i,U?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ee=typeof c=="function"?c(H):c;return v.createElement(Pt,{...g,"aria-current":q,className:G,ref:x,style:ee,to:h,viewTransition:m},typeof p=="function"?p(H):p)});b_.displayName="NavLink";var w_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:o,state:c,method:h=Iu,action:m,onSubmit:p,relative:g,preventScrollReset:x,viewTransition:y,...b},S)=>{let E=C_(),j=__(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Qb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,U=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||R.currentTarget,{fetcherKey:a,method:U,navigate:r,replace:o,state:c,relative:g,preventScrollReset:x,viewTransition:y})};return v.createElement("form",{ref:S,method:C,action:j,onSubmit:i?p:T,...b,"data-discover":!_&&n==="render"?"true":void 0})});w_.displayName="Form";function j_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gb(n){let a=v.useContext(Oi);return at(a,j_(n)),a}function S_(n,{target:a,replace:r,state:i,preventScrollReset:o,relative:c,viewTransition:h}={}){let m=Lb(),p=Ba(),g=co(n,{relative:c});return v.useCallback(x=>{if(e_(x,a)){x.preventDefault();let y=r!==void 0?r:eo(p)===eo(g);m(n,{replace:y,state:i,preventScrollReset:o,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,o,c,h])}var E_=0,N_=()=>`__${String(++E_)}__`;function C_(){let{router:n}=Gb("useSubmit"),{basename:a}=v.useContext($n),r=YC();return v.useCallback(async(i,o={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=a_(i,a);if(o.navigate===!1){let x=o.fetcherKey||N_();await n.fetch(x,r,o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,flushSync:o.flushSync})}else await n.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,r])}function __(n,{relative:a}={}){let{basename:r}=v.useContext($n),i=v.useContext(Qn);at(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),c={...co(n||".",{relative:a})},h=Ba();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(x=>x==="")){m.delete("index"),p.filter(y=>y).forEach(y=>m.append("index",y));let x=m.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:za([r,c.pathname])),eo(c)}function T_(n,a={}){let r=v.useContext(Db);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gb("useViewTransitionState"),o=co(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=Ua(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ua(r.nextLocation.pathname,i)||r.nextLocation.pathname;return sc(o.pathname,h)!=null||sc(o.pathname,c)!=null}[...d_];var fo=Tb();const Yb=hb(fo);/**
|
|
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 R_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),M_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ux=n=>{const a=M_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Vb=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.488.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var A_={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 k_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...A_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Vb("lucide",o),...m},[...h.map(([g,x])=>v.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
|
|
67
|
+
* @license lucide-react v0.488.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Ye=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(k_,{ref:c,iconNode:a,className:Vb(`lucide-${R_(ux(n))}`,`lucide-${n}`,i),...o}));return r.displayName=ux(n),r};/**
|
|
72
|
+
* @license lucide-react v0.488.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const D_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],O_=Ye("archive",D_);/**
|
|
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 z_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],L_=Ye("arrow-left",z_);/**
|
|
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 U_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],q_=Ye("ban",U_);/**
|
|
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 H_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],B_=Ye("bell",H_);/**
|
|
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 $_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kb=Ye("chevron-down",$_);/**
|
|
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 Q_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ho=Ye("chevron-left",Q_);/**
|
|
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 G_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vr=Ye("chevron-right",G_);/**
|
|
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 Y_=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],V_=Ye("chevrons-down-up",Y_);/**
|
|
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 K_=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],X_=Ye("chevrons-up-down",K_);/**
|
|
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 F_=[["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"}]],Z_=Ye("circle-alert",F_);/**
|
|
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 P_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rl=Ye("circle-check",P_);/**
|
|
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 J_=[["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"}]],Li=Ye("circle-x",J_);/**
|
|
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 I_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],gr=Ye("clock",I_);/**
|
|
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 W_=[["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"}]],Xb=Ye("columns-3",W_);/**
|
|
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 eT=[["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"}]],tT=Ye("database",eT);/**
|
|
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 nT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],aT=Ye("folder-open",nT);/**
|
|
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 lT=[["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"}]],rT=Ye("git-branch",lT);/**
|
|
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 iT=[["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"}]],sT=Ye("inbox",iT);/**
|
|
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 oT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Fb=Ye("info",oT);/**
|
|
167
|
+
* @license lucide-react v0.488.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const uT=[["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"}]],Zb=Ye("key",uT);/**
|
|
172
|
+
* @license lucide-react v0.488.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const cT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qn=Ye("loader-circle",cT);/**
|
|
177
|
+
* @license lucide-react v0.488.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const dT=[["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"}]],fT=Ye("mail-warning",dT);/**
|
|
182
|
+
* @license lucide-react v0.488.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const hT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Lm=Ye("play",hT);/**
|
|
187
|
+
* @license lucide-react v0.488.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const mT=[["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"}]],mo=Ye("refresh-cw",mT);/**
|
|
192
|
+
* @license lucide-react v0.488.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const pT=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],vT=Ye("repeat",pT);/**
|
|
197
|
+
* @license lucide-react v0.488.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const gT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Pb=Ye("search",gT);/**
|
|
202
|
+
* @license lucide-react v0.488.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const yT=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xT=Ye("settings",yT);/**
|
|
207
|
+
* @license lucide-react v0.488.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const bT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],wT=Ye("shield",bT);/**
|
|
212
|
+
* @license lucide-react v0.488.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const jT=[["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"}]],_c=Ye("table",jT);/**
|
|
217
|
+
* @license lucide-react v0.488.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const ST=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],ET=Ye("timer",ST);/**
|
|
222
|
+
* @license lucide-react v0.488.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const NT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],CT=Ye("zap",NT);function Jb(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(a=0;a<n.length;a++)n[a]&&(r=Jb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function _T(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Jb(n))&&(i&&(i+=" "),i+=a);return i}const Um="-",TT=n=>{const a=MT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:o=>{const c=o.split(Um);return c[0]===""&&c.length!==1&&c.shift(),Ib(c,a)||RT(o)},getConflictingClassGroupIds:(o,c)=>{const h=r[o]||[];return c&&i[o]?[...h,...i[o]]:h}}},Ib=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],o=a.nextPart.get(i),c=o?Ib(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(Um);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},cx=/^\[(.+)\]$/,RT=n=>{if(cx.test(n)){const a=cx.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},MT=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const o in r)tm(r[o],i,o,a);return i},tm=(n,a,r,i)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:dx(a,o);c.classGroupId=r;return}if(typeof o=="function"){if(AT(o)){tm(o(i),a,r,i);return}a.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,h])=>{tm(h,dx(a,c),r,i)})})},dx=(n,a)=>{let r=n;return a.split(Um).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},AT=n=>n.isThemeGetter,kT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const o=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return o(c,h),h},set(c,h){r.has(c)?r.set(c,h):o(c,h)}}},nm="!",am=":",DT=am.length,OT=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=o=>{const c=[];let h=0,m=0,p=0,g;for(let E=0;E<o.length;E++){let j=o[E];if(h===0&&m===0){if(j===am){c.push(o.slice(p,E)),p=E+DT;continue}if(j==="/"){g=E;continue}}j==="["?h++:j==="]"?h--:j==="("?m++:j===")"&&m--}const x=c.length===0?o:o.substring(p),y=zT(x),b=y!==x,S=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:S}};if(a){const o=a+am,c=i;i=h=>h.startsWith(o)?c(h.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=c=>r({className:c,parseClassName:o})}return i},zT=n=>n.endsWith(nm)?n.substring(0,n.length-1):n.startsWith(nm)?n.substring(1):n,LT=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...o.sort(),c),o=[]):o.push(c)}),i.push(...o.sort()),i}},UT=n=>({cache:kT(n.cacheSize),parseClassName:OT(n),sortModifiers:LT(n),...TT(n)}),qT=/\s+/,HT=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:c}=a,h=[],m=n.trim().split(qT);let p="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:y,modifiers:b,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:j}=r(x);if(y){p=x+(p.length>0?" "+p:p);continue}let C=!!j,_=i(C?E.substring(0,j):E);if(!_){if(!C){p=x+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=x+(p.length>0?" "+p:p);continue}C=!1}const T=c(b).join(":"),R=S?T+nm:T,D=R+_;if(h.includes(D))continue;h.push(D);const U=o(_,C);for(let K=0;K<U.length;++K){const H=U[K];h.push(R+H)}p=x+(p.length>0?" "+p:p)}return p};function BT(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Wb(a))&&(i&&(i+=" "),i+=r);return i}const Wb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Wb(n[i]))&&(r&&(r+=" "),r+=a);return r};function $T(n,...a){let r,i,o,c=h;function h(p){const g=a.reduce((x,y)=>y(x),n());return r=UT(g),i=r.cache.get,o=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const x=HT(p,r);return o(p,x),x}return function(){return c(BT.apply(null,arguments))}}const jt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},e1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,t1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QT=/^\d+\/\d+$/,GT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YT=/\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$/,VT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=n=>QT.test(n),ke=n=>!!n&&!Number.isNaN(Number(n)),pl=n=>!!n&&Number.isInteger(Number(n)),Sh=n=>n.endsWith("%")&&ke(n.slice(0,-1)),Aa=n=>GT.test(n),FT=()=>!0,ZT=n=>YT.test(n)&&!VT.test(n),n1=()=>!1,PT=n=>KT.test(n),JT=n=>XT.test(n),IT=n=>!he(n)&&!me(n),WT=n=>Ui(n,r1,n1),he=n=>e1.test(n),Wl=n=>Ui(n,i1,ZT),Eh=n=>Ui(n,lR,ke),fx=n=>Ui(n,a1,n1),eR=n=>Ui(n,l1,JT),$u=n=>Ui(n,s1,PT),me=n=>t1.test(n),Vs=n=>qi(n,i1),tR=n=>qi(n,rR),hx=n=>qi(n,a1),nR=n=>qi(n,r1),aR=n=>qi(n,l1),Qu=n=>qi(n,s1,!0),Ui=(n,a,r)=>{const i=e1.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},qi=(n,a,r=!1)=>{const i=t1.exec(n);return i?i[1]?a(i[1]):r:!1},a1=n=>n==="position"||n==="percentage",l1=n=>n==="image"||n==="url",r1=n=>n==="length"||n==="size"||n==="bg-size",i1=n=>n==="length",lR=n=>n==="number",rR=n=>n==="family-name",s1=n=>n==="shadow",iR=()=>{const n=jt("color"),a=jt("font"),r=jt("text"),i=jt("font-weight"),o=jt("tracking"),c=jt("leading"),h=jt("breakpoint"),m=jt("container"),p=jt("spacing"),g=jt("radius"),x=jt("shadow"),y=jt("inset-shadow"),b=jt("text-shadow"),S=jt("drop-shadow"),E=jt("blur"),j=jt("perspective"),C=jt("aspect"),_=jt("ease"),T=jt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...D(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[me,he,p],G=()=>[ii,"full","auto",...q()],ee=()=>[pl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",pl,me,he]},pl,me,he],ce=()=>[pl,"auto",me,he],ie=()=>["auto","min","max","fr",me,he],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...q()],J=()=>[ii,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[n,me,he],X=()=>[...D(),hx,fx,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",nR,WT,{size:[me,he]}],F=()=>[Sh,Vs,Wl],W=()=>["","none","full",g,me,he],le=()=>["",ke,Vs,Wl],ve=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[ke,Sh,hx,fx],Ee=()=>["","none",E,me,he],ye=()=>["none",ke,me,he],Ne=()=>["none",ke,me,he],Be=()=>[ke,me,he],Ke=()=>[ii,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Aa],breakpoint:[Aa],color:[FT],container:[Aa],"drop-shadow":[Aa],ease:["in","out","in-out"],font:[IT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Aa],shadow:[Aa],spacing:["px",ke],text:[Aa],"text-shadow":[Aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ii,he,me,C]}],container:["container"],columns:[{columns:[ke,he,me,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:U()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[pl,"auto",me,he]}],basis:[{basis:[ii,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,ii,"auto","initial","none",he]}],grow:[{grow:["",ke,me,he]}],shrink:[{shrink:["",ke,me,he]}],order:[{order:[pl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"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,Vs,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,Eh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sh,he]}],"font-family":[{font:[tR,he,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,he]}],"line-clamp":[{"line-clamp":[ke,"none",me,Eh]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",me,Wl]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ke,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pl,me,he],radial:["",me,he],conic:[pl,me,he]},aR,eR]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,me,he]}],"outline-w":[{outline:["",ke,Vs,Wl]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",x,Qu,$u]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",y,Qu,$u]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ke,Wl]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",b,Qu,$u]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ke,me,he]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:Ee()}],brightness:[{brightness:[ke,me,he]}],contrast:[{contrast:[ke,me,he]}],"drop-shadow":[{"drop-shadow":["","none",S,Qu,$u]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ke,me,he]}],"hue-rotate":[{"hue-rotate":[ke,me,he]}],invert:[{invert:["",ke,me,he]}],saturate:[{saturate:[ke,me,he]}],sepia:[{sepia:["",ke,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[ke,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[ke,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,me,he]}],"backdrop-invert":[{"backdrop-invert":["",ke,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[ke,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[ke,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[ke,me,he]}],animate:[{animate:["none",T,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,me,he]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Be()}],"skew-x":[{"skew-x":Be()}],"skew-y":[{"skew-y":Be()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[ke,Vs,Wl,Eh]}],stroke:[{stroke:["none",...Y()]}],"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"]}},sR=$T(iR);function pe(...n){return sR(_T(n))}function ci(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const oR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},uR={sm:"dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]",md:"dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]",lg:"dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]"};function oc({children:n,className:a,rounded:r="lg",shadow:i="md",...o}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",oR[r],uR[i],a),...o,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function gt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...o}){return u.jsx(oc,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...o,children:i})}function _t({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:pe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Tt({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:pe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Bt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function yt({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
|
|
227
|
+
* @license lucide-react v0.511.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const cR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),mx=n=>{const a=dR(n);return a.charAt(0).toUpperCase()+a.slice(1)},o1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),fR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
232
|
+
* @license lucide-react v0.511.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/var hR={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"};/**
|
|
237
|
+
* @license lucide-react v0.511.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const mR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...hR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:o1("lucide",o),...!c&&!fR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,x])=>v.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
|
|
242
|
+
* @license lucide-react v0.511.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const Gn=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(mR,{ref:c,iconNode:a,className:o1(`lucide-${cR(mx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=mx(n),r};/**
|
|
247
|
+
* @license lucide-react v0.511.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const pR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],u1=Gn("check",pR);/**
|
|
252
|
+
* @license lucide-react v0.511.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const vR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gR=Gn("chevron-down",vR);/**
|
|
257
|
+
* @license lucide-react v0.511.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const yR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],px=Gn("chevron-left",yR);/**
|
|
262
|
+
* @license lucide-react v0.511.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const xR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vx=Gn("chevron-right",xR);/**
|
|
267
|
+
* @license lucide-react v0.511.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const bR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wR=Gn("chevron-up",bR);/**
|
|
272
|
+
* @license lucide-react v0.511.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const jR=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],SR=Gn("clipboard",jR);/**
|
|
277
|
+
* @license lucide-react v0.511.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const ER=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],NR=Gn("file-json",ER);/**
|
|
282
|
+
* @license lucide-react v0.511.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const CR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],_R=Gn("file-spreadsheet",CR);/**
|
|
287
|
+
* @license lucide-react v0.511.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const TR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],RR=Gn("loader-circle",TR);/**
|
|
292
|
+
* @license lucide-react v0.511.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const MR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],AR=Gn("search",MR);/**
|
|
297
|
+
* @license lucide-react v0.511.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const kR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],DR=Gn("x",kR);function OR(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${String(a)}s ago`:a<3600?`${String(Math.floor(a/60))}m ago`:a<86400?`${String(Math.floor(a/3600))}h ago`:a<604800?`${String(Math.floor(a/86400))}d ago`:n.toLocaleDateString()}function Nh({value:n}){const[a,r]=v.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select();try{document.execCommand("copy")}catch{}document.body.removeChild(o),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:pe("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?u.jsx(u1,{className:"w-3 h-3"}):u.jsx(SR,{className:"w-3 h-3"})})}function cn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[o,c]=v.useState(!1),[,h]=v.useState(0),m=i||o;if(v.useEffect(()=>{const b=setInterval(()=>{h(S=>S+1)},1e3);return()=>{clearInterval(b)}},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),x=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),y=OR(p);return u.jsxs("div",{className:pe("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:y}),u.jsx("div",{className:pe("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:u.jsx(oc,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:u.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof r=="object"?JSON.stringify(r):String(r)}),u.jsx(Nh,{value:typeof r=="object"?JSON.stringify(r):String(r)})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),u.jsx(Nh,{value:g})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:x}),u.jsx(Nh,{value:x})]})]})]})})})]})}function zR(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function LR(n){return typeof n!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(a=>a.test(n))}function UR(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function qR(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&UR(n)?"date":typeof i=="number"?"number":LR(i)?"date":"string"}return"string"}function c1({results:n,meta:a,columns:r,error:i,title:o="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const g=n??[],[x,y]=v.useState(""),[b,S]=v.useState(null),[E,j]=v.useState(new Set),[C,_]=v.useState(1),T=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,D=p?Math.ceil(p.total/p.limit):1,U=v.useMemo(()=>r||(g.length===0?[]:Object.keys(g[0]).map(ae=>({key:ae,label:ae,type:qR(ae,g)}))),[r,g]),K=v.useMemo(()=>x?g.filter(ae=>Object.values(ae).some(re=>String(re).toLowerCase().includes(x.toLowerCase()))):g,[g,x]),H=v.useMemo(()=>b?[...K].sort((ae,re)=>{const z=ae[b.key],J=re[b.key];return z==null?1:J==null?-1:z<J?b.direction==="asc"?-1:1:z>J?b.direction==="asc"?1:-1:0}):K,[K,b]),q=Math.ceil(H.length/c),G=v.useMemo(()=>{const ae=(C-1)*c;return H.slice(ae,ae+c)},[H,C,c]);v.useMemo(()=>{_(1)},[x,b]);const ee=ae=>{S(re=>(re==null?void 0:re.key)===ae?re.direction==="asc"?{key:ae,direction:"desc"}:null:{key:ae,direction:"asc"})},ue=()=>{E.size===G.length?j(new Set):j(new Set(G.map((ae,re)=>re)))},ce=ae=>{const re=new Set(E);re.has(ae)?re.delete(ae):re.add(ae),j(re)},ie=(ae,re)=>{const z=ae[re.key];if(z==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(re.type??"string"){case"bool":return z===!0?u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(u1,{className:"w-3.5 h-3.5"})}):u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(DR,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(cn,{timestamp:z,rawValue:typeof z=="number"?z:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof z=="number"?z.toLocaleString():JSON.stringify(z)});default:return typeof z=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(z)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof z=="object"?JSON.stringify(z):String(z)})}};return i?u.jsxs(oc,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[u.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:u.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),u.jsx("div",{className:"p-5",children:u.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):u.jsxs(oc,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:o}),a&&u.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:zR(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[g.length," row",g.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(AR,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 group-focus-within:text-blue-500 transition-colors"}),u.jsx("input",{type:"text",placeholder:"Search results...",value:x,onChange:ae=>{y(ae.target.value)},className:"pl-9 pr-4 py-2 rounded-lg text-sm bg-gray-100 dark:bg-white/[0.06] border border-transparent focus:bg-white dark:focus:bg-black focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all w-full sm:w-64 dark:text-white text-gray-900 placeholder-gray-500"})]}),(h??m)&&u.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&u.jsx("button",{onClick:h,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export CSV",children:u.jsx(_R,{className:"w-4 h-4"})}),m&&u.jsx("button",{onClick:m,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export JSON",children:u.jsx(NR,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.jsx("input",{type:"checkbox",checked:E.size===G.length&&G.length>0,onChange:ue,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(ae=>u.jsx("th",{className:"p-4 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400 cursor-pointer hover:text-blue-500 dark:hover:text-blue-400 transition-colors select-none group",onClick:()=>{ee(ae.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[ae.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===ae.key&&"opacity-100"),children:[u.jsx(wR,{className:pe("w-2 h-2",(b==null?void 0:b.key)===ae.key&&b.direction==="asc"&&"text-blue-500")}),u.jsx(gR,{className:pe("w-2 h-2",(b==null?void 0:b.key)===ae.key&&b.direction==="desc"&&"text-blue-500")})]})]})},ae.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:G.length>0?G.map((ae,re)=>u.jsxs("tr",{className:pe("group transition-colors",E.has(re)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[u.jsx("td",{className:"p-4",children:u.jsx("input",{type:"checkbox",checked:E.has(re),onChange:()=>{ce(re)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(z=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ie(ae,z)},`${String(re)}-${z.key}`))]},re)):u.jsx("tr",{children:u.jsx("td",{colSpan:U.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:x?`No results found matching "${x}"`:"Query executed successfully. No rows returned."})})})]})}),u.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[u.jsxs("div",{children:[T?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+g.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:G.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","results"]}),E.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[E.size," row",E.size!==1?"s":""," ","selected"]})]}),T&&D>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{p.onPageChange(Math.max(0,p.offset-p.limit))},disabled:R===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(px,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(D,5)},(ae,re)=>{let z;return D<=5||R<=3?z=re+1:R>=D-2?z=D-4+re:z=R-2+re,u.jsx("button",{onClick:()=>{p.onPageChange((z-1)*p.limit)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",R===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:R===D,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(vx,{className:"w-4 h-4"})})]}),!T&&q>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{_(ae=>Math.max(1,ae-1))},disabled:C===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(px,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(ae,re)=>{let z;return q<=5||C<=3?z=re+1:C>=q-2?z=q-4+re:z=C-2+re,u.jsx("button",{onClick:()=>{_(z)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",C===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{_(ae=>Math.min(q,ae+1))},disabled:C===q,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(vx,{className:"w-4 h-4"})})]})]})]})}function na({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function aa({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function la({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function xt({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function Me({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:pe("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function Ae({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function gx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function po(...n){return a=>{let r=!1;const i=n.map(o=>{const c=gx(o,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():gx(n[o],null)}}}}function we(...n){return v.useCallback(po(...n),n)}function dr(n){const a=HR(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(BR);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}var yx=dr("Slot");function HR(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r;if(v.isValidElement(o)){const h=QR(o),m=$R(c,o.props);return o.type!==v.Fragment&&(m.ref=i?po(i,h):h),v.cloneElement(o,m)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var d1=Symbol("radix.slottable");function f1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=d1,a}function BR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===d1}function $R(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function QR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function h1(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(r=h1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function GR(){for(var n,a,r=0,i="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=h1(n))&&(i&&(i+=" "),i+=a);return i}const xx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,bx=GR,m1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return bx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:c}=a,h=Object.keys(o).map(g=>{const x=r==null?void 0:r[g],y=c==null?void 0:c[g];if(x===null)return null;const b=xx(x)||xx(y);return o[g][b]}),m=r&&Object.entries(r).reduce((g,x)=>{let[y,b]=x;return b===void 0||(g[y]=b),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:y,className:b,...S}=x;return Object.entries(S).every(E=>{let[j,C]=E;return Array.isArray(C)?C.includes({...c,...m}[j]):{...c,...m}[j]===C})?[...g,y,b]:g},[]);return bx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},YR={default:"text-gray-600 bg-gray-100 border-gray-200 dark:text-gray-400 dark:bg-gray-900 dark:border-gray-500/20",success:"text-green-600 bg-green-50 border-green-200 dark:text-green-400 dark:bg-green-950 dark:border-green-500/20",error:"text-red-600 bg-red-50 border-red-200 dark:text-red-400 dark:bg-red-950 dark:border-red-500/20",warning:"text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-400 dark:bg-yellow-950 dark:border-yellow-500/20",purple:"text-purple-600 bg-purple-50 border-purple-200 dark:text-purple-400 dark:bg-purple-950 dark:border-purple-500/20",blue:"text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-500/20",orange:"text-orange-600 bg-orange-50 border-orange-200 dark:text-orange-400 dark:bg-orange-950 dark:border-orange-500/20",emerald:"text-emerald-600 bg-emerald-50 border-emerald-200 dark:text-emerald-400 dark:bg-emerald-950 dark:border-emerald-500/20"};function Ti({className:n,icon:a,variant:r="default",children:i,...o}){return u.jsxs("div",{className:pe("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",YR[r],n),...o,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const wx=m1("relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent dark:focus-visible:ring-white/20 focus-visible:ring-black/10 cursor-pointer overflow-hidden",{variants:{variant:{default:"rounded-md bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",primary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-white/[0.08] bg-black/[0.05]","dark:border-white/[0.1] border-black/[0.1]","dark:text-white text-gray-900","dark:hover:bg-white/[0.15] hover:bg-black/[0.1]","dark:hover:border-white/[0.2] hover:border-black/[0.2]"),secondary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.05] hover:bg-black/[0.04]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.15] hover:border-gray-300"),destructive:"rounded-md bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",danger:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-red-500/[0.1] bg-red-500/[0.05]","dark:border-red-500/[0.2] border-red-500/[0.2]","dark:text-red-400 text-red-600","dark:hover:bg-red-500/[0.2] hover:bg-red-500/[0.1]","dark:hover:border-red-500/[0.3] hover:border-red-500/[0.3]"),success:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-emerald-500/[0.1] bg-emerald-500/[0.05]","dark:border-emerald-500/[0.2] border-emerald-500/[0.2]","dark:text-emerald-400 text-emerald-600","dark:hover:bg-emerald-500/[0.2] hover:bg-emerald-500/[0.1]","dark:hover:border-emerald-500/[0.3] hover:border-emerald-500/[0.3]"),outline:"rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:pe("rounded-lg border border-transparent","dark:text-gray-400 text-gray-600","dark:hover:text-white hover:text-gray-900","dark:hover:bg-white/[0.08] hover:bg-black/[0.06]"),link:"text-primary underline-offset-4 hover:underline",icon:pe("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),VR=["primary","secondary","danger","success","icon"];function He({className:n,variant:a,size:r,asChild:i=!1,isLoading:o=!1,children:c,disabled:h,...m}){const p=i?yx:"button",g=a&&VR.includes(a);return i?u.jsx(yx,{"data-slot":"button",className:pe(wx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(wx({variant:a,size:r,className:n})),disabled:h===!0||o,...m,children:[g&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[o&&u.jsx(RR,{className:"size-4 animate-spin"}),c]})]})}const p1=({ref:n,className:a,active:r=!1,icon:i,children:o,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:pe("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),o,u.jsx("span",{className:pe("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})};p1.displayName="TabButton";const KR={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function qm({className:n,label:a,error:r,leftIcon:i,rightContent:o,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.jsxs("div",{className:pe("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.jsx("input",{className:pe("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",KR[c],i&&"pl-2",o!==null&&"pr-2"),...h}),o&&u.jsx("div",{className:"relative z-10 pr-3",children:o})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var XR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=XR.reduce((n,a)=>{const r=dr(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function uc(n,a){n&&fo.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function FR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Et=n=>{const{present:a,children:r}=n,i=ZR(a),o=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,PR(o));return typeof r=="function"||i.isPresent?v.cloneElement(o,{ref:c}):null};Et.displayName="Presence";function ZR(n){const[a,r]=v.useState(),i=v.useRef(null),o=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=FR(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Gu(i.current);c.current=m==="mounted"?g:"none"},[m]),lt(()=>{const g=i.current,x=o.current;if(x!==n){const y=c.current,b=Gu(g);n?p("MOUNT"):b==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(x&&y!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,p]),lt(()=>{if(a){let g;const x=a.ownerDocument.defaultView??window,y=S=>{const E=Gu(i.current).includes(CSS.escape(S.animationName));if(S.target===a&&E&&(p("ANIMATION_END"),!o.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",g=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},b=S=>{S.target===a&&(c.current=Gu(i.current))};return a.addEventListener("animationstart",b),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{x.clearTimeout(g),a.removeEventListener("animationstart",b),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Gu(n){return(n==null?void 0:n.animationName)||"none"}function PR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function JR(n,a){const r=v.createContext(a),i=c=>{const{children:h,...m}=c,p=v.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function o(c){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,o]}function bt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=y=>{var b;const{scope:S,children:E,...j}=y,C=((b=S==null?void 0:S[n])==null?void 0:b[p])||m,_=v.useMemo(()=>j,Object.values(j));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function x(y,b){var S;const E=((S=b==null?void 0:b[n])==null?void 0:S[p])||m,j=v.useContext(E);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[g,x]}const o=()=>{const c=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return o.scopeName=n,[i,IR(o,...a)]}function IR(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(o)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function nt(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var WR=v.createContext(void 0);function Hi(n){const a=v.useContext(WR);return n||a||"ltr"}function lm(n,[a,r]){return Math.min(r,Math.max(a,n))}function ne(n,a,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return a==null?void 0:a(i)}}function eM(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Hm="ScrollArea",[v1,Vz]=bt(Hm),[tM,Tn]=v1(Hm),g1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,x]=v.useState(null),[y,b]=v.useState(null),[S,E]=v.useState(null),[j,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[U,K]=v.useState(!1),[H,q]=v.useState(!1),G=we(a,ue=>p(ue)),ee=Hi(o);return u.jsx(tM,{scope:r,type:i,dir:ee,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:x,content:y,onContentChange:b,scrollbarX:S,onScrollbarXChange:E,scrollbarXEnabled:U,onScrollbarXEnabledChange:K,scrollbarY:j,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(se.div,{dir:ee,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});g1.displayName=Hm;var y1="ScrollAreaViewport",x1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:o,...c}=n,h=Tn(y1,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(se.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});x1.displayName=y1;var ra="ScrollAreaScrollbar",b1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Tn(ra,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=o,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),o.type==="hover"?u.jsx(nM,{...i,ref:a,forceMount:r}):o.type==="scroll"?u.jsx(aM,{...i,ref:a,forceMount:r}):o.type==="auto"?u.jsx(w1,{...i,ref:a,forceMount:r}):o.type==="always"?u.jsx(Bm,{...i,ref:a}):null});b1.displayName=ra;var nM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Tn(ra,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=o.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},x=()=>{p=window.setTimeout(()=>h(!1),o.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Et,{present:r||c,children:u.jsx(w1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),aM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Tn(ra,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Rc(()=>p("SCROLL_END"),100),[m,p]=eM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,o.scrollHideDelay,p]),v.useEffect(()=>{const g=o.viewport,x=c?"scrollLeft":"scrollTop";if(g){let y=g[x];const b=()=>{const S=g[x];y!==S&&(p("SCROLL"),h()),y=S};return g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[o.viewport,c,p,h]),u.jsx(Et,{present:r||m!=="hidden",children:u.jsx(Bm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ne(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ne(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),w1=v.forwardRef((n,a)=>{const r=Tn(ra,n.__scopeScrollArea),{forceMount:i,...o}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Rc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,x=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:x)}},10);return Ri(r.viewport,p),Ri(r.content,p),u.jsx(Et,{present:i||c,children:u.jsx(Bm,{"data-state":c?"visible":"hidden",...o,ref:a})})}),Bm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,o=Tn(ra,n.__scopeScrollArea),c=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=C1(m.viewport,m.content),x={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:b=>c.current=b,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:b=>h.current=b};function y(b,S){return uM(b,h.current,m,S)}return r==="horizontal"?u.jsx(lM,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const b=o.viewport.scrollLeft,S=jx(b,m,o.dir);c.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=y(b,o.dir))}}):r==="vertical"?u.jsx(rM,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const b=o.viewport.scrollTop,S=jx(b,m);c.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=y(b))}}):null}),lM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Tn(ra,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(S1,{"data-orientation":"horizontal",...o,ref:g,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Tc(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.x),onDragScroll:x=>n.onDragScroll(x.x),onWheelScroll:(x,y)=>{if(c.viewport){const b=c.viewport.scrollLeft+x.deltaX;n.onWheelScroll(b),T1(b,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:dc(h.paddingLeft),paddingEnd:dc(h.paddingRight)}})}})}),rM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Tn(ra,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(S1,{"data-orientation":"vertical",...o,ref:g,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Tc(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.y),onDragScroll:x=>n.onDragScroll(x.y),onWheelScroll:(x,y)=>{if(c.viewport){const b=c.viewport.scrollTop+x.deltaY;n.onWheelScroll(b),T1(b,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:dc(h.paddingTop),paddingEnd:dc(h.paddingBottom)}})}})}),[iM,j1]=v1(ra),S1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:x,onResize:y,...b}=n,S=Tn(ra,r),[E,j]=v.useState(null),C=we(a,G=>j(G)),_=v.useRef(null),T=v.useRef(""),R=S.viewport,D=i.content-i.viewport,U=nt(x),K=nt(p),H=Rc(y,10);function q(G){if(_.current){const ee=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:ee,y:ue})}}return v.useEffect(()=>{const G=ee=>{const ue=ee.target;E!=null&&E.contains(ue)&&U(ee,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[R,E,D,U]),v.useEffect(K,[i,K]),Ri(E,H),Ri(S.content,H),u.jsx(iM,{scope:r,scrollbar:E,hasThumb:o,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(se.div,{...b,ref:C,style:{position:"absolute",...b.style},onPointerDown:ne(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),_.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),q(G))}),onPointerMove:ne(n.onPointerMove,q),onPointerUp:ne(n.onPointerUp,G=>{const ee=G.target;ee.hasPointerCapture(G.pointerId)&&ee.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=T.current,S.viewport&&(S.viewport.style.scrollBehavior=""),_.current=null})})})}),cc="ScrollAreaThumb",E1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=j1(cc,n.__scopeScrollArea);return u.jsx(Et,{present:r||o.hasThumb,children:u.jsx(sM,{ref:a,...i})})}),sM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...o}=n,c=Tn(cc,r),h=j1(cc,r),{onThumbPositionChange:m}=h,p=we(a,y=>h.onThumbChange(y)),g=v.useRef(void 0),x=Rc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const y=c.viewport;if(y){const b=()=>{if(x(),!g.current){const S=cM(y,m);g.current=S,m()}};return m(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[c.viewport,x,m]),u.jsx(se.div,{"data-state":h.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ne(n.onPointerDownCapture,y=>{const b=y.target.getBoundingClientRect(),S=y.clientX-b.left,E=y.clientY-b.top;h.onThumbPointerDown({x:S,y:E})}),onPointerUp:ne(n.onPointerUp,h.onThumbPointerUp)})});E1.displayName=cc;var $m="ScrollAreaCorner",N1=v.forwardRef((n,a)=>{const r=Tn($m,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(oM,{...n,ref:a}):null});N1.displayName=$m;var oM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,o=Tn($m,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return Ri(o.scrollbarX,()=>{var x;const y=((x=o.scrollbarX)==null?void 0:x.offsetHeight)||0;o.onCornerHeightChange(y),p(y)}),Ri(o.scrollbarY,()=>{var x;const y=((x=o.scrollbarY)==null?void 0:x.offsetWidth)||0;o.onCornerWidthChange(y),h(y)}),g?u.jsx(se.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function dc(n){return n?parseInt(n,10):0}function C1(n,a){const r=n/a;return isNaN(r)?0:r}function Tc(n){const a=C1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function uM(n,a,r,i="ltr"){const o=Tc(r),c=o/2,h=a||c,m=o-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,x=r.content-r.viewport,y=i==="ltr"?[0,x]:[x*-1,0];return _1([p,g],y)(n)}function jx(n,a,r="ltr"){const i=Tc(a),o=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-o,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=lm(n,p);return _1([0,h],[0,m])(g)}function _1(n,a){return r=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const i=(a[1]-a[0])/(n[1]-n[0]);return a[0]+i*(r-n[0])}}function T1(n,a){return n>0&&n<a}var cM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function o(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(i)};function Rc(n,a){const r=nt(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,a)},[r,a])}function Ri(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}var dM=g1,fM=x1,hM=N1;function R1({className:n,children:a,...r}){return u.jsxs(dM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(fM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),u.jsx(mM,{}),u.jsx(hM,{})]})}function mM({className:n,orientation:a="vertical",...r}){return u.jsx(b1,{"data-slot":"scroll-area-scrollbar",orientation:a,className:pe("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:u.jsx(E1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var pM=Eb[" useInsertionEffect ".trim().toString()]||lt;function ia({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,c,h]=vM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:o;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const y=x.current;y!==m&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,i])}const g=v.useCallback(x=>{var y;if(m){const b=gM(x)?x(n):x;b!==n&&((y=h.current)==null||y.call(h,b))}else c(x)},[m,n,c,h]);return[p,g]}function vM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),o=v.useRef(r),c=v.useRef(a);return pM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;o.current!==r&&((h=c.current)==null||h.call(c,r),o.current=r)},[r,o]),[r,i,c]}function gM(n){return typeof n=="function"}function Bi(n){const a=n+"CollectionProvider",[r,i]=bt(a),[o,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=j=>{const{scope:C,children:_}=j,T=ut.useRef(null),R=ut.useRef(new Map).current;return u.jsx(o,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=dr(m),g=ut.forwardRef((j,C)=>{const{scope:_,children:T}=j,R=c(m,_),D=we(C,R.collectionRef);return u.jsx(p,{ref:D,children:T})});g.displayName=m;const x=n+"CollectionItemSlot",y="data-radix-collection-item",b=dr(x),S=ut.forwardRef((j,C)=>{const{scope:_,children:T,...R}=j,D=ut.useRef(null),U=we(C,D),K=c(x,_);return ut.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(b,{[y]:"",ref:U,children:T})});S.displayName=x;function E(j){const C=c(n+"CollectionConsumer",j);return ut.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${y}]`));return Array.from(C.itemMap.values()).sort((R,D)=>T.indexOf(R.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:S},E,i]}function yM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var xM="DismissableLayer",rm="dismissableLayer.update",bM="dismissableLayer.pointerDownOutside",wM="dismissableLayer.focusOutside",Sx,M1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$i=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(M1),[x,y]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=we(a,H=>y(H)),j=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=j.indexOf(C),T=x?j.indexOf(x):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,D=T>=_,U=EM(H=>{const q=H.target,G=[...g.branches].some(ee=>ee.contains(q));!D||G||(o==null||o(H),h==null||h(H),H.defaultPrevented||m==null||m())},b),K=NM(H=>{const q=H.target;[...g.branches].some(G=>G.contains(q))||(c==null||c(H),h==null||h(H),H.defaultPrevented||m==null||m())},b);return yM(H=>{T===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},b),v.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Sx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),Ex(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Sx)}},[x,b,r,g]),v.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),Ex())},[x,g]),v.useEffect(()=>{const H=()=>S({});return document.addEventListener(rm,H),()=>document.removeEventListener(rm,H)},[]),u.jsx(se.div,{...p,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ne(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ne(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ne(n.onPointerDownCapture,U.onPointerDownCapture)})});$i.displayName=xM;var jM="DismissableLayerBranch",SM=v.forwardRef((n,a)=>{const r=v.useContext(M1),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(se.div,{...n,ref:o})});SM.displayName=jM;function EM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){A1(bM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function NM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const o=c=>{c.target&&!i.current&&A1(wM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Ex(){const n=new CustomEvent(rm);document.dispatchEvent(n)}function A1(n,a,r,{discrete:i}){const o=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),i?uc(o,c):o.dispatchEvent(c)}var Ch=0;function Qm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Nx()),document.body.insertAdjacentElement("beforeend",n[1]??Nx()),Ch++,()=>{Ch===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Ch--}},[])}function Nx(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var _h="focusScope.autoFocusOnMount",Th="focusScope.autoFocusOnUnmount",Cx={bubbles:!1,cancelable:!0},CM="FocusScope",Mc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(o),x=nt(c),y=v.useRef(null),b=we(a,j=>p(j)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let j=function(R){if(S.paused||!m)return;const D=R.target;m.contains(D)?y.current=D:gl(y.current,{select:!0})},C=function(R){if(S.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||gl(y.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&gl(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",C);const T=new MutationObserver(_);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",C),T.disconnect()}}},[i,m,S.paused]),v.useEffect(()=>{if(m){Tx.add(S);const j=document.activeElement;if(!m.contains(j)){const C=new CustomEvent(_h,Cx);m.addEventListener(_h,g),m.dispatchEvent(C),C.defaultPrevented||(_M(kM(k1(m)),{select:!0}),document.activeElement===j&&gl(m))}return()=>{m.removeEventListener(_h,g),setTimeout(()=>{const C=new CustomEvent(Th,Cx);m.addEventListener(Th,x),m.dispatchEvent(C),C.defaultPrevented||gl(j??document.body,{select:!0}),m.removeEventListener(Th,x),Tx.remove(S)},0)}}},[m,g,x,S]);const E=v.useCallback(j=>{if(!r&&!i||S.paused)return;const C=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,_=document.activeElement;if(C&&_){const T=j.currentTarget,[R,D]=TM(T);R&&D?!j.shiftKey&&_===D?(j.preventDefault(),r&&gl(R,{select:!0})):j.shiftKey&&_===R&&(j.preventDefault(),r&&gl(D,{select:!0})):_===T&&j.preventDefault()}},[r,i,S.paused]);return u.jsx(se.div,{tabIndex:-1,...h,ref:b,onKeyDown:E})});Mc.displayName=CM;function _M(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(gl(i,{select:a}),document.activeElement!==r)return}function TM(n){const a=k1(n),r=_x(a,n),i=_x(a.reverse(),n);return[r,i]}function k1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function _x(n,a){for(const r of n)if(!RM(r,{upTo:a}))return r}function RM(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function MM(n){return n instanceof HTMLInputElement&&"select"in n}function gl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&MM(n)&&a&&n.select()}}var Tx=AM();function AM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=Rx(n,a),n.unshift(a)},remove(a){var r;n=Rx(n,a),(r=n[0])==null||r.resume()}}}function Rx(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function kM(n){return n.filter(a=>a.tagName!=="A")}var DM=Eb[" useId ".trim().toString()]||(()=>{}),OM=0;function kl(n){const[a,r]=v.useState(DM());return lt(()=>{r(i=>i??String(OM++))},[n]),a?`radix-${a}`:""}const zM=["top","right","bottom","left"],Ml=Math.min,un=Math.max,fc=Math.round,Yu=Math.floor,ea=n=>({x:n,y:n}),LM={left:"right",right:"left",bottom:"top",top:"bottom"},UM={start:"end",end:"start"};function im(n,a,r){return un(n,Ml(a,r))}function qa(n,a){return typeof n=="function"?n(a):n}function Ha(n){return n.split("-")[0]}function Qi(n){return n.split("-")[1]}function Gm(n){return n==="x"?"y":"x"}function Ym(n){return n==="y"?"height":"width"}const qM=new Set(["top","bottom"]);function Wn(n){return qM.has(Ha(n))?"y":"x"}function Vm(n){return Gm(Wn(n))}function HM(n,a,r){r===void 0&&(r=!1);const i=Qi(n),o=Vm(n),c=Ym(o);let h=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=hc(h)),[h,hc(h)]}function BM(n){const a=hc(n);return[sm(n),a,sm(a)]}function sm(n){return n.replace(/start|end/g,a=>UM[a])}const Mx=["left","right"],Ax=["right","left"],$M=["top","bottom"],QM=["bottom","top"];function GM(n,a,r){switch(n){case"top":case"bottom":return r?a?Ax:Mx:a?Mx:Ax;case"left":case"right":return a?$M:QM;default:return[]}}function YM(n,a,r,i){const o=Qi(n);let c=GM(Ha(n),r==="start",i);return o&&(c=c.map(h=>h+"-"+o),a&&(c=c.concat(c.map(sm)))),c}function hc(n){return n.replace(/left|right|bottom|top/g,a=>LM[a])}function VM(n){return{top:0,right:0,bottom:0,left:0,...n}}function D1(n){return typeof n!="number"?VM(n):{top:n,right:n,bottom:n,left:n}}function mc(n){const{x:a,y:r,width:i,height:o}=n;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function kx(n,a,r){let{reference:i,floating:o}=n;const c=Wn(a),h=Vm(a),m=Ym(h),p=Ha(a),g=c==="y",x=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,b=i[m]/2-o[m]/2;let S;switch(p){case"top":S={x,y:i.y-o.height};break;case"bottom":S={x,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y};break;case"left":S={x:i.x-o.width,y};break;default:S={x:i.x,y:i.y}}switch(Qi(a)){case"start":S[h]-=b*(r&&g?-1:1);break;case"end":S[h]+=b*(r&&g?-1:1);break}return S}const KM=async(n,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:c=[],platform:h}=r,m=c.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:o}),{x,y}=kx(g,i,p),b=i,S={},E=0;for(let j=0;j<m.length;j++){const{name:C,fn:_}=m[j],{x:T,y:R,data:D,reset:U}=await _({x,y,initialPlacement:i,placement:b,strategy:o,middlewareData:S,rects:g,platform:h,elements:{reference:n,floating:a}});x=T??x,y=R??y,S={...S,[C]:{...S[C],...D}},U&&E<=50&&(E++,typeof U=="object"&&(U.placement&&(b=U.placement),U.rects&&(g=U.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):U.rects),{x,y}=kx(g,b,p)),j=-1)}return{x,y,placement:b,strategy:o,middlewareData:S}};async function to(n,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=qa(a,n),E=D1(S),j=m[b?y==="floating"?"reference":"floating":y],C=mc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(j)))==null||r?j:j.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:x,strategy:p})),_=y==="floating"?{x:i,y:o,width:h.floating.width,height:h.floating.height}:h.reference,T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),R=await(c.isElement==null?void 0:c.isElement(T))?await(c.getScale==null?void 0:c.getScale(T))||{x:1,y:1}:{x:1,y:1},D=mc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:T,strategy:p}):_);return{top:(C.top-D.top+E.top)/R.y,bottom:(D.bottom-C.bottom+E.bottom)/R.y,left:(C.left-D.left+E.left)/R.x,right:(D.right-C.right+E.right)/R.x}}const XM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:o,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:x=0}=qa(n,a)||{};if(g==null)return{};const y=D1(x),b={x:r,y:i},S=Vm(o),E=Ym(S),j=await h.getDimensions(g),C=S==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[S]-b[S]-c.floating[E],U=b[S]-c.reference[S],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let H=K?K[R]:0;(!H||!await(h.isElement==null?void 0:h.isElement(K)))&&(H=m.floating[R]||c.floating[E]);const q=D/2-U/2,G=H/2-j[E]/2-1,ee=Ml(y[_],G),ue=Ml(y[T],G),ce=ee,ie=H-j[E]-ue,ae=H/2-j[E]/2+q,re=im(ce,ae,ie),z=!p.arrow&&Qi(o)!=null&&ae!==re&&c.reference[E]/2-(ae<ce?ee:ue)-j[E]/2<0,J=z?ae<ce?ae-ce:ae-ie:0;return{[S]:b[S]+J,data:{[S]:re,centerOffset:ae-re-J,...z&&{alignmentOffset:J}},reset:z}}}),FM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:o,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:j=!0,...C}=qa(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Ha(o),T=Wn(m),R=Ha(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),U=b||(R||!j?[hc(m)]:BM(m)),K=E!=="none";!b&&K&&U.push(...YM(m,j,E,D));const H=[m,...U],q=await to(a,C),G=[];let ee=((i=c.flip)==null?void 0:i.overflows)||[];if(x&&G.push(q[_]),y){const ae=HM(o,h,D);G.push(q[ae[0]],q[ae[1]])}if(ee=[...ee,{placement:o,overflows:G}],!G.every(ae=>ae<=0)){var ue,ce;const ae=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ae];if(re&&(!(y==="alignment"&&T!==Wn(re))||ee.every(J=>Wn(J.placement)===T?J.overflows[0]>0:!0)))return{data:{index:ae,overflows:ee},reset:{placement:re}};let z=(ce=ee.filter(J=>J.overflows[0]<=0).sort((J,Y)=>J.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!z)switch(S){case"bestFit":{var ie;const J=(ie=ee.filter(Y=>{if(K){const X=Wn(Y.placement);return X===T||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:ie[0];J&&(z=J);break}case"initialPlacement":z=m;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Dx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ox(n){return zM.some(a=>n[a]>=0)}const ZM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...o}=qa(n,a);switch(i){case"referenceHidden":{const c=await to(a,{...o,elementContext:"reference"}),h=Dx(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ox(h)}}}case"escaped":{const c=await to(a,{...o,altBoundary:!0}),h=Dx(c,r.floating);return{data:{escapedOffsets:h,escaped:Ox(h)}}}default:return{}}}}},O1=new Set(["left","top"]);async function PM(n,a){const{placement:r,platform:i,elements:o}=n,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=Ha(r),m=Qi(r),p=Wn(r)==="y",g=O1.has(h)?-1:1,x=c&&p?-1:1,y=qa(a,n);let{mainAxis:b,crossAxis:S,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof E=="number"&&(S=m==="end"?E*-1:E),p?{x:S*x,y:b*g}:{x:b*g,y:S*x}}const JM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:o,y:c,placement:h,middlewareData:m}=a,p=await PM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:c+p.y,data:{...p,placement:h}}}}},IM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:o}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=qa(n,a),g={x:r,y:i},x=await to(a,p),y=Wn(Ha(o)),b=Gm(y);let S=g[b],E=g[y];if(c){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",T=S+x[C],R=S-x[_];S=im(T,S,R)}if(h){const C=y==="y"?"top":"left",_=y==="y"?"bottom":"right",T=E+x[C],R=E-x[_];E=im(T,E,R)}const j=m.fn({...a,[b]:S,[y]:E});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[b]:c,[y]:h}}}}}},WM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:o,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=qa(n,a),x={x:r,y:i},y=Wn(o),b=Gm(y);let S=x[b],E=x[y];const j=qa(m,a),C=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(p){const R=b==="y"?"height":"width",D=c.reference[b]-c.floating[R]+C.mainAxis,U=c.reference[b]+c.reference[R]-C.mainAxis;S<D?S=D:S>U&&(S=U)}if(g){var _,T;const R=b==="y"?"width":"height",D=O1.has(Ha(o)),U=c.reference[y]-c.floating[R]+(D&&((_=h.offset)==null?void 0:_[y])||0)+(D?0:C.crossAxis),K=c.reference[y]+c.reference[R]+(D?0:((T=h.offset)==null?void 0:T[y])||0)-(D?C.crossAxis:0);E<U?E=U:E>K&&(E=K)}return{[b]:S,[y]:E}}}},eA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:o,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=qa(n,a),x=await to(a,g),y=Ha(o),b=Qi(o),S=Wn(o)==="y",{width:E,height:j}=c.floating;let C,_;y==="top"||y==="bottom"?(C=y,_=b===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,C=b==="end"?"top":"bottom");const T=j-x.top-x.bottom,R=E-x.left-x.right,D=Ml(j-x[C],T),U=Ml(E-x[_],R),K=!a.middlewareData.shift;let H=D,q=U;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=T),K&&!b){const ee=un(x.left,0),ue=un(x.right,0),ce=un(x.top,0),ie=un(x.bottom,0);S?q=E-2*(ee!==0||ue!==0?ee+ue:un(x.left,x.right)):H=j-2*(ce!==0||ie!==0?ce+ie:un(x.top,x.bottom))}await p({...a,availableWidth:q,availableHeight:H});const G=await h.getDimensions(m.floating);return E!==G.width||j!==G.height?{reset:{rects:!0}}:{}}}};function Ac(){return typeof window<"u"}function Gi(n){return z1(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function sa(n){var a;return(a=(z1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function z1(n){return Ac()?n instanceof Node||n instanceof dn(n).Node:!1}function Hn(n){return Ac()?n instanceof Element||n instanceof dn(n).Element:!1}function ta(n){return Ac()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function zx(n){return!Ac()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}const tA=new Set(["inline","contents"]);function vo(n){const{overflow:a,overflowX:r,overflowY:i,display:o}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!tA.has(o)}const nA=new Set(["table","td","th"]);function aA(n){return nA.has(Gi(n))}const lA=[":popover-open",":modal"];function kc(n){return lA.some(a=>{try{return n.matches(a)}catch{return!1}})}const rA=["transform","translate","scale","rotate","perspective"],iA=["transform","translate","scale","rotate","perspective","filter"],sA=["paint","layout","strict","content"];function Km(n){const a=Xm(),r=Hn(n)?Bn(n):n;return rA.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||iA.some(i=>(r.willChange||"").includes(i))||sA.some(i=>(r.contain||"").includes(i))}function oA(n){let a=Al(n);for(;ta(a)&&!Mi(a);){if(Km(a))return a;if(kc(a))return null;a=Al(a)}return null}function Xm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uA=new Set(["html","body","#document"]);function Mi(n){return uA.has(Gi(n))}function Bn(n){return dn(n).getComputedStyle(n)}function Dc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Al(n){if(Gi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||zx(n)&&n.host||sa(n);return zx(a)?a.host:a}function L1(n){const a=Al(n);return Mi(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&vo(a)?a:L1(a)}function no(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=L1(n),c=o===((i=n.ownerDocument)==null?void 0:i.body),h=dn(o);if(c){const m=om(h);return a.concat(h,h.visualViewport||[],vo(o)?o:[],m&&r?no(m):[])}return a.concat(o,no(o,[],r))}function om(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function U1(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=ta(n),c=o?n.offsetWidth:r,h=o?n.offsetHeight:i,m=fc(r)!==c||fc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Fm(n){return Hn(n)?n:n.contextElement}function fi(n){const a=Fm(n);if(!ta(a))return ea(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:c}=U1(a);let h=(c?fc(r.width):r.width)/i,m=(c?fc(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const cA=ea(0);function q1(n){const a=dn(n);return!Xm()||!a.visualViewport?cA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function dA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function fr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),c=Fm(n);let h=ea(1);a&&(i?Hn(i)&&(h=fi(i)):h=fi(n));const m=dA(c,r,i)?q1(c):ea(0);let p=(o.left+m.x)/h.x,g=(o.top+m.y)/h.y,x=o.width/h.x,y=o.height/h.y;if(c){const b=dn(c),S=i&&Hn(i)?dn(i):i;let E=b,j=om(E);for(;j&&i&&S!==E;){const C=fi(j),_=j.getBoundingClientRect(),T=Bn(j),R=_.left+(j.clientLeft+parseFloat(T.paddingLeft))*C.x,D=_.top+(j.clientTop+parseFloat(T.paddingTop))*C.y;p*=C.x,g*=C.y,x*=C.x,y*=C.y,p+=R,g+=D,E=dn(j),j=om(E)}}return mc({width:x,height:y,x:p,y:g})}function Oc(n,a){const r=Dc(n).scrollLeft;return a?a.left+r:fr(sa(n)).left+r}function H1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Oc(n,r),o=r.top+a.scrollTop;return{x:i,y:o}}function fA(n){let{elements:a,rect:r,offsetParent:i,strategy:o}=n;const c=o==="fixed",h=sa(i),m=a?kc(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ea(1);const x=ea(0),y=ta(i);if((y||!y&&!c)&&((Gi(i)!=="body"||vo(h))&&(p=Dc(i)),ta(i))){const S=fr(i);g=fi(i),x.x=S.x+i.clientLeft,x.y=S.y+i.clientTop}const b=h&&!y&&!c?H1(h,p):ea(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+x.x+b.x,y:r.y*g.y-p.scrollTop*g.y+x.y+b.y}}function hA(n){return Array.from(n.getClientRects())}function mA(n){const a=sa(n),r=Dc(n),i=n.ownerDocument.body,o=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Oc(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-o),{width:o,height:c,x:h,y:m}}const Lx=25;function pA(n,a){const r=dn(n),i=sa(n),o=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(o){c=o.width,h=o.height;const x=Xm();(!x||x&&a==="fixed")&&(m=o.offsetLeft,p=o.offsetTop)}const g=Oc(i);if(g<=0){const x=i.ownerDocument,y=x.body,b=getComputedStyle(y),S=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(i.clientWidth-y.clientWidth-S);E<=Lx&&(c-=E)}else g<=Lx&&(c+=g);return{width:c,height:h,x:m,y:p}}const vA=new Set(["absolute","fixed"]);function gA(n,a){const r=fr(n,!0,a==="fixed"),i=r.top+n.clientTop,o=r.left+n.clientLeft,c=ta(n)?fi(n):ea(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=o*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function Ux(n,a,r){let i;if(a==="viewport")i=pA(n,r);else if(a==="document")i=mA(sa(n));else if(Hn(a))i=gA(a,r);else{const o=q1(n);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return mc(i)}function B1(n,a){const r=Al(n);return r===a||!Hn(r)||Mi(r)?!1:Bn(r).position==="fixed"||B1(r,a)}function yA(n,a){const r=a.get(n);if(r)return r;let i=no(n,[],!1).filter(m=>Hn(m)&&Gi(m)!=="body"),o=null;const c=Bn(n).position==="fixed";let h=c?Al(n):n;for(;Hn(h)&&!Mi(h);){const m=Bn(h),p=Km(h);!p&&m.position==="fixed"&&(o=null),(c?!p&&!o:!p&&m.position==="static"&&o&&vA.has(o.position)||vo(h)&&!p&&B1(n,h))?i=i.filter(g=>g!==h):o=m,h=Al(h)}return a.set(n,i),i}function xA(n){let{element:a,boundary:r,rootBoundary:i,strategy:o}=n;const c=[...r==="clippingAncestors"?kc(a)?[]:yA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const x=Ux(a,g,o);return p.top=un(x.top,p.top),p.right=Ml(x.right,p.right),p.bottom=Ml(x.bottom,p.bottom),p.left=un(x.left,p.left),p},Ux(a,h,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function bA(n){const{width:a,height:r}=U1(n);return{width:a,height:r}}function wA(n,a,r){const i=ta(a),o=sa(a),c=r==="fixed",h=fr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Oc(o)}if(i||!i&&!c)if((Gi(a)!=="body"||vo(o))&&(m=Dc(a)),i){const S=fr(a,!0,c,a);p.x=S.x+a.clientLeft,p.y=S.y+a.clientTop}else o&&g();c&&!i&&o&&g();const x=o&&!i&&!c?H1(o,m):ea(0),y=h.left+m.scrollLeft-p.x-x.x,b=h.top+m.scrollTop-p.y-x.y;return{x:y,y:b,width:h.width,height:h.height}}function Rh(n){return Bn(n).position==="static"}function qx(n,a){if(!ta(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return sa(n)===r&&(r=r.ownerDocument.body),r}function $1(n,a){const r=dn(n);if(kc(n))return r;if(!ta(n)){let o=Al(n);for(;o&&!Mi(o);){if(Hn(o)&&!Rh(o))return o;o=Al(o)}return r}let i=qx(n,a);for(;i&&aA(i)&&Rh(i);)i=qx(i,a);return i&&Mi(i)&&Rh(i)&&!Km(i)?r:i||oA(n)||r}const jA=async function(n){const a=this.getOffsetParent||$1,r=this.getDimensions,i=await r(n.floating);return{reference:wA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function SA(n){return Bn(n).direction==="rtl"}const EA={convertOffsetParentRelativeRectToViewportRelativeRect:fA,getDocumentElement:sa,getClippingRect:xA,getOffsetParent:$1,getElementRects:jA,getClientRects:hA,getDimensions:bA,getScale:fi,isElement:Hn,isRTL:SA};function Q1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function NA(n,a){let r=null,i;const o=sa(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:x,top:y,width:b,height:S}=g;if(m||a(),!b||!S)return;const E=Yu(y),j=Yu(o.clientWidth-(x+b)),C=Yu(o.clientHeight-(y+S)),_=Yu(x),T={rootMargin:-E+"px "+-j+"px "+-C+"px "+-_+"px",threshold:un(0,Ml(1,p))||1};let R=!0;function D(U){const K=U[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!Q1(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function CA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Fm(n),x=o||c?[...g?no(g):[],...no(a)]:[];x.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const y=g&&m?NA(g,r):null;let b=-1,S=null;h&&(S=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&S&&(S.unobserve(a),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(a)})),r()}),g&&!p&&S.observe(g),S.observe(a));let E,j=p?fr(n):null;p&&C();function C(){const _=fr(n);j&&!Q1(j,_)&&r(),j=_,E=requestAnimationFrame(C)}return r(),()=>{var _;x.forEach(T=>{o&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),y==null||y(),(_=S)==null||_.disconnect(),S=null,p&&cancelAnimationFrame(E)}}const _A=JM,TA=IM,RA=FM,MA=eA,AA=ZM,Hx=XM,kA=WM,DA=(n,a,r)=>{const i=new Map,o={platform:EA,...r},c={...o.platform,_c:i};return KM(n,a,{...o,platform:c})};var OA=typeof document<"u",zA=function(){},ec=OA?v.useLayoutEffect:zA;function pc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!pc(n[i],a[i]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const c=o[i];if(!(c==="_owner"&&n.$$typeof)&&!pc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function G1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(n,a){const r=G1(n);return Math.round(a*r)/r}function Mh(n){const a=v.useRef(n);return ec(()=>{a.current=n}),a}function LA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[x,y]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[b,S]=v.useState(i);pc(b,i)||S(i);const[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useCallback(Y=>{Y!==K.current&&(K.current=Y,j(Y))},[]),R=v.useCallback(Y=>{Y!==H.current&&(H.current=Y,_(Y))},[]),D=c||E,U=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(x),G=p!=null,ee=Mh(p),ue=Mh(o),ce=Mh(g),ie=v.useCallback(()=>{if(!K.current||!H.current)return;const Y={placement:a,strategy:r,middleware:b};ue.current&&(Y.platform=ue.current),DA(K.current,H.current,Y).then(X=>{const de={...X,isPositioned:ce.current!==!1};ae.current&&!pc(q.current,de)&&(q.current=de,fo.flushSync(()=>{y(de)}))})},[b,a,r,ue,ce]);ec(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(Y=>({...Y,isPositioned:!1})))},[g]);const ae=v.useRef(!1);ec(()=>(ae.current=!0,()=>{ae.current=!1}),[]),ec(()=>{if(D&&(K.current=D),U&&(H.current=U),D&&U){if(ee.current)return ee.current(D,U,ie);ie()}},[D,U,ie,ee,G]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:T,setFloating:R}),[T,R]),z=v.useMemo(()=>({reference:D,floating:U}),[D,U]),J=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!z.floating)return Y;const X=Bx(z.floating,x.x),de=Bx(z.floating,x.y);return m?{...Y,transform:"translate("+X+"px, "+de+"px)",...G1(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,z.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ie,refs:re,elements:z,floatingStyles:J}),[x,ie,re,z,J])}const UA=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:o}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Hx({element:i.current,padding:o}).fn(r):{}:i?Hx({element:i,padding:o}).fn(r):{}}}},qA=(n,a)=>({..._A(n),options:[n,a]}),HA=(n,a)=>({...TA(n),options:[n,a]}),BA=(n,a)=>({...kA(n),options:[n,a]}),$A=(n,a)=>({...RA(n),options:[n,a]}),QA=(n,a)=>({...MA(n),options:[n,a]}),GA=(n,a)=>({...AA(n),options:[n,a]}),YA=(n,a)=>({...UA(n),options:[n,a]});var VA="Arrow",Y1=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:o=5,...c}=n;return u.jsx(se.svg,{...c,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Y1.displayName=VA;var KA=Y1;function zc(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let h,m;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),a}var V1="Popper",[K1,Yi]=bt(V1),[Kz,X1]=K1(V1),F1="PopperAnchor",Z1=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...o}=n,c=X1(F1,r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&c.onAnchorChange(p.current)}),i?null:u.jsx(se.div,{...o,ref:m})});Z1.displayName=F1;var Zm="PopperContent",[XA,FA]=K1(Zm),P1=v.forwardRef((n,a)=>{var r,i,o,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:x=0,align:y="center",alignOffset:b=0,arrowPadding:S=0,avoidCollisions:E=!0,collisionBoundary:j=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...U}=n,K=X1(Zm,p),[H,q]=v.useState(null),G=we(a,Ot=>q(Ot)),[ee,ue]=v.useState(null),ce=zc(ee),ie=(ce==null?void 0:ce.width)??0,ae=(ce==null?void 0:ce.height)??0,re=g+(y!=="center"?"-"+y:""),z=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},J=Array.isArray(j)?j:[j],Y=J.length>0,X={padding:z,boundary:J.filter(PA),altBoundary:Y},{refs:de,floatingStyles:A,placement:F,isPositioned:W,middlewareData:le}=LA({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>CA(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[qA({mainAxis:x+ae,alignmentAxis:b}),E&&HA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?BA():void 0,...X}),E&&$A({...X}),QA({...X,apply:({elements:Ot,rects:Jt,availableWidth:ca,availableHeight:da})=>{const{width:Jc,height:bo}=Jt.reference,Ga=Ot.floating.style;Ga.setProperty("--radix-popper-available-width",`${ca}px`),Ga.setProperty("--radix-popper-available-height",`${da}px`),Ga.setProperty("--radix-popper-anchor-width",`${Jc}px`),Ga.setProperty("--radix-popper-anchor-height",`${bo}px`)}}),ee&&YA({element:ee,padding:S}),JA({arrowWidth:ie,arrowHeight:ae}),T&&GA({strategy:"referenceHidden",...X})]}),[ve,Se]=W1(F),te=nt(D);lt(()=>{W&&(te==null||te())},[W,te]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((o=le.arrow)==null?void 0:o.centerOffset)!==0,[Be,Ke]=v.useState();return lt(()=>{H&&Ke(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:W?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Be,"--radix-popper-transform-origin":[(c=le.transformOrigin)==null?void 0:c.x,(h=le.transformOrigin)==null?void 0:h.y].join(" "),...((m=le.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx(XA,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(se.div,{"data-side":ve,"data-align":Se,...U,ref:G,style:{...U.style,animation:W?void 0:"none"}})})})});P1.displayName=Zm;var J1="PopperArrow",ZA={top:"bottom",right:"left",bottom:"top",left:"right"},I1=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,o=FA(J1,r),c=ZA[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(KA,{...i,ref:a,style:{...i.style,display:"block"}})})});I1.displayName=J1;function PA(n){return n!==null}var JA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,o;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,x=p?0:n.arrowHeight,[y,b]=W1(c),S={start:"0%",center:"50%",end:"100%"}[b],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,j=(((o=m.arrow)==null?void 0:o.y)??0)+x/2;let C="",_="";return y==="bottom"?(C=p?S:`${E}px`,_=`${-x}px`):y==="top"?(C=p?S:`${E}px`,_=`${h.floating.height+x}px`):y==="right"?(C=`${-x}px`,_=p?S:`${j}px`):y==="left"&&(C=`${h.floating.width+x}px`,_=p?S:`${j}px`),{data:{x:C,y:_}}}});function W1(n){const[a,r="center"]=n.split("-");return[a,r]}var Pm=Z1,Jm=P1,Im=I1,IA="Portal",WA=v.forwardRef((n,a)=>{var r;const{container:i,...o}=n,[c,h]=v.useState(!1);lt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?Yb.createPortal(u.jsx(se.div,{...o,ref:a}),m):null});WA.displayName=IA;var Ah="rovingFocusGroup.onEntryFocus",e4={bubbles:!1,cancelable:!0},go="RovingFocusGroup",[um,ew,t4]=Bi(go),[n4,Vi]=bt(go,[t4]),[a4,l4]=n4(go),tw=v.forwardRef((n,a)=>u.jsx(um.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(um.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(r4,{...n,ref:a})})}));tw.displayName=go;var r4=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...y}=n,b=v.useRef(null),S=we(a,b),E=Hi(c),[j,C]=ia({prop:h,defaultProp:m??null,onChange:p,caller:go}),[_,T]=v.useState(!1),R=nt(g),D=ew(r),U=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=b.current;if(q)return q.addEventListener(Ah,R),()=>q.removeEventListener(Ah,R)},[R]),u.jsx(a4,{scope:r,orientation:i,dir:E,loop:o,currentTabStopId:j,onItemFocus:v.useCallback(q=>C(q),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>H(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>H(q=>q-1),[]),children:u.jsx(se.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...y,ref:S,style:{outline:"none",...n.style},onMouseDown:ne(n.onMouseDown,()=>{U.current=!0}),onFocus:ne(n.onFocus,q=>{const G=!U.current;if(q.target===q.currentTarget&&G&&!_){const ee=new CustomEvent(Ah,e4);if(q.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),ie=ue.find(re=>re.id===j),ae=[ce,ie,...ue].filter(Boolean).map(re=>re.ref.current);lw(ae,x)}}U.current=!1}),onBlur:ne(n.onBlur,()=>T(!1))})})}),nw="RovingFocusGroupItem",aw=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:c,children:h,...m}=n,p=kl(),g=c||p,x=l4(nw,r),y=x.currentTabStopId===g,b=ew(r),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:j}=x;return v.useEffect(()=>{if(i)return S(),()=>E()},[i,S,E]),u.jsx(um.ItemSlot,{scope:r,id:g,focusable:i,active:o,children:u.jsx(se.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...m,ref:a,onMouseDown:ne(n.onMouseDown,C=>{i?x.onItemFocus(g):C.preventDefault()}),onFocus:ne(n.onFocus,()=>x.onItemFocus(g)),onKeyDown:ne(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=o4(C,x.orientation,x.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let T=b().filter(R=>R.focusable).map(R=>R.ref.current);if(_==="last")T.reverse();else if(_==="prev"||_==="next"){_==="prev"&&T.reverse();const R=T.indexOf(C.currentTarget);T=x.loop?u4(T,R+1):T.slice(R+1)}setTimeout(()=>lw(T))}}),children:typeof h=="function"?h({isCurrentTabStop:y,hasTabStop:j!=null}):h})})});aw.displayName=nw;var i4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function s4(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function o4(n,a,r){const i=s4(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return i4[i]}function lw(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function u4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Wm=tw,ep=aw,c4=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},si=new WeakMap,Vu=new WeakMap,Ku={},kh=0,rw=function(n){return n&&(n.host||rw(n.parentNode))},d4=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=rw(r);return i&&n.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},f4=function(n,a,r,i){var o=d4(a,Array.isArray(n)?n:[n]);Ku[r]||(Ku[r]=new WeakMap);var c=Ku[r],h=[],m=new Set,p=new Set(o),g=function(y){!y||m.has(y)||(m.add(y),g(y.parentNode))};o.forEach(g);var x=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(b){if(m.has(b))x(b);else try{var S=b.getAttribute(i),E=S!==null&&S!=="false",j=(si.get(b)||0)+1,C=(c.get(b)||0)+1;si.set(b,j),c.set(b,C),h.push(b),j===1&&E&&Vu.set(b,!0),C===1&&b.setAttribute(r,"true"),E||b.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",b,_)}})};return x(a),m.clear(),kh++,function(){h.forEach(function(y){var b=si.get(y)-1,S=c.get(y)-1;si.set(y,b),c.set(y,S),b||(Vu.has(y)||y.removeAttribute(i),Vu.delete(y)),S||y.removeAttribute(r)}),kh--,kh||(si=new WeakMap,si=new WeakMap,Vu=new WeakMap,Ku={})}},tp=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),o=c4(n);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),f4(i,o,r,"aria-hidden")):function(){return null}},In=function(){return In=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},In.apply(this,arguments)};function iw(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(n);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(r[i[o]]=n[i[o]]);return r}function h4(n,a,r){for(var i=0,o=a.length,c;i<o;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var tc="right-scroll-bar-position",nc="width-before-scroll-bar",m4="with-scroll-bars-hidden",p4="--removed-body-scroll-bar-size";function Dh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function v4(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var g4=typeof window<"u"?v.useLayoutEffect:v.useEffect,$x=new WeakMap;function y4(n,a){var r=v4(null,function(i){return n.forEach(function(o){return Dh(o,i)})});return g4(function(){var i=$x.get(r);if(i){var o=new Set(i),c=new Set(n),h=r.current;o.forEach(function(m){c.has(m)||Dh(m,null)}),c.forEach(function(m){o.has(m)||Dh(m,h)})}$x.set(r,n)},[n]),r}function x4(n){return n}function b4(n,a){a===void 0&&(a=x4);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var x=h;h=[],x.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(x){h.push(x),g()},filter:function(x){return h=h.filter(x),r}}}};return o}function w4(n){n===void 0&&(n={});var a=b4(null);return a.options=In({async:!0,ssr:!1},n),a}var sw=function(n){var a=n.sideCar,r=iw(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,In({},r))};sw.isSideCarExport=!0;function j4(n,a){return n.useMedium(a),sw}var ow=w4(),Oh=function(){},Lc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Oh,onWheelCapture:Oh,onTouchMoveCapture:Oh}),o=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,x=n.enabled,y=n.shards,b=n.sideCar,S=n.noRelative,E=n.noIsolation,j=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=iw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,K=y4([r,a]),H=In(In({},D),o);return v.createElement(v.Fragment,null,x&&v.createElement(U,{sideCar:ow,removeScrollBar:g,shards:y,noRelative:S,noIsolation:E,inert:j,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),In(In({},H),{ref:K})):v.createElement(T,In({},H,{className:p,ref:K}),m))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:nc,zeroRight:tc};var S4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E4(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=S4();return a&&n.setAttribute("nonce",a),n}function N4(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function C4(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var _4=function(){var n=0,a=null;return{add:function(r){n==0&&(a=E4())&&(N4(a,r),C4(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},T4=function(){var n=_4();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},uw=function(){var n=T4(),a=function(r){var i=r.styles,o=r.dynamic;return n(i,o),null};return a},R4={left:0,top:0,right:0,gap:0},zh=function(n){return parseInt(n||"",10)||0},M4=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[zh(r),zh(i),zh(o)]},A4=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return R4;var a=M4(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},k4=uw(),hi="data-scroll-locked",D4=function(n,a,r,i){var o=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
302
|
+
.`.concat(m4,` {
|
|
303
|
+
overflow: hidden `).concat(i,`;
|
|
304
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
305
|
+
}
|
|
306
|
+
body[`).concat(hi,`] {
|
|
307
|
+
overflow: hidden `).concat(i,`;
|
|
308
|
+
overscroll-behavior: contain;
|
|
309
|
+
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
310
|
+
padding-left: `.concat(o,`px;
|
|
311
|
+
padding-top: `).concat(c,`px;
|
|
312
|
+
padding-right: `).concat(h,`px;
|
|
313
|
+
margin-left:0;
|
|
314
|
+
margin-top:0;
|
|
315
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
316
|
+
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.`).concat(tc,` {
|
|
320
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.`).concat(nc,` {
|
|
324
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.`).concat(tc," .").concat(tc,` {
|
|
328
|
+
right: 0 `).concat(i,`;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.`).concat(nc," .").concat(nc,` {
|
|
332
|
+
margin-right: 0 `).concat(i,`;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
body[`).concat(hi,`] {
|
|
336
|
+
`).concat(p4,": ").concat(m,`px;
|
|
337
|
+
}
|
|
338
|
+
`)},Qx=function(){var n=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(n)?n:0},O4=function(){v.useEffect(function(){return document.body.setAttribute(hi,(Qx()+1).toString()),function(){var n=Qx()-1;n<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,n.toString())}},[])},z4=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,o=i===void 0?"margin":i;O4();var c=v.useMemo(function(){return A4(o)},[o]);return v.createElement(k4,{styles:D4(c,!a,o,r?"":"!important")})},cm=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return cm=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{cm=!1}var oi=cm?{passive:!1}:!1,L4=function(n){return n.tagName==="TEXTAREA"},cw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!L4(n)&&r[a]==="visible")},U4=function(n){return cw(n,"overflowY")},q4=function(n){return cw(n,"overflowX")},Gx=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=dw(n,i);if(o){var c=fw(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},H4=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},B4=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},dw=function(n,a){return n==="v"?U4(a):q4(a)},fw=function(n,a){return n==="v"?H4(a):B4(a)},$4=function(n,a){return n==="h"&&a==="rtl"?-1:1},Q4=function(n,a,r,i,o){var c=$4(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,x=h>0,y=0,b=0;do{if(!m)break;var S=fw(n,m),E=S[0],j=S[1],C=S[2],_=j-C-c*E;(E||_)&&dw(n,m)&&(y+=_,b+=E);var T=m.parentNode;m=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(x&&Math.abs(y)<1||!x&&Math.abs(b)<1)&&(g=!0),g},Fu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Yx=function(n){return[n.deltaX,n.deltaY]},Vx=function(n){return n&&"current"in n?n.current:n},G4=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Y4=function(n){return`
|
|
339
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
340
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
341
|
+
`)},V4=0,ui=[];function K4(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),o=v.useState(V4++)[0],c=v.useState(uw)[0],h=v.useRef(n);v.useEffect(function(){h.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var j=h4([n.lockRef.current],(n.shards||[]).map(Vx)).filter(Boolean);return j.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(j,C){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var _=Fu(j),T=r.current,R="deltaX"in j?j.deltaX:T[0]-_[0],D="deltaY"in j?j.deltaY:T[1]-_[1],U,K=j.target,H=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in j&&H==="h"&&K.type==="range")return!1;var q=Gx(H,K);if(!q)return!0;if(q?U=H:(U=H==="v"?"h":"v",q=Gx(H,K)),!q)return!1;if(!i.current&&"changedTouches"in j&&(R||D)&&(i.current=U),!U)return!0;var G=i.current||U;return Q4(G,C,j,G==="h"?R:D)},[]),p=v.useCallback(function(j){var C=j;if(!(!ui.length||ui[ui.length-1]!==c)){var _="deltaY"in C?Yx(C):Fu(C),T=a.current.filter(function(U){return U.name===C.type&&(U.target===C.target||C.target===U.shadowParent)&&G4(U.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Vx).filter(Boolean).filter(function(U){return U.contains(C.target)}),D=R.length>0?m(C,R[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(j,C,_,T){var R={name:j,delta:C,target:_,should:T,shadowParent:X4(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),x=v.useCallback(function(j){r.current=Fu(j),i.current=void 0},[]),y=v.useCallback(function(j){g(j.type,Yx(j),j.target,m(j,n.lockRef.current))},[]),b=v.useCallback(function(j){g(j.type,Fu(j),j.target,m(j,n.lockRef.current))},[]);v.useEffect(function(){return ui.push(c),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",p,oi),document.addEventListener("touchmove",p,oi),document.addEventListener("touchstart",x,oi),function(){ui=ui.filter(function(j){return j!==c}),document.removeEventListener("wheel",p,oi),document.removeEventListener("touchmove",p,oi),document.removeEventListener("touchstart",x,oi)}},[]);var S=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:Y4(o)}):null,S?v.createElement(z4,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function X4(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const F4=j4(ow,K4);var Uc=v.forwardRef(function(n,a){return v.createElement(Lc,In({},n,{ref:a,sideCar:F4}))});Uc.classNames=Lc.classNames;var dm=["Enter"," "],Z4=["ArrowDown","PageUp","Home"],hw=["ArrowUp","PageDown","End"],P4=[...Z4,...hw],J4={ltr:[...dm,"ArrowRight"],rtl:[...dm,"ArrowLeft"]},I4={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qc="Menu",[ao,W4,ek]=Bi(qc),[yr,mw]=bt(qc,[ek,Yi,Vi]),np=Yi(),pw=Vi(),[Xz,Ki]=yr(qc),[Fz,yo]=yr(qc),tk="MenuAnchor",ap=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=np(r);return u.jsx(Pm,{...o,...i,ref:a})});ap.displayName=tk;var nk="MenuPortal",[Zz,vw]=yr(nk,{forceMount:void 0}),Cn="MenuContent",[ak,lp]=yr(Cn),gw=v.forwardRef((n,a)=>{const r=vw(Cn,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Ki(Cn,n.__scopeMenu),h=yo(Cn,n.__scopeMenu);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(lk,{...o,ref:a}):u.jsx(rk,{...o,ref:a})})})})}),lk=v.forwardRef((n,a)=>{const r=Ki(Cn,n.__scopeMenu),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return tp(c)},[]),u.jsx(rp,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),rk=v.forwardRef((n,a)=>{const r=Ki(Cn,n.__scopeMenu);return u.jsx(rp,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ik=dr("MenuContent.ScrollLock"),rp=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:b,onDismiss:S,disableOutsideScroll:E,...j}=n,C=Ki(Cn,r),_=yo(Cn,r),T=np(r),R=pw(r),D=W4(r),[U,K]=v.useState(null),H=v.useRef(null),q=we(a,H,C.onContentChange),G=v.useRef(0),ee=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),ie=v.useRef("right"),ae=v.useRef(0),re=E?Uc:v.Fragment,z=E?{as:ik,allowPinchZoom:!0}:void 0,J=X=>{var de,A;const F=ee.current+X,W=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=W.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,Se=W.map(ye=>ye.textValue),te=yk(Se,F,ve),Ee=(A=W.find(ye=>ye.textValue===te))==null?void 0:A.ref.current;(function ye(Ne){ee.current=Ne,window.clearTimeout(G.current),Ne!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Qm();const Y=v.useCallback(X=>{var de,A;return ie.current===((de=ce.current)==null?void 0:de.side)&&bk(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(ak,{scope:r,searchRef:ee,onItemEnter:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),onItemLeave:v.useCallback(X=>{var de;Y(X)||((de=H.current)==null||de.focus(),K(null))},[Y]),onTriggerLeave:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...z,children:u.jsx(Mc,{asChild:!0,trapped:o,onMountAutoFocus:ne(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx($i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:b,onDismiss:S,children:u.jsx(Wm,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:U,onCurrentTabStopIdChange:K,onEntryFocus:ne(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Jm,{role:"menu","aria-orientation":"vertical","data-state":Dw(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...j,ref:q,style:{outline:"none",...j.style},onKeyDown:ne(j.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,A=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!A&&F&&J(X.key));const W=H.current;if(X.target!==W||!P4.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);hw.includes(X.key)&&le.reverse(),vk(le)}),onBlur:ne(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),ee.current="")}),onPointerMove:ne(n.onPointerMove,lo(X=>{const de=X.target,A=ae.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ae.current?"right":"left";ie.current=F,ae.current=X.clientX}}))})})})})})})});gw.displayName=Cn;var sk="MenuGroup",ip=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"group",...i,ref:a})});ip.displayName=sk;var ok="MenuLabel",yw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{...i,ref:a})});yw.displayName=ok;var vc="MenuItem",Kx="menu.itemSelect",Hc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...o}=n,c=v.useRef(null),h=yo(vc,n.__scopeMenu),m=lp(vc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),x=()=>{const y=c.current;if(!r&&y){const b=new CustomEvent(Kx,{bubbles:!0,cancelable:!0});y.addEventListener(Kx,S=>i==null?void 0:i(S),{once:!0}),uc(y,b),b.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(xw,{...o,ref:p,disabled:r,onClick:ne(n.onClick,x),onPointerDown:y=>{var b;(b=n.onPointerDown)==null||b.call(n,y),g.current=!0},onPointerUp:ne(n.onPointerUp,y=>{var b;g.current||(b=y.currentTarget)==null||b.click()}),onKeyDown:ne(n.onKeyDown,y=>{const b=m.searchRef.current!=="";r||b&&y.key===" "||dm.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Hc.displayName=vc;var xw=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...c}=n,h=lp(vc,r),m=pw(r),p=v.useRef(null),g=we(a,p),[x,y]=v.useState(!1),[b,S]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&S((E.textContent??"").trim())},[c.children]),u.jsx(ao.ItemSlot,{scope:r,disabled:i,textValue:o??b,children:u.jsx(ep,{asChild:!0,...m,focusable:!i,children:u.jsx(se.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ne(n.onPointerMove,lo(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(n.onPointerLeave,lo(E=>h.onItemLeave(E))),onFocus:ne(n.onFocus,()=>y(!0)),onBlur:ne(n.onBlur,()=>y(!1))})})})}),uk="MenuCheckboxItem",bw=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...o}=n;return u.jsx(Nw,{scope:n.__scopeMenu,checked:r,children:u.jsx(Hc,{role:"menuitemcheckbox","aria-checked":gc(r)?"mixed":r,...o,ref:a,"data-state":op(r),onSelect:ne(o.onSelect,()=>i==null?void 0:i(gc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});bw.displayName=uk;var ww="MenuRadioGroup",[ck,dk]=yr(ww,{value:void 0,onValueChange:()=>{}}),jw=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...o}=n,c=nt(i);return u.jsx(ck,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(ip,{...o,ref:a})})});jw.displayName=ww;var Sw="MenuRadioItem",Ew=v.forwardRef((n,a)=>{const{value:r,...i}=n,o=dk(Sw,n.__scopeMenu),c=r===o.value;return u.jsx(Nw,{scope:n.__scopeMenu,checked:c,children:u.jsx(Hc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":op(c),onSelect:ne(i.onSelect,()=>{var h;return(h=o.onValueChange)==null?void 0:h.call(o,r)},{checkForDefaultPrevented:!1})})})});Ew.displayName=Sw;var sp="MenuItemIndicator",[Nw,fk]=yr(sp,{checked:!1}),Cw=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...o}=n,c=fk(sp,r);return u.jsx(Et,{present:i||gc(c.checked)||c.checked===!0,children:u.jsx(se.span,{...o,ref:a,"data-state":op(c.checked)})})});Cw.displayName=sp;var hk="MenuSeparator",_w=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});_w.displayName=hk;var mk="MenuArrow",Tw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=np(r);return u.jsx(Im,{...o,...i,ref:a})});Tw.displayName=mk;var pk="MenuSub",[Pz,Rw]=yr(pk),Xs="MenuSubTrigger",Mw=v.forwardRef((n,a)=>{const r=Ki(Xs,n.__scopeMenu),i=yo(Xs,n.__scopeMenu),o=Rw(Xs,n.__scopeMenu),c=lp(Xs,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},x=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>x,[x]),v.useEffect(()=>{const y=m.current;return()=>{window.clearTimeout(y),p(null)}},[m,p]),u.jsx(ap,{asChild:!0,...g,children:u.jsx(xw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Dw(r.open),...n,ref:po(a,o.onTriggerChange),onClick:y=>{var b;(b=n.onClick)==null||b.call(n,y),!(n.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ne(n.onPointerMove,lo(y=>{c.onItemEnter(y),!y.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),x()},100))})),onPointerLeave:ne(n.onPointerLeave,lo(y=>{var b,S;x();const E=(b=r.content)==null?void 0:b.getBoundingClientRect();if(E){const j=(S=r.content)==null?void 0:S.dataset.side,C=j==="right",_=C?-5:5,T=E[C?"left":"right"],R=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:y.clientX+_,y:y.clientY},{x:T,y:E.top},{x:R,y:E.top},{x:R,y:E.bottom},{x:T,y:E.bottom}],side:j}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(y),y.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ne(n.onKeyDown,y=>{var b;const S=c.searchRef.current!=="";n.disabled||S&&y.key===" "||J4[i.dir].includes(y.key)&&(r.onOpenChange(!0),(b=r.content)==null||b.focus(),y.preventDefault())})})})});Mw.displayName=Xs;var Aw="MenuSubContent",kw=v.forwardRef((n,a)=>{const r=vw(Cn,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Ki(Cn,n.__scopeMenu),h=yo(Cn,n.__scopeMenu),m=Rw(Aw,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:u.jsx(rp,{id:m.contentId,"aria-labelledby":m.triggerId,...o,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{var y;h.isUsingKeyboardRef.current&&((y=p.current)==null||y.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:ne(n.onFocusOutside,x=>{x.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ne(n.onEscapeKeyDown,x=>{h.onClose(),x.preventDefault()}),onKeyDown:ne(n.onKeyDown,x=>{var y;const b=x.currentTarget.contains(x.target),S=I4[h.dir].includes(x.key);b&&S&&(c.onOpenChange(!1),(y=m.trigger)==null||y.focus(),x.preventDefault())})})})})})});kw.displayName=Aw;function Dw(n){return n?"open":"closed"}function gc(n){return n==="indeterminate"}function op(n){return gc(n)?"indeterminate":n?"checked":"unchecked"}function vk(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function gk(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function yk(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=gk(n,Math.max(o,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function xk(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,b=p.y;x>i!=b>i&&r<(y-g)*(i-x)/(b-x)+g&&(o=!o)}return o}function bk(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return xk(r,a)}function lo(n){return a=>a.pointerType==="mouse"?n(a):void 0}var wk=ap,jk=gw,Sk=ip,Ek=yw,Nk=Hc,Ck=bw,_k=jw,Tk=Ew,Rk=Cw,Mk=_w,Ak=Tw,kk=Mw,Dk=kw,Ow="DropdownMenu",[Ok,Jz]=bt(Ow,[mw]),fn=mw(),[Iz,zw]=Ok(Ow),Lw="DropdownMenuTrigger",zk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=n,c=zw(Lw,r),h=fn(r);return u.jsx(wk,{asChild:!0,...h,children:u.jsx(se.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...o,ref:po(a,c.triggerRef),onPointerDown:ne(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ne(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});zk.displayName=Lw;var Uw="DropdownMenuContent",qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=zw(Uw,r),c=fn(r),h=v.useRef(!1);return u.jsx(jk,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...i,ref:a,onCloseAutoFocus:ne(n.onCloseAutoFocus,m=>{var p;h.current||(p=o.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ne(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,x=p.button===2||g;(!o.modal||x)&&(h.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qw.displayName=Uw;var Lk="DropdownMenuGroup",Uk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Sk,{...o,...i,ref:a})});Uk.displayName=Lk;var qk="DropdownMenuLabel",Hw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Ek,{...o,...i,ref:a})});Hw.displayName=qk;var Hk="DropdownMenuItem",Bw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Nk,{...o,...i,ref:a})});Bw.displayName=Hk;var Bk="DropdownMenuCheckboxItem",$w=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Ck,{...o,...i,ref:a})});$w.displayName=Bk;var $k="DropdownMenuRadioGroup",Qk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(_k,{...o,...i,ref:a})});Qk.displayName=$k;var Gk="DropdownMenuRadioItem",Qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Tk,{...o,...i,ref:a})});Qw.displayName=Gk;var Yk="DropdownMenuItemIndicator",Vk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Rk,{...o,...i,ref:a})});Vk.displayName=Yk;var Kk="DropdownMenuSeparator",Gw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Mk,{...o,...i,ref:a})});Gw.displayName=Kk;var Xk="DropdownMenuArrow",Fk=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Ak,{...o,...i,ref:a})});Fk.displayName=Xk;var Zk="DropdownMenuSubTrigger",Yw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(kk,{...o,...i,ref:a})});Yw.displayName=Zk;var Pk="DropdownMenuSubContent",Vw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(Dk,{...o,...i,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Vw.displayName=Pk;var Jk=qw,Ik=Hw,Wk=Bw,e3=$w,t3=Qw,n3=Gw,a3=Yw,l3=Vw;const Kw=pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");pe("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",Kw,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");pe("z-50 min-w-[8rem] p-1 rounded-xl",Kw,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");pe("relative flex items-center gap-3","px-3 py-2 rounded-lg text-sm cursor-pointer","outline-none select-none","transition-colors duration-150","dark:text-gray-200 text-gray-700","dark:hover:bg-white/[0.06] hover:bg-gray-100","dark:focus:bg-white/[0.08] focus:bg-gray-100","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none");pe("dark:text-red-400 text-red-600","dark:hover:bg-red-500/10 hover:bg-red-50","dark:focus:bg-red-500/15 focus:bg-red-100");pe("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");pe("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var Xw="Dialog",[Fw,Zw]=bt(Xw),[Wz,oa]=Fw(Xw),Pw="DialogTrigger",Jw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(Pw,r),c=we(a,o.triggerRef);return u.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cp(o.open),...i,ref:c,onClick:ne(n.onClick,o.onOpenToggle)})});Jw.displayName=Pw;var r3="DialogPortal",[e6,Iw]=Fw(r3,{forceMount:void 0}),yc="DialogOverlay",Ww=v.forwardRef((n,a)=>{const r=Iw(yc,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(yc,n.__scopeDialog);return c.modal?u.jsx(Et,{present:i||c.open,children:u.jsx(s3,{...o,ref:a})}):null});Ww.displayName=yc;var i3=dr("DialogOverlay.RemoveScroll"),s3=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(yc,r);return u.jsx(Uc,{as:i3,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(se.div,{"data-state":cp(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),hr="DialogContent",ej=v.forwardRef((n,a)=>{const r=Iw(hr,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(hr,n.__scopeDialog);return u.jsx(Et,{present:i||c.open,children:c.modal?u.jsx(o3,{...o,ref:a}):u.jsx(u3,{...o,ref:a})})});ej.displayName=hr;var o3=v.forwardRef((n,a)=>{const r=oa(hr,n.__scopeDialog),i=v.useRef(null),o=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return tp(c)},[]),u.jsx(tj,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ne(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault())})}),u3=v.forwardRef((n,a)=>{const r=oa(hr,n.__scopeDialog),i=v.useRef(!1),o=v.useRef(!1);return u.jsx(tj,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),tj=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...h}=n,m=oa(hr,r),p=v.useRef(null),g=we(a,p);return Qm(),u.jsxs(u.Fragment,{children:[u.jsx(Mc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:u.jsx($i,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":cp(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(d3,{titleId:m.titleId}),u.jsx(h3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),up="DialogTitle",nj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(up,r);return u.jsx(se.h2,{id:o.titleId,...i,ref:a})});nj.displayName=up;var aj="DialogDescription",lj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(aj,r);return u.jsx(se.p,{id:o.descriptionId,...i,ref:a})});lj.displayName=aj;var rj="DialogClose",ij=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(rj,r);return u.jsx(se.button,{type:"button",...i,ref:a,onClick:ne(n.onClick,()=>o.onOpenChange(!1))})});ij.displayName=rj;function cp(n){return n?"open":"closed"}var sj="DialogTitleWarning",[c3,oj]=JR(sj,{contentName:hr,titleName:up,docsSlug:"dialog"}),d3=({titleId:n})=>{const a=oj(sj),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
342
|
+
|
|
343
|
+
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
344
|
+
|
|
345
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},f3="DialogDescriptionWarning",h3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oj(f3).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},m3=Jw,p3=Ww,v3=ej,g3=nj,y3=lj,uj=ij,x3="AlertDialog",[b3,t6]=bt(x3,[Zw]),xr=Zw(),w3="AlertDialogTrigger",j3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=xr(r);return u.jsx(m3,{...o,...i,ref:a})});j3.displayName=w3;var S3="AlertDialogOverlay",E3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=xr(r);return u.jsx(p3,{...o,...i,ref:a})});E3.displayName=S3;var mi="AlertDialogContent",[N3,C3]=b3(mi),_3=f1("AlertDialogContent"),T3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...o}=n,c=xr(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(c3,{contentName:mi,titleName:cj,docsSlug:"alert-dialog",children:u.jsx(N3,{scope:r,cancelRef:p,children:u.jsxs(v3,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:ne(o.onOpenAutoFocus,g=>{var x;g.preventDefault(),(x=p.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[u.jsx(_3,{children:i}),u.jsx(O3,{contentRef:h})]})})})});T3.displayName=mi;var cj="AlertDialogTitle",R3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=xr(r);return u.jsx(g3,{...o,...i,ref:a})});R3.displayName=cj;var dj="AlertDialogDescription",M3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=xr(r);return u.jsx(y3,{...o,...i,ref:a})});M3.displayName=dj;var A3="AlertDialogAction",k3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=xr(r);return u.jsx(uj,{...o,...i,ref:a})});k3.displayName=A3;var fj="AlertDialogCancel",D3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:o}=C3(fj,r),c=xr(r),h=we(a,o);return u.jsx(uj,{...c,...i,ref:h})});D3.displayName=fj;var O3=({contentRef:n})=>{const a=`\`${mi}\` requires a description for the component to be accessible for screen reader users.
|
|
346
|
+
|
|
347
|
+
You can add a description to the \`${mi}\` by passing a \`${dj}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
348
|
+
|
|
349
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${mi}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
350
|
+
|
|
351
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,n]),null};function xo(n){const a=v.useRef({value:n,previous:n});return v.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var hj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),z3="VisuallyHidden",mj=v.forwardRef((n,a)=>u.jsx(se.span,{...n,ref:a,style:{...hj,...n.style}}));mj.displayName=z3;var pj=mj,L3=[" ","Enter","ArrowUp","ArrowDown"],U3=[" ","Enter"],Bc="Select",[dp,$c,q3]=Bi(Bc),[Xi,n6]=bt(Bc,[q3,Yi]),fp=Yi(),[a6,Dl]=Xi(Bc),[l6,H3]=Xi(Bc),vj="SelectTrigger",B3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...o}=n,c=fp(r),h=Dl(vj,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=$c(r),x=v.useRef("touch"),[y,b,S]=_j(j=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=Tj(C,j,_);T!==void 0&&h.onValueChange(T.value)}),E=j=>{m||(h.onOpenChange(!0),S()),j&&(h.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return u.jsx(Pm,{asChild:!0,...c,children:u.jsx(se.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Cj(h.value)?"":void 0,...o,ref:p,onClick:ne(o.onClick,j=>{j.currentTarget.focus(),x.current!=="mouse"&&E(j)}),onPointerDown:ne(o.onPointerDown,j=>{x.current=j.pointerType;const C=j.target;C.hasPointerCapture(j.pointerId)&&C.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(E(j),j.preventDefault())}),onKeyDown:ne(o.onKeyDown,j=>{const C=y.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&b(j.key),!(C&&j.key===" ")&&L3.includes(j.key)&&(E(),j.preventDefault())})})})});B3.displayName=vj;var gj="SelectValue",$3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,children:c,placeholder:h="",...m}=n,p=Dl(gj,r),{onValueNodeHasChildrenChange:g}=p,x=c!==void 0,y=we(a,p.onValueNodeChange);return lt(()=>{g(x)},[g,x]),u.jsx(se.span,{...m,ref:y,style:{pointerEvents:"none"},children:Cj(p.value)?u.jsx(u.Fragment,{children:h}):c})});$3.displayName=gj;var Q3="SelectIcon",G3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...o}=n;return u.jsx(se.span,{"aria-hidden":!0,...o,ref:a,children:i||"▼"})});G3.displayName=Q3;var mr="SelectContent",Y3=v.forwardRef((n,a)=>{const r=Dl(mr,n.__scopeSelect),[i,o]=v.useState();if(lt(()=>{o(new DocumentFragment)},[]),!r.open){const c=i;return c?fo.createPortal(u.jsx(yj,{scope:n.__scopeSelect,children:u.jsx(dp.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(xj,{...n,ref:a})});Y3.displayName=mr;var Dn=10,[yj,Ol]=Xi(mr),V3="SelectContentImpl",K3=dr("SelectContent.RemoveScroll"),xj=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C,..._}=n,T=Dl(mr,r),[R,D]=v.useState(null),[U,K]=v.useState(null),H=we(a,te=>D(te)),[q,G]=v.useState(null),[ee,ue]=v.useState(null),ce=$c(r),[ie,ae]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return tp(R)},[R]),Qm();const z=v.useCallback(te=>{const[Ee,...ye]=ce().map(Ke=>Ke.ref.current),[Ne]=ye.slice(-1),Be=document.activeElement;for(const Ke of te)if(Ke===Be||(Ke==null||Ke.scrollIntoView({block:"nearest"}),Ke===Ee&&U&&(U.scrollTop=0),Ke===Ne&&U&&(U.scrollTop=U.scrollHeight),Ke==null||Ke.focus(),document.activeElement!==Be))return},[ce,U]),J=v.useCallback(()=>z([q,R]),[z,q,R]);v.useEffect(()=>{ie&&J()},[ie,J]);const{onOpenChange:Y,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let te={x:0,y:0};const Ee=Ne=>{var Be,Ke;te={x:Math.abs(Math.round(Ne.pageX)-(((Be=X.current)==null?void 0:Be.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ke=X.current)==null?void 0:Ke.y)??0))}},ye=Ne=>{te.x<=10&&te.y<=10?Ne.preventDefault():R.contains(Ne.target)||Y(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[R,Y,X]),v.useEffect(()=>{const te=()=>Y(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[Y]);const[de,A]=_j(te=>{const Ee=ce().filter(Be=>!Be.disabled),ye=Ee.find(Be=>Be.ref.current===document.activeElement),Ne=Tj(Ee,te,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=v.useCallback((te,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&(G(te),Ne&&(re.current=!0))},[T.value]),W=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((te,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&ue(te)},[T.value]),ve=i==="popper"?fm:bj,Se=ve===fm?{side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:b,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C}:{};return u.jsx(yj,{scope:r,content:R,viewport:U,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:W,itemTextRefCallback:le,focusSelectedItem:J,selectedItemText:ee,position:i,isPositioned:ie,searchRef:de,children:u.jsx(Uc,{as:K3,allowPinchZoom:!0,children:u.jsx(Mc,{asChild:!0,trapped:T.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:ne(o,te=>{var Ee;(Ee=T.trigger)==null||Ee.focus({preventScroll:!0}),te.preventDefault()}),children:u.jsx($i,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:te=>te.preventDefault(),..._,...Se,onPlaced:()=>ae(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ne(_.onKeyDown,te=>{const Ee=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!Ee&&te.key.length===1&&A(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ye=ce().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ne=te.target,Be=ye.indexOf(Ne);ye=ye.slice(Be+1)}setTimeout(()=>z(ye)),te.preventDefault()}})})})})})})});xj.displayName=V3;var X3="SelectItemAlignedPosition",bj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...o}=n,c=Dl(mr,r),h=Ol(mr,r),[m,p]=v.useState(null),[g,x]=v.useState(null),y=we(a,H=>x(H)),b=$c(r),S=v.useRef(!1),E=v.useRef(!0),{viewport:j,selectedItem:C,selectedItemText:_,focusSelectedItem:T}=h,R=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&j&&C&&_){const H=c.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),ee=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=ee.left-q.left,Be=G.left-Ne,Ke=H.left-Be,Ot=H.width+Ke,Jt=Math.max(Ot,q.width),ca=window.innerWidth-Dn,da=lm(Be,[Dn,Math.max(Dn,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.left=da+"px"}else{const Ne=q.right-ee.right,Be=window.innerWidth-G.right-Ne,Ke=window.innerWidth-H.right-Be,Ot=H.width+Ke,Jt=Math.max(Ot,q.width),ca=window.innerWidth-Dn,da=lm(Be,[Dn,Math.max(Dn,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.right=da+"px"}const ue=b(),ce=window.innerHeight-Dn*2,ie=j.scrollHeight,ae=window.getComputedStyle(g),re=parseInt(ae.borderTopWidth,10),z=parseInt(ae.paddingTop,10),J=parseInt(ae.borderBottomWidth,10),Y=parseInt(ae.paddingBottom,10),X=re+z+ie+Y+J,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(j),F=parseInt(A.paddingTop,10),W=parseInt(A.paddingBottom,10),le=H.top+H.height/2-Dn,ve=ce-le,Se=C.offsetHeight/2,te=C.offsetTop+Se,Ee=re+z+te,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const Be=g.clientHeight-j.offsetTop-j.offsetHeight,Ke=Math.max(ve,Se+(Ne?W:0)+Be+J),Ot=Ee+Ke;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const Be=Math.max(le,re+j.offsetTop+(Ne?F:0)+Se)+ye;m.style.height=Be+"px",j.scrollTop=Ee-le+j.offsetTop}m.style.margin=`${Dn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>S.current=!0)}},[b,c.trigger,c.valueNode,m,g,j,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,U]=v.useState();lt(()=>{g&&U(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return u.jsx(Z3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:S,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(se.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});bj.displayName=X3;var F3="SelectPopperPosition",fm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:o=Dn,...c}=n,h=fp(r);return u.jsx(Jm,{...h,...c,ref:a,align:i,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});fm.displayName=F3;var[Z3,hp]=Xi(mr,{}),hm="SelectViewport",P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...o}=n,c=Ol(hm,r),h=hp(hm,r),m=we(a,c.onViewportChange),p=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(dp.Slot,{scope:r,children:u.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=h;if(b!=null&&b.current&&y){const S=Math.abs(p.current-x.scrollTop);if(S>0){const E=window.innerHeight-Dn*2,j=parseFloat(y.style.minHeight),C=parseFloat(y.style.height),_=Math.max(j,C);if(_<E){const T=_+S,R=Math.min(E,T),D=T-R;y.style.height=R+"px",y.style.bottom==="0px"&&(x.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}p.current=x.scrollTop})})})]})});P3.displayName=hm;var wj="SelectGroup",[J3,I3]=Xi(wj),W3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=kl();return u.jsx(J3,{scope:r,id:o,children:u.jsx(se.div,{role:"group","aria-labelledby":o,...i,ref:a})})});W3.displayName=wj;var jj="SelectLabel",eD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=I3(jj,r);return u.jsx(se.div,{id:o.id,...i,ref:a})});eD.displayName=jj;var xc="SelectItem",[tD,Sj]=Xi(xc),nD=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:o=!1,textValue:c,...h}=n,m=Dl(xc,r),p=Ol(xc,r),g=m.value===i,[x,y]=v.useState(c??""),[b,S]=v.useState(!1),E=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,o)}),j=kl(),C=v.useRef("touch"),_=()=>{o||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(tD,{scope:r,value:i,disabled:o,textId:j,isSelected:g,onItemTextChange:v.useCallback(T=>{y(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(dp.ItemSlot,{scope:r,value:i,disabled:o,textValue:x,children:u.jsx(se.div,{role:"option","aria-labelledby":j,"data-highlighted":b?"":void 0,"aria-selected":g&&b,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...h,ref:E,onFocus:ne(h.onFocus,()=>S(!0)),onBlur:ne(h.onBlur,()=>S(!1)),onClick:ne(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ne(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ne(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ne(h.onPointerMove,T=>{var R;C.current=T.pointerType,o?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ne(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(U3.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});nD.displayName=xc;var Fs="SelectItemText",aD=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,...c}=n,h=Dl(Fs,r),m=Ol(Fs,r),p=Sj(Fs,r),g=H3(Fs,r),[x,y]=v.useState(null),b=we(a,_=>y(_),p.onItemTextChange,_=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,_,p.value,p.disabled)}),S=x==null?void 0:x.textContent,E=v.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:S},p.value),[p.disabled,p.value,S]),{onNativeOptionAdd:j,onNativeOptionRemove:C}=g;return lt(()=>(j(E),()=>C(E)),[j,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(se.span,{id:p.textId,...c,ref:b}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?fo.createPortal(c.children,h.valueNode):null]})});aD.displayName=Fs;var Ej="SelectItemIndicator",lD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return Sj(Ej,r).isSelected?u.jsx(se.span,{"aria-hidden":!0,...i,ref:a}):null});lD.displayName=Ej;var mm="SelectScrollUpButton",rD=v.forwardRef((n,a)=>{const r=Ol(mm,n.__scopeSelect),i=hp(mm,n.__scopeSelect),[o,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx(Nj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});rD.displayName=mm;var pm="SelectScrollDownButton",iD=v.forwardRef((n,a)=>{const r=Ol(pm,n.__scopeSelect),i=hp(pm,n.__scopeSelect),[o,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,x=Math.ceil(p.scrollTop)<g;c(x)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx(Nj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});iD.displayName=pm;var Nj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...o}=n,c=Ol("SelectScrollButton",r),h=v.useRef(null),m=$c(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const x=m().find(y=>y.ref.current===document.activeElement);(g=x==null?void 0:x.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.jsx(se.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ne(o.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{p()})})}),sD="SelectSeparator",oD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(se.div,{"aria-hidden":!0,...i,ref:a})});oD.displayName=sD;var vm="SelectArrow",uD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=fp(r),c=Dl(vm,r),h=Ol(vm,r);return c.open&&h.position==="popper"?u.jsx(Im,{...o,...i,ref:a}):null});uD.displayName=vm;var cD="SelectBubbleInput",dD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const o=v.useRef(null),c=we(i,o),h=xo(a);return v.useEffect(()=>{const m=o.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const x=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(x)}},[h,a]),u.jsx(se.select,{...r,style:{...hj,...r.style},ref:c,defaultValue:a})});dD.displayName=cD;function Cj(n){return n===""||n===void 0}function _j(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),o=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,c]}function Tj(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=fD(n,Math.max(o,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function fD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Qc,r6]=bt("Tooltip",[Yi]),mp=Yi(),hD="TooltipProvider",Xx="tooltip.open",[i6,Rj]=Qc(hD),Mj="Tooltip",[s6,Gc]=Qc(Mj),gm="TooltipTrigger",mD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=Gc(gm,r),c=Rj(gm,r),h=mp(r),m=v.useRef(null),p=we(a,m,o.onTriggerChange),g=v.useRef(!1),x=v.useRef(!1),y=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),u.jsx(Pm,{asChild:!0,...h,children:u.jsx(se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:ne(n.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:ne(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:ne(n.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ne(n.onFocus,()=>{g.current||o.onOpen()}),onBlur:ne(n.onBlur,o.onClose),onClick:ne(n.onClick,o.onClose)})})});mD.displayName=gm;var pD="TooltipPortal",[o6,vD]=Qc(pD,{forceMount:void 0}),Ai="TooltipContent",Aj=v.forwardRef((n,a)=>{const r=vD(Ai,n.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...c}=n,h=Gc(Ai,n.__scopeTooltip);return u.jsx(Et,{present:i||h.open,children:h.disableHoverableContent?u.jsx(kj,{side:o,...c,ref:a}):u.jsx(gD,{side:o,...c,ref:a})})}),gD=v.forwardRef((n,a)=>{const r=Gc(Ai,n.__scopeTooltip),i=Rj(Ai,n.__scopeTooltip),o=v.useRef(null),c=we(a,o),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,x=o.current,{onPointerInTransitChange:y}=i,b=v.useCallback(()=>{m(null),y(!1)},[y]),S=v.useCallback((E,j)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},T=jD(_,C.getBoundingClientRect()),R=SD(_,T),D=ED(j.getBoundingClientRect()),U=CD([...R,...D]);m(U),y(!0)},[y]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(p&&x){const E=C=>S(C,x),j=C=>S(C,p);return p.addEventListener("pointerleave",E),x.addEventListener("pointerleave",j),()=>{p.removeEventListener("pointerleave",E),x.removeEventListener("pointerleave",j)}}},[p,x,S,b]),v.useEffect(()=>{if(h){const E=j=>{const C=j.target,_={x:j.clientX,y:j.clientY},T=(p==null?void 0:p.contains(C))||(x==null?void 0:x.contains(C)),R=!ND(_,h);T?b():R&&(b(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,x,h,g,b]),u.jsx(kj,{...n,ref:c})}),[yD,xD]=Qc(Mj,{isInside:!1}),bD=f1("TooltipContent"),kj=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Gc(Ai,r),g=mp(r),{onClose:x}=p;return v.useEffect(()=>(document.addEventListener(Xx,x),()=>document.removeEventListener(Xx,x)),[x]),v.useEffect(()=>{if(p.trigger){const y=b=>{const S=b.target;S!=null&&S.contains(p.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,x]),u.jsx($i,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:u.jsxs(Jm,{"data-state":p.stateAttribute,...g,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(bD,{children:i}),u.jsx(yD,{scope:r,isInside:!0,children:u.jsx(pj,{id:p.contentId,role:"tooltip",children:o||i})})]})})});Aj.displayName=Ai;var Dj="TooltipArrow",wD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=mp(r);return xD(Dj,r).isInside?null:u.jsx(Im,{...o,...i,ref:a})});wD.displayName=Dj;function jD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,o,c)){case c:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function SD(n,a,r=5){const i=[];switch(a){case"top":i.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":i.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":i.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":i.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return i}function ED(n){const{top:a,right:r,bottom:i,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function ND(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,b=p.y;x>i!=b>i&&r<(y-g)*(i-x)/(b-x)+g&&(o=!o)}return o}function CD(n){const a=n.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),_D(a)}function _D(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const o=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const o=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var TD=Aj;TD.displayName;var Yc="Checkbox",[RD,u6]=bt(Yc),[MD,pp]=RD(Yc);function AD(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:o,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:x="on",internal_do_not_use_render:y}=n,[b,S]=ia({prop:r,defaultProp:o??!1,onChange:p,caller:Yc}),[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=E?!!h||!!E.closest("form"):!0,D={checked:b,disabled:c,setChecked:S,control:E,setControl:j,name:m,form:h,value:x,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Tl(o)?!1:o,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(MD,{scope:a,...D,children:OD(y)?y(D):i})}var Oj="CheckboxTrigger",zj=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},o)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:S,bubbleInput:E}=pp(Oj,n),j=we(o,x),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const T=()=>y(C.current);return _.addEventListener("reset",T),()=>_.removeEventListener("reset",T)}},[c,y]),u.jsx(se.button,{type:"button",role:"checkbox","aria-checked":Tl(p)?"mixed":p,"aria-required":g,"data-state":Hj(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:j,onKeyDown:ne(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ne(r,_=>{y(T=>Tl(T)?!0:!T),E&&S&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})});zj.displayName=Oj;var kD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:x,...y}=n;return u.jsx(AD,{__scopeCheckbox:r,checked:o,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:x,value:p,internal_do_not_use_render:({isFormControl:b})=>u.jsxs(u.Fragment,{children:[u.jsx(zj,{...y,ref:a,__scopeCheckbox:r}),b&&u.jsx(qj,{__scopeCheckbox:r})]})})});kD.displayName=Yc;var Lj="CheckboxIndicator",DD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...o}=n,c=pp(Lj,r);return u.jsx(Et,{present:i||Tl(c.checked)||c.checked===!0,children:u.jsx(se.span,{"data-state":Hj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a,style:{pointerEvents:"none",...n.style}})})});DD.displayName=Lj;var Uj="CheckboxBubbleInput",qj=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:x,form:y,bubbleInput:b,setBubbleInput:S}=pp(Uj,n),E=we(r,S),j=xo(c),C=zc(i);v.useEffect(()=>{const T=b;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,U=!o.current;if(j!==c&&D){const K=new Event("click",{bubbles:U});T.indeterminate=Tl(c),D.call(T,Tl(c)?!1:c),T.dispatchEvent(K)}},[b,j,c,o]);const _=v.useRef(Tl(c)?!1:c);return u.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:x,form:y,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});qj.displayName=Uj;function OD(n){return typeof n=="function"}function Tl(n){return n==="indeterminate"}function Hj(n){return Tl(n)?"indeterminate":n?"checked":"unchecked"}var vp="Radio",[zD,Bj]=bt(vp),[LD,UD]=zD(vp),$j=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:o=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...x}=n,[y,b]=v.useState(null),S=we(a,C=>b(C)),E=v.useRef(!1),j=y?g||!!y.closest("form"):!0;return u.jsxs(LD,{scope:r,checked:o,disabled:h,children:[u.jsx(se.button,{type:"button",role:"radio","aria-checked":o,"data-state":Vj(o),"data-disabled":h?"":void 0,disabled:h,value:m,...x,ref:S,onClick:ne(n.onClick,C=>{o||p==null||p(),j&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),j&&u.jsx(Yj,{control:y,bubbles:!E.current,name:i,value:m,checked:o,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});$j.displayName=vp;var Qj="RadioIndicator",Gj=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...o}=n,c=UD(Qj,r);return u.jsx(Et,{present:i||c.checked,children:u.jsx(se.span,{"data-state":Vj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a})})});Gj.displayName=Qj;var qD="RadioBubbleInput",Yj=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=xo(r),g=zc(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&b){const S=new Event("click",{bubbles:i});b.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx(se.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Yj.displayName=qD;function Vj(n){return n?"checked":"unchecked"}var HD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Vc="RadioGroup",[BD,c6]=bt(Vc,[Vi,Bj]),Kj=Vi(),Xj=Bj(),[$D,QD]=BD(Vc),Fj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:o,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:x=!0,onValueChange:y,...b}=n,S=Kj(r),E=Hi(g),[j,C]=ia({prop:c,defaultProp:o??null,onChange:y,caller:Vc});return u.jsx($D,{scope:r,name:i,required:h,disabled:m,value:j,onValueChange:C,children:u.jsx(Wm,{asChild:!0,...S,orientation:p,dir:E,loop:x,children:u.jsx(se.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...b,ref:a})})})});Fj.displayName=Vc;var Zj="RadioGroupItem",Pj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...o}=n,c=QD(Zj,r),h=c.disabled||i,m=Kj(r),p=Xj(r),g=v.useRef(null),x=we(a,g),y=c.value===o.value,b=v.useRef(!1);return v.useEffect(()=>{const S=j=>{HD.includes(j.key)&&(b.current=!0)},E=()=>b.current=!1;return document.addEventListener("keydown",S),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",E)}},[]),u.jsx(ep,{asChild:!0,...m,focusable:!h,active:y,children:u.jsx($j,{disabled:h,required:c.required,checked:y,...p,...o,name:c.name,ref:x,onCheck:()=>c.onValueChange(o.value),onKeyDown:ne(S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:ne(o.onFocus,()=>{var S;b.current&&((S=g.current)==null||S.click())})})})});Pj.displayName=Zj;var GD="RadioGroupIndicator",YD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,o=Xj(r);return u.jsx(Gj,{...o,...i,ref:a})});YD.displayName=GD;var VD=Fj,KD=Pj;VD.displayName;KD.displayName;var Kc="Switch",[XD,d6]=bt(Kc),[FD,ZD]=XD(Kc),Jj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:x,...y}=n,[b,S]=v.useState(null),E=we(a,R=>S(R)),j=v.useRef(!1),C=b?x||!!b.closest("form"):!0,[_,T]=ia({prop:o,defaultProp:c??!1,onChange:g,caller:Kc});return u.jsxs(FD,{scope:r,checked:_,disabled:m,children:[u.jsx(se.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":tS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...y,ref:E,onClick:ne(n.onClick,R=>{T(D=>!D),C&&(j.current=R.isPropagationStopped(),j.current||R.stopPropagation())})}),C&&u.jsx(eS,{control:b,bubbles:!j.current,name:i,value:p,checked:_,required:h,disabled:m,form:x,style:{transform:"translateX(-100%)"}})]})});Jj.displayName=Kc;var Ij="SwitchThumb",Wj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,o=ZD(Ij,r);return u.jsx(se.span,{"data-state":tS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:a})});Wj.displayName=Ij;var PD="SwitchBubbleInput",eS=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=xo(r),g=zc(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&b){const S=new Event("click",{bubbles:i});b.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});eS.displayName=PD;function tS(n){return n?"checked":"unchecked"}var JD=Jj,ID=Wj;function Lh({className:n,...a}){return u.jsx(JD,{"data-slot":"switch",className:pe("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:u.jsx(ID,{"data-slot":"switch-thumb",className:pe("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var Xc="Tabs",[WD,f6]=bt(Xc,[Vi]),nS=Vi(),[eO,gp]=WD(Xc),aS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,x=Hi(m),[y,b]=ia({prop:i,onChange:o,defaultProp:c??"",caller:Xc});return u.jsx(eO,{scope:r,baseId:kl(),value:y,onValueChange:b,orientation:h,dir:x,activationMode:p,children:u.jsx(se.div,{dir:x,"data-orientation":h,...g,ref:a})})});aS.displayName=Xc;var lS="TabsList",rS=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...o}=n,c=gp(lS,r),h=nS(r);return u.jsx(Wm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(se.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:a})})});rS.displayName=lS;var iS="TabsTrigger",sS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:o=!1,...c}=n,h=gp(iS,r),m=nS(r),p=cS(h.baseId,i),g=dS(h.baseId,i),x=i===h.value;return u.jsx(ep,{asChild:!0,...m,focusable:!o,active:x,children:u.jsx(se.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...c,ref:a,onMouseDown:ne(n.onMouseDown,y=>{!o&&y.button===0&&y.ctrlKey===!1?h.onValueChange(i):y.preventDefault()}),onKeyDown:ne(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&h.onValueChange(i)}),onFocus:ne(n.onFocus,()=>{const y=h.activationMode!=="manual";!x&&!o&&y&&h.onValueChange(i)})})})});sS.displayName=iS;var oS="TabsContent",uS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:o,children:c,...h}=n,m=gp(oS,r),p=cS(m.baseId,i),g=dS(m.baseId,i),x=i===m.value,y=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(b)},[]),u.jsx(Et,{present:o||x,children:({present:b})=>u.jsx(se.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!b,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:y.current?"0s":void 0},children:b&&c})})});uS.displayName=oS;function cS(n,a){return`${n}-trigger-${a}`}function dS(n,a){return`${n}-content-${a}`}var tO=aS,nO=rS,aO=sS,lO=uS;function fS({className:n,...a}){return u.jsx(tO,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function hS({className:n,...a}){return u.jsx(nO,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Js({className:n,children:a,...r}){return u.jsx(aO,{asChild:!0,...r,children:u.jsx(p1,{className:n,children:a})})}function Is({className:n,...a}){return u.jsx(lO,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function rO(n){const a=iO(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(oO);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}function iO(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r,h=v.isValidElement(o)?cO(o):void 0,m=we(h,i);if(v.isValidElement(o)){const p=uO(c,o.props);return o.type!==v.Fragment&&(p.ref=m),v.cloneElement(o,p)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var sO=Symbol("radix.slottable");function oO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===sO}function uO(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function cO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var dO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yp=dO.reduce((n,a)=>{const r=rO(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),xp="Progress",bp=100,[fO,h6]=bt(xp),[hO,mO]=fO(xp),pO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:o,getValueLabel:c=gO,...h}=n;(o||o===0)&&!Fx(o)&&console.error(yO(`${o}`,"Progress"));const m=Fx(o)?o:bp;i!==null&&!Zx(i,m)&&console.error(xO(`${i}`,"Progress"));const p=Zx(i,m)?i:null,g=bc(p)?c(p,m):void 0;return u.jsx(hO,{scope:r,value:p,max:m,children:u.jsx(yp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":bc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":pS(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});pO.displayName=xp;var mS="ProgressIndicator",vO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,o=mO(mS,r);return u.jsx(yp.div,{"data-state":pS(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...i,ref:a})});vO.displayName=mS;function gO(n,a){return`${Math.round(n/a*100)}%`}function pS(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function bc(n){return typeof n=="number"}function Fx(n){return bc(n)&&!isNaN(n)&&n>0}function Zx(n,a){return bc(n)&&!isNaN(n)&&n<=a&&n>=0}function yO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${bp}\`.`}function xO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
352
|
+
- a positive number
|
|
353
|
+
- less than the value passed to \`max\` (or ${bp} if no \`max\` prop is set)
|
|
354
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
355
|
+
|
|
356
|
+
Defaulting to \`null\`.`}var bO="Separator",Px="horizontal",wO=["horizontal","vertical"],jO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Px,...o}=n,c=SO(i)?i:Px,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(yp.div,{"data-orientation":c,...h,...o,ref:a})});jO.displayName=bO;function SO(n){return wO.includes(n)}var EO="Label",vS=v.forwardRef((n,a)=>u.jsx(se.label,{...n,ref:a,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));vS.displayName=EO;var gS=vS;const NO=m1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zs=({ref:n,className:a,...r})=>u.jsx(gS,{ref:n,className:pe(NO(),a),...r});Zs.displayName=gS.displayName;var Fc="Collapsible",[CO,yS]=bt(Fc),[_O,wp]=CO(Fc),xS=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:c,onOpenChange:h,...m}=n,[p,g]=ia({prop:i,defaultProp:o??!1,onChange:h,caller:Fc});return u.jsx(_O,{scope:r,disabled:c,contentId:kl(),open:p,onOpenToggle:v.useCallback(()=>g(x=>!x),[g]),children:u.jsx(se.div,{"data-state":Np(p),"data-disabled":c?"":void 0,...m,ref:a})})});xS.displayName=Fc;var bS="CollapsibleTrigger",jp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,o=wp(bS,r);return u.jsx(se.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Np(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:a,onClick:ne(n.onClick,o.onOpenToggle)})});jp.displayName=bS;var Sp="CollapsibleContent",Ep=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=wp(Sp,n.__scopeCollapsible);return u.jsx(Et,{present:r||o.open,children:({present:c})=>u.jsx(TO,{...i,ref:a,present:c})})});Ep.displayName=Sp;var TO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:o,...c}=n,h=wp(Sp,r),[m,p]=v.useState(i),g=v.useRef(null),x=we(a,g),y=v.useRef(0),b=y.current,S=v.useRef(0),E=S.current,j=h.open||m,C=v.useRef(j),_=v.useRef(void 0);return v.useEffect(()=>{const T=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(T)},[]),lt(()=>{const T=g.current;if(T){_.current=_.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const R=T.getBoundingClientRect();y.current=R.height,S.current=R.width,C.current||(T.style.transitionDuration=_.current.transitionDuration,T.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(se.div,{"data-state":Np(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!j,...c,ref:x,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:j&&o})});function Np(n){return n?"open":"closed"}var wS=xS,RO=jp,MO=Ep,Yn="Accordion",AO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cp,kO,DO]=Bi(Yn),[Zc,m6]=bt(Yn,[DO,yS]),_p=yS(),OO=ut.forwardRef((n,a)=>{const{type:r,...i}=n,o=i,c=i;return u.jsx(Cp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(qO,{...c,ref:a}):u.jsx(UO,{...o,ref:a})})});OO.displayName=Yn;var[jS,zO]=Zc(Yn),[SS,LO]=Zc(Yn,{collapsible:!1}),UO=ut.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:c=!1,...h}=n,[m,p]=ia({prop:r,defaultProp:i??"",onChange:o,caller:Yn});return u.jsx(jS,{scope:n.__scopeAccordion,value:ut.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:ut.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(SS,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(ES,{...h,ref:a})})})}),qO=ut.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},...c}=n,[h,m]=ia({prop:r,defaultProp:i??[],onChange:o,caller:Yn}),p=ut.useCallback(x=>m((y=[])=>[...y,x]),[m]),g=ut.useCallback(x=>m((y=[])=>y.filter(b=>b!==x)),[m]);return u.jsx(jS,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(SS,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(ES,{...c,ref:a})})})}),[HO,Pc]=Zc(Yn),ES=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:o,orientation:c="vertical",...h}=n,m=ut.useRef(null),p=we(m,a),g=kO(r),x=Hi(o)==="ltr",y=ne(n.onKeyDown,b=>{var S;if(!AO.includes(b.key))return;const E=b.target,j=g().filter(q=>{var G;return!((G=q.ref.current)!=null&&G.disabled)}),C=j.findIndex(q=>q.ref.current===E),_=j.length;if(C===-1)return;b.preventDefault();let T=C;const R=0,D=_-1,U=()=>{T=C+1,T>D&&(T=R)},K=()=>{T=C-1,T<R&&(T=D)};switch(b.key){case"Home":T=R;break;case"End":T=D;break;case"ArrowRight":c==="horizontal"&&(x?U():K());break;case"ArrowDown":c==="vertical"&&U();break;case"ArrowLeft":c==="horizontal"&&(x?K():U());break;case"ArrowUp":c==="vertical"&&K();break}const H=T%_;(S=j[H].ref.current)==null||S.focus()});return u.jsx(HO,{scope:r,disabled:i,direction:o,orientation:c,children:u.jsx(Cp.Slot,{scope:r,children:u.jsx(se.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:y})})})}),wc="AccordionItem",[BO,Tp]=Zc(wc),$O=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...o}=n,c=Pc(wc,r),h=zO(wc,r),m=_p(r),p=kl(),g=i&&h.value.includes(i)||!1,x=c.disabled||n.disabled;return u.jsx(BO,{scope:r,open:g,disabled:x,triggerId:p,children:u.jsx(wS,{"data-orientation":c.orientation,"data-state":_S(g),...m,...o,ref:a,disabled:x,open:g,onOpenChange:y=>{y?h.onItemOpen(i):h.onItemClose(i)}})})});$O.displayName=wc;var NS="AccordionHeader",QO=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Yn,r),c=Tp(NS,r);return u.jsx(se.h3,{"data-orientation":o.orientation,"data-state":_S(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});QO.displayName=NS;var ym="AccordionTrigger",GO=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Yn,r),c=Tp(ym,r),h=LO(ym,r),m=_p(r);return u.jsx(Cp.ItemSlot,{scope:r,children:u.jsx(RO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":o.orientation,id:c.triggerId,...m,...i,ref:a})})});GO.displayName=ym;var CS="AccordionContent",YO=ut.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Pc(Yn,r),c=Tp(CS,r),h=_p(r);return u.jsx(MO,{role:"region","aria-labelledby":c.triggerId,"data-orientation":o.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});YO.displayName=CS;function _S(n){return n?"open":"closed"}const TS=wS,RS=jp,MS=Ep;var br="NavigationMenu",[Rp,AS,VO]=Bi(br),[xm,KO,XO]=Bi(br),[Mp,p6]=bt(br,[VO,XO]),[FO,Rn]=Mp(br),[ZO,PO]=Mp(br),JO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...x}=n,[y,b]=v.useState(null),S=we(a,G=>b(G)),E=Hi(g),j=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,U]=ia({prop:i,onChange:G=>{const ee=G!=="",ue=m>0;ee?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),o==null||o(G)},defaultProp:c??"",caller:br}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>U(""),150)},[U]),H=v.useCallback(G=>{window.clearTimeout(C.current),U(G)},[U]),q=v.useCallback(G=>{D===G?window.clearTimeout(C.current):j.current=window.setTimeout(()=>{window.clearTimeout(C.current),U(G)},h)},[D,U,h]);return v.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(kS,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:y,onTriggerEnter:G=>{window.clearTimeout(j.current),T?q(G):H(G)},onTriggerLeave:()=>{window.clearTimeout(j.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:G=>{U(ee=>ee===G?"":G)},onItemDismiss:()=>U(""),children:u.jsx(se.nav,{"aria-label":"Main","data-orientation":p,dir:E,...x,ref:S})})});JO.displayName=br;var bm="NavigationMenuSub",IO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",...m}=n,p=Rn(bm,r),[g,x]=ia({prop:i,onChange:o,defaultProp:c??"",caller:bm});return u.jsx(kS,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:y=>x(y),onItemSelect:y=>x(y),onItemDismiss:()=>x(""),children:u.jsx(se.div,{"data-orientation":h,...m,ref:a})})});IO.displayName=bm;var kS=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:x,onTriggerLeave:y,onContentEnter:b,onContentLeave:S}=n,[E,j]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx(FO,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:xo(m),baseId:kl(),dir:o,orientation:c,viewport:E,onViewportChange:j,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(x),onTriggerLeave:nt(y),onContentEnter:nt(b),onContentLeave:nt(S),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,U)=>{_(K=>(K.set(D,U),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(U=>U.has(D)?(U.delete(D),new Map(U)):U)},[]),children:u.jsx(Rp.Provider,{scope:a,children:u.jsx(ZO,{scope:a,items:C,children:h})})})},DS="NavigationMenuList",WO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Rn(DS,r),c=u.jsx(se.ul,{"data-orientation":o.orientation,...i,ref:a});return u.jsx(se.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(Rp.Slot,{scope:r,children:o.isRootMenu?u.jsx(US,{asChild:!0,children:c}):c})})});WO.displayName=DS;var OS="NavigationMenuItem",[e5,zS]=Mp(OS),t5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...o}=n,c=kl(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),x=v.useRef(()=>{}),y=v.useRef(!1),b=v.useCallback((E="start")=>{if(m.current){x.current();const j=jm(m.current);j.length&&Dp(E==="start"?j:j.reverse())}},[]),S=v.useCallback(()=>{if(m.current){const E=jm(m.current);E.length&&(x.current=h5(E))}},[]);return u.jsx(e5,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:b,onFocusProxyEnter:b,onRootContentClose:S,onContentFocusOutside:S,children:u.jsx(se.li,{...o,ref:a})})});t5.displayName=OS;var wm="NavigationMenuTrigger",n5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...o}=n,c=Rn(wm,n.__scopeNavigationMenu),h=zS(wm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=HS(c.baseId,h.value),x=BS(c.baseId,h.value),y=v.useRef(!1),b=v.useRef(!1),S=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(Rp.ItemSlot,{scope:r,value:h.value,children:u.jsx(qS,{asChild:!0,children:u.jsx(se.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Op(S),"aria-expanded":S,"aria-controls":x,...o,ref:p,onPointerEnter:ne(n.onPointerEnter,()=>{b.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ne(n.onPointerMove,jc(()=>{i||b.current||h.wasEscapeCloseRef.current||y.current||(c.onTriggerEnter(h.value),y.current=!0)})),onPointerLeave:ne(n.onPointerLeave,jc(()=>{i||(c.onTriggerLeave(),y.current=!1)})),onClick:ne(n.onClick,()=>{c.onItemSelect(h.value),b.current=S}),onKeyDown:ne(n.onKeyDown,E=>{const j={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];S&&E.key===j&&(h.onEntryKeyDown(),E.preventDefault())})})})}),S&&u.jsxs(u.Fragment,{children:[u.jsx(pj,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const j=h.contentRef.current,C=E.relatedTarget,_=C===m.current,T=j==null?void 0:j.contains(C);(_||!T)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":x})]})]})});n5.displayName=wm;var a5="NavigationMenuLink",Jx="navigationMenu.linkSelect",l5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:o,...c}=n;return u.jsx(qS,{asChild:!0,children:u.jsx(se.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ne(n.onClick,h=>{const m=h.target,p=new CustomEvent(Jx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Jx,g=>o==null?void 0:o(g),{once:!0}),uc(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(ac,{bubbles:!0,cancelable:!0});uc(m,g)}},{checkForDefaultPrevented:!1})})})});l5.displayName=a5;var Ap="NavigationMenuIndicator",r5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(Ap,n.__scopeNavigationMenu),c=!!o.value;return o.indicatorTrack?Yb.createPortal(u.jsx(Et,{present:r||c,children:u.jsx(i5,{...i,ref:a})}),o.indicatorTrack):null});r5.displayName=Ap;var i5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Rn(Ap,r),c=AS(r),[h,m]=v.useState(null),[p,g]=v.useState(null),x=o.orientation==="horizontal",y=!!o.value;v.useEffect(()=>{var S;const E=(S=c().find(j=>j.value===o.value))==null?void 0:S.ref.current;E&&m(E)},[c,o.value]);const b=()=>{h&&g({size:x?h.offsetWidth:h.offsetHeight,offset:x?h.offsetLeft:h.offsetTop})};return Sm(h,b),Sm(o.indicatorTrack,b),p?u.jsx(se.div,{"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":o.orientation,...i,ref:a,style:{position:"absolute",...x?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),ki="NavigationMenuContent",s5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ki,n.__scopeNavigationMenu),c=zS(ki,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===o.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return o.viewport?u.jsx(o5,{forceMount:r,...p,ref:h}):u.jsx(Et,{present:r||m,children:u.jsx(LS,{"data-state":Op(m),...p,ref:h,onPointerEnter:ne(n.onPointerEnter,o.onContentEnter),onPointerLeave:ne(n.onPointerLeave,jc(o.onContentLeave)),style:{pointerEvents:!m&&o.isRootMenu?"none":void 0,...p.style}})})});s5.displayName=ki;var o5=v.forwardRef((n,a)=>{const r=Rn(ki,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:o}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>o(n.value),[n.value,o]),null}),ac="navigationMenu.rootContentDismiss",LS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,x=Rn(ki,r),y=v.useRef(null),b=we(y,a),S=HS(x.baseId,i),E=BS(x.baseId,i),j=AS(r),C=v.useRef(null),{onItemDismiss:_}=x;v.useEffect(()=>{const R=y.current;if(x.isRootMenu&&R){const D=()=>{var U;_(),m(),R.contains(document.activeElement)&&((U=o.current)==null||U.focus())};return R.addEventListener(ac,D),()=>R.removeEventListener(ac,D)}},[x.isRootMenu,n.value,o,_,m]);const T=v.useMemo(()=>{const R=j().map(G=>G.value);x.dir==="rtl"&&R.reverse();const D=R.indexOf(x.value),U=R.indexOf(x.previousValue),K=i===x.value,H=U===R.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==U){if(K&&U!==-1)return D>U?"from-end":"from-start";if(H&&D!==-1)return D>U?"to-start":"to-end"}return null})();return C.current=q,q},[x.previousValue,x.value,x.dir,j,i]);return u.jsx(US,{asChild:!0,children:u.jsx($i,{id:E,"aria-labelledby":S,"data-motion":T,"data-orientation":x.orientation,...g,ref:b,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(ac,{bubbles:!0,cancelable:!0});(R=y.current)==null||R.dispatchEvent(D)},onFocusOutside:ne(n.onFocusOutside,R=>{var D;p();const U=R.target;(D=x.rootNavigationMenu)!=null&&D.contains(U)&&R.preventDefault()}),onPointerDownOutside:ne(n.onPointerDownOutside,R=>{var D;const U=R.target,K=j().some(q=>{var G;return(G=q.ref.current)==null?void 0:G.contains(U)}),H=x.isRootMenu&&((D=x.viewport)==null?void 0:D.contains(U));(K||H||!x.isRootMenu)&&R.preventDefault()}),onKeyDown:ne(n.onKeyDown,R=>{var D;const U=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!U){const K=jm(R.currentTarget),H=document.activeElement,q=K.findIndex(ee=>ee===H),G=R.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);Dp(G)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ne(n.onEscapeKeyDown,R=>{h.current=!0})})})}),kp="NavigationMenuViewport",u5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=!!Rn(kp,n.__scopeNavigationMenu).value;return u.jsx(Et,{present:r||o,children:u.jsx(c5,{...i,ref:a})})});u5.displayName=kp;var c5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...o}=n,c=Rn(kp,r),h=we(a,c.onViewportChange),m=PO(ki,n.__scopeNavigationMenu),[p,g]=v.useState(null),[x,y]=v.useState(null),b=p?(p==null?void 0:p.width)+"px":void 0,S=p?(p==null?void 0:p.height)+"px":void 0,E=!!c.value,j=E?c.value:c.previousValue;return Sm(x,()=>{x&&g({width:x.offsetWidth,height:x.offsetHeight})}),u.jsx(se.div,{"data-state":Op(E),"data-orientation":c.orientation,...o,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":b,"--radix-navigation-menu-viewport-height":S,...o.style},onPointerEnter:ne(n.onPointerEnter,c.onContentEnter),onPointerLeave:ne(n.onPointerLeave,jc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=j===C;return u.jsx(Et,{present:T||D,children:u.jsx(LS,{...R,ref:po(_,U=>{D&&U&&y(U)})})},C)})})}),d5="FocusGroup",US=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Rn(d5,r);return u.jsx(xm.Provider,{scope:r,children:u.jsx(xm.Slot,{scope:r,children:u.jsx(se.div,{dir:o.dir,...i,ref:a})})})}),Ix=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],f5="FocusGroupItem",qS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=KO(r),c=Rn(f5,r);return u.jsx(xm.ItemSlot,{scope:r,children:u.jsx(se.button,{...i,ref:a,onKeyDown:ne(n.onKeyDown,h=>{if(["Home","End",...Ix].includes(h.key)){let m=o().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Ix.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Dp(m)),h.preventDefault()}})})})});function jm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Dp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function h5(n){return n.forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")}),()=>{n.forEach(a=>{const r=a.dataset.tabindex;a.setAttribute("tabindex",r)})}}function Sm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}function Op(n){return n?"open":"closed"}function HS(n,a){return`${n}-trigger-${a}`}function BS(n,a){return`${n}-content-${a}`}function jc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Wx={exports:{}},Uh={};/**
|
|
357
|
+
* @license React
|
|
358
|
+
* use-sync-external-store-shim.production.js
|
|
359
|
+
*
|
|
360
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the MIT license found in the
|
|
363
|
+
* LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/var eb;function m5(){if(eb)return Uh;eb=1;var n=ut;function a(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,o=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(y,b){var S=b(),E=i({inst:{value:S,getSnapshot:b}}),j=E[0].inst,C=E[1];return c(function(){j.value=S,j.getSnapshot=b,p(j)&&C({inst:j})},[y,S,b]),o(function(){return p(j)&&C({inst:j}),y(function(){p(j)&&C({inst:j})})},[y]),h(S),S}function p(y){var b=y.getSnapshot;y=y.value;try{var S=b();return!r(y,S)}catch{return!0}}function g(y,b){return b()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Uh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,Uh}var tb;function p5(){return tb||(tb=1,Wx.exports=m5()),Wx.exports}var v5=p5();function g5(){return v5.useSyncExternalStore(y5,()=>!0,()=>!1)}function y5(){return()=>{}}var zp="Avatar",[x5,v6]=bt(zp),[b5,$S]=x5(zp),QS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[o,c]=v.useState("idle");return u.jsx(b5,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:u.jsx(se.span,{...i,ref:a})})});QS.displayName=zp;var GS="AvatarImage",YS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:o=()=>{},...c}=n,h=$S(GS,r),m=w5(i,c),p=nt(g=>{o(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(se.img,{...c,ref:a,src:i}):null});YS.displayName=GS;var VS="AvatarFallback",KS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...o}=n,c=$S(VS,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&c.imageLoadingStatus!=="loaded"?u.jsx(se.span,{...o,ref:a}):null});KS.displayName=VS;function nb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function w5(n,{referrerPolicy:a,crossOrigin:r}){const i=g5(),o=v.useRef(null),c=i?(o.current||(o.current=new window.Image),o.current):null,[h,m]=v.useState(()=>nb(c,n));return lt(()=>{m(nb(c,n))},[c,n]),lt(()=>{const p=y=>()=>{m(y)};if(!c)return;const g=p("loaded"),x=p("error");return c.addEventListener("load",g),c.addEventListener("error",x),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",x)}},[c,r,a]),h}var j5=QS,S5=YS,E5=KS;j5.displayName;S5.displayName;E5.displayName;a3.displayName;l3.displayName;Jk.displayName;Wk.displayName;e3.displayName;t3.displayName;Ik.displayName;n3.displayName;pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const N5="";async function rt(n,a){const r=await fetch(`${N5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return await r.json()}async function Lp(){return await rt("/api/config")}async function C5(n,a){return await rt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function _5(n){return await rt(`/api/db/${n}/tables`)}async function T5(n,a,r,i){return await rt(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function R5(n){return await rt(`/api/db/${n}/schema`)}async function M5(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),await rt(`/api/state/${n}/entries?${o.toString()}`)}async function A5(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),await rt(`/api/cache/${n}/entries?${o.toString()}`)}async function k5(n){return await rt(`/api/queue/${n}/metrics`)}async function D5(n,a=10){return await rt(`/api/queue/${n}/messages?limit=${a}`)}async function O5(n,a=20,r=0,i,o){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),o&&c.set("since",o),await rt(`/api/workflow/${n}/executions?${c.toString()}`)}async function z5(n,a){return await rt(`/api/workflow/${n}/executions/${a}`)}async function L5(n,a=20,r=0){return await rt(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function U5(n){return await rt(`/api/timer/${n}/metrics`)}async function q5(n,a=20){return await rt(`/api/timer/${n}/executions?limit=${a}`)}async function H5(n,a=20){return await rt(`/api/cron/${n}/executions?limit=${a}`)}async function B5(n){return await rt(`/api/cron/${n}/trigger`,{method:"POST"})}async function $5(){return await rt("/api/auth/tables")}async function Q5(n,a,r){return await rt(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function G5(){return await rt("/api/auth/schema")}async function Y5(n){return await rt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function V5(){return await rt("/api/auth/settings")}async function K5(n){return await rt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function X5(n,a=20,r=0){return await rt(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function Qa(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function ua({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Fi({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Un({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(gt,{children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(yt,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(qn,{className:"h-5 w-5 animate-spin"}):a})})]})}function wr({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const F5={PENDING:{variant:"default",icon:u.jsx(gr,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(q_,{className:"h-3 w-3"}),label:"Cancelled"}},Z5={PENDING:{variant:"default",icon:u.jsx(gr,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(Z_,{className:"h-3 w-3"}),label:"Dead Letter"}};function Up({status:n}){const a=F5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}const P5={PENDING:{variant:"default",icon:u.jsx(gr,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"}};function XS({status:n}){const a=P5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}function J5({status:n}){const a=Z5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}function I5(n){if(n<1e3)return`${n}ms`;const a=Math.floor(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),i=a%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;const o=Math.floor(r/60),c=r%60;if(o<24)return c===0?`${o}h`:`${o}h ${c}m`;const h=Math.floor(o/24),m=o%24;return m===0?`${h}d`:`${h}d ${m}h`}function W5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(gr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function ez({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Scheduled Timers"}),u.jsx(Bt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"ID"}),u.jsx(Me,{children:"Status"}),u.jsx(Me,{children:"Scheduled Time"}),u.jsx(Me,{children:"Interval"}),u.jsx(Me,{children:"Payload"}),u.jsx(Me,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Ae,{children:u.jsx(XS,{status:r.status})}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Ae,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(vT,{className:"h-3 w-3"}),I5(r.intervalMs)]}):"-"}),u.jsx(Ae,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timers scheduled"})})]})}function tz({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent timer handler executions"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"Timer ID"}),u.jsx(Me,{children:"Status"}),u.jsx(Me,{children:"Scheduled Time"}),u.jsx(Me,{children:"Duration"}),u.jsx(Me,{children:"Error"}),u.jsx(Me,{children:"Executed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{children:u.jsx(Fi,{id:r.timerId})}),u.jsx(Ae,{children:u.jsx(XS,{status:r.status})}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Ae,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Ae,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timer executions yet"})})]})}function nz(){const{binding:n}=$a(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["timerMetrics",a],queryFn:()=>U5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["timerEntries",a],queryFn:()=>L5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=ft({queryKey:["timerExecutions",a],queryFn:()=>q5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`Timers: ${a}`}),u.jsx(W5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(ez,{entries:o==null?void 0:o.entries,isLoading:c}),u.jsx(tz,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function az({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Zb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function lz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(TS,{open:r,onOpenChange:i,children:[u.jsxs(RS,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Kb,{className:"h-4 w-4 shrink-0"}):u.jsx(vr,{className:"h-4 w-4 shrink-0"}),u.jsx(_c,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(MS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(az,{column:o,onInsertText:a},o.name))})})]})}function rz({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=ft({queryKey:["auth-schema"],queryFn:G5,staleTime:3e4}),o=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(He,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(mo,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(R1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):o.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:o.map(c=>u.jsx(lz,{table:c,onInsertText:n},c.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function iz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function sz(n){if(n<60)return`${n} seconds`;if(n<3600)return`${Math.floor(n/60)} minutes`;if(n<86400){const r=Math.floor(n/3600);return`${r} hour${r>1?"s":""}`}const a=Math.floor(n/86400);return`${a} day${a>1?"s":""}`}function oz({settings:n,onUpdate:a,isUpdating:r}){const[i,o]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,x]=v.useState(n.requireName),y=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:g})},b=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Zs,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(qm,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:S=>o(S.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",sz(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Zs,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(Lh,{checked:c,onCheckedChange:h})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Zs,{children:"Require Email Verification"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),u.jsx(Lh,{checked:m,onCheckedChange:p})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Zs,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(Lh,{checked:g,onCheckedChange:x})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(He,{onClick:y,disabled:!b||r,children:r?"Saving...":"Save Settings"})})]})}function uz(){var ie,ae,re,z,J,Y;const n=Ec(),[a,r]=v.useState("settings"),[i,o]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,x]=v.useState(null),[y,b]=v.useState(0),S=50,j=((ae=(ie=ft({queryKey:["config"],queryFn:Lp,staleTime:6e4}).data)==null?void 0:ie.auth)==null?void 0:ae.binding)||"AUTH",C=ft({queryKey:["auth-settings"],queryFn:V5,staleTime:0}),_=ic({mutationFn:K5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{o(de=>de+X)},[]),D=ic({mutationFn:X=>Y5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),U=()=>{i.trim()&&D.mutate(i)},K=ft({queryKey:["auth-tables"],queryFn:$5,staleTime:0,gcTime:0}),H=ft({queryKey:["auth-tableData",g,S,y],queryFn:()=>Q5(g,S,y),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],G=((z=H.data)==null?void 0:z.data)||[],ee=((J=H.data)==null?void 0:J.columns)||[],ue=((Y=H.data)==null?void 0:Y.total)||0,ce=X=>{x(X),b(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",j]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Fb,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),u.jsxs(fS,{value:a,onValueChange:r,children:[u.jsxs(hS,{children:[u.jsxs(Js,{value:"settings",children:[u.jsx(xT,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Is,{value:"settings",className:"mt-4",children:u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Auth Settings"}),u.jsx(Bt,{children:"Configure authentication settings for local development."})]}),u.jsx(yt,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(oz,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Is,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>o(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&U()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(He,{onClick:U,disabled:D.isPending||!i.trim(),children:[u.jsx(Lm,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(c1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(rz,{onInsertText:R})})]})}),u.jsx(Is,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(He,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(mo,{className:"h-4 w-4"})})]}),u.jsx(yt,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:q.map(X=>u.jsxs("button",{onClick:()=>ce(X.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===X.name?"bg-muted font-medium":""}`,children:[u.jsx(_c,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:g||"Select a Table"}),g&&u.jsxs(Bt,{children:[ue," total rows"]})]}),u.jsx(yt,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:ee.map(X=>u.jsx(Me,{className:"font-mono",children:X},X))})}),u.jsx(la,{children:G.map((X,de)=>u.jsx(xt,{children:ee.map(A=>u.jsx(Ae,{className:"font-mono text-sm",children:iz(X[A])},A))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",y+1," -"," ",Math.min(y+S,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(He,{variant:"outline",size:"sm",disabled:y===0,onClick:()=>b(Math.max(0,y-S)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(He,{variant:"outline",size:"sm",disabled:y+S>=ue,onClick:()=>b(y+S),children:["Next",u.jsx(vr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function cz({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,o=(n==null?void 0:n.filter(c=>c.status==="FAILED").length)??0;return u.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[u.jsx(Un,{title:"Schedule",value:a??"-",icon:u.jsx(gr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Un,{title:"Completed",value:i,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Un,{title:"Failed",value:o,icon:u.jsx(Li,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function dz({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"ID"}),u.jsx(Me,{children:"Status"}),u.jsx(Me,{children:"Triggered"}),u.jsx(Me,{children:"Duration"}),u.jsx(Me,{children:"Error"}),u.jsx(Me,{children:"Completed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Ae,{children:u.jsx(Up,{status:r.status})}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.triggeredAt})}),u.jsx(Ae,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Ae,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Ae,{children:r.completedAt?u.jsx(cn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(ua,{children:"No cron executions yet"})})]})}function fz(){const{binding:n}=$a(),a=n||"",r=Ec(),{data:i,isLoading:o}=ft({queryKey:["cronExecutions",a],queryFn:()=>H5(a,20),enabled:!!a,refetchInterval:5e3}),c=ic({mutationFn:()=>B5(a),onSettled:()=>{r.invalidateQueries({queryKey:["cronExecutions",a]})}});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`Cron: ${a}`,children:u.jsxs(He,{size:"sm",disabled:!a||c.isPending,onClick:()=>{c.mutate()},children:[u.jsx(Lm,{className:"h-4 w-4 mr-1"}),c.isPending?"Running...":"Run now"]})}),u.jsx(cz,{executions:i==null?void 0:i.executions,cronExpression:i==null?void 0:i.cronExpression,isLoading:o}),u.jsx(dz,{executions:i==null?void 0:i.executions,isLoading:o})]})})}const er=20;function hz(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:n<1024*1024*1024?`${(n/(1024*1024)).toFixed(1)} MB`:`${(n/(1024*1024*1024)).toFixed(1)} GB`}function mz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Files"}),u.jsx(Bt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"Key"}),u.jsx(Me,{children:"Size"}),u.jsx(Me,{children:"Content Type"}),u.jsx(Me,{children:"Created At"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{className:"font-mono text-sm",children:r.key}),u.jsx(Ae,{className:"text-sm text-muted-foreground",children:hz(r.size)}),u.jsx(Ae,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(Ae,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(ua,{children:"No files in this storage"})})]})}function pz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ft({queryKey:["fileStorageEntries",a,r],queryFn:()=>X5(a,er,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/er)+1,p=Math.ceil(h/er);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Un,{title:"Total Files",value:h})}),u.jsx(mz,{entries:o==null?void 0:o.entries,isLoading:c}),h>er&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-er)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(r+er),disabled:r+er>=h,children:["Next",u.jsx(vr,{className:"h-4 w-4"})]})]})]})]})})}const Zu=20;function vz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"State Entries"}),u.jsx(Bt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"Key"}),u.jsx(Me,{children:"Value"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{className:"font-mono text-sm",children:r.key}),u.jsx(Ae,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(ua,{children:"No entries in this state store"})})]})}function gz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ft({queryKey:["stateEntries",a,r,o],queryFn:()=>M5(a,Zu,r,o),enabled:!!a,refetchInterval:5e3}),x=(p==null?void 0:p.hasMore)??!1,y=Math.floor(r/Zu)+1,b=S=>{S.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:b,className:"flex gap-2",children:[u.jsx(qm,{placeholder:"Search by key...",value:h,onChange:S=>m(S.target.value),className:"max-w-sm"}),u.jsxs(He,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(Pb,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(vz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||x)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",y]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Zu)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(r+Zu),disabled:!x,children:["Next",u.jsx(vr,{className:"h-4 w-4"})]})]})]})]})})}const Pu=20;function yz(n){if(n===null)return"Never";const a=n-Math.floor(Date.now()/1e3);return a<=0?"Expired":a<60?`${a}s`:a<3600?`${Math.floor(a/60)}m`:a<86400?`${Math.floor(a/3600)}h`:`${Math.floor(a/86400)}d`}function xz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Cache Entries"}),u.jsx(Bt,{children:"Key-value entries in this cache store (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"Key"}),u.jsx(Me,{children:"Value"}),u.jsx(Me,{children:"Expires"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{className:"font-mono text-sm",children:r.key}),u.jsx(Ae,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(Ae,{className:"font-mono text-xs text-muted-foreground",children:yz(r.expiresAt)})]},r.key))})]}):u.jsx(ua,{children:"No entries in this cache store"})})]})}function bz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ft({queryKey:["cacheEntries",a,r,o],queryFn:()=>A5(a,Pu,r,o),enabled:!!a,refetchInterval:5e3}),x=(p==null?void 0:p.hasMore)??!1,y=Math.floor(r/Pu)+1,b=S=>{S.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`Cache: ${a}`}),u.jsxs("form",{onSubmit:b,className:"flex gap-2",children:[u.jsx(qm,{placeholder:"Search by key...",value:h,onChange:S=>m(S.target.value),className:"max-w-sm"}),u.jsxs(He,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(Pb,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(He,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(xz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||x)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",y]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Pu)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(He,{variant:"outline",size:"sm",onClick:()=>i(r+Pu),disabled:!x,children:["Next",u.jsx(vr,{className:"h-4 w-4"})]})]})]})]})})}function wz({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Zb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function jz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(TS,{open:r,onOpenChange:i,children:[u.jsxs(RS,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Kb,{className:"h-4 w-4 shrink-0"}):u.jsx(vr,{className:"h-4 w-4 shrink-0"}),u.jsx(_c,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(MS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(wz,{column:o,onInsertText:a},o.name))})})]})}function Sz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:o}=ft({queryKey:["schema",n],queryFn:()=>R5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),u.jsx(He,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>o(),disabled:i,children:u.jsx(mo,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(R1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:i?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:h.map(m=>u.jsx(jz,{table:m,onInsertText:a},m.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function Ez(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Nz(){var G,ee,ue,ce;const{binding:n}=$a(),a=n||"",[r,i]=v.useState("query"),[o,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[x,y]=v.useState(null),[b,S]=v.useState(0),E=50,j=v.useCallback(ie=>{c(ae=>ae+ie)},[]),C=ic({mutationFn:ie=>C5(a,ie),onSuccess:ie=>{m(ie),g(null)},onError:ie=>{g(ie instanceof Error?ie.message:"Failed to execute query"),m(null)}}),_=()=>{o.trim()&&C.mutate(o)},T=ft({queryKey:["tables",a],queryFn:()=>_5(a),staleTime:0,gcTime:0,enabled:!!a}),R=ft({queryKey:["tableData",a,x,E,b],queryFn:()=>T5(a,x,E,b),staleTime:0,gcTime:0,enabled:!!a&&!!x}),D=((G=T.data)==null?void 0:G.tables)||[],U=((ee=R.data)==null?void 0:ee.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],H=((ce=R.data)==null?void 0:ce.total)||0,q=ie=>{y(ie),S(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(fS,{value:r,onValueChange:i,children:[u.jsxs(hS,{children:[u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Is,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute SQL queries against your database"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:o,onChange:ie=>c(ie.target.value),onKeyDown:ie=>{(ie.metaKey||ie.ctrlKey)&&ie.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),u.jsxs(He,{onClick:_,disabled:C.isPending||!o.trim(),children:[u.jsx(Lm,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(c1,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(Sz,{bindingName:a,onInsertText:j})})]})}),u.jsx(Is,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(He,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(mo,{className:"h-4 w-4"})})]}),u.jsx(yt,{children:T.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(ie=>u.jsxs("button",{onClick:()=>q(ie.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===ie.name?"bg-muted font-medium":""}`,children:[u.jsx(_c,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:ie.name})]},ie.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:x||"Select a Table"}),x&&u.jsxs(Bt,{children:[H," total rows"]})]}),u.jsx(yt,{children:x?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):U.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:K.map(ie=>u.jsx(Me,{className:"font-mono",children:ie},ie))})}),u.jsx(la,{children:U.map((ie,ae)=>u.jsx(xt,{children:K.map(re=>u.jsx(Ae,{className:"font-mono text-sm",children:Ez(ie[re])},re))},ae))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," -"," ",Math.min(b+E,H)," of ",H]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(He,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>S(Math.max(0,b-E)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(He,{variant:"outline",size:"sm",disabled:b+E>=H,onClick:()=>S(b+E),children:["Next",u.jsx(vr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Cz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(gr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(qn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Un,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(Li,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Un,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(fT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function _z({messages:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Messages"}),u.jsx(Bt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"ID"}),u.jsx(Me,{children:"Status"}),u.jsx(Me,{children:"Payload"}),u.jsx(Me,{children:"Attempt"}),u.jsx(Me,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Ae,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Ae,{children:u.jsx(J5,{status:r.status})}),u.jsx(Ae,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(Ae,{children:r.attempt}),u.jsx(Ae,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No messages in this queue"})})]})}function Tz(){const{binding:n}=$a(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["queueMetrics",a],queryFn:()=>k5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["queueMessages",a],queryFn:()=>D5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`Queue: ${a}`}),u.jsx(Cz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(_z,{messages:o==null?void 0:o.messages,isLoading:c})]})})}function Ps(n){return n!=null}function Rz(n,a){const r=[];n&&Ps(n.input)&&r.push("execution-input"),n&&Ps(n.output)&&r.push("execution-output");for(const i of a)Ps(i.input)&&r.push(`${i.id}-input`),Ps(i.output)&&r.push(`${i.id}-output`);return r}function Sc({id:n,label:a,value:r,isOpen:i,onToggle:o}){return Ps(r)?u.jsxs("details",{className:"mt-2",open:i,onToggle:c=>{o(n,c.currentTarget.open)},children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:a}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r,null,2)})]}):null}function Mz({status:n}){switch(n){case"COMPLETED":return u.jsx(Rl,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(qn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(Li,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(gr,{className:"h-5 w-5 text-gray-400"})}}function Az(n){switch(n){case"COMPLETED":return"bg-green-500";case"RUNNING":return"bg-blue-500";case"FAILED":return"bg-red-500";case"PENDING":default:return"bg-gray-300 dark:bg-gray-600"}}function kz(n){return n.attempt!==null&&n.attempt!==void 0&&n.maxRetries!==null&&n.maxRetries!==void 0&&(n.attempt>1||n.status!=="COMPLETED")}function Dz({steps:n,openIoSectionIds:a,onToggleIoSection:r}){if(n.length===0)return u.jsx(ua,{children:"No steps recorded for this execution"});const i=n.reduce((o,c)=>o+(c.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[i>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:ci(i)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((o,c)=>{const h=o.durationMs?o.durationMs/i*100:0;return u.jsx("div",{className:pe(Az(o.status),"h-full transition-all",c>0&&"border-l border-background"),style:{width:`${h}%`},title:`${o.stepName}: ${ci(o.durationMs)}`},o.id)})})]}),u.jsx("div",{className:"relative",children:n.map((o,c)=>{const h=kz(o);return u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[c<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",o.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:u.jsx(Mz,{status:o.status})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-medium",children:o.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",o.stepIndex+1,")"]}),h&&u.jsxs("span",{className:pe("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",o.attempt!==null&&o.attempt!==void 0&&o.attempt>1?o.status==="FAILED"?"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300":"bg-yellow-100 text-yellow-700 dark:bg-yellow-950 dark:text-yellow-300":"bg-muted text-muted-foreground"),children:[u.jsx(mo,{className:"h-3 w-3"}),o.attempt,"/",(o.maxRetries??0)+1]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:ci(o.durationMs)})]}),o.errorMessage&&u.jsx("div",{className:"mt-2 p-2 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:o.errorMessage}),o.retryAttempts&&o.retryAttempts.length>0&&u.jsxs("div",{className:"mt-2 space-y-2",children:[u.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Previous failures"}),o.retryAttempts.map(m=>u.jsxs("div",{className:"rounded border border-yellow-200 bg-yellow-50 px-3 py-2 dark:border-yellow-900 dark:bg-yellow-950/40",children:[u.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 text-xs text-yellow-800 dark:text-yellow-200",children:[u.jsxs("span",{className:"font-medium",children:["Attempt ",m.attempt," failed"]}),u.jsx("span",{className:"font-mono",children:ci(m.durationMs??null)})]}),u.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:m.errorMessage})]},`${o.id}-${m.attempt}`))]}),u.jsx(Sc,{id:`${o.id}-input`,label:"View input",value:o.input,isOpen:a.has(`${o.id}-input`),onToggle:r}),u.jsx(Sc,{id:`${o.id}-output`,label:"View output",value:o.output,isOpen:a.has(`${o.id}-output`),onToggle:r}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(cn,{timestamp:o.createdAt})})]})]})]},o.id)})})]})}function Oz(){const{binding:n,executionId:a}=$a(),r=n||"",i=a||"",{data:o,isLoading:c}=ft({queryKey:["workflowExecution",r,i],queryFn:()=>z5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=o==null?void 0:o.execution,m=(o==null?void 0:o.steps)||[],p=Rz(h??null,m),[g,x]=v.useState(()=>new Set),y=p.length>0&&p.every(E=>g.has(E));function b(E,j){x(C=>{const _=new Set(C);return j?_.add(E):_.delete(E),_})}function S(){x(()=>y?new Set:new Set(p))}return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(Pt,{to:`/workflows/${r}`,children:u.jsxs(He,{variant:"ghost",size:"sm",children:[u.jsx(L_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Fi,{id:i})]})]}),p.length>0&&u.jsxs(He,{variant:"ghost",size:"sm",onClick:S,children:[y?u.jsx(V_,{className:"h-4 w-4"}):u.jsx(X_,{className:"h-4 w-4"}),y?"Collapse All I/O":"Expand All I/O"]})]}),c?u.jsx(Qa,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(gt,{children:[u.jsx(_t,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Tt,{children:"Execution Details"}),u.jsx(Bt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(cn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Up,{status:h.status})]})}),u.jsxs(yt,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:ci(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage}),u.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Input"}),u.jsx(Sc,{id:"execution-input",label:"View execution input",value:h.input,isOpen:g.has("execution-input"),onToggle:b})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),u.jsx(Sc,{id:"execution-output",label:"View execution output",value:h.output,isOpen:g.has("execution-output"),onToggle:b})]})]})]})]}),u.jsxs(gt,{children:[u.jsx(_t,{children:u.jsxs("div",{children:[u.jsx(Tt,{children:"Steps"}),u.jsx(Bt,{children:"Workflow step execution timeline"})]})}),u.jsx(yt,{children:u.jsx(Dz,{steps:m,openIoSectionIds:g,onToggleIoSection:b})})]})]}):u.jsx(ua,{children:"Execution not found"})]})})}const qh=20,zz=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],Lz=[{value:"",label:"All time"},{value:"1h",label:"Last hour"},{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"}];function Uz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Executions"}),u.jsx(Bt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Me,{children:"ID"}),u.jsx(Me,{children:"Status"}),u.jsx(Me,{children:"Steps"}),u.jsx(Me,{children:"Duration"}),u.jsx(Me,{children:"Started"}),u.jsx(Me,{})]})}),u.jsx(la,{children:n.map(i=>u.jsxs(xt,{children:[u.jsx(Ae,{children:u.jsx(Fi,{id:i.id})}),u.jsx(Ae,{children:u.jsx(Up,{status:i.status})}),u.jsx(Ae,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(Ae,{className:"text-sm",children:ci(i.durationMs)}),u.jsx(Ae,{children:i.startedAt?u.jsx(cn,{timestamp:i.startedAt}):"-"}),u.jsx(Ae,{children:u.jsx(Pt,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(ua,{children:"No executions for this workflow"})})]})}function qz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(""),[o,c]=v.useState(""),[h,m]=v.useState(0),p=h*qh,{data:g,isLoading:x}=ft({queryKey:["workflowExecutions",a,r,o,h],queryFn:()=>O5(a,qh,p,r||void 0,o||void 0),enabled:!!a,refetchInterval:5e3}),y=g?Math.ceil(g.total/qh):0,b=()=>m(0);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(wr,{title:`Workflow: ${a}`}),u.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[u.jsx("select",{value:r,onChange:S=>{i(S.target.value),b()},className:"text-sm border rounded px-2 py-1 bg-background",children:zz.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),u.jsx("select",{value:o,onChange:S=>{c(S.target.value),b()},className:"text-sm border rounded px-2 py-1 bg-background",children:Lz.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),g&&u.jsxs("span",{className:"text-sm text-muted-foreground",children:[g.total," total"]})]}),u.jsx(Uz,{executions:g==null?void 0:g.executions,isLoading:x,bindingName:a}),y>1&&u.jsxs("div",{className:"flex items-center justify-between pt-2",children:[u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h===0,onClick:()=>m(S=>S-1),children:"Previous"}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",h+1," of ",y]}),u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h>=y-1,onClick:()=>m(S=>S+1),children:"Next"})]})]})})}function Hz(){const n=Ba(),{data:a,isLoading:r}=ft({queryKey:["config"],queryFn:Lp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],o=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.state?Object.keys(a.state):[],h=a!=null&&a.cache?Object.keys(a.cache):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[],g=a!=null&&a.cron?Object.keys(a.cron):[],x=a!=null&&a.timer?Object.keys(a.timer):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(Pt,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(y=>{const b=n.pathname===`/db/${y}`;return u.jsx(Pt,{to:`/db/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(tT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(Pt,{to:"/auth",children:u.jsxs(He,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(wT,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Fb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),o.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:o.map(y=>{const b=n.pathname===`/queues/${y}`;return u.jsx(Pt,{to:`/queues/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(sT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const b=n.pathname===`/state/${y}`;return u.jsx(Pt,{to:`/state/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(O_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cache"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const b=n.pathname===`/cache/${y}`;return u.jsx(Pt,{to:`/cache/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(CT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const b=n.pathname===`/fs/${y}`;return u.jsx(Pt,{to:`/fs/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(aT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const b=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(Pt,{to:`/workflows/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(rT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),g.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cron"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const b=n.pathname===`/cron/${y}`;return u.jsx(Pt,{to:`/cron/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(ET,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),x.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Timers"}),u.jsx("div",{className:"space-y-1",children:x.map(y=>{const b=n.pathname===`/timers/${y}`;return u.jsx(Pt,{to:`/timers/${y}`,children:u.jsxs(He,{variant:b?"secondary":"ghost",className:pe("w-full justify-start",b&&"bg-muted"),children:[u.jsx(B_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&o.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&x.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function Bz(){const{data:n,isLoading:a}=ft({queryKey:["config"],queryFn:Lp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],o=n.state?Object.keys(n.state):[],c=n.fs?Object.keys(n.fs):[],h=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(Ma,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(Ma,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(Ma,{to:`/queues/${i[0]}`,replace:!0});if(o.length>0)return u.jsx(Ma,{to:`/state/${o[0]}`,replace:!0});const m=n.cache?Object.keys(n.cache):[];if(m.length>0)return u.jsx(Ma,{to:`/cache/${m[0]}`,replace:!0});if(c.length>0)return u.jsx(Ma,{to:`/fs/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(Ma,{to:`/workflows/${h[0]}`,replace:!0});const p=n.cron?Object.keys(n.cron):[];if(p.length>0)return u.jsx(Ma,{to:`/cron/${p[0]}`,replace:!0});const g=n.timer?Object.keys(n.timer):[];if(g.length>0)return u.jsx(Ma,{to:`/timers/${g[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function $z(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Hz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(ZC,{children:[u.jsx(Sn,{path:"/",element:u.jsx(Bz,{})}),u.jsx(Sn,{path:"/db/:binding",element:u.jsx(Nz,{})}),u.jsx(Sn,{path:"/auth",element:u.jsx(uz,{})}),u.jsx(Sn,{path:"/queues/:binding",element:u.jsx(Tz,{})}),u.jsx(Sn,{path:"/state/:binding",element:u.jsx(gz,{})}),u.jsx(Sn,{path:"/cache/:binding",element:u.jsx(bz,{})}),u.jsx(Sn,{path:"/fs/:binding",element:u.jsx(pz,{})}),u.jsx(Sn,{path:"/cron/:binding",element:u.jsx(fz,{})}),u.jsx(Sn,{path:"/timers/:binding",element:u.jsx(nz,{})}),u.jsx(Sn,{path:"/workflows/:binding",element:u.jsx(qz,{})}),u.jsx(Sn,{path:"/workflows/:binding/:executionId",element:u.jsx(Oz,{})})]})})})]})}function FS(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}FS();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",FS);const Qz=new zN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});lC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx($N,{client:Qz,children:u.jsx(x_,{children:u.jsx($z,{})})})}));
|