mumei-dashboard 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,84 +0,0 @@
1
- var $0=Object.defineProperty;var wd=e=>{throw TypeError(e)};var X0=(e,t,n)=>t in e?$0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zs=(e,t,n)=>X0(e,typeof t!="symbol"?t+"":t,n),_s=(e,t,n)=>t.has(e)||wd("Cannot "+n);var C=(e,t,n)=>(_s(e,t,"read from private field"),n?n.call(e):t.get(e)),L=(e,t,n)=>t.has(e)?wd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),M=(e,t,n,l)=>(_s(e,t,"write to private field"),l?l.call(e,n):t.set(e,n),n),X=(e,t,n)=>(_s(e,t,"access private method"),n);var Ar=(e,t,n,l)=>({set _(a){M(e,t,a,n)},get _(){return C(e,t,l)}});function Z0(e,t){for(var n=0;n<t.length;n++){const l=t[n];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(l,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function Vm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qm={exports:{}},ko={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var K0=Symbol.for("react.transitional.element"),P0=Symbol.for("react.fragment");function Ym(e,t,n){var l=null;if(n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:K0,type:e,key:l,ref:t!==void 0?t:null,props:n}}ko.Fragment=P0;ko.jsx=Ym;ko.jsxs=Ym;Qm.exports=ko;var h=Qm.exports,sr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bl,Dn,ga,jm,k0=(jm=class extends sr{constructor(){super();L(this,bl);L(this,Dn);L(this,ga);M(this,ga,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Dn)||this.setEventListener(C(this,ga))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Dn))==null||t.call(this),M(this,Dn,void 0))}setEventListener(t){var n;M(this,ga,t),(n=C(this,Dn))==null||n.call(this),M(this,Dn,t(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(t){C(this,bl)!==t&&(M(this,bl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,bl)=="boolean"?C(this,bl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},bl=new WeakMap,Dn=new WeakMap,ga=new WeakMap,jm),Yu=new k0,F0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Hn,Qu,zm,J0=(zm=class{constructor(){L(this,Hn,F0);L(this,Qu,!1)}setTimeoutProvider(e){M(this,Hn,e)}setTimeout(e,t){return C(this,Hn).setTimeout(e,t)}clearTimeout(e){C(this,Hn).clearTimeout(e)}setInterval(e,t){return C(this,Hn).setInterval(e,t)}clearInterval(e){C(this,Hn).clearInterval(e)}},Hn=new WeakMap,Qu=new WeakMap,zm),gl=new J0;function W0(e){setTimeout(e,0)}var I0=typeof window>"u"||"Deno"in globalThis;function ke(){}function eb(e,t){return typeof e=="function"?e(t):e}function Cc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Kn(e,t){return typeof e=="function"?e(t):e}function tt(e,t){return typeof e=="function"?e(t):e}function Td(e,t){const{type:n="all",exact:l,fetchStatus:a,predicate:i,queryKey:r,stale:o}=e;if(r){if(l){if(t.queryHash!==Gu(r,t.options))return!1}else if(!qi(t.queryKey,r))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function Ad(e,t){const{exact:n,status:l,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Bi(t.options.mutationKey)!==Bi(i))return!1}else if(!qi(t.options.mutationKey,i))return!1}return!(l&&t.state.status!==l||a&&!a(t))}function Gu(e,t){return((t==null?void 0:t.queryKeyHashFn)||Bi)(e)}function Bi(e){return JSON.stringify(e,(t,n)=>Tc(n)?Object.keys(n).sort().reduce((l,a)=>(l[a]=n[a],l),{}):n)}function qi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qi(e[n],t[n])):!1}var tb=Object.prototype.hasOwnProperty;function $m(e,t,n=0){if(e===t)return e;if(n>500)return t;const l=Od(e)&&Od(t);if(!l&&!(Tc(e)&&Tc(t)))return t;const i=(l?e:Object.keys(e)).length,r=l?t:Object.keys(t),o=r.length,s=l?new Array(o):{};let c=0;for(let u=0;u<o;u++){const f=l?u:r[u],d=e[f],p=t[f];if(d===p){s[f]=d,(l?u<i:tb.call(e,f))&&c++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){s[f]=p;continue}const g=$m(d,p,n+1);s[f]=g,g===d&&c++}return i===o&&c===i?e:s}function wc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Od(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Tc(e){if(!Rd(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Rd(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Rd(e){return Object.prototype.toString.call(e)==="[object Object]"}function nb(e){return new Promise(t=>{gl.setTimeout(t,e)})}function Ac(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$m(e,t):t}function lb(e,t,n=0){const l=[...e,t];return n&&l.length>n?l.slice(1):l}function ab(e,t,n=0){const l=[t,...e];return n&&l.length>n?l.slice(0,-1):l}var $u=Symbol();function Xm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$u?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Zm(e,t){return typeof e=="function"?e(...t):!!e}function ib(e,t,n){let l=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),l||(l=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Vi=(()=>{let e=()=>I0;return{isServer(){return e()},setIsServer(t){e=t}}})();function Oc(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function l(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{l({status:"fulfilled",value:a}),e(a)},n.reject=a=>{l({status:"rejected",reason:a}),t(a)},n}var rb=W0;function ob(){let e=[],t=0,n=o=>{o()},l=o=>{o()},a=rb;const i=o=>{t?e.push(o):a(()=>{n(o)})},r=()=>{const o=e;e=[],o.length&&a(()=>{l(()=>{o.forEach(s=>{n(s)})})})};return{batch:o=>{let s;t++;try{s=o()}finally{t--,t||r()}return s},batchCalls:o=>(...s)=>{i(()=>{o(...s)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{l=o},setScheduler:o=>{a=o}}}var Me=ob(),ba,Un,xa,_m,sb=(_m=class extends sr{constructor(){super();L(this,ba,!0);L(this,Un);L(this,xa);M(this,xa,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),l=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",l)}}})}onSubscribe(){C(this,Un)||this.setEventListener(C(this,xa))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Un))==null||t.call(this),M(this,Un,void 0))}setEventListener(t){var n;M(this,xa,t),(n=C(this,Un))==null||n.call(this),M(this,Un,t(this.setOnline.bind(this)))}setOnline(t){C(this,ba)!==t&&(M(this,ba,t),this.listeners.forEach(l=>{l(t)}))}isOnline(){return C(this,ba)}},ba=new WeakMap,Un=new WeakMap,xa=new WeakMap,_m),uo=new sb;function cb(e){return Math.min(1e3*2**e,3e4)}function Km(e){return(e??"online")==="online"?uo.isOnline():!0}var Rc=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Pm(e){let t=!1,n=0,l;const a=Oc(),i=()=>a.status!=="pending",r=x=>{var E;if(!i()){const v=new Rc(x);d(v),(E=e.onCancel)==null||E.call(e,v)}},o=()=>{t=!0},s=()=>{t=!1},c=()=>Yu.isFocused()&&(e.networkMode==="always"||uo.isOnline())&&e.canRun(),u=()=>Km(e.networkMode)&&e.canRun(),f=x=>{i()||(l==null||l(),a.resolve(x))},d=x=>{i()||(l==null||l(),a.reject(x))},p=()=>new Promise(x=>{var E;l=v=>{(i()||c())&&x(v)},(E=e.onPause)==null||E.call(e)}).then(()=>{var x;l=void 0,i()||(x=e.onContinue)==null||x.call(e)}),g=()=>{if(i())return;let x;const E=n===0?e.initialPromise:void 0;try{x=E??e.fn()}catch(v){x=Promise.reject(v)}Promise.resolve(x).then(f).catch(v=>{var R;if(i())return;const y=e.retry??(Vi.isServer()?0:3),b=e.retryDelay??cb,S=typeof b=="function"?b(n,v):b,T=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!T){d(v);return}n++,(R=e.onFail)==null||R.call(e,n,v),nb(S).then(()=>c()?void 0:p()).then(()=>{t?d(v):g()})})};return{promise:a,status:()=>a.status,cancel:r,continue:()=>(l==null||l(),a),cancelRetry:o,continueRetry:s,canStart:u,start:()=>(u()?g():p().then(g),a)}}var xl,Mm,km=(Mm=class{constructor(){L(this,xl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cc(this.gcTime)&&M(this,xl,gl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Vi.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,xl)!==void 0&&(gl.clearTimeout(C(this,xl)),M(this,xl,void 0))}},xl=new WeakMap,Mm);function ub(e){return{onFetch:(t,n)=>{var u,f,d,p,g;const l=t.options,a=(d=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],r=((g=t.state.data)==null?void 0:g.pageParams)||[];let o={pages:[],pageParams:[]},s=0;const c=async()=>{let x=!1;const E=b=>{ib(b,()=>t.signal,()=>x=!0)},v=Xm(t.options,t.fetchOptions),y=async(b,S,T)=>{if(x)return Promise.reject(t.signal.reason);if(S==null&&b.pages.length)return Promise.resolve(b);const w=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return E(U),U})(),A=await v(w),{maxPages:N}=t.options,z=T?ab:lb;return{pages:z(b.pages,A,N),pageParams:z(b.pageParams,S,N)}};if(a&&i.length){const b=a==="backward",S=b?fb:Nd,T={pages:i,pageParams:r},R=S(l,T);o=await y(T,R,b)}else{const b=e??i.length;do{const S=s===0?r[0]??l.initialPageParam:Nd(l,o);if(s>0&&S==null)break;o=await y(o,S),s++}while(s<b)}return o};t.options.persister?t.fetchFn=()=>{var x,E;return(E=(x=t.options).persister)==null?void 0:E.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Nd(e,{pages:t,pageParams:n}){const l=t.length-1;return t.length>0?e.getNextPageParam(t[l],t,n[l],n):void 0}function fb(e,{pages:t,pageParams:n}){var l;return t.length>0?(l=e.getPreviousPageParam)==null?void 0:l.call(e,t[0],t,n[0],n):void 0}var Sa,Sl,Ea,mt,El,Re,lr,Cl,et,Fm,It,Dm,db=(Dm=class extends km{constructor(t){super();L(this,et);L(this,Sa);L(this,Sl);L(this,Ea);L(this,mt);L(this,El);L(this,Re);L(this,lr);L(this,Cl);M(this,Cl,!1),M(this,lr,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,El,t.client),M(this,mt,C(this,El).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Sl,zd(this.options)),this.state=t.state??C(this,Sl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,Sa)}get promise(){var t;return(t=C(this,Re))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,lr),...t},t!=null&&t._type&&M(this,Sa,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=zd(this.options);n.data!==void 0&&(this.setState(jd(n.data,n.dataUpdatedAt)),M(this,Sl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,mt).remove(this)}setData(t,n){const l=Ac(this.state.data,t,this.options);return X(this,et,It).call(this,{data:l,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),l}setState(t){X(this,et,It).call(this,{type:"setState",state:t})}cancel(t){var l,a;const n=(l=C(this,Re))==null?void 0:l.promise;return(a=C(this,Re))==null||a.cancel(t),n?n.then(ke).catch(ke):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,Sl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>tt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$u||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Kn(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Gm(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(l=>l.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}onOnline(){var n;const t=this.observers.find(l=>l.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Re))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Re)&&(C(this,Cl)||X(this,et,Fm).call(this)?C(this,Re).cancel({revert:!0}):C(this,Re).cancelRetry()),this.scheduleGc()),C(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,et,It).call(this,{type:"invalidate"})}async fetch(t,n){var c,u,f,d,p,g,x,E,v,y,b;if(this.state.fetchStatus!=="idle"&&((c=C(this,Re))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Re))return C(this,Re).continueRetry(),C(this,Re).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(T=>T.options.queryFn);S&&this.setOptions(S.options)}const l=new AbortController,a=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(M(this,Cl,!0),l.signal)})},i=()=>{const S=Xm(this.options,n),R=(()=>{const w={client:C(this,El),queryKey:this.queryKey,meta:this.meta};return a(w),w})();return M(this,Cl,!1),this.options.persister?this.options.persister(S,R,this):S(R)},o=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,El),state:this.state,fetchFn:i};return a(S),S})(),s=C(this,Sa)==="infinite"?ub(this.options.pages):this.options.behavior;s==null||s.onFetch(o,this),M(this,Ea,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&X(this,et,It).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),M(this,Re,Pm({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:S=>{S instanceof Rc&&S.revert&&this.setState({...C(this,Ea),fetchStatus:"idle"}),l.abort()},onFail:(S,T)=>{X(this,et,It).call(this,{type:"failed",failureCount:S,error:T})},onPause:()=>{X(this,et,It).call(this,{type:"pause"})},onContinue:()=>{X(this,et,It).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const S=await C(this,Re).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(d=C(this,mt).config).onSuccess)==null||p.call(d,S,this),(x=(g=C(this,mt).config).onSettled)==null||x.call(g,S,this.state.error,this),S}catch(S){if(S instanceof Rc){if(S.silent)return C(this,Re).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw X(this,et,It).call(this,{type:"error",error:S}),(v=(E=C(this,mt).config).onError)==null||v.call(E,S,this),(b=(y=C(this,mt).config).onSettled)==null||b.call(y,this.state.data,S,this),S}finally{this.scheduleGc()}}},Sa=new WeakMap,Sl=new WeakMap,Ea=new WeakMap,mt=new WeakMap,El=new WeakMap,Re=new WeakMap,lr=new WeakMap,Cl=new WeakMap,et=new WeakSet,Fm=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},It=function(t){const n=l=>{switch(t.type){case"failed":return{...l,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Jm(l.data,this.options),fetchMeta:t.meta??null};case"success":const a={...l,...jd(t.data,t.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,Ea,t.manual?a:void 0),a;case"error":const i=t.error;return{...l,error:i,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...t.state}}};this.state=n(this.state),Me.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),C(this,mt).notify({query:this,type:"updated",action:t})})},Dm);function Jm(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Km(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jd(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zd(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,l=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ze,K,ar,Ve,wl,Ca,nn,Ln,ir,wa,Ta,Tl,Al,Bn,Aa,te,gi,Nc,jc,zc,_c,Mc,Dc,Hc,Wm,Hm,hb=(Hm=class extends sr{constructor(t,n){super();L(this,te);L(this,Ze);L(this,K);L(this,ar);L(this,Ve);L(this,wl);L(this,Ca);L(this,nn);L(this,Ln);L(this,ir);L(this,wa);L(this,Ta);L(this,Tl);L(this,Al);L(this,Bn);L(this,Aa,new Set);this.options=n,M(this,Ze,t),M(this,Ln,null),M(this,nn,Oc()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,K).addObserver(this),_d(C(this,K),this.options)?X(this,te,gi).call(this):this.updateResult(),X(this,te,_c).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uc(C(this,K),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uc(C(this,K),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,te,Mc).call(this),X(this,te,Dc).call(this),C(this,K).removeObserver(this)}setOptions(t){const n=this.options,l=C(this,K);if(this.options=C(this,Ze).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tt(this.options.enabled,C(this,K))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,te,Hc).call(this),C(this,K).setOptions(this.options),n._defaulted&&!wc(this.options,n)&&C(this,Ze).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,K),observer:this});const a=this.hasListeners();a&&Md(C(this,K),l,this.options,n)&&X(this,te,gi).call(this),this.updateResult(),a&&(C(this,K)!==l||tt(this.options.enabled,C(this,K))!==tt(n.enabled,C(this,K))||Kn(this.options.staleTime,C(this,K))!==Kn(n.staleTime,C(this,K)))&&X(this,te,Nc).call(this);const i=X(this,te,jc).call(this);a&&(C(this,K)!==l||tt(this.options.enabled,C(this,K))!==tt(n.enabled,C(this,K))||i!==C(this,Bn))&&X(this,te,zc).call(this,i)}getOptimisticResult(t){const n=C(this,Ze).getQueryCache().build(C(this,Ze),t),l=this.createResult(n,t);return pb(this,l)&&(M(this,Ve,l),M(this,Ca,this.options),M(this,wl,C(this,K).state)),l}getCurrentResult(){return C(this,Ve)}trackResult(t,n){return new Proxy(t,{get:(l,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,nn).status==="pending"&&C(this,nn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,a))})}trackProp(t){C(this,Aa).add(t)}getCurrentQuery(){return C(this,K)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ze).defaultQueryOptions(t),l=C(this,Ze).getQueryCache().build(C(this,Ze),n);return l.fetch().then(()=>this.createResult(l,n))}fetch(t){return X(this,te,gi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ve)))}createResult(t,n){var N;const l=C(this,K),a=this.options,i=C(this,Ve),r=C(this,wl),o=C(this,Ca),c=t!==l?t.state:C(this,ar),{state:u}=t;let f={...u},d=!1,p;if(n._optimisticResults){const z=this.hasListeners(),U=!z&&_d(t,n),H=z&&Md(t,l,n,a);(U||H)&&(f={...f,...Jm(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:x,status:E}=f;p=f.data;let v=!1;if(n.placeholderData!==void 0&&p===void 0&&E==="pending"){let z;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(z=i.data,v=!0):z=typeof n.placeholderData=="function"?n.placeholderData((N=C(this,Ta))==null?void 0:N.state.data,C(this,Ta)):n.placeholderData,z!==void 0&&(E="success",p=Ac(i==null?void 0:i.data,z,n),d=!0)}if(n.select&&p!==void 0&&!v)if(i&&p===(r==null?void 0:r.data)&&n.select===C(this,ir))p=C(this,wa);else try{M(this,ir,n.select),p=n.select(p),p=Ac(i==null?void 0:i.data,p,n),M(this,wa,p),M(this,Ln,null)}catch(z){M(this,Ln,z)}C(this,Ln)&&(g=C(this,Ln),p=C(this,wa),x=Date.now(),E="error");const y=f.fetchStatus==="fetching",b=E==="pending",S=E==="error",T=b&&y,R=p!==void 0,A={status:E,fetchStatus:f.fetchStatus,isPending:b,isSuccess:E==="success",isError:S,isInitialLoading:T,isLoading:T,data:p,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:S&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:S&&R,isStale:Xu(t,n),refetch:this.refetch,promise:C(this,nn),isEnabled:tt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const z=A.data!==void 0,U=A.status==="error"&&!z,H=re=>{U?re.reject(A.error):z&&re.resolve(A.data)},ee=()=>{const re=M(this,nn,A.promise=Oc());H(re)},k=C(this,nn);switch(k.status){case"pending":t.queryHash===l.queryHash&&H(k);break;case"fulfilled":(U||A.data!==k.value)&&ee();break;case"rejected":(!U||A.error!==k.reason)&&ee();break}}return A}updateResult(){const t=C(this,Ve),n=this.createResult(C(this,K),this.options);if(M(this,wl,C(this,K).state),M(this,Ca,this.options),C(this,wl).data!==void 0&&M(this,Ta,C(this,K)),wc(n,t))return;M(this,Ve,n);const l=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!C(this,Aa).size)return!0;const r=new Set(i??C(this,Aa));return this.options.throwOnError&&r.add("error"),Object.keys(C(this,Ve)).some(o=>{const s=o;return C(this,Ve)[s]!==t[s]&&r.has(s)})};X(this,te,Wm).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,te,_c).call(this)}},Ze=new WeakMap,K=new WeakMap,ar=new WeakMap,Ve=new WeakMap,wl=new WeakMap,Ca=new WeakMap,nn=new WeakMap,Ln=new WeakMap,ir=new WeakMap,wa=new WeakMap,Ta=new WeakMap,Tl=new WeakMap,Al=new WeakMap,Bn=new WeakMap,Aa=new WeakMap,te=new WeakSet,gi=function(t){X(this,te,Hc).call(this);let n=C(this,K).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ke)),n},Nc=function(){X(this,te,Mc).call(this);const t=Kn(this.options.staleTime,C(this,K));if(Vi.isServer()||C(this,Ve).isStale||!Cc(t))return;const l=Gm(C(this,Ve).dataUpdatedAt,t)+1;M(this,Tl,gl.setTimeout(()=>{C(this,Ve).isStale||this.updateResult()},l))},jc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,K)):this.options.refetchInterval)??!1},zc=function(t){X(this,te,Dc).call(this),M(this,Bn,t),!(Vi.isServer()||tt(this.options.enabled,C(this,K))===!1||!Cc(C(this,Bn))||C(this,Bn)===0)&&M(this,Al,gl.setInterval(()=>{(this.options.refetchIntervalInBackground||Yu.isFocused())&&X(this,te,gi).call(this)},C(this,Bn)))},_c=function(){X(this,te,Nc).call(this),X(this,te,zc).call(this,X(this,te,jc).call(this))},Mc=function(){C(this,Tl)!==void 0&&(gl.clearTimeout(C(this,Tl)),M(this,Tl,void 0))},Dc=function(){C(this,Al)!==void 0&&(gl.clearInterval(C(this,Al)),M(this,Al,void 0))},Hc=function(){const t=C(this,Ze).getQueryCache().build(C(this,Ze),this.options);if(t===C(this,K))return;const n=C(this,K);M(this,K,t),M(this,ar,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Wm=function(t){Me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ve))}),C(this,Ze).getQueryCache().notify({query:C(this,K),type:"observerResultsUpdated"})})},Hm);function mb(e,t){return tt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&tt(t.retryOnMount,e)===!1)}function _d(e,t){return mb(e,t)||e.state.data!==void 0&&Uc(e,t,t.refetchOnMount)}function Uc(e,t,n){if(tt(t.enabled,e)!==!1&&Kn(t.staleTime,e)!=="static"){const l=typeof n=="function"?n(e):n;return l==="always"||l!==!1&&Xu(e,t)}return!1}function Md(e,t,n,l){return(e!==t||tt(l.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xu(e,n)}function Xu(e,t){return tt(t.enabled,e)!==!1&&e.isStaleByTime(Kn(t.staleTime,e))}function pb(e,t){return!wc(e.getCurrentResult(),t)}var rr,Mt,qe,Ol,Dt,An,Um,vb=(Um=class extends km{constructor(t){super();L(this,Dt);L(this,rr);L(this,Mt);L(this,qe);L(this,Ol);M(this,rr,t.client),this.mutationId=t.mutationId,M(this,qe,t.mutationCache),M(this,Mt,[]),this.state=t.state||yb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Mt).includes(t)||(C(this,Mt).push(t),this.clearGcTimeout(),C(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Mt,C(this,Mt).filter(n=>n!==t)),this.scheduleGc(),C(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Mt).length||(this.state.status==="pending"?this.scheduleGc():C(this,qe).remove(this))}continue(){var t;return((t=C(this,Ol))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,o,s,c,u,f,d,p,g,x,E,v,y,b,S,T,R,w;const n=()=>{X(this,Dt,An).call(this,{type:"continue"})},l={client:C(this,rr),meta:this.options.meta,mutationKey:this.options.mutationKey};M(this,Ol,Pm({fn:()=>this.options.mutationFn?this.options.mutationFn(t,l):Promise.reject(new Error("No mutationFn found")),onFail:(A,N)=>{X(this,Dt,An).call(this,{type:"failed",failureCount:A,error:N})},onPause:()=>{X(this,Dt,An).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,qe).canRun(this)}));const a=this.state.status==="pending",i=!C(this,Ol).canStart();try{if(a)n();else{X(this,Dt,An).call(this,{type:"pending",variables:t,isPaused:i}),C(this,qe).config.onMutate&&await C(this,qe).config.onMutate(t,this,l);const N=await((o=(r=this.options).onMutate)==null?void 0:o.call(r,t,l));N!==this.state.context&&X(this,Dt,An).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const A=await C(this,Ol).start();return await((c=(s=C(this,qe).config).onSuccess)==null?void 0:c.call(s,A,t,this.state.context,this,l)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,A,t,this.state.context,l)),await((p=(d=C(this,qe).config).onSettled)==null?void 0:p.call(d,A,null,this.state.variables,this.state.context,this,l)),await((x=(g=this.options).onSettled)==null?void 0:x.call(g,A,null,t,this.state.context,l)),X(this,Dt,An).call(this,{type:"success",data:A}),A}catch(A){try{await((v=(E=C(this,qe).config).onError)==null?void 0:v.call(E,A,t,this.state.context,this,l))}catch(N){Promise.reject(N)}try{await((b=(y=this.options).onError)==null?void 0:b.call(y,A,t,this.state.context,l))}catch(N){Promise.reject(N)}try{await((T=(S=C(this,qe).config).onSettled)==null?void 0:T.call(S,void 0,A,this.state.variables,this.state.context,this,l))}catch(N){Promise.reject(N)}try{await((w=(R=this.options).onSettled)==null?void 0:w.call(R,void 0,A,t,this.state.context,l))}catch(N){Promise.reject(N)}throw X(this,Dt,An).call(this,{type:"error",error:A}),A}finally{C(this,qe).runNext(this)}}},rr=new WeakMap,Mt=new WeakMap,qe=new WeakMap,Ol=new WeakMap,Dt=new WeakSet,An=function(t){const n=l=>{switch(t.type){case"failed":return{...l,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...l,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:t.error,failureCount:l.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Me.batch(()=>{C(this,Mt).forEach(l=>{l.onMutationUpdate(t)}),C(this,qe).notify({mutation:this,type:"updated",action:t})})},Um);function yb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ln,Rt,or,Lm,gb=(Lm=class extends sr{constructor(t={}){super();L(this,ln);L(this,Rt);L(this,or);this.config=t,M(this,ln,new Set),M(this,Rt,new Map),M(this,or,0)}build(t,n,l){const a=new vb({client:t,mutationCache:this,mutationId:++Ar(this,or)._,options:t.defaultMutationOptions(n),state:l});return this.add(a),a}add(t){C(this,ln).add(t);const n=Or(t);if(typeof n=="string"){const l=C(this,Rt).get(n);l?l.push(t):C(this,Rt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,ln).delete(t)){const n=Or(t);if(typeof n=="string"){const l=C(this,Rt).get(n);if(l)if(l.length>1){const a=l.indexOf(t);a!==-1&&l.splice(a,1)}else l[0]===t&&C(this,Rt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Or(t);if(typeof n=="string"){const l=C(this,Rt).get(n),a=l==null?void 0:l.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var l;const n=Or(t);if(typeof n=="string"){const a=(l=C(this,Rt).get(n))==null?void 0:l.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Me.batch(()=>{C(this,ln).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,ln).clear(),C(this,Rt).clear()})}getAll(){return Array.from(C(this,ln))}find(t){const n={exact:!0,...t};return this.getAll().find(l=>Ad(n,l))}findAll(t={}){return this.getAll().filter(n=>Ad(t,n))}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Me.batch(()=>Promise.all(t.map(n=>n.continue().catch(ke))))}},ln=new WeakMap,Rt=new WeakMap,or=new WeakMap,Lm);function Or(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ht,Bm,bb=(Bm=class extends sr{constructor(t={}){super();L(this,Ht);this.config=t,M(this,Ht,new Map)}build(t,n,l){const a=n.queryKey,i=n.queryHash??Gu(a,n);let r=this.get(i);return r||(r=new db({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:l,defaultOptions:t.getQueryDefaults(a)}),this.add(r)),r}add(t){C(this,Ht).has(t.queryHash)||(C(this,Ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Ht).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Ht).get(t)}getAll(){return[...C(this,Ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(l=>Td(n,l))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(l=>Td(t,l)):n}notify(t){Me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ht=new WeakMap,Bm),ye,qn,Vn,Oa,Ra,Qn,Na,ja,qm,xb=(qm=class{constructor(e={}){L(this,ye);L(this,qn);L(this,Vn);L(this,Oa);L(this,Ra);L(this,Qn);L(this,Na);L(this,ja);M(this,ye,e.queryCache||new bb),M(this,qn,e.mutationCache||new gb),M(this,Vn,e.defaultOptions||{}),M(this,Oa,new Map),M(this,Ra,new Map),M(this,Qn,0)}mount(){Ar(this,Qn)._++,C(this,Qn)===1&&(M(this,Na,Yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onFocus())})),M(this,ja,uo.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,ye).onOnline())})))}unmount(){var e,t;Ar(this,Qn)._--,C(this,Qn)===0&&((e=C(this,Na))==null||e.call(this),M(this,Na,void 0),(t=C(this,ja))==null||t.call(this),M(this,ja,void 0))}isFetching(e){return C(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,qn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ye).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,ye).build(this,t),l=n.state.data;return l===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Kn(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(l))}getQueriesData(e){return C(this,ye).findAll(e).map(({queryKey:t,state:n})=>{const l=n.data;return[t,l]})}setQueryData(e,t,n){const l=this.defaultQueryOptions({queryKey:e}),a=C(this,ye).get(l.queryHash),i=a==null?void 0:a.state.data,r=eb(t,i);if(r!==void 0)return C(this,ye).build(this,l).setData(r,{...n,manual:!0})}setQueriesData(e,t,n){return Me.batch(()=>C(this,ye).findAll(e).map(({queryKey:l})=>[l,this.setQueryData(l,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,ye).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,ye);Me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,ye);return Me.batch(()=>(n.findAll(e).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},l=Me.batch(()=>C(this,ye).findAll(e).map(a=>a.cancel(n)));return Promise.all(l).then(ke).catch(ke)}invalidateQueries(e,t={}){return Me.batch(()=>(C(this,ye).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},l=Me.batch(()=>C(this,ye).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(ke)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(l).then(ke)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,ye).build(this,t);return n.isStaleByTime(Kn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ke).catch(ke)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ke).catch(ke)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return uo.isOnline()?C(this,qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ye)}getMutationCache(){return C(this,qn)}getDefaultOptions(){return C(this,Vn)}setDefaultOptions(e){M(this,Vn,e)}setQueryDefaults(e,t){C(this,Oa).set(Bi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Oa).values()],n={};return t.forEach(l=>{qi(e,l.queryKey)&&Object.assign(n,l.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Ra).set(Bi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Ra).values()],n={};return t.forEach(l=>{qi(e,l.mutationKey)&&Object.assign(n,l.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===$u&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Vn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,ye).clear(),C(this,qn).clear()}},ye=new WeakMap,qn=new WeakMap,Vn=new WeakMap,Oa=new WeakMap,Ra=new WeakMap,Qn=new WeakMap,Na=new WeakMap,ja=new WeakMap,qm),Im={exports:{}},V={};/**
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 Zu=Symbol.for("react.transitional.element"),Sb=Symbol.for("react.portal"),Eb=Symbol.for("react.fragment"),Cb=Symbol.for("react.strict_mode"),wb=Symbol.for("react.profiler"),Tb=Symbol.for("react.consumer"),Ab=Symbol.for("react.context"),Ob=Symbol.for("react.forward_ref"),Rb=Symbol.for("react.suspense"),Nb=Symbol.for("react.memo"),ep=Symbol.for("react.lazy"),jb=Symbol.for("react.activity"),Dd=Symbol.iterator;function zb(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},np=Object.assign,lp={};function Ka(e,t,n){this.props=e,this.context=t,this.refs=lp,this.updater=n||tp}Ka.prototype.isReactComponent={};Ka.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ka.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ap(){}ap.prototype=Ka.prototype;function Ku(e,t,n){this.props=e,this.context=t,this.refs=lp,this.updater=n||tp}var Pu=Ku.prototype=new ap;Pu.constructor=Ku;np(Pu,Ka.prototype);Pu.isPureReactComponent=!0;var Hd=Array.isArray;function Lc(){}var de={H:null,A:null,T:null,S:null},ip=Object.prototype.hasOwnProperty;function ku(e,t,n){var l=n.ref;return{$$typeof:Zu,type:e,key:t,ref:l!==void 0?l:null,props:n}}function _b(e,t){return ku(e.type,t,e.props)}function Fu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zu}function Mb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ud=/\/+/g;function Ms(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mb(""+e.key):t.toString(36)}function Db(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Lc,Lc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pl(e,t,n,l,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(i){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case Zu:case Sb:r=!0;break;case ep:return r=e._init,Pl(r(e._payload),t,n,l,a)}}if(r)return a=a(e),r=l===""?"."+Ms(e,0):l,Hd(a)?(n="",r!=null&&(n=r.replace(Ud,"$&/")+"/"),Pl(a,t,n,"",function(c){return c})):a!=null&&(Fu(a)&&(a=_b(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Ud,"$&/")+"/")+r)),t.push(a)),1;r=0;var o=l===""?".":l+":";if(Hd(e))for(var s=0;s<e.length;s++)l=e[s],i=o+Ms(l,s),r+=Pl(l,t,n,i,a);else if(s=zb(e),typeof s=="function")for(e=s.call(e),s=0;!(l=e.next()).done;)l=l.value,i=o+Ms(l,s++),r+=Pl(l,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Pl(Db(e),t,n,l,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return r}function Rr(e,t,n){if(e==null)return e;var l=[],a=0;return Pl(e,l,"","",function(i){return t.call(n,i,a++)}),l}function Hb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ld=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)},Ub={map:Rr,forEach:function(e,t,n){Rr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Rr(e,function(){t++}),t},toArray:function(e){return Rr(e,function(t){return t})||[]},only:function(e){if(!Fu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Activity=jb;V.Children=Ub;V.Component=Ka;V.Fragment=Eb;V.Profiler=wb;V.PureComponent=Ku;V.StrictMode=Cb;V.Suspense=Rb;V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de;V.__COMPILER_RUNTIME={__proto__:null,c:function(e){return de.H.useMemoCache(e)}};V.cache=function(e){return function(){return e.apply(null,arguments)}};V.cacheSignal=function(){return null};V.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=np({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!ip.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(l[i]=t[i]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var r=Array(i),o=0;o<i;o++)r[o]=arguments[o+2];l.children=r}return ku(e.type,a,l)};V.createContext=function(e){return e={$$typeof:Ab,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Tb,_context:e},e};V.createElement=function(e,t,n){var l,a={},i=null;if(t!=null)for(l in t.key!==void 0&&(i=""+t.key),t)ip.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=t[l]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var o=Array(r),s=0;s<r;s++)o[s]=arguments[s+2];a.children=o}if(e&&e.defaultProps)for(l in r=e.defaultProps,r)a[l]===void 0&&(a[l]=r[l]);return ku(e,i,a)};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:Ob,render:e}};V.isValidElement=Fu;V.lazy=function(e){return{$$typeof:ep,_payload:{_status:-1,_result:e},_init:Hb}};V.memo=function(e,t){return{$$typeof:Nb,type:e,compare:t===void 0?null:t}};V.startTransition=function(e){var t=de.T,n={};de.T=n;try{var l=e(),a=de.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Lc,Ld)}catch(i){Ld(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),de.T=t}};V.unstable_useCacheRefresh=function(){return de.H.useCacheRefresh()};V.use=function(e){return de.H.use(e)};V.useActionState=function(e,t,n){return de.H.useActionState(e,t,n)};V.useCallback=function(e,t){return de.H.useCallback(e,t)};V.useContext=function(e){return de.H.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e,t){return de.H.useDeferredValue(e,t)};V.useEffect=function(e,t){return de.H.useEffect(e,t)};V.useEffectEvent=function(e){return de.H.useEffectEvent(e)};V.useId=function(){return de.H.useId()};V.useImperativeHandle=function(e,t,n){return de.H.useImperativeHandle(e,t,n)};V.useInsertionEffect=function(e,t){return de.H.useInsertionEffect(e,t)};V.useLayoutEffect=function(e,t){return de.H.useLayoutEffect(e,t)};V.useMemo=function(e,t){return de.H.useMemo(e,t)};V.useOptimistic=function(e,t){return de.H.useOptimistic(e,t)};V.useReducer=function(e,t,n){return de.H.useReducer(e,t,n)};V.useRef=function(e){return de.H.useRef(e)};V.useState=function(e){return de.H.useState(e)};V.useSyncExternalStore=function(e,t,n){return de.H.useSyncExternalStore(e,t,n)};V.useTransition=function(){return de.H.useTransition()};V.version="19.2.6";Im.exports=V;var m=Im.exports;const On=Vm(m),rp=Z0({__proto__:null,default:On},[m]);var op=m.createContext(void 0),Ju=e=>{const t=m.useContext(op);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lb=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(op.Provider,{value:e,children:t})),sp=m.createContext(!1),Bb=()=>m.useContext(sp);sp.Provider;function qb(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Vb=m.createContext(qb()),Qb=()=>m.useContext(Vb),Yb=(e,t,n)=>{const l=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Zm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||l)&&(t.isReset()||(e.retryOnMount=!1))},Gb=e=>{m.useEffect(()=>{e.clearReset()},[e])},$b=({result:e,errorResetBoundary:t,throwOnError:n,query:l,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&l&&(a&&e.data===void 0||Zm(n,[e.error,l])),Xb=(e,t)=>t.state.data===void 0,Zb=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),l=e.staleTime;e.staleTime=typeof l=="function"?(...a)=>n(l(...a)):n(l),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Kb=(e,t)=>e.isLoading&&e.isFetching&&!t,Pb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bd=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kb(e,t,n){var d,p,g,x;const l=Bb(),a=Qb(),i=Ju(),r=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,r);const o=i.getQueryCache().get(r.queryHash);r._optimisticResults=l?"isRestoring":"optimistic",Zb(r),Yb(r,a,o),Gb(a);const s=!i.getQueryCache().get(r.queryHash),[c]=m.useState(()=>new t(i,r)),u=c.getOptimisticResult(r),f=!l&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(E=>{const v=f?c.subscribe(Me.batchCalls(E)):ke;return c.updateResult(),v},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(r)},[r,c]),Pb(r,u))throw Bd(r,c,a);if($b({result:u,errorResetBoundary:a,throwOnError:r.throwOnError,query:o,suspense:r.suspense}))throw u.error;if((x=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||x.call(g,r,u),r.experimental_prefetchInRender&&!Vi.isServer()&&Kb(u,l)){const E=s?Bd(r,c,a):o==null?void 0:o.promise;E==null||E.catch(ke).finally(()=>{c.updateResult()})}return r.notifyOnChangeProps?u:c.trackResult(u)}function cl(e,t){return kb({...e,enabled:!0,suspense:!0,throwOnError:Xb,placeholderData:void 0},hb)}var cp={exports:{}},Fo={},up={exports:{}},fp={};/**
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
- */(function(e){function t(j,D){var _=j.length;j.push(D);e:for(;0<_;){var q=_-1>>>1,J=j[q];if(0<a(J,D))j[q]=D,j[_]=J,_=q;else break e}}function n(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var D=j[0],_=j.pop();if(_!==D){j[0]=_;e:for(var q=0,J=j.length,Te=J>>>1;q<Te;){var $l=2*(q+1)-1,ai=j[$l],Kt=$l+1,Xl=j[Kt];if(0>a(ai,_))Kt<J&&0>a(Xl,ai)?(j[q]=Xl,j[Kt]=_,q=Kt):(j[q]=ai,j[$l]=_,q=$l);else if(Kt<J&&0>a(Xl,_))j[q]=Xl,j[Kt]=_,q=Kt;else break e}}return D}function a(j,D){var _=j.sortIndex-D.sortIndex;return _!==0?_:j.id-D.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var r=Date,o=r.now();e.unstable_now=function(){return r.now()-o}}var s=[],c=[],u=1,f=null,d=3,p=!1,g=!1,x=!1,E=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function S(j){for(var D=n(c);D!==null;){if(D.callback===null)l(c);else if(D.startTime<=j)l(c),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(c)}}function T(j){if(x=!1,S(j),!g)if(n(s)!==null)g=!0,R||(R=!0,H());else{var D=n(c);D!==null&&re(T,D.startTime-j)}}var R=!1,w=-1,A=5,N=-1;function z(){return E?!0:!(e.unstable_now()-N<A)}function U(){if(E=!1,R){var j=e.unstable_now();N=j;var D=!0;try{e:{g=!1,x&&(x=!1,y(w),w=-1),p=!0;var _=d;try{t:{for(S(j),f=n(s);f!==null&&!(f.expirationTime>j&&z());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var J=q(f.expirationTime<=j);if(j=e.unstable_now(),typeof J=="function"){f.callback=J,S(j),D=!0;break t}f===n(s)&&l(s),S(j)}else l(s);f=n(s)}if(f!==null)D=!0;else{var Te=n(c);Te!==null&&re(T,Te.startTime-j),D=!1}}break e}finally{f=null,d=_,p=!1}D=void 0}}finally{D?H():R=!1}}}var H;if(typeof b=="function")H=function(){b(U)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=U,H=function(){k.postMessage(null)}}else H=function(){v(U,0)};function re(j,D){w=v(function(){j(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(j){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var _=d;d=D;try{return j()}finally{d=_}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(j,D){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var _=d;d=j;try{return D()}finally{d=_}},e.unstable_scheduleCallback=function(j,D,_){var q=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?q+_:q):_=q,j){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=_+J,j={id:u++,callback:D,priorityLevel:j,startTime:_,expirationTime:J,sortIndex:-1},_>q?(j.sortIndex=_,t(c,j),n(s)===null&&j===n(c)&&(x?(y(w),w=-1):x=!0,re(T,_-q))):(j.sortIndex=J,t(s,j),g||p||(g=!0,R||(R=!0,H()))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var D=d;return function(){var _=d;d=D;try{return j.apply(this,arguments)}finally{d=_}}}})(fp);up.exports=fp;var Fb=up.exports,dp={exports:{}},Ge={};/**
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 Jb=m;function hp(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Cn(){}var Ye={d:{f:Cn,r:function(){throw Error(hp(522))},D:Cn,C:Cn,L:Cn,m:Cn,X:Cn,S:Cn,M:Cn},p:0,findDOMNode:null},Wb=Symbol.for("react.portal");function Ib(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wb,key:l==null?null:""+l,children:e,containerInfo:t,implementation:n}}var wi=Jb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Jo(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ye;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(hp(299));return Ib(e,t,null,n)};Ge.flushSync=function(e){var t=wi.T,n=Ye.p;try{if(wi.T=null,Ye.p=2,e)return e()}finally{wi.T=t,Ye.p=n,Ye.d.f()}};Ge.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ye.d.C(e,t))};Ge.prefetchDNS=function(e){typeof e=="string"&&Ye.d.D(e)};Ge.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,l=Jo(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ye.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:i}):n==="script"&&Ye.d.X(e,{crossOrigin:l,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ge.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Jo(t.as,t.crossOrigin);Ye.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ye.d.M(e)};Ge.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,l=Jo(n,t.crossOrigin);Ye.d.L(e,n,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ge.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Jo(t.as,t.crossOrigin);Ye.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ye.d.m(e)};Ge.requestFormReset=function(e){Ye.d.r(e)};Ge.unstable_batchedUpdates=function(e,t){return e(t)};Ge.useFormState=function(e,t,n){return wi.H.useFormState(e,t,n)};Ge.useFormStatus=function(){return wi.H.useHostTransitionStatus()};Ge.version="19.2.6";function mp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mp)}catch(e){console.error(e)}}mp(),dp.exports=Ge;var Wo=dp.exports;const ex=Vm(Wo);/**
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 Oe=Fb,pp=m,tx=Wo;function O(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yp(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 gp(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 qd(e){if(cr(e)!==e)throw Error(O(188))}function nx(e){var t=e.alternate;if(!t){if(t=cr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return qd(a),e;if(i===l)return qd(a),t;i=i.sibling}throw Error(O(188))}if(n.return!==l.return)n=a,l=i;else{for(var r=!1,o=a.child;o;){if(o===n){r=!0,n=a,l=i;break}if(o===l){r=!0,l=a,n=i;break}o=o.sibling}if(!r){for(o=i.child;o;){if(o===n){r=!0,n=i,l=a;break}if(o===l){r=!0,l=i,n=a;break}o=o.sibling}if(!r)throw Error(O(189))}}if(n.alternate!==l)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function bp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=bp(e),t!==null)return t;e=e.sibling}return null}var me=Object.assign,lx=Symbol.for("react.element"),Nr=Symbol.for("react.transitional.element"),bi=Symbol.for("react.portal"),Jl=Symbol.for("react.fragment"),xp=Symbol.for("react.strict_mode"),Bc=Symbol.for("react.profiler"),Sp=Symbol.for("react.consumer"),rn=Symbol.for("react.context"),Wu=Symbol.for("react.forward_ref"),qc=Symbol.for("react.suspense"),Vc=Symbol.for("react.suspense_list"),Iu=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),Qc=Symbol.for("react.activity"),ax=Symbol.for("react.memo_cache_sentinel"),Vd=Symbol.iterator;function ri(e){return e===null||typeof e!="object"?null:(e=Vd&&e[Vd]||e["@@iterator"],typeof e=="function"?e:null)}var ix=Symbol.for("react.client.reference");function Yc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ix?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jl:return"Fragment";case Bc:return"Profiler";case xp:return"StrictMode";case qc:return"Suspense";case Vc:return"SuspenseList";case Qc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case bi:return"Portal";case rn:return e.displayName||"Context";case Sp:return(e._context.displayName||"Context")+".Consumer";case Wu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Iu:return t=e.displayName||null,t!==null?t:Yc(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Yc(e(t))}catch{}}return null}var xi=Array.isArray,B=pp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=tx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Rl={pending:!1,data:null,method:null,action:null},Gc=[],Wl=-1;function Yt(e){return{current:e}}function ze(e){0>Wl||(e.current=Gc[Wl],Gc[Wl]=null,Wl--)}function se(e,t){Wl++,Gc[Wl]=e.current,e.current=t}var Vt=Yt(null),Qi=Yt(null),Pn=Yt(null),fo=Yt(null);function ho(e,t){switch(se(Pn,t),se(Qi,e),se(Vt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zh(t),e=Qy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ze(Vt),se(Vt,e)}function za(){ze(Vt),ze(Qi),ze(Pn)}function $c(e){e.memoizedState!==null&&se(fo,e);var t=Vt.current,n=Qy(t,e.type);t!==n&&(se(Qi,e),se(Vt,n))}function mo(e){Qi.current===e&&(ze(Vt),ze(Qi)),fo.current===e&&(ze(fo),Wi._currentValue=Rl)}var Ds,Qd;function ml(e){if(Ds===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",Qd=-1<n.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ds+e+Qd}var Hs=!1;function Us(e,t){if(!e||Hs)return"";Hs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var d=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){d=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){d=p}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&d&&typeof p.stack=="string")return[p.stack,d.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),r=i[0],o=i[1];if(r&&o){var s=r.split(`
44
- `),c=o.split(`
45
- `);for(a=l=0;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(l===s.length||a===c.length)for(l=s.length-1,a=c.length-1;1<=l&&0<=a&&s[l]!==c[a];)a--;for(;1<=l&&0<=a;l--,a--)if(s[l]!==c[a]){if(l!==1||a!==1)do if(l--,a--,0>a||s[l]!==c[a]){var u=`
46
- `+s[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Hs=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ml(n):""}function rx(e,t){switch(e.tag){case 26:case 27:case 5:return ml(e.type);case 16:return ml("Lazy");case 13:return e.child!==t&&t!==null?ml("Suspense Fallback"):ml("Suspense");case 19:return ml("SuspenseList");case 0:case 15:return Us(e.type,!1);case 11:return Us(e.type.render,!1);case 1:return Us(e.type,!0);case 31:return ml("Activity");default:return""}}function Yd(e){try{var t="",n=null;do t+=rx(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var Xc=Object.prototype.hasOwnProperty,ef=Oe.unstable_scheduleCallback,Ls=Oe.unstable_cancelCallback,ox=Oe.unstable_shouldYield,sx=Oe.unstable_requestPaint,rt=Oe.unstable_now,cx=Oe.unstable_getCurrentPriorityLevel,Ep=Oe.unstable_ImmediatePriority,Cp=Oe.unstable_UserBlockingPriority,po=Oe.unstable_NormalPriority,ux=Oe.unstable_LowPriority,wp=Oe.unstable_IdlePriority,fx=Oe.log,dx=Oe.unstable_setDisableYieldValue,ur=null,ot=null;function Yn(e){if(typeof fx=="function"&&dx(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(ur,e)}catch{}}var st=Math.clz32?Math.clz32:px,hx=Math.log,mx=Math.LN2;function px(e){return e>>>=0,e===0?32:31-(hx(e)/mx|0)|0}var jr=256,zr=262144,_r=4194304;function pl(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 Io(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var o=l&134217727;return o!==0?(l=o&~i,l!==0?a=pl(l):(r&=o,r!==0?a=pl(r):n||(n=o&~e,n!==0&&(a=pl(n))))):(o=l&~i,o!==0?a=pl(o):r!==0?a=pl(r):n||(n=l&~e,n!==0&&(a=pl(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function fr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vx(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 Tp(){var e=_r;return _r<<=1,!(_r&62914560)&&(_r=4194304),e}function Bs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yx(e,t,n,l,a,i){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=r&~n;0<n;){var u=31-st(n),f=1<<u;o[u]=0,s[u]=-1;var d=c[u];if(d!==null)for(c[u]=null,u=0;u<d.length;u++){var p=d[u];p!==null&&(p.lane&=-536870913)}n&=~f}l!==0&&Ap(e,l,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function Ap(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-st(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Op(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-st(n),a=1<<l;a&t|e[l]&t&&(e[l]|=t),n&=~a}}function Rp(e,t){var n=t&-t;return n=n&42?1:tf(n),n&(e.suspendedLanes|t)?0:n}function tf(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 nf(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Np(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Wy(e.type))}function Gd(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var ul=Math.random().toString(36).slice(2),De="__reactFiber$"+ul,Je="__reactProps$"+ul,Pa="__reactContainer$"+ul,Zc="__reactEvents$"+ul,gx="__reactListeners$"+ul,bx="__reactHandles$"+ul,$d="__reactResources$"+ul,hr="__reactMarker$"+ul;function lf(e){delete e[De],delete e[Je],delete e[Zc],delete e[gx],delete e[bx]}function Il(e){var t=e[De];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[De]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jh(e);e!==null;){if(n=e[De])return n;e=Jh(e)}return t}e=n,n=e.parentNode}return null}function ka(e){if(e=e[De]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Si(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(O(33))}function ca(e){var t=e[$d];return t||(t=e[$d]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function je(e){e[hr]=!0}var jp=new Set,zp={};function ql(e,t){_a(e,t),_a(e+"Capture",t)}function _a(e,t){for(zp[e]=t,e=0;e<t.length;e++)jp.add(t[e])}var xx=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]*$"),Xd={},Zd={};function Sx(e){return Xc.call(Zd,e)?!0:Xc.call(Xd,e)?!1:xx.test(e)?Zd[e]=!0:(Xd[e]=!0,!1)}function Pr(e,t,n){if(Sx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Mr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _p(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ex(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(r){n=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(r){n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kc(e){if(!e._valueTracker){var t=_p(e)?"checked":"value";e._valueTracker=Ex(e,t,""+e[t])}}function Mp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=_p(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function vo(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 Cx=/[\n"\\]/g;function bt(e){return e.replace(Cx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pc(e,t,n,l,a,i,r,o){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?kc(e,r,vt(t)):n!=null?kc(e,r,vt(n)):l!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+vt(o):e.removeAttribute("name")}function Dp(e,t,n,l,a,i,r,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Kc(e);return}n=n!=null?""+vt(n):"",t=t!=null?""+vt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=o?e.checked:!!l,e.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Kc(e)}function kc(e,t,n){t==="number"&&vo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ua(e,t,n,l){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&l&&(e[n].defaultSelected=!0)}else{for(n=""+vt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Hp(e,t,n){if(t!=null&&(t=""+vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+vt(n):""}function Up(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(O(92));if(xi(l)){if(1<l.length)throw Error(O(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=vt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Kc(e)}function Ma(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wx=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 Kd(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||wx.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lp(e,t,n){if(t!=null&&typeof t!="object")throw Error(O(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&Kd(e,a,l)}else for(var i in t)t.hasOwnProperty(i)&&Kd(e,i,t[i])}function af(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 Tx=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"]]),Ax=/^[\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 kr(e){return Ax.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function on(){}var Fc=null;function rf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,fa=null;function Pd(e){var t=ka(e);if(t&&(e=t.stateNode)){var n=e[Je]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[Je]||null;if(!a)throw Error(O(90));Pc(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Mp(l)}break e;case"textarea":Hp(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ua(e,!!n.multiple,t,!1)}}}var qs=!1;function Bp(e,t,n){if(qs)return e(t,n);qs=!0;try{var l=e(t);return l}finally{if(qs=!1,(ea!==null||fa!==null)&&(fs(),ea&&(t=ea,e=fa,fa=ea=null,Pd(t),e)))for(t=0;t<e.length;t++)Pd(e[t])}}function Yi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Je]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jc=!1;if(hn)try{var oi={};Object.defineProperty(oi,"passive",{get:function(){Jc=!0}}),window.addEventListener("test",oi,oi),window.removeEventListener("test",oi,oi)}catch{Jc=!1}var Gn=null,of=null,Fr=null;function qp(){if(Fr)return Fr;var e,t=of,n=t.length,l,a="value"in Gn?Gn.value:Gn.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var r=n-e;for(l=1;l<=r&&t[n-l]===a[i-l];l++);return Fr=a.slice(e,1<l?1-l:void 0)}function Jr(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 Dr(){return!0}function kd(){return!1}function We(e){function t(n,l,a,i,r){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Dr:kd,this.isPropagationStopped=kd,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Dr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Dr)},persist:function(){},isPersistent:Dr}),t}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=We(Vl),mr=me({},Vl,{view:0,detail:0}),Ox=We(mr),Vs,Qs,si,ts=me({},mr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sf,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!==si&&(si&&e.type==="mousemove"?(Vs=e.screenX-si.screenX,Qs=e.screenY-si.screenY):Qs=Vs=0,si=e),Vs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Fd=We(ts),Rx=me({},ts,{dataTransfer:0}),Nx=We(Rx),jx=me({},mr,{relatedTarget:0}),Ys=We(jx),zx=me({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),_x=We(zx),Mx=me({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dx=We(Mx),Hx=me({},Vl,{data:0}),Jd=We(Hx),Ux={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lx={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"},Bx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bx[e])?!!t[e]:!1}function sf(){return qx}var Vx=me({},mr,{key:function(e){if(e.key){var t=Ux[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sf,charCode:function(e){return e.type==="keypress"?Jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qx=We(Vx),Yx=me({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=We(Yx),Gx=me({},mr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sf}),$x=We(Gx),Xx=me({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zx=We(Xx),Kx=me({},ts,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Px=We(Kx),kx=me({},Vl,{newState:0,oldState:0}),Fx=We(kx),Jx=[9,13,27,32],cf=hn&&"CompositionEvent"in window,Ti=null;hn&&"documentMode"in document&&(Ti=document.documentMode);var Wx=hn&&"TextEvent"in window&&!Ti,Vp=hn&&(!cf||Ti&&8<Ti&&11>=Ti),Id=" ",eh=!1;function Qp(e,t){switch(e){case"keyup":return Jx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ta=!1;function Ix(e,t){switch(e){case"compositionend":return Yp(t);case"keypress":return t.which!==32?null:(eh=!0,Id);case"textInput":return e=t.data,e===Id&&eh?null:e;default:return null}}function eS(e,t){if(ta)return e==="compositionend"||!cf&&Qp(e,t)?(e=qp(),Fr=of=Gn=null,ta=!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 Vp&&t.locale!=="ko"?null:t.data;default:return null}}var tS={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 th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tS[e.type]:t==="textarea"}function Gp(e,t,n,l){ea?fa?fa.push(l):fa=[l]:ea=l,t=Do(t,"onChange"),0<t.length&&(n=new es("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ai=null,Gi=null;function nS(e){By(e,0)}function ns(e){var t=Si(e);if(Mp(t))return e}function nh(e,t){if(e==="change")return t}var $p=!1;if(hn){var Gs;if(hn){var $s="oninput"in document;if(!$s){var lh=document.createElement("div");lh.setAttribute("oninput","return;"),$s=typeof lh.oninput=="function"}Gs=$s}else Gs=!1;$p=Gs&&(!document.documentMode||9<document.documentMode)}function ah(){Ai&&(Ai.detachEvent("onpropertychange",Xp),Gi=Ai=null)}function Xp(e){if(e.propertyName==="value"&&ns(Gi)){var t=[];Gp(t,Gi,e,rf(e)),Bp(nS,t)}}function lS(e,t,n){e==="focusin"?(ah(),Ai=t,Gi=n,Ai.attachEvent("onpropertychange",Xp)):e==="focusout"&&ah()}function aS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ns(Gi)}function iS(e,t){if(e==="click")return ns(t)}function rS(e,t){if(e==="input"||e==="change")return ns(t)}function oS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:oS;function $i(e,t){if(ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Xc.call(t,a)||!ft(e[a],t[a]))return!1}return!0}function ih(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rh(e,t){var n=ih(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ih(n)}}function Zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vo(e.document)}return t}function uf(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 sS=hn&&"documentMode"in document&&11>=document.documentMode,na=null,Wc=null,Oi=null,Ic=!1;function oh(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ic||na==null||na!==vo(l)||(l=na,"selectionStart"in l&&uf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Oi&&$i(Oi,l)||(Oi=l,l=Do(Wc,"onSelect"),0<l.length&&(t=new es("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=na)))}function dl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var la={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},Xs={},Pp={};hn&&(Pp=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ql(e){if(Xs[e])return Xs[e];if(!la[e])return e;var t=la[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pp)return Xs[e]=t[n];return e}var kp=Ql("animationend"),Fp=Ql("animationiteration"),Jp=Ql("animationstart"),cS=Ql("transitionrun"),uS=Ql("transitionstart"),fS=Ql("transitioncancel"),Wp=Ql("transitionend"),Ip=new Map,eu="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(" ");eu.push("scrollEnd");function _t(e,t){Ip.set(e,t),ql(t,[e])}var yo=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)},pt=[],aa=0,ff=0;function ls(){for(var e=aa,t=ff=aa=0;t<e;){var n=pt[t];pt[t++]=null;var l=pt[t];pt[t++]=null;var a=pt[t];pt[t++]=null;var i=pt[t];if(pt[t++]=null,l!==null&&a!==null){var r=l.pending;r===null?a.next=a:(a.next=r.next,r.next=a),l.pending=a}i!==0&&ev(n,a,i)}}function as(e,t,n,l){pt[aa++]=e,pt[aa++]=t,pt[aa++]=n,pt[aa++]=l,ff|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function df(e,t,n,l){return as(e,t,n,l),go(e)}function Yl(e,t){return as(e,null,null,t),go(e)}function ev(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-st(n),e=i.hiddenUpdates,l=e[a],l===null?e[a]=[t]:l.push(t),t.lane=n|536870912),i):null}function go(e){if(50<Ui)throw Ui=0,Su=null,Error(O(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ia={};function dS(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,l){return new dS(e,t,n,l)}function hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function tv(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wr(e,t,n,l,a,i){var r=0;if(l=e,typeof e=="function")hf(e)&&(r=1);else if(typeof e=="string")r=y1(e,n,Vt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Qc:return e=at(31,n,t,a),e.elementType=Qc,e.lanes=i,e;case Jl:return Nl(n.children,a,i,t);case xp:r=8,a|=24;break;case Bc:return e=at(12,n,t,a|2),e.elementType=Bc,e.lanes=i,e;case qc:return e=at(13,n,t,a),e.elementType=qc,e.lanes=i,e;case Vc:return e=at(19,n,t,a),e.elementType=Vc,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rn:r=10;break e;case Sp:r=9;break e;case Wu:r=11;break e;case Iu:r=14;break e;case Rn:r=16,l=null;break e}r=29,n=Error(O(130,e===null?"null":typeof e,"")),l=null}return t=at(r,n,t,a),t.elementType=e,t.type=l,t.lanes=i,t}function Nl(e,t,n,l){return e=at(7,e,l,t),e.lanes=n,e}function Zs(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function nv(e){var t=at(18,null,null,0);return t.stateNode=e,t}function Ks(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sh=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var n=sh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Yd(t)},sh.set(e,t),t)}return{value:e,source:t,stack:Yd(t)}}var ra=[],oa=0,bo=null,Xi=0,yt=[],gt=0,ll=null,Ut=1,Lt="";function tn(e,t){ra[oa++]=Xi,ra[oa++]=bo,bo=e,Xi=t}function lv(e,t,n){yt[gt++]=Ut,yt[gt++]=Lt,yt[gt++]=ll,ll=e;var l=Ut;e=Lt;var a=32-st(l)-1;l&=~(1<<a),n+=1;var i=32-st(t)+a;if(30<i){var r=a-a%5;i=(l&(1<<r)-1).toString(32),l>>=r,a-=r,Ut=1<<32-st(t)+a|n<<a|l,Lt=i+e}else Ut=1<<i|n<<a|l,Lt=e}function mf(e){e.return!==null&&(tn(e,1),lv(e,1,0))}function pf(e){for(;e===bo;)bo=ra[--oa],ra[oa]=null,Xi=ra[--oa],ra[oa]=null;for(;e===ll;)ll=yt[--gt],yt[gt]=null,Lt=yt[--gt],yt[gt]=null,Ut=yt[--gt],yt[gt]=null}function av(e,t){yt[gt++]=Ut,yt[gt++]=Lt,yt[gt++]=ll,Ut=t.id,Lt=t.overflow,ll=e}var He=null,fe=null,P=!1,kn=null,St=!1,tu=Error(O(519));function al(e){var t=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(xt(t,e)),tu}function ch(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[De]=e,t[Je]=l,n){case"dialog":G("cancel",t),G("close",t);break;case"iframe":case"object":case"embed":G("load",t);break;case"video":case"audio":for(n=0;n<Fi.length;n++)G(Fi[n],t);break;case"source":G("error",t);break;case"img":case"image":case"link":G("error",t),G("load",t);break;case"details":G("toggle",t);break;case"input":G("invalid",t),Dp(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":G("invalid",t);break;case"textarea":G("invalid",t),Up(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Vy(t.textContent,n)?(l.popover!=null&&(G("beforetoggle",t),G("toggle",t)),l.onScroll!=null&&G("scroll",t),l.onScrollEnd!=null&&G("scrollend",t),l.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||al(e,!0)}function uh(e){for(He=e.return;He;)switch(He.tag){case 5:case 31:case 13:St=!1;return;case 27:case 3:St=!0;return;default:He=He.return}}function Zl(e){if(e!==He)return!1;if(!P)return uh(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Au(e.type,e.memoizedProps)),n=!n),n&&fe&&al(e),uh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));fe=Fh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));fe=Fh(e)}else t===27?(t=fe,fl(e.type)?(e=ju,ju=null,fe=e):fe=t):fe=He?wt(e.stateNode.nextSibling):null;return!0}function Ml(){fe=He=null,P=!1}function Ps(){var e=kn;return e!==null&&(Pe===null?Pe=e:Pe.push.apply(Pe,e),kn=null),e}function Zi(e){kn===null?kn=[e]:kn.push(e)}var nu=Yt(null),Gl=null,sn=null;function jn(e,t,n){se(nu,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=nu.current,ze(nu)}function lu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function au(e,t,n,l){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var r=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var s=0;s<t.length;s++)if(o.context===t[s]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),lu(i.return,n,e),l||(r=null);break e}i=o.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(O(341));r.lanes|=n,i=r.alternate,i!==null&&(i.lanes|=n),lu(r,n,e),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function Fa(e,t,n,l){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var r=a.alternate;if(r===null)throw Error(O(387));if(r=r.memoizedProps,r!==null){var o=a.type;ft(a.pendingProps.value,r.value)||(e!==null?e.push(o):e=[o])}}else if(a===fo.current){if(r=a.alternate,r===null)throw Error(O(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Wi):e=[Wi])}a=a.return}e!==null&&au(t,e,n,l),t.flags|=262144}function xo(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Dl(e){Gl=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ue(e){return iv(Gl,e)}function Hr(e,t){return Gl===null&&Dl(e),iv(e,t)}function iv(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},sn===null){if(e===null)throw Error(O(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return n}var hS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},mS=Oe.unstable_scheduleCallback,pS=Oe.unstable_NormalPriority,Ce={$$typeof:rn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vf(){return{controller:new hS,data:new Map,refCount:0}}function pr(e){e.refCount--,e.refCount===0&&mS(pS,function(){e.controller.abort()})}var Ri=null,iu=0,Da=0,da=null;function vS(e,t){if(Ri===null){var n=Ri=[];iu=0,Da=Qf(),da={status:"pending",value:void 0,then:function(l){n.push(l)}}}return iu++,t.then(fh,fh),t}function fh(){if(--iu===0&&Ri!==null){da!==null&&(da.status="fulfilled");var e=Ri;Ri=null,Da=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yS(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var dh=B.S;B.S=function(e,t){by=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vS(e,t),dh!==null&&dh(e,t)};var jl=Yt(null);function yf(){var e=jl.current;return e!==null?e:oe.pooledCache}function Ir(e,t){t===null?se(jl,jl.current):se(jl,t.pool)}function rv(){var e=yf();return e===null?null:{parent:Ce._currentValue,pool:e}}var Ja=Error(O(460)),gf=Error(O(474)),is=Error(O(542)),So={then:function(){}};function hh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ov(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ph(e),e;default:if(typeof t.status=="string")t.then(on,on);else{if(e=oe,e!==null&&100<e.shellSuspendCounter)throw Error(O(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=l}},function(l){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ph(e),e}throw zl=t,Ja}}function vl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(zl=n,Ja):n}}var zl=null;function mh(){if(zl===null)throw Error(O(459));var e=zl;return zl=null,e}function ph(e){if(e===Ja||e===is)throw Error(O(483))}var ha=null,Ki=0;function Ur(e){var t=Ki;return Ki+=1,ha===null&&(ha=[]),ov(ha,e,t)}function ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Lr(e,t){throw t.$$typeof===lx?Error(O(525)):(e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sv(e){function t(v,y){if(e){var b=v.deletions;b===null?(v.deletions=[y],v.flags|=16):b.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function l(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function a(v,y){return v=un(v,y),v.index=0,v.sibling=null,v}function i(v,y,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<y?(v.flags|=67108866,y):b):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function r(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function o(v,y,b,S){return y===null||y.tag!==6?(y=Zs(b,v.mode,S),y.return=v,y):(y=a(y,b),y.return=v,y)}function s(v,y,b,S){var T=b.type;return T===Jl?u(v,y,b.props.children,S,b.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Rn&&vl(T)===y.type)?(y=a(y,b.props),ci(y,b),y.return=v,y):(y=Wr(b.type,b.key,b.props,null,v.mode,S),ci(y,b),y.return=v,y)}function c(v,y,b,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Ks(b,v.mode,S),y.return=v,y):(y=a(y,b.children||[]),y.return=v,y)}function u(v,y,b,S,T){return y===null||y.tag!==7?(y=Nl(b,v.mode,S,T),y.return=v,y):(y=a(y,b),y.return=v,y)}function f(v,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Zs(""+y,v.mode,b),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Nr:return b=Wr(y.type,y.key,y.props,null,v.mode,b),ci(b,y),b.return=v,b;case bi:return y=Ks(y,v.mode,b),y.return=v,y;case Rn:return y=vl(y),f(v,y,b)}if(xi(y)||ri(y))return y=Nl(y,v.mode,b,null),y.return=v,y;if(typeof y.then=="function")return f(v,Ur(y),b);if(y.$$typeof===rn)return f(v,Hr(v,y),b);Lr(v,y)}return null}function d(v,y,b,S){var T=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return T!==null?null:o(v,y,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Nr:return b.key===T?s(v,y,b,S):null;case bi:return b.key===T?c(v,y,b,S):null;case Rn:return b=vl(b),d(v,y,b,S)}if(xi(b)||ri(b))return T!==null?null:u(v,y,b,S,null);if(typeof b.then=="function")return d(v,y,Ur(b),S);if(b.$$typeof===rn)return d(v,y,Hr(v,b),S);Lr(v,b)}return null}function p(v,y,b,S,T){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return v=v.get(b)||null,o(y,v,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Nr:return v=v.get(S.key===null?b:S.key)||null,s(y,v,S,T);case bi:return v=v.get(S.key===null?b:S.key)||null,c(y,v,S,T);case Rn:return S=vl(S),p(v,y,b,S,T)}if(xi(S)||ri(S))return v=v.get(b)||null,u(y,v,S,T,null);if(typeof S.then=="function")return p(v,y,b,Ur(S),T);if(S.$$typeof===rn)return p(v,y,b,Hr(y,S),T);Lr(y,S)}return null}function g(v,y,b,S){for(var T=null,R=null,w=y,A=y=0,N=null;w!==null&&A<b.length;A++){w.index>A?(N=w,w=null):N=w.sibling;var z=d(v,w,b[A],S);if(z===null){w===null&&(w=N);break}e&&w&&z.alternate===null&&t(v,w),y=i(z,y,A),R===null?T=z:R.sibling=z,R=z,w=N}if(A===b.length)return n(v,w),P&&tn(v,A),T;if(w===null){for(;A<b.length;A++)w=f(v,b[A],S),w!==null&&(y=i(w,y,A),R===null?T=w:R.sibling=w,R=w);return P&&tn(v,A),T}for(w=l(w);A<b.length;A++)N=p(w,v,A,b[A],S),N!==null&&(e&&N.alternate!==null&&w.delete(N.key===null?A:N.key),y=i(N,y,A),R===null?T=N:R.sibling=N,R=N);return e&&w.forEach(function(U){return t(v,U)}),P&&tn(v,A),T}function x(v,y,b,S){if(b==null)throw Error(O(151));for(var T=null,R=null,w=y,A=y=0,N=null,z=b.next();w!==null&&!z.done;A++,z=b.next()){w.index>A?(N=w,w=null):N=w.sibling;var U=d(v,w,z.value,S);if(U===null){w===null&&(w=N);break}e&&w&&U.alternate===null&&t(v,w),y=i(U,y,A),R===null?T=U:R.sibling=U,R=U,w=N}if(z.done)return n(v,w),P&&tn(v,A),T;if(w===null){for(;!z.done;A++,z=b.next())z=f(v,z.value,S),z!==null&&(y=i(z,y,A),R===null?T=z:R.sibling=z,R=z);return P&&tn(v,A),T}for(w=l(w);!z.done;A++,z=b.next())z=p(w,v,A,z.value,S),z!==null&&(e&&z.alternate!==null&&w.delete(z.key===null?A:z.key),y=i(z,y,A),R===null?T=z:R.sibling=z,R=z);return e&&w.forEach(function(H){return t(v,H)}),P&&tn(v,A),T}function E(v,y,b,S){if(typeof b=="object"&&b!==null&&b.type===Jl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Nr:e:{for(var T=b.key;y!==null;){if(y.key===T){if(T=b.type,T===Jl){if(y.tag===7){n(v,y.sibling),S=a(y,b.props.children),S.return=v,v=S;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Rn&&vl(T)===y.type){n(v,y.sibling),S=a(y,b.props),ci(S,b),S.return=v,v=S;break e}n(v,y);break}else t(v,y);y=y.sibling}b.type===Jl?(S=Nl(b.props.children,v.mode,S,b.key),S.return=v,v=S):(S=Wr(b.type,b.key,b.props,null,v.mode,S),ci(S,b),S.return=v,v=S)}return r(v);case bi:e:{for(T=b.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(v,y.sibling),S=a(y,b.children||[]),S.return=v,v=S;break e}else{n(v,y);break}else t(v,y);y=y.sibling}S=Ks(b,v.mode,S),S.return=v,v=S}return r(v);case Rn:return b=vl(b),E(v,y,b,S)}if(xi(b))return g(v,y,b,S);if(ri(b)){if(T=ri(b),typeof T!="function")throw Error(O(150));return b=T.call(b),x(v,y,b,S)}if(typeof b.then=="function")return E(v,y,Ur(b),S);if(b.$$typeof===rn)return E(v,y,Hr(v,b),S);Lr(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(v,y.sibling),S=a(y,b),S.return=v,v=S):(n(v,y),S=Zs(b,v.mode,S),S.return=v,v=S),r(v)):n(v,y)}return function(v,y,b,S){try{Ki=0;var T=E(v,y,b,S);return ha=null,T}catch(w){if(w===Ja||w===is)throw w;var R=at(29,w,null,v.mode);return R.lanes=S,R.return=v,R}finally{}}}var Hl=sv(!0),cv=sv(!1),Nn=!1;function bf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(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 Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,W&2){var a=l.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t,t=go(e),ev(e,null,n),t}return as(e,l,t,n),go(e)}function Ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Op(e,n)}}function ks(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=r:i=i.next=r,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ou=!1;function ji(){if(ou){var e=da;if(e!==null)throw e}}function zi(e,t,n,l){ou=!1;var a=e.updateQueue;Nn=!1;var i=a.firstBaseUpdate,r=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var s=o,c=s.next;s.next=null,r===null?i=c:r.next=c,r=s;var u=e.alternate;u!==null&&(u=u.updateQueue,o=u.lastBaseUpdate,o!==r&&(o===null?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=s))}if(i!==null){var f=a.baseState;r=0,u=c=s=null,o=i;do{var d=o.lane&-536870913,p=d!==o.lane;if(p?(Z&d)===d:(l&d)===d){d!==0&&d===Da&&(ou=!0),u!==null&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,x=o;d=t;var E=n;switch(x.tag){case 1:if(g=x.payload,typeof g=="function"){f=g.call(E,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,d=typeof g=="function"?g.call(E,f,d):g,d==null)break e;f=me({},f,d);break e;case 2:Nn=!0}}d=o.callback,d!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[d]:p.push(d))}else p={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},u===null?(c=u=p,s=f):u=u.next=p,r|=d;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);u===null&&(s=f),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=u,i===null&&(a.shared.lanes=0),rl|=r,e.lanes=r,e.memoizedState=f}}function uv(e,t){if(typeof e!="function")throw Error(O(191,e));e.call(t)}function fv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)uv(n[e],t)}var Ha=Yt(null),Eo=Yt(0);function vh(e,t){e=yn,se(Eo,e),se(Ha,t),yn=e|t.baseLanes}function su(){se(Eo,yn),se(Ha,Ha.current)}function xf(){yn=Eo.current,ze(Ha),ze(Eo)}var dt=Yt(null),Ct=null;function zn(e){var t=e.alternate;se(be,be.current&1),se(dt,e),Ct===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ct=e)}function cu(e){se(be,be.current),se(dt,e),Ct===null&&(Ct=e)}function dv(e){e.tag===22?(se(be,be.current),se(dt,e),Ct===null&&(Ct=e)):_n()}function _n(){se(be,be.current),se(dt,dt.current)}function nt(e){ze(dt),Ct===e&&(Ct=null),ze(be)}var be=Yt(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ru(n)||Nu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 mn=0,Q=null,ie=null,Se=null,wo=!1,ma=!1,Ul=!1,To=0,Pi=0,pa=null,gS=0;function ve(){throw Error(O(321))}function Sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ft(e[n],t[n]))return!1;return!0}function Ef(e,t,n,l,a,i){return mn=i,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Gv:Mf,Ul=!1,i=n(l,a),Ul=!1,ma&&(i=mv(t,n,l,a)),hv(e),i}function hv(e){B.H=ki;var t=ie!==null&&ie.next!==null;if(mn=0,Se=ie=Q=null,wo=!1,Pi=0,pa=null,t)throw Error(O(300));e===null||we||(e=e.dependencies,e!==null&&xo(e)&&(we=!0))}function mv(e,t,n,l){Q=e;var a=0;do{if(ma&&(pa=null),Pi=0,ma=!1,25<=a)throw Error(O(301));if(a+=1,Se=ie=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}B.H=$v,i=t(n,l)}while(ma);return i}function bS(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?vr(t):t,e=e.useState()[0],(ie!==null?ie.memoizedState:null)!==e&&(Q.flags|=1024),t}function Cf(){var e=To!==0;return To=0,e}function wf(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Tf(e){if(wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wo=!1}mn=0,Se=ie=Q=null,ma=!1,Pi=To=0,pa=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?Q.memoizedState=Se=e:Se=Se.next=e,Se}function xe(){if(ie===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=Se===null?Q.memoizedState:Se.next;if(t!==null)Se=t,ie=e;else{if(e===null)throw Q.alternate===null?Error(O(467)):Error(O(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},Se===null?Q.memoizedState=Se=e:Se=Se.next=e}return Se}function rs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vr(e){var t=Pi;return Pi+=1,pa===null&&(pa=[]),e=ov(pa,e,t),t=Q,(Se===null?t.memoizedState:Se.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Gv:Mf),e}function os(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vr(e);if(e.$$typeof===rn)return Ue(e)}throw Error(O(438,String(e)))}function Af(e){var t=null,n=Q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Q.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=rs(),Q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ax;return t.index++,n}function pn(e,t){return typeof t=="function"?t(e):t}function eo(e){var t=xe();return Of(t,ie,e)}function Of(e,t,n){var l=e.queue;if(l===null)throw Error(O(311));l.lastRenderedReducer=n;var a=e.baseQueue,i=l.pending;if(i!==null){if(a!==null){var r=a.next;a.next=i.next,i.next=r}t.baseQueue=a=i,l.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=r=null,s=null,c=t,u=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(Z&f)===f:(mn&f)===f){var d=c.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Da&&(u=!0);else if((mn&d)===d){c=c.next,d===Da&&(u=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(o=s=f,r=i):s=s.next=f,Q.lanes|=d,rl|=d;f=c.action,Ul&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else d={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(o=s=d,r=i):s=s.next=d,Q.lanes|=f,rl|=f;c=c.next}while(c!==null&&c!==t);if(s===null?r=i:s.next=o,!ft(i,e.memoizedState)&&(we=!0,u&&(n=da,n!==null)))throw n;e.memoizedState=i,e.baseState=r,e.baseQueue=s,l.lastRenderedState=i}return a===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Fs(e){var t=xe(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var r=a=a.next;do i=e(i,r.action),r=r.next;while(r!==a);ft(i,t.memoizedState)||(we=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,l]}function pv(e,t,n){var l=Q,a=xe(),i=P;if(i){if(n===void 0)throw Error(O(407));n=n()}else n=t();var r=!ft((ie||a).memoizedState,n);if(r&&(a.memoizedState=n,we=!0),a=a.queue,Rf(gv.bind(null,l,a,e),[e]),a.getSnapshot!==t||r||Se!==null&&Se.memoizedState.tag&1){if(l.flags|=2048,Ua(9,{destroy:void 0},yv.bind(null,l,a,n,t),null),oe===null)throw Error(O(349));i||mn&127||vv(l,t,n)}return n}function vv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t=rs(),Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yv(e,t,n,l){t.value=n,t.getSnapshot=l,bv(t)&&xv(e)}function gv(e,t,n){return n(function(){bv(t)&&xv(e)})}function bv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ft(e,n)}catch{return!0}}function xv(e){var t=Yl(e,2);t!==null&&Fe(t,e,2)}function uu(e){var t=Qe();if(typeof e=="function"){var n=e;if(e=n(),Ul){Yn(!0);try{n()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:e},t}function Sv(e,t,n,l){return e.baseState=n,Of(e,ie,typeof l=="function"?l:pn)}function xS(e,t,n,l,a){if(cs(e))throw Error(O(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};B.T!==null?n(!0):i.isTransition=!1,l(i),n=t.pending,n===null?(i.next=t.pending=i,Ev(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Ev(e,t){var n=t.action,l=t.payload,a=e.state;if(t.isTransition){var i=B.T,r={};B.T=r;try{var o=n(a,l),s=B.S;s!==null&&s(r,o),yh(e,t,o)}catch(c){fu(e,t,c)}finally{i!==null&&r.types!==null&&(i.types=r.types),B.T=i}}else try{i=n(a,l),yh(e,t,i)}catch(c){fu(e,t,c)}}function yh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){gh(e,t,l)},function(l){return fu(e,t,l)}):gh(e,t,n)}function gh(e,t,n){t.status="fulfilled",t.value=n,Cv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ev(e,n)))}function fu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Cv(t),t=t.next;while(t!==l)}e.action=null}function Cv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wv(e,t){return t}function bh(e,t){if(P){var n=oe.formState;if(n!==null){e:{var l=Q;if(P){if(fe){t:{for(var a=fe,i=St;a.nodeType!==8;){if(!i){a=null;break t}if(a=wt(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){fe=wt(a.nextSibling),l=a.data==="F!";break e}}al(l)}l=!1}l&&(t=n[0])}}return n=Qe(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wv,lastRenderedState:t},n.queue=l,n=Vv.bind(null,Q,l),l.dispatch=n,l=uu(!1),i=_f.bind(null,Q,!1,l.queue),l=Qe(),a={state:t,dispatch:null,action:e,pending:null},l.queue=a,n=xS.bind(null,Q,a,i,n),a.dispatch=n,l.memoizedState=e,[t,n,!1]}function xh(e){var t=xe();return Tv(t,ie,e)}function Tv(e,t,n){if(t=Of(e,t,wv)[0],e=eo(pn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=vr(t)}catch(r){throw r===Ja?is:r}else l=t;t=xe();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(Q.flags|=2048,Ua(9,{destroy:void 0},SS.bind(null,a,n),null)),[l,i,e]}function SS(e,t){e.action=t}function Sh(e){var t=xe(),n=ie;if(n!==null)return Tv(t,n,e);xe(),t=t.memoizedState,n=xe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ua(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Q.updateQueue,t===null&&(t=rs(),Q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Av(){return xe().memoizedState}function to(e,t,n,l){var a=Qe();Q.flags|=e,a.memoizedState=Ua(1|t,{destroy:void 0},n,l===void 0?null:l)}function ss(e,t,n,l){var a=xe();l=l===void 0?null:l;var i=a.memoizedState.inst;ie!==null&&l!==null&&Sf(l,ie.memoizedState.deps)?a.memoizedState=Ua(t,i,n,l):(Q.flags|=e,a.memoizedState=Ua(1|t,i,n,l))}function Eh(e,t){to(8390656,8,e,t)}function Rf(e,t){ss(2048,8,e,t)}function ES(e){Q.flags|=4;var t=Q.updateQueue;if(t===null)t=rs(),Q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ov(e){var t=xe().memoizedState;return ES({ref:t,nextImpl:e}),function(){if(W&2)throw Error(O(440));return t.impl.apply(void 0,arguments)}}function Rv(e,t){return ss(4,2,e,t)}function Nv(e,t){return ss(4,4,e,t)}function jv(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zv(e,t,n){n=n!=null?n.concat([e]):null,ss(4,4,jv.bind(null,t,e),n)}function Nf(){}function _v(e,t){var n=xe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Sf(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Mv(e,t){var n=xe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Sf(t,l[1]))return l[0];if(l=e(),Ul){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l}function jf(e,t,n){return n===void 0||mn&1073741824&&!(Z&261930)?e.memoizedState=t:(e.memoizedState=n,e=Sy(),Q.lanes|=e,rl|=e,n)}function Dv(e,t,n,l){return ft(n,t)?n:Ha.current!==null?(e=jf(e,n,l),ft(e,t)||(we=!0),e):!(mn&42)||mn&1073741824&&!(Z&261930)?(we=!0,e.memoizedState=n):(e=Sy(),Q.lanes|=e,rl|=e,t)}function Hv(e,t,n,l,a){var i=I.p;I.p=i!==0&&8>i?i:8;var r=B.T,o={};B.T=o,_f(e,!1,t,n);try{var s=a(),c=B.S;if(c!==null&&c(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=yS(s,l);_i(e,t,u,ct(e))}else _i(e,t,l,ct(e))}catch(f){_i(e,t,{then:function(){},status:"rejected",reason:f},ct())}finally{I.p=i,r!==null&&o.types!==null&&(r.types=o.types),B.T=r}}function CS(){}function du(e,t,n,l){if(e.tag!==5)throw Error(O(476));var a=Uv(e).queue;Hv(e,a,t,Rl,n===null?CS:function(){return Lv(e),n(l)})}function Uv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Rl,baseState:Rl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:Rl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lv(e){var t=Uv(e);t.next===null&&(t=e.alternate.memoizedState),_i(e,t.next.queue,{},ct())}function zf(){return Ue(Wi)}function Bv(){return xe().memoizedState}function qv(){return xe().memoizedState}function wS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ct();e=Fn(n);var l=Jn(t,e,n);l!==null&&(Fe(l,t,n),Ni(l,t,n)),t={cache:vf()},e.payload=t;return}t=t.return}}function TS(e,t,n){var l=ct();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cs(e)?Qv(t,n):(n=df(e,t,n,l),n!==null&&(Fe(n,e,l),Yv(n,t,l)))}function Vv(e,t,n){var l=ct();_i(e,t,n,l)}function _i(e,t,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cs(e))Qv(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,o=i(r,n);if(a.hasEagerState=!0,a.eagerState=o,ft(o,r))return as(e,t,a,0),oe===null&&ls(),!1}catch{}finally{}if(n=df(e,t,a,l),n!==null)return Fe(n,e,l),Yv(n,t,l),!0}return!1}function _f(e,t,n,l){if(l={lane:2,revertLane:Qf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},cs(e)){if(t)throw Error(O(479))}else t=df(e,n,l,2),t!==null&&Fe(t,e,2)}function cs(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Qv(e,t){ma=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yv(e,t,n){if(n&4194048){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Op(e,n)}}var ki={readContext:Ue,use:os,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useLayoutEffect:ve,useInsertionEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useSyncExternalStore:ve,useId:ve,useHostTransitionStatus:ve,useFormState:ve,useActionState:ve,useOptimistic:ve,useMemoCache:ve,useCacheRefresh:ve};ki.useEffectEvent=ve;var Gv={readContext:Ue,use:os,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Eh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,to(4194308,4,jv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return to(4194308,4,e,t)},useInsertionEffect:function(e,t){to(4,2,e,t)},useMemo:function(e,t){var n=Qe();t=t===void 0?null:t;var l=e();if(Ul){Yn(!0);try{e()}finally{Yn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Qe();if(n!==void 0){var a=n(t);if(Ul){Yn(!0);try{n(t)}finally{Yn(!1)}}}else a=t;return l.memoizedState=l.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},l.queue=e,e=e.dispatch=TS.bind(null,Q,e),[l.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:function(e){e=uu(e);var t=e.queue,n=Vv.bind(null,Q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Nf,useDeferredValue:function(e,t){var n=Qe();return jf(n,e,t)},useTransition:function(){var e=uu(!1);return e=Hv.bind(null,Q,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Q,a=Qe();if(P){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),oe===null)throw Error(O(349));Z&127||vv(l,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Eh(gv.bind(null,l,i,e),[e]),l.flags|=2048,Ua(9,{destroy:void 0},yv.bind(null,l,i,n,t),null),n},useId:function(){var e=Qe(),t=oe.identifierPrefix;if(P){var n=Lt,l=Ut;n=(l&~(1<<32-st(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=To++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=gS++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zf,useFormState:bh,useActionState:bh,useOptimistic:function(e){var t=Qe();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_f.bind(null,Q,!0,n),n.dispatch=t,[e,t]},useMemoCache:Af,useCacheRefresh:function(){return Qe().memoizedState=wS.bind(null,Q)},useEffectEvent:function(e){var t=Qe(),n={impl:e};return t.memoizedState=n,function(){if(W&2)throw Error(O(440));return n.impl.apply(void 0,arguments)}}},Mf={readContext:Ue,use:os,useCallback:_v,useContext:Ue,useEffect:Rf,useImperativeHandle:zv,useInsertionEffect:Rv,useLayoutEffect:Nv,useMemo:Mv,useReducer:eo,useRef:Av,useState:function(){return eo(pn)},useDebugValue:Nf,useDeferredValue:function(e,t){var n=xe();return Dv(n,ie.memoizedState,e,t)},useTransition:function(){var e=eo(pn)[0],t=xe().memoizedState;return[typeof e=="boolean"?e:vr(e),t]},useSyncExternalStore:pv,useId:Bv,useHostTransitionStatus:zf,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var n=xe();return Sv(n,ie,e,t)},useMemoCache:Af,useCacheRefresh:qv};Mf.useEffectEvent=Ov;var $v={readContext:Ue,use:os,useCallback:_v,useContext:Ue,useEffect:Rf,useImperativeHandle:zv,useInsertionEffect:Rv,useLayoutEffect:Nv,useMemo:Mv,useReducer:Fs,useRef:Av,useState:function(){return Fs(pn)},useDebugValue:Nf,useDeferredValue:function(e,t){var n=xe();return ie===null?jf(n,e,t):Dv(n,ie.memoizedState,e,t)},useTransition:function(){var e=Fs(pn)[0],t=xe().memoizedState;return[typeof e=="boolean"?e:vr(e),t]},useSyncExternalStore:pv,useId:Bv,useHostTransitionStatus:zf,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var n=xe();return ie!==null?Sv(n,ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Af,useCacheRefresh:qv};$v.useEffectEvent=Ov;function Js(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hu={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=ct(),a=Fn(l);a.payload=t,n!=null&&(a.callback=n),t=Jn(e,a,l),t!==null&&(Fe(t,e,l),Ni(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=ct(),a=Fn(l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Jn(e,a,l),t!==null&&(Fe(t,e,l),Ni(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ct(),l=Fn(n);l.tag=2,t!=null&&(l.callback=t),t=Jn(e,l,n),t!==null&&(Fe(t,e,n),Ni(t,e,n))}};function Ch(e,t,n,l,a,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,r):t.prototype&&t.prototype.isPureReactComponent?!$i(n,l)||!$i(a,i):!0}function wh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&hu.enqueueReplaceState(t,t.state,null)}function Ll(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=me({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function Xv(e){yo(e)}function Zv(e){console.error(e)}function Kv(e){yo(e)}function Ao(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Th(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function mu(e,t,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ao(e,t)},n}function Pv(e){return e=Fn(e),e.tag=3,e}function kv(e,t,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;e.payload=function(){return a(i)},e.callback=function(){Th(t,n,l)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Th(t,n,l),typeof a!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function AS(e,t,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Fa(t,n,a,!0),n=dt.current,n!==null){switch(n.tag){case 31:case 13:return Ct===null?zo():n.alternate===null&&ge===0&&(ge=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===So?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),sc(e,l,a)),!1;case 22:return n.flags|=65536,l===So?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),sc(e,l,a)),!1}throw Error(O(435,n.tag))}return sc(e,l,a),zo(),!1}if(P)return t=dt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==tu&&(e=Error(O(422),{cause:l}),Zi(xt(e,n)))):(l!==tu&&(t=Error(O(423),{cause:l}),Zi(xt(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,l=xt(l,n),a=mu(e.stateNode,l,a),ks(e,a),ge!==4&&(ge=2)),!1;var i=Error(O(520),{cause:l});if(i=xt(i,n),Hi===null?Hi=[i]:Hi.push(i),ge!==4&&(ge=2),t===null)return!0;l=xt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=mu(n.stateNode,l,e),ks(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Wn===null||!Wn.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Pv(a),kv(a,e,n,l),ks(n,a),!1}n=n.return}while(n!==null);return!1}var Df=Error(O(461)),we=!1;function _e(e,t,n,l){t.child=e===null?cv(t,null,n,l):Hl(t,e.child,n,l)}function Ah(e,t,n,l,a){n=n.render;var i=t.ref;if("ref"in l){var r={};for(var o in l)o!=="ref"&&(r[o]=l[o])}else r=l;return Dl(t),l=Ef(e,t,n,r,i,a),o=Cf(),e!==null&&!we?(wf(e,t,a),vn(e,t,a)):(P&&o&&mf(t),t.flags|=1,_e(e,t,l,a),t.child)}function Oh(e,t,n,l,a){if(e===null){var i=n.type;return typeof i=="function"&&!hf(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,Fv(e,t,i,l,a)):(e=Wr(n.type,null,l,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Hf(e,a)){var r=i.memoizedProps;if(n=n.compare,n=n!==null?n:$i,n(r,l)&&e.ref===t.ref)return vn(e,t,a)}return t.flags|=1,e=un(i,l),e.ref=t.ref,e.return=t,t.child=e}function Fv(e,t,n,l,a){if(e!==null){var i=e.memoizedProps;if($i(i,l)&&e.ref===t.ref)if(we=!1,t.pendingProps=l=i,Hf(e,a))e.flags&131072&&(we=!0);else return t.lanes=e.lanes,vn(e,t,a)}return pu(e,t,n,l,a)}function Jv(e,t,n,l){var a=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(l=t.child=e.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i}else l=0,t.child=null;return Rh(e,t,i,n,l)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ir(t,i!==null?i.cachePool:null),i!==null?vh(t,i):su(),dv(t);else return l=t.lanes=536870912,Rh(e,t,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(Ir(t,i.cachePool),vh(t,i),_n(),t.memoizedState=null):(e!==null&&Ir(t,null),su(),_n());return _e(e,t,a,n),t.child}function Ei(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rh(e,t,n,l,a){var i=yf();return i=i===null?null:{parent:Ce._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Ir(t,null),su(),dv(t),e!==null&&Fa(e,t,l,!0),t.childLanes=a,null}function no(e,t){return t=Oo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Nh(e,t,n){return Hl(t,e.child,null,n),e=no(t,t.pendingProps),e.flags|=2,nt(t),t.memoizedState=null,e}function OS(e,t,n){var l=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(P){if(l.mode==="hidden")return e=no(t,l),t.lanes=536870912,Ei(null,e);if(cu(t),(e=fe)?(e=Gy(e,St),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ll!==null?{id:Ut,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},n=nv(e),n.return=t,t.child=n,He=t,fe=null)):e=null,e===null)throw al(t);return t.lanes=536870912,null}return no(t,l)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(cu(t),a)if(t.flags&256)t.flags&=-257,t=Nh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(O(558));else if(we||Fa(e,t,n,!1),a=(n&e.childLanes)!==0,we||a){if(l=oe,l!==null&&(r=Rp(l,n),r!==0&&r!==i.retryLane))throw i.retryLane=r,Yl(e,r),Fe(l,e,r),Df;zo(),t=Nh(e,t,n)}else e=i.treeContext,fe=wt(r.nextSibling),He=t,P=!0,kn=null,St=!1,e!==null&&av(t,e),t=no(t,l),t.flags|=4096;return t}return e=un(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function lo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(O(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pu(e,t,n,l,a){return Dl(t),n=Ef(e,t,n,l,void 0,a),l=Cf(),e!==null&&!we?(wf(e,t,a),vn(e,t,a)):(P&&l&&mf(t),t.flags|=1,_e(e,t,n,a),t.child)}function jh(e,t,n,l,a,i){return Dl(t),t.updateQueue=null,n=mv(t,l,n,a),hv(e),l=Cf(),e!==null&&!we?(wf(e,t,i),vn(e,t,i)):(P&&l&&mf(t),t.flags|=1,_e(e,t,n,i),t.child)}function zh(e,t,n,l,a){if(Dl(t),t.stateNode===null){var i=ia,r=n.contextType;typeof r=="object"&&r!==null&&(i=Ue(r)),i=new n(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=hu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},bf(t),r=n.contextType,i.context=typeof r=="object"&&r!==null?Ue(r):ia,i.state=t.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Js(t,n,r,l),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&hu.enqueueReplaceState(i,i.state,null),zi(t,l,i,a),ji(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,s=Ll(n,o);i.props=s;var c=i.context,u=n.contextType;r=ia,typeof u=="object"&&u!==null&&(r=Ue(u));var f=n.getDerivedStateFromProps;u=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,u||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||c!==r)&&wh(t,i,l,r),Nn=!1;var d=t.memoizedState;i.state=d,zi(t,l,i,a),ji(),c=t.memoizedState,o||d!==c||Nn?(typeof f=="function"&&(Js(t,n,f,l),c=t.memoizedState),(s=Nn||Ch(t,n,s,l,d,c,r))?(u||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=c),i.props=l,i.state=c,i.context=r,l=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,ru(e,t),r=t.memoizedProps,u=Ll(n,r),i.props=u,f=t.pendingProps,d=i.context,c=n.contextType,s=ia,typeof c=="object"&&c!==null&&(s=Ue(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==f||d!==s)&&wh(t,i,l,s),Nn=!1,d=t.memoizedState,i.state=d,zi(t,l,i,a),ji();var p=t.memoizedState;r!==f||d!==p||Nn||e!==null&&e.dependencies!==null&&xo(e.dependencies)?(typeof o=="function"&&(Js(t,n,o,l),p=t.memoizedState),(u=Nn||Ch(t,n,u,l,d,p,s)||e!==null&&e.dependencies!==null&&xo(e.dependencies))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,p,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,p,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=p),i.props=l,i.state=p,i.context=s,l=u):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,lo(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Hl(t,e.child,null,a),t.child=Hl(t,null,n,a)):_e(e,t,n,a),t.memoizedState=i.state,e=t.child):e=vn(e,t,a),e}function _h(e,t,n,l){return Ml(),t.flags|=256,_e(e,t,n,l),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Is(e){return{baseLanes:e,cachePool:rv()}}function ec(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=it),e}function Wv(e,t,n){var l=t.pendingProps,a=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(be.current&2)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(P){if(a?zn(t):_n(),(e=fe)?(e=Gy(e,St),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ll!==null?{id:Ut,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},n=nv(e),n.return=t,t.child=n,He=t,fe=null)):e=null,e===null)throw al(t);return Nu(e)?t.lanes=32:t.lanes=536870912,null}var o=l.children;return l=l.fallback,a?(_n(),a=t.mode,o=Oo({mode:"hidden",children:o},a),l=Nl(l,a,n,null),o.return=t,l.return=t,o.sibling=l,t.child=o,l=t.child,l.memoizedState=Is(n),l.childLanes=ec(e,r,n),t.memoizedState=Ws,Ei(null,l)):(zn(t),vu(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(i)t.flags&256?(zn(t),t.flags&=-257,t=tc(e,t,n)):t.memoizedState!==null?(_n(),t.child=e.child,t.flags|=128,t=null):(_n(),o=l.fallback,a=t.mode,l=Oo({mode:"visible",children:l.children},a),o=Nl(o,a,n,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,Hl(t,e.child,null,n),l=t.child,l.memoizedState=Is(n),l.childLanes=ec(e,r,n),t.memoizedState=Ws,t=Ei(null,l));else if(zn(t),Nu(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var c=r.dgst;r=c,l=Error(O(419)),l.stack="",l.digest=r,Zi({value:l,source:null,stack:null}),t=tc(e,t,n)}else if(we||Fa(e,t,n,!1),r=(n&e.childLanes)!==0,we||r){if(r=oe,r!==null&&(l=Rp(r,n),l!==0&&l!==s.retryLane))throw s.retryLane=l,Yl(e,l),Fe(r,e,l),Df;Ru(o)||zo(),t=tc(e,t,n)}else Ru(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,fe=wt(o.nextSibling),He=t,P=!0,kn=null,St=!1,e!==null&&av(t,e),t=vu(t,l.children),t.flags|=4096);return t}return a?(_n(),o=l.fallback,a=t.mode,s=e.child,c=s.sibling,l=un(s,{mode:"hidden",children:l.children}),l.subtreeFlags=s.subtreeFlags&65011712,c!==null?o=un(c,o):(o=Nl(o,a,n,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,Ei(null,l),l=t.child,o=e.child.memoizedState,o===null?o=Is(n):(a=o.cachePool,a!==null?(s=Ce._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=rv(),o={baseLanes:o.baseLanes|n,cachePool:a}),l.memoizedState=o,l.childLanes=ec(e,r,n),t.memoizedState=Ws,Ei(e.child,l)):(zn(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function vu(e,t){return t=Oo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oo(e,t){return e=at(22,e,null,t),e.lanes=0,e}function tc(e,t,n){return Hl(t,e.child,null,n),e=vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),lu(e.return,t,n)}function nc(e,t,n,l,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=n,r.tailMode=a,r.treeForkCount=i)}function Iv(e,t,n){var l=t.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var r=be.current,o=(r&2)!==0;if(o?(r=r&1|2,t.flags|=128):r&=1,se(be,r),_e(e,t,l,n),l=P?Xi:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mh(e,n,t);else if(e.tag===19)Mh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),nc(t,!1,a,n,i,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Co(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}nc(t,!0,n,null,i,l);break;case"together":nc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rl|=t.lanes,!(n&t.childLanes))if(e!==null){if(Fa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hf(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&xo(e)))}function RS(e,t,n){switch(t.tag){case 3:ho(t,t.stateNode.containerInfo),jn(t,Ce,e.memoizedState.cache),Ml();break;case 27:case 5:$c(t);break;case 4:ho(t,t.stateNode.containerInfo);break;case 10:jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(zn(t),t.flags|=128,null):n&t.child.childLanes?Wv(e,t,n):(zn(t),e=vn(e,t,n),e!==null?e.sibling:null);zn(t);break;case 19:var a=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Fa(e,t,n,!1),l=(n&t.childLanes)!==0),a){if(l)return Iv(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),se(be,be.current),l)break;return null;case 22:return t.lanes=0,Jv(e,t,n,t.pendingProps);case 24:jn(t,Ce,e.memoizedState.cache)}return vn(e,t,n)}function ey(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Hf(e,n)&&!(t.flags&128))return we=!1,RS(e,t,n);we=!!(e.flags&131072)}else we=!1,P&&t.flags&1048576&&lv(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=vl(t.elementType),t.type=e,typeof e=="function")hf(e)?(l=Ll(e,l),t.tag=1,t=zh(null,t,e,l,n)):(t.tag=0,t=pu(null,t,e,l,n));else{if(e!=null){var a=e.$$typeof;if(a===Wu){t.tag=11,t=Ah(null,t,e,l,n);break e}else if(a===Iu){t.tag=14,t=Oh(null,t,e,l,n);break e}}throw t=Yc(e)||e,Error(O(306,t,""))}}return t;case 0:return pu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,a=Ll(l,t.pendingProps),zh(e,t,l,a,n);case 3:e:{if(ho(t,t.stateNode.containerInfo),e===null)throw Error(O(387));l=t.pendingProps;var i=t.memoizedState;a=i.element,ru(e,t),zi(t,l,null,n);var r=t.memoizedState;if(l=r.cache,jn(t,Ce,l),l!==i.cache&&au(t,[Ce],n,!0),ji(),l=r.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=_h(e,t,l,n);break e}else if(l!==a){a=xt(Error(O(424)),t),Zi(a),t=_h(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(fe=wt(e.firstChild),He=t,P=!0,kn=null,St=!0,n=cv(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ml(),l===a){t=vn(e,t,n);break e}_e(e,t,l,n)}t=t.child}return t;case 26:return lo(e,t),e===null?(n=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(n=t.type,e=t.pendingProps,l=Ho(Pn.current).createElement(n),l[De]=t,l[Je]=e,Le(l,n,e),je(l),t.stateNode=l):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return $c(t),e===null&&P&&(l=t.stateNode=$y(t.type,t.pendingProps,Pn.current),He=t,St=!0,a=fe,fl(t.type)?(ju=a,fe=wt(l.firstChild)):fe=a),_e(e,t,t.pendingProps.children,n),lo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((a=l=fe)&&(l=a1(l,t.type,t.pendingProps,St),l!==null?(t.stateNode=l,He=t,fe=wt(l.firstChild),St=!1,a=!0):a=!1),a||al(t)),$c(t),a=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,l=i.children,Au(a,i)?l=null:r!==null&&Au(a,r)&&(t.flags|=32),t.memoizedState!==null&&(a=Ef(e,t,bS,null,null,n),Wi._currentValue=a),lo(e,t),_e(e,t,l,n),t.child;case 6:return e===null&&P&&((e=n=fe)&&(n=i1(n,t.pendingProps,St),n!==null?(t.stateNode=n,He=t,fe=null,e=!0):e=!1),e||al(t)),null;case 13:return Wv(e,t,n);case 4:return ho(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Hl(t,null,l,n):_e(e,t,l,n),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,jn(t,t.type,l.value),_e(e,t,l.children,n),t.child;case 9:return a=t.type._context,l=t.pendingProps.children,Dl(t),a=Ue(a),l=l(a),t.flags|=1,_e(e,t,l,n),t.child;case 14:return Oh(e,t,t.type,t.pendingProps,n);case 15:return Fv(e,t,t.type,t.pendingProps,n);case 19:return Iv(e,t,n);case 31:return OS(e,t,n);case 22:return Jv(e,t,n,t.pendingProps);case 24:return Dl(t),l=Ue(Ce),e===null?(a=yf(),a===null&&(a=oe,i=vf(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:l,cache:a},bf(t),jn(t,Ce,a)):(e.lanes&n&&(ru(e,t),zi(t,null,null,n),ji()),a=e.memoizedState,i=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),jn(t,Ce,l)):(l=i.cache,jn(t,Ce,l),l!==a.cache&&au(t,[Ce],n,!0))),_e(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(O(156,t.tag))}function kt(e){e.flags|=4}function lc(e,t,n,l,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(wy())e.flags|=8192;else throw zl=So,gf}else e.flags&=-16777217}function Dh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ky(t))if(wy())e.flags|=8192;else throw zl=So,gf}function Br(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tp():536870912,e.lanes|=t,La|=t)}function ui(e,t){if(!P)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function NS(e,t,n){var l=t.pendingProps;switch(pf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return ce(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fn(Ce),za(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Zl(t)?kt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ps())),ce(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(kt(t),i!==null?(ce(t),Dh(t,i)):(ce(t),lc(t,a,null,l,n))):i?i!==e.memoizedState?(kt(t),ce(t),Dh(t,i)):(ce(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&kt(t),ce(t),lc(t,a,e,l,n)),null;case 27:if(mo(t),n=Pn.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kt(t);else{if(!l){if(t.stateNode===null)throw Error(O(166));return ce(t),null}e=Vt.current,Zl(t)?ch(t):(e=$y(a,l,n),t.stateNode=e,kt(t))}return ce(t),null;case 5:if(mo(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kt(t);else{if(!l){if(t.stateNode===null)throw Error(O(166));return ce(t),null}if(i=Vt.current,Zl(t))ch(t);else{var r=Ho(Pn.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?r.createElement(a,{is:l.is}):r.createElement(a)}}i[De]=t,i[Je]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(Le(i,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&kt(t)}}return ce(t),lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kt(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(O(166));if(e=Pn.current,Zl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,a=He,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}e[De]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Vy(e.nodeValue,n)),e||al(t,!0)}else e=Ho(e).createTextNode(l),e[De]=t,t.stateNode=e}return ce(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Zl(t),n!==null){if(e===null){if(!l)throw Error(O(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(557));e[De]=t}else Ml(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),e=!1}else n=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(nt(t),t):(nt(t),null);if(t.flags&128)throw Error(O(558))}return ce(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Zl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!a)throw Error(O(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(O(317));a[De]=t}else Ml(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),a=!1}else a=Ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(nt(t),t):(nt(t),null)}return nt(t),t.flags&128?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Br(t,t.updateQueue),ce(t),null);case 4:return za(),e===null&&Yf(t.stateNode.containerInfo),ce(t),null;case 10:return fn(t.type),ce(t),null;case 19:if(ze(be),l=t.memoizedState,l===null)return ce(t),null;if(a=(t.flags&128)!==0,i=l.rendering,i===null)if(a)ui(l,!1);else{if(ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Co(e),i!==null){for(t.flags|=128,ui(l,!1),e=i.updateQueue,t.updateQueue=e,Br(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)tv(n,e),n=n.sibling;return se(be,be.current&1|2),P&&tn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&rt()>No&&(t.flags|=128,a=!0,ui(l,!1),t.lanes=4194304)}else{if(!a)if(e=Co(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Br(t,e),ui(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!P)return ce(t),null}else 2*rt()-l.renderingStartTime>No&&n!==536870912&&(t.flags|=128,a=!0,ui(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=rt(),e.sibling=null,n=be.current,se(be,a?n&1|2:n&1),P&&tn(t,l.treeForkCount),e):(ce(t),null);case 22:case 23:return nt(t),xf(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?n&536870912&&!(t.flags&128)&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),n=t.updateQueue,n!==null&&Br(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&ze(jl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Ce),ce(t),null;case 25:return null;case 30:return null}throw Error(O(156,t.tag))}function jS(e,t){switch(pf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Ce),za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mo(t),null;case 31:if(t.memoizedState!==null){if(nt(t),t.alternate===null)throw Error(O(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(be),null;case 4:return za(),null;case 10:return fn(t.type),null;case 22:case 23:return nt(t),xf(),e!==null&&ze(jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Ce),null;case 25:return null;default:return null}}function ty(e,t){switch(pf(t),t.tag){case 3:fn(Ce),za();break;case 26:case 27:case 5:mo(t);break;case 4:za();break;case 31:t.memoizedState!==null&&nt(t);break;case 13:nt(t);break;case 19:ze(be);break;case 10:fn(t.type);break;case 22:case 23:nt(t),xf(),e!==null&&ze(jl);break;case 24:fn(Ce)}}function yr(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&e)===e){l=void 0;var i=n.create,r=n.inst;l=i(),r.destroy=l}n=n.next}while(n!==a)}}catch(o){le(t,t.return,o)}}function il(e,t,n){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){var r=l.inst,o=r.destroy;if(o!==void 0){r.destroy=void 0,a=t;var s=n,c=o;try{c()}catch(u){le(a,s,u)}}}l=l.next}while(l!==i)}}catch(u){le(t,t.return,u)}}function ny(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fv(t,n)}catch(l){le(e,e.return,l)}}}function ly(e,t,n){n.props=Ll(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){le(e,t,l)}}function Mi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(a){le(e,t,a)}}function Bt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){le(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){le(e,t,a)}else n.current=null}function ay(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){le(e,e.return,a)}}function ac(e,t,n){try{var l=e.stateNode;WS(l,e.type,n,t),l[Je]=t}catch(a){le(e,e.return,a)}}function iy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iy(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&&fl(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 yu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(l!==4&&(l===27&&fl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(yu(e,t,n),e=e.sibling;e!==null;)yu(e,t,n),e=e.sibling}function Ro(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&fl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ro(e,t,n),e=e.sibling;e!==null;)Ro(e,t,n),e=e.sibling}function ry(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Le(t,l,n),t[De]=e,t[Je]=n}catch(i){le(e,e.return,i)}}var an=!1,Ee=!1,rc=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,Ne=null;function zS(e,t){if(e=e.containerInfo,wu=qo,e=Kp(e),uf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var r=0,o=-1,s=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(o=r+a),f!==i||l!==0&&f.nodeType!==3||(s=r+l),f.nodeType===3&&(r+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++c===a&&(o=r),d===i&&++u===l&&(s=r),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tu={focusedElem:e,selectionRange:n},qo=!1,Ne=t;Ne!==null;)if(t=Ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ne=e;else for(;Ne!==null;){switch(t=Ne,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var g=Ll(n.type,a);e=l.getSnapshotBeforeUpdate(g,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(x){le(n,n.return,x)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ou(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ou(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(O(163))}if(e=t.sibling,e!==null){e.return=t.return,Ne=e;break}Ne=t.return}}function oy(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Jt(e,n),l&4&&yr(5,n);break;case 1:if(Jt(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(r){le(n,n.return,r)}else{var a=Ll(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){le(n,n.return,r)}}l&64&&ny(n),l&512&&Mi(n,n.return);break;case 3:if(Jt(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{fv(e,t)}catch(r){le(n,n.return,r)}}break;case 27:t===null&&l&4&&ry(n);case 26:case 5:Jt(e,n),t===null&&l&4&&ay(n),l&512&&Mi(n,n.return);break;case 12:Jt(e,n);break;case 31:Jt(e,n),l&4&&uy(e,n);break;case 13:Jt(e,n),l&4&&fy(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=VS.bind(null,n),r1(e,n))));break;case 22:if(l=n.memoizedState!==null||an,!l){t=t!==null&&t.memoizedState!==null||Ee,a=an;var i=Ee;an=l,(Ee=t)&&!i?en(e,n,(n.subtreeFlags&8772)!==0):Jt(e,n),an=a,Ee=i}break;case 30:break;default:Jt(e,n)}}function sy(e){var t=e.alternate;t!==null&&(e.alternate=null,sy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lf(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var pe=null,Ke=!1;function Ft(e,t,n){for(n=n.child;n!==null;)cy(e,t,n),n=n.sibling}function cy(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(ur,n)}catch{}switch(n.tag){case 26:Ee||Bt(n,t),Ft(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ee||Bt(n,t);var l=pe,a=Ke;fl(n.type)&&(pe=n.stateNode,Ke=!1),Ft(e,t,n),Li(n.stateNode),pe=l,Ke=a;break;case 5:Ee||Bt(n,t);case 6:if(l=pe,a=Ke,pe=null,Ft(e,t,n),pe=l,Ke=a,pe!==null)if(Ke)try{(pe.nodeType===9?pe.body:pe.nodeName==="HTML"?pe.ownerDocument.body:pe).removeChild(n.stateNode)}catch(i){le(n,t,i)}else try{pe.removeChild(n.stateNode)}catch(i){le(n,t,i)}break;case 18:pe!==null&&(Ke?(e=pe,Ph(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Qa(e)):Ph(pe,n.stateNode));break;case 4:l=pe,a=Ke,pe=n.stateNode.containerInfo,Ke=!0,Ft(e,t,n),pe=l,Ke=a;break;case 0:case 11:case 14:case 15:il(2,n,t),Ee||il(4,n,t),Ft(e,t,n);break;case 1:Ee||(Bt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&ly(n,t,l)),Ft(e,t,n);break;case 21:Ft(e,t,n);break;case 22:Ee=(l=Ee)||n.memoizedState!==null,Ft(e,t,n),Ee=l;break;default:Ft(e,t,n)}}function uy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Qa(e)}catch(n){le(t,t.return,n)}}}function fy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qa(e)}catch(n){le(t,t.return,n)}}function _S(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hh),t;default:throw Error(O(435,e.tag))}}function qr(e,t){var n=_S(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var a=QS.bind(null,e,l);l.then(a,a)}})}function $e(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=e,r=t,o=r;e:for(;o!==null;){switch(o.tag){case 27:if(fl(o.type)){pe=o.stateNode,Ke=!1;break e}break;case 5:pe=o.stateNode,Ke=!1;break e;case 3:case 4:pe=o.stateNode.containerInfo,Ke=!0;break e}o=o.return}if(pe===null)throw Error(O(160));cy(i,r,a),pe=null,Ke=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dy(t,e),t=t.sibling}var Nt=null;function dy(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$e(t,e),Xe(e),l&4&&(il(3,e,e.return),yr(3,e),il(5,e,e.return));break;case 1:$e(t,e),Xe(e),l&512&&(Ee||n===null||Bt(n,n.return)),l&64&&an&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=Nt;if($e(t,e),Xe(e),l&512&&(Ee||n===null||Bt(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(l){case"title":i=a.getElementsByTagName("title")[0],(!i||i[hr]||i[De]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),Le(i,l,n),i[De]=e,je(i),l=i;break e;case"link":var r=tm("link","href",a).get(l+(n.href||""));if(r){for(var o=0;o<r.length;o++)if(i=r[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break t}}i=a.createElement(l),Le(i,l,n),a.head.appendChild(i);break;case"meta":if(r=tm("meta","content",a).get(l+(n.content||""))){for(o=0;o<r.length;o++)if(i=r[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break t}}i=a.createElement(l),Le(i,l,n),a.head.appendChild(i);break;default:throw Error(O(468,l))}i[De]=e,je(i),l=i}e.stateNode=l}else nm(a,e.type,e.stateNode);else e.stateNode=em(a,l,e.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?nm(a,e.type,e.stateNode):em(a,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ac(e,e.memoizedProps,n.memoizedProps)}break;case 27:$e(t,e),Xe(e),l&512&&(Ee||n===null||Bt(n,n.return)),n!==null&&l&4&&ac(e,e.memoizedProps,n.memoizedProps);break;case 5:if($e(t,e),Xe(e),l&512&&(Ee||n===null||Bt(n,n.return)),e.flags&32){a=e.stateNode;try{Ma(a,"")}catch(g){le(e,e.return,g)}}l&4&&e.stateNode!=null&&(a=e.memoizedProps,ac(e,a,n!==null?n.memoizedProps:a)),l&1024&&(rc=!0);break;case 6:if($e(t,e),Xe(e),l&4){if(e.stateNode===null)throw Error(O(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(g){le(e,e.return,g)}}break;case 3:if(ro=null,a=Nt,Nt=Uo(t.containerInfo),$e(t,e),Nt=a,Xe(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Qa(t.containerInfo)}catch(g){le(e,e.return,g)}rc&&(rc=!1,hy(e));break;case 4:l=Nt,Nt=Uo(e.stateNode.containerInfo),$e(t,e),Xe(e),Nt=l;break;case 12:$e(t,e),Xe(e);break;case 31:$e(t,e),Xe(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 13:$e(t,e),Xe(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(us=rt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=an,u=Ee;if(an=c||a,Ee=u||s,$e(t,e),Ee=u,an=c,Xe(e),l&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||an||Ee||yl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(i=s.stateNode,a)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=s.stateNode;var f=s.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(g){le(s,s.return,g)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(g){le(s,s.return,g)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?kh(p,!0):kh(s.stateNode,!1)}catch(g){le(s,s.return,g)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,qr(e,n))));break;case 19:$e(t,e),Xe(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qr(e,l)));break;case 30:break;case 21:break;default:$e(t,e),Xe(e)}}function Xe(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(iy(l)){n=l;break}l=l.return}if(n==null)throw Error(O(160));switch(n.tag){case 27:var a=n.stateNode,i=ic(e);Ro(e,i,a);break;case 5:var r=n.stateNode;n.flags&32&&(Ma(r,""),n.flags&=-33);var o=ic(e);Ro(e,o,r);break;case 3:case 4:var s=n.stateNode.containerInfo,c=ic(e);yu(e,c,s);break;default:throw Error(O(161))}}catch(u){le(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Jt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)oy(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),yl(t);break;case 1:Bt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ly(t,t.return,n),yl(t);break;case 27:Li(t.stateNode);case 26:case 5:Bt(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function en(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,a=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:en(a,i,n),yr(4,i);break;case 1:if(en(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(c){le(l,l.return,c)}if(l=i,a=l.updateQueue,a!==null){var o=l.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)uv(s[a],o)}catch(c){le(l,l.return,c)}}n&&r&64&&ny(i),Mi(i,i.return);break;case 27:ry(i);case 26:case 5:en(a,i,n),n&&l===null&&r&4&&ay(i),Mi(i,i.return);break;case 12:en(a,i,n);break;case 31:en(a,i,n),n&&r&4&&uy(a,i);break;case 13:en(a,i,n),n&&r&4&&fy(a,i);break;case 22:i.memoizedState===null&&en(a,i,n),Mi(i,i.return);break;case 30:break;default:en(a,i,n)}t=t.sibling}}function Uf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pr(n))}function Lf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pr(e))}function Ot(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)my(e,t,n,l),t=t.sibling}function my(e,t,n,l){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,n,l),a&2048&&yr(9,t);break;case 1:Ot(e,t,n,l);break;case 3:Ot(e,t,n,l),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pr(e)));break;case 12:if(a&2048){Ot(e,t,n,l),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,o=i.onPostCommit;typeof o=="function"&&o(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){le(t,t.return,s)}}else Ot(e,t,n,l);break;case 31:Ot(e,t,n,l);break;case 13:Ot(e,t,n,l);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?Ot(e,t,n,l):Di(e,t):i._visibility&2?Ot(e,t,n,l):(i._visibility|=2,kl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Uf(r,t);break;case 24:Ot(e,t,n,l),a&2048&&Lf(t.alternate,t);break;default:Ot(e,t,n,l)}}function kl(e,t,n,l,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,o=n,s=l,c=r.flags;switch(r.tag){case 0:case 11:case 15:kl(i,r,o,s,a),yr(8,r);break;case 23:break;case 22:var u=r.stateNode;r.memoizedState!==null?u._visibility&2?kl(i,r,o,s,a):Di(i,r):(u._visibility|=2,kl(i,r,o,s,a)),a&&c&2048&&Uf(r.alternate,r);break;case 24:kl(i,r,o,s,a),a&&c&2048&&Lf(r.alternate,r);break;default:kl(i,r,o,s,a)}t=t.sibling}}function Di(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,a=l.flags;switch(l.tag){case 22:Di(n,l),a&2048&&Uf(l.alternate,l);break;case 24:Di(n,l),a&2048&&Lf(l.alternate,l);break;default:Di(n,l)}t=t.sibling}}var Ci=8192;function Kl(e,t,n){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)py(e,t,n),e=e.sibling}function py(e,t,n){switch(e.tag){case 26:Kl(e,t,n),e.flags&Ci&&e.memoizedState!==null&&g1(n,Nt,e.memoizedState,e.memoizedProps);break;case 5:Kl(e,t,n);break;case 3:case 4:var l=Nt;Nt=Uo(e.stateNode.containerInfo),Kl(e,t,n),Nt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ci,Ci=16777216,Kl(e,t,n),Ci=l):Kl(e,t,n));break;default:Kl(e,t,n)}}function vy(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 fi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ne=l,gy(l,e)}vy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yy(e),e=e.sibling}function yy(e){switch(e.tag){case 0:case 11:case 15:fi(e),e.flags&2048&&il(9,e,e.return);break;case 3:fi(e);break;case 12:fi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ao(e)):fi(e);break;default:fi(e)}}function ao(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];Ne=l,gy(l,e)}vy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),ao(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ao(t));break;default:ao(t)}e=e.sibling}}function gy(e,t){for(;Ne!==null;){var n=Ne;switch(n.tag){case 0:case 11:case 15:il(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:pr(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ne=l;else e:for(n=e;Ne!==null;){l=Ne;var a=l.sibling,i=l.return;if(sy(l),l===n){Ne=null;break e}if(a!==null){a.return=i,Ne=a;break e}Ne=i}}}var MS={getCacheForType:function(e){var t=Ue(Ce),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ue(Ce).controller.signal}},DS=typeof WeakMap=="function"?WeakMap:Map,W=0,oe=null,$=null,Z=0,ne=0,Ie=null,$n=!1,Wa=!1,Bf=!1,yn=0,ge=0,rl=0,_l=0,qf=0,it=0,La=0,Hi=null,Pe=null,gu=!1,us=0,by=0,No=1/0,jo=null,Wn=null,Ae=0,In=null,Ba=null,dn=0,bu=0,xu=null,xy=null,Ui=0,Su=null;function ct(){return W&2&&Z!==0?Z&-Z:B.T!==null?Qf():Np()}function Sy(){if(it===0)if(!(Z&536870912)||P){var e=zr;zr<<=1,!(zr&3932160)&&(zr=262144),it=e}else it=536870912;return e=dt.current,e!==null&&(e.flags|=32),it}function Fe(e,t,n){(e===oe&&(ne===2||ne===9)||e.cancelPendingCommit!==null)&&(qa(e,0),Xn(e,Z,it,!1)),dr(e,n),(!(W&2)||e!==oe)&&(e===oe&&(!(W&2)&&(_l|=n),ge===4&&Xn(e,Z,it,!1)),Gt(e))}function Ey(e,t,n){if(W&6)throw Error(O(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||fr(e,t),a=l?LS(e,t):oc(e,t,!0),i=l;do{if(a===0){Wa&&!l&&Xn(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!HS(n)){a=oc(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var o=e;a=Hi;var s=o.current.memoizedState.isDehydrated;if(s&&(qa(o,r).flags|=256),r=oc(o,r,!1),r!==2){if(Bf&&!s){o.errorRecoveryDisabledLanes|=i,_l|=i,a=4;break e}i=Pe,Pe=a,i!==null&&(Pe===null?Pe=i:Pe.push.apply(Pe,i))}a=r}if(i=!1,a!==2)continue}}if(a===1){qa(e,0),Xn(e,t,0,!0);break}e:{switch(l=e,i=a,i){case 0:case 1:throw Error(O(345));case 4:if((t&4194048)!==t)break;case 6:Xn(l,t,it,!$n);break e;case 2:Pe=null;break;case 3:case 5:break;default:throw Error(O(329))}if((t&62914560)===t&&(a=us+300-rt(),10<a)){if(Xn(l,t,it,!$n),Io(l,0,!0)!==0)break e;dn=t,l.timeoutHandle=Yy(Uh.bind(null,l,n,Pe,jo,gu,t,it,_l,La,$n,i,"Throttled",-0,0),a);break e}Uh(l,n,Pe,jo,gu,t,it,_l,La,$n,i,null,-0,0)}}break}while(!0);Gt(e)}function Uh(e,t,n,l,a,i,r,o,s,c,u,f,d,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},py(t,i,f);var g=(i&62914560)===i?us-rt():(i&4194048)===i?by-rt():0;if(g=b1(f,g),g!==null){dn=i,e.cancelPendingCommit=g(Bh.bind(null,e,t,i,n,l,a,r,o,s,u,f,null,d,p)),Xn(e,i,r,!c);return}}Bh(e,t,i,n,l,a,r,o,s)}function HS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!ft(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xn(e,t,n,l){t&=~qf,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var a=t;0<a;){var i=31-st(a),r=1<<i;l[i]=-1,a&=~r}n!==0&&Ap(e,n,t)}function fs(){return W&6?!0:(gr(0),!1)}function Vf(){if($!==null){if(ne===0)var e=$.return;else e=$,sn=Gl=null,Tf(e),ha=null,Ki=0,e=$;for(;e!==null;)ty(e.alternate,e),e=e.return;$=null}}function qa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,t1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),dn=0,Vf(),oe=e,$=n=un(e.current,null),Z=t,ne=0,Ie=null,$n=!1,Wa=fr(e,t),Bf=!1,La=it=qf=_l=rl=ge=0,Pe=Hi=null,gu=!1,t&8&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-st(l),i=1<<a;t|=e[a],l&=~i}return yn=t,ls(),n}function Cy(e,t){Q=null,B.H=ki,t===Ja||t===is?(t=mh(),ne=3):t===gf?(t=mh(),ne=4):ne=t===Df?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ie=t,$===null&&(ge=1,Ao(e,xt(t,e.current)))}function wy(){var e=dt.current;return e===null?!0:(Z&4194048)===Z?Ct===null:(Z&62914560)===Z||Z&536870912?e===Ct:!1}function Ty(){var e=B.H;return B.H=ki,e===null?ki:e}function Ay(){var e=B.A;return B.A=MS,e}function zo(){ge=4,$n||(Z&4194048)!==Z&&dt.current!==null||(Wa=!0),!(rl&134217727)&&!(_l&134217727)||oe===null||Xn(oe,Z,it,!1)}function oc(e,t,n){var l=W;W|=2;var a=Ty(),i=Ay();(oe!==e||Z!==t)&&(jo=null,qa(e,t)),t=!1;var r=ge;e:do try{if(ne!==0&&$!==null){var o=$,s=Ie;switch(ne){case 8:Vf(),r=6;break e;case 3:case 2:case 9:case 6:dt.current===null&&(t=!0);var c=ne;if(ne=0,Ie=null,sa(e,o,s,c),n&&Wa){r=0;break e}break;default:c=ne,ne=0,Ie=null,sa(e,o,s,c)}}US(),r=ge;break}catch(u){Cy(e,u)}while(!0);return t&&e.shellSuspendCounter++,sn=Gl=null,W=l,B.H=a,B.A=i,$===null&&(oe=null,Z=0,ls()),r}function US(){for(;$!==null;)Oy($)}function LS(e,t){var n=W;W|=2;var l=Ty(),a=Ay();oe!==e||Z!==t?(jo=null,No=rt()+500,qa(e,t)):Wa=fr(e,t);e:do try{if(ne!==0&&$!==null){t=$;var i=Ie;t:switch(ne){case 1:ne=0,Ie=null,sa(e,t,i,1);break;case 2:case 9:if(hh(i)){ne=0,Ie=null,Lh(t);break}t=function(){ne!==2&&ne!==9||oe!==e||(ne=7),Gt(e)},i.then(t,t);break e;case 3:ne=7;break e;case 4:ne=5;break e;case 7:hh(i)?(ne=0,Ie=null,Lh(t)):(ne=0,Ie=null,sa(e,t,i,7));break;case 5:var r=null;switch($.tag){case 26:r=$.memoizedState;case 5:case 27:var o=$;if(r?Ky(r):o.stateNode.complete){ne=0,Ie=null;var s=o.sibling;if(s!==null)$=s;else{var c=o.return;c!==null?($=c,ds(c)):$=null}break t}}ne=0,Ie=null,sa(e,t,i,5);break;case 6:ne=0,Ie=null,sa(e,t,i,6);break;case 8:Vf(),ge=6;break e;default:throw Error(O(462))}}BS();break}catch(u){Cy(e,u)}while(!0);return sn=Gl=null,B.H=l,B.A=a,W=n,$!==null?0:(oe=null,Z=0,ls(),ge)}function BS(){for(;$!==null&&!ox();)Oy($)}function Oy(e){var t=ey(e.alternate,e,yn);e.memoizedProps=e.pendingProps,t===null?ds(e):$=t}function Lh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jh(n,t,t.pendingProps,t.type,void 0,Z);break;case 11:t=jh(n,t,t.pendingProps,t.type.render,t.ref,Z);break;case 5:Tf(t);default:ty(n,t),t=$=tv(t,yn),t=ey(n,t,yn)}e.memoizedProps=e.pendingProps,t===null?ds(e):$=t}function sa(e,t,n,l){sn=Gl=null,Tf(t),ha=null,Ki=0;var a=t.return;try{if(AS(e,a,t,n,Z)){ge=1,Ao(e,xt(n,e.current)),$=null;return}}catch(i){if(a!==null)throw $=a,i;ge=1,Ao(e,xt(n,e.current)),$=null;return}t.flags&32768?(P||l===1?e=!0:Wa||Z&536870912?e=!1:($n=e=!0,(l===2||l===9||l===3||l===6)&&(l=dt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ry(t,e)):ds(t)}function ds(e){var t=e;do{if(t.flags&32768){Ry(t,$n);return}e=t.return;var n=NS(t.alternate,t,yn);if(n!==null){$=n;return}if(t=t.sibling,t!==null){$=t;return}$=t=e}while(t!==null);ge===0&&(ge=5)}function Ry(e,t){do{var n=jS(e.alternate,e);if(n!==null){n.flags&=32767,$=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$=e;return}$=e=n}while(e!==null);ge=6,$=null}function Bh(e,t,n,l,a,i,r,o,s){e.cancelPendingCommit=null;do hs();while(Ae!==0);if(W&6)throw Error(O(327));if(t!==null){if(t===e.current)throw Error(O(177));if(i=t.lanes|t.childLanes,i|=ff,yx(e,n,i,r,o,s),e===oe&&($=oe=null,Z=0),Ba=t,In=e,dn=n,bu=i,xu=a,xy=l,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,YS(po,function(){return My(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,t.subtreeFlags&13878||l){l=B.T,B.T=null,a=I.p,I.p=2,r=W,W|=4;try{zS(e,t,n)}finally{W=r,I.p=a,B.T=l}}Ae=1,Ny(),jy(),zy()}}function Ny(){if(Ae===1){Ae=0;var e=In,t=Ba,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=B.T,B.T=null;var l=I.p;I.p=2;var a=W;W|=4;try{dy(t,e);var i=Tu,r=Kp(e.containerInfo),o=i.focusedElem,s=i.selectionRange;if(r!==o&&o&&o.ownerDocument&&Zp(o.ownerDocument.documentElement,o)){if(s!==null&&uf(o)){var c=s.start,u=s.end;if(u===void 0&&(u=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(u,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var p=d.getSelection(),g=o.textContent.length,x=Math.min(s.start,g),E=s.end===void 0?x:Math.min(s.end,g);!p.extend&&x>E&&(r=E,E=x,x=r);var v=rh(o,x),y=rh(o,E);if(v&&y&&(p.rangeCount!==1||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=f.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),x>E?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(f=[],p=o;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var S=f[o];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}qo=!!wu,Tu=wu=null}finally{W=a,I.p=l,B.T=n}}e.current=t,Ae=2}}function jy(){if(Ae===2){Ae=0;var e=In,t=Ba,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=B.T,B.T=null;var l=I.p;I.p=2;var a=W;W|=4;try{oy(e,t.alternate,t)}finally{W=a,I.p=l,B.T=n}}Ae=3}}function zy(){if(Ae===4||Ae===3){Ae=0,sx();var e=In,t=Ba,n=dn,l=xy;t.subtreeFlags&10256||t.flags&10256?Ae=5:(Ae=0,Ba=In=null,_y(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Wn=null),nf(n),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(ur,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=B.T,a=I.p,I.p=2,B.T=null;try{for(var i=e.onRecoverableError,r=0;r<l.length;r++){var o=l[r];i(o.value,{componentStack:o.stack})}}finally{B.T=t,I.p=a}}dn&3&&hs(),Gt(e),a=e.pendingLanes,n&261930&&a&42?e===Su?Ui++:(Ui=0,Su=e):Ui=0,gr(0)}}function _y(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pr(t)))}function hs(){return Ny(),jy(),zy(),My()}function My(){if(Ae!==5)return!1;var e=In,t=bu;bu=0;var n=nf(dn),l=B.T,a=I.p;try{I.p=32>n?32:n,B.T=null,n=xu,xu=null;var i=In,r=dn;if(Ae=0,Ba=In=null,dn=0,W&6)throw Error(O(331));var o=W;if(W|=4,yy(i.current),my(i,i.current,r,n),W=o,gr(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(ur,i)}catch{}return!0}finally{I.p=a,B.T=l,_y(e,t)}}function qh(e,t,n){t=xt(n,t),t=mu(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(dr(e,2),Gt(e))}function le(e,t,n){if(e.tag===3)qh(e,e,n);else for(;t!==null;){if(t.tag===3){qh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=xt(n,e),n=Pv(2),l=Jn(t,n,2),l!==null&&(kv(n,l,t,e),dr(l,2),Gt(l));break}}t=t.return}}function sc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new DS;var a=new Set;l.set(t,a)}else a=l.get(t),a===void 0&&(a=new Set,l.set(t,a));a.has(n)||(Bf=!0,a.add(n),e=qS.bind(null,e,t,n),t.then(e,e))}function qS(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oe===e&&(Z&n)===n&&(ge===4||ge===3&&(Z&62914560)===Z&&300>rt()-us?!(W&2)&&qa(e,0):qf|=n,La===Z&&(La=0)),Gt(e)}function Dy(e,t){t===0&&(t=Tp()),e=Yl(e,t),e!==null&&(dr(e,t),Gt(e))}function VS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dy(e,n)}function QS(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(O(314))}l!==null&&l.delete(t),Dy(e,n)}function YS(e,t){return ef(e,t)}var _o=null,Fl=null,Eu=!1,Mo=!1,cc=!1,Zn=0;function Gt(e){e!==Fl&&e.next===null&&(Fl===null?_o=Fl=e:Fl=Fl.next=e),Mo=!0,Eu||(Eu=!0,$S())}function gr(e,t){if(!cc&&Mo){cc=!0;do for(var n=!1,l=_o;l!==null;){if(e!==0){var a=l.pendingLanes;if(a===0)var i=0;else{var r=l.suspendedLanes,o=l.pingedLanes;i=(1<<31-st(42|e)+1)-1,i&=a&~(r&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Vh(l,i))}else i=Z,i=Io(l,l===oe?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),!(i&3)||fr(l,i)||(n=!0,Vh(l,i));l=l.next}while(n);cc=!1}}function GS(){Hy()}function Hy(){Mo=Eu=!1;var e=0;Zn!==0&&e1()&&(e=Zn);for(var t=rt(),n=null,l=_o;l!==null;){var a=l.next,i=Uy(l,t);i===0?(l.next=null,n===null?_o=a:n.next=a,a===null&&(Fl=n)):(n=l,(e!==0||i&3)&&(Mo=!0)),l=a}Ae!==0&&Ae!==5||gr(e),Zn!==0&&(Zn=0)}function Uy(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-st(i),o=1<<r,s=a[r];s===-1?(!(o&n)||o&l)&&(a[r]=vx(o,t)):s<=t&&(e.expiredLanes|=o),i&=~o}if(t=oe,n=Z,n=Io(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(ne===2||ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ls(l),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||fr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Ls(l),nf(n)){case 2:case 8:n=Cp;break;case 32:n=po;break;case 268435456:n=wp;break;default:n=po}return l=Ly.bind(null,e),n=ef(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Ls(l),e.callbackPriority=2,e.callbackNode=null,2}function Ly(e,t){if(Ae!==0&&Ae!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hs()&&e.callbackNode!==n)return null;var l=Z;return l=Io(e,e===oe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ey(e,l,t),Uy(e,rt()),e.callbackNode!=null&&e.callbackNode===n?Ly.bind(null,e):null)}function Vh(e,t){if(hs())return null;Ey(e,t,!0)}function $S(){n1(function(){W&6?ef(Ep,GS):Hy()})}function Qf(){if(Zn===0){var e=Da;e===0&&(e=jr,jr<<=1,!(jr&261888)&&(jr=256)),Zn=e}return Zn}function Qh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:kr(""+e)}function Yh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function XS(e,t,n,l,a){if(t==="submit"&&n&&n.stateNode===a){var i=Qh((a[Je]||null).action),r=l.submitter;r&&(t=(t=r[Je]||null)?Qh(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var o=new es("action","action",null,l,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var s=r?Yh(a,r):new FormData(a);du(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(o.preventDefault(),s=r?Yh(a,r):new FormData(a),du(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var uc=0;uc<eu.length;uc++){var fc=eu[uc],ZS=fc.toLowerCase(),KS=fc[0].toUpperCase()+fc.slice(1);_t(ZS,"on"+KS)}_t(kp,"onAnimationEnd");_t(Fp,"onAnimationIteration");_t(Jp,"onAnimationStart");_t("dblclick","onDoubleClick");_t("focusin","onFocus");_t("focusout","onBlur");_t(cS,"onTransitionRun");_t(uS,"onTransitionStart");_t(fS,"onTransitionCancel");_t(Wp,"onTransitionEnd");_a("onMouseEnter",["mouseout","mouseover"]);_a("onMouseLeave",["mouseout","mouseover"]);_a("onPointerEnter",["pointerout","pointerover"]);_a("onPointerLeave",["pointerout","pointerover"]);ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ql("onBeforeInput",["compositionend","keypress","textInput","paste"]);ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fi="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(" "),PS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fi));function By(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],a=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var r=l.length-1;0<=r;r--){var o=l[r],s=o.instance,c=o.currentTarget;if(o=o.listener,s!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(u){yo(u)}a.currentTarget=null,i=s}else for(r=0;r<l.length;r++){if(o=l[r],s=o.instance,c=o.currentTarget,o=o.listener,s!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(u){yo(u)}a.currentTarget=null,i=s}}}}function G(e,t){var n=t[Zc];n===void 0&&(n=t[Zc]=new Set);var l=e+"__bubble";n.has(l)||(qy(t,e,2,!1),n.add(l))}function dc(e,t,n){var l=0;t&&(l|=4),qy(n,e,l,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Yf(e){if(!e[Vr]){e[Vr]=!0,jp.forEach(function(n){n!=="selectionchange"&&(PS.has(n)||dc(n,!1,e),dc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vr]||(t[Vr]=!0,dc("selectionchange",!1,t))}}function qy(e,t,n,l){switch(Wy(t)){case 2:var a=E1;break;case 8:a=C1;break;default:a=Zf}n=a.bind(null,t,n,e),a=void 0,!Jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function hc(e,t,n,l,a){var i=l;if(!(t&1)&&!(t&2)&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var o=l.stateNode.containerInfo;if(o===a)break;if(r===4)for(r=l.return;r!==null;){var s=r.tag;if((s===3||s===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;o!==null;){if(r=Il(o),r===null)return;if(s=r.tag,s===5||s===6||s===26||s===27){l=i=r;continue e}o=o.parentNode}}l=l.return}Bp(function(){var c=i,u=rf(n),f=[];e:{var d=Ip.get(e);if(d!==void 0){var p=es,g=e;switch(e){case"keypress":if(Jr(n)===0)break e;case"keydown":case"keyup":p=Qx;break;case"focusin":g="focus",p=Ys;break;case"focusout":g="blur",p=Ys;break;case"beforeblur":case"afterblur":p=Ys;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=$x;break;case kp:case Fp:case Jp:p=_x;break;case Wp:p=Zx;break;case"scroll":case"scrollend":p=Ox;break;case"wheel":p=Px;break;case"copy":case"cut":case"paste":p=Dx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Wd;break;case"toggle":case"beforetoggle":p=Fx}var x=(t&4)!==0,E=!x&&(e==="scroll"||e==="scrollend"),v=x?d!==null?d+"Capture":null:d;x=[];for(var y=c,b;y!==null;){var S=y;if(b=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||b===null||v===null||(S=Yi(y,v),S!=null&&x.push(Ji(y,S,b))),E)break;y=y.return}0<x.length&&(d=new p(d,g,null,n,u),f.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Fc&&(g=n.relatedTarget||n.fromElement)&&(Il(g)||g[Pa]))break e;if((p||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,p?(g=n.relatedTarget||n.toElement,p=c,g=g?Il(g):null,g!==null&&(E=cr(g),x=g.tag,g!==E||x!==5&&x!==27&&x!==6)&&(g=null)):(p=null,g=c),p!==g)){if(x=Fd,S="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=Wd,S="onPointerLeave",v="onPointerEnter",y="pointer"),E=p==null?d:Si(p),b=g==null?d:Si(g),d=new x(S,y+"leave",p,n,u),d.target=E,d.relatedTarget=b,S=null,Il(u)===c&&(x=new x(v,y+"enter",g,n,u),x.target=b,x.relatedTarget=E,S=x),E=S,p&&g)t:{for(x=kS,v=p,y=g,b=0,S=v;S;S=x(S))b++;S=0;for(var T=y;T;T=x(T))S++;for(;0<b-S;)v=x(v),b--;for(;0<S-b;)y=x(y),S--;for(;b--;){if(v===y||y!==null&&v===y.alternate){x=v;break t}v=x(v),y=x(y)}x=null}else x=null;p!==null&&Gh(f,d,p,x,!1),g!==null&&E!==null&&Gh(f,E,g,x,!0)}}e:{if(d=c?Si(c):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var R=nh;else if(th(d))if($p)R=rS;else{R=aS;var w=lS}else p=d.nodeName,!p||p.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?c&&af(c.elementType)&&(R=nh):R=iS;if(R&&(R=R(e,c))){Gp(f,R,n,u);break e}w&&w(e,d,c),e==="focusout"&&c&&d.type==="number"&&c.memoizedProps.value!=null&&kc(d,"number",d.value)}switch(w=c?Si(c):window,e){case"focusin":(th(w)||w.contentEditable==="true")&&(na=w,Wc=c,Oi=null);break;case"focusout":Oi=Wc=na=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,oh(f,n,u);break;case"selectionchange":if(sS)break;case"keydown":case"keyup":oh(f,n,u)}var A;if(cf)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ta?Qp(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Vp&&n.locale!=="ko"&&(ta||N!=="onCompositionStart"?N==="onCompositionEnd"&&ta&&(A=qp()):(Gn=u,of="value"in Gn?Gn.value:Gn.textContent,ta=!0)),w=Do(c,N),0<w.length&&(N=new Jd(N,e,null,n,u),f.push({event:N,listeners:w}),A?N.data=A:(A=Yp(n),A!==null&&(N.data=A)))),(A=Wx?Ix(e,n):eS(e,n))&&(N=Do(c,"onBeforeInput"),0<N.length&&(w=new Jd("onBeforeInput","beforeinput",null,n,u),f.push({event:w,listeners:N}),w.data=A)),XS(f,e,c,n,u)}By(f,t)})}function Ji(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Do(e,t){for(var n=t+"Capture",l=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Yi(e,n),a!=null&&l.unshift(Ji(e,a,i)),a=Yi(e,t),a!=null&&l.push(Ji(e,a,i))),e.tag===3)return l;e=e.return}return[]}function kS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gh(e,t,n,l,a){for(var i=t._reactName,r=[];n!==null&&n!==l;){var o=n,s=o.alternate,c=o.stateNode;if(o=o.tag,s!==null&&s===l)break;o!==5&&o!==26&&o!==27||c===null||(s=c,a?(c=Yi(n,i),c!=null&&r.unshift(Ji(n,c,s))):a||(c=Yi(n,i),c!=null&&r.push(Ji(n,c,s)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}var FS=/\r\n?/g,JS=/\u0000|\uFFFD/g;function $h(e){return(typeof e=="string"?e:""+e).replace(FS,`
49
- `).replace(JS,"")}function Vy(e,t){return t=$h(t),$h(e)===t}function ae(e,t,n,l,a,i){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ma(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ma(e,""+l);break;case"className":Mr(e,"class",l);break;case"tabIndex":Mr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Mr(e,n,l);break;case"style":Lp(e,l,i);break;case"data":if(t!=="object"){Mr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=kr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&ae(e,t,"name",a.name,a,null),ae(e,t,"formEncType",a.formEncType,a,null),ae(e,t,"formMethod",a.formMethod,a,null),ae(e,t,"formTarget",a.formTarget,a,null)):(ae(e,t,"encType",a.encType,a,null),ae(e,t,"method",a.method,a,null),ae(e,t,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=kr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=on);break;case"onScroll":l!=null&&G("scroll",e);break;case"onScrollEnd":l!=null&&G("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(O(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(O(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=kr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":G("beforetoggle",e),G("toggle",e),Pr(e,"popover",l);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Tx.get(n)||n,Pr(e,n,l))}}function Cu(e,t,n,l,a,i){switch(n){case"style":Lp(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(O(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(O(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ma(e,l):(typeof l=="number"||typeof l=="bigint")&&Ma(e,""+l);break;case"onScroll":l!=null&&G("scroll",e);break;case"onScrollEnd":l!=null&&G("scrollend",e);break;case"onClick":l!=null&&(e.onclick=on);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zp.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[Je]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,a);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Pr(e,n,l)}}}function Le(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G("error",e),G("load",e);var l=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var r=n[i];if(r!=null)switch(i){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:ae(e,t,i,r,n,null)}}a&&ae(e,t,"srcSet",n.srcSet,n,null),l&&ae(e,t,"src",n.src,n,null);return;case"input":G("invalid",e);var o=i=r=a=null,s=null,c=null;for(l in n)if(n.hasOwnProperty(l)){var u=n[l];if(u!=null)switch(l){case"name":a=u;break;case"type":r=u;break;case"checked":s=u;break;case"defaultChecked":c=u;break;case"value":i=u;break;case"defaultValue":o=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(O(137,t));break;default:ae(e,t,l,u,n,null)}}Dp(e,i,o,s,c,r,a,!1);return;case"select":G("invalid",e),l=r=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":r=o;break;case"multiple":l=o;default:ae(e,t,a,o,n,null)}t=i,n=r,e.multiple=!!l,t!=null?ua(e,!!l,t,!1):n!=null&&ua(e,!!l,n,!0);return;case"textarea":G("invalid",e),i=a=l=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":l=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(O(91));break;default:ae(e,t,r,o,n,null)}Up(e,l,a,i);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(l=n[s],l!=null))switch(s){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ae(e,t,s,l,n,null)}return;case"dialog":G("beforetoggle",e),G("toggle",e),G("cancel",e),G("close",e);break;case"iframe":case"object":G("load",e);break;case"video":case"audio":for(l=0;l<Fi.length;l++)G(Fi[l],e);break;case"image":G("error",e),G("load",e);break;case"details":G("toggle",e);break;case"embed":case"source":case"link":G("error",e),G("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(c in n)if(n.hasOwnProperty(c)&&(l=n[c],l!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,t));default:ae(e,t,c,l,n,null)}return;default:if(af(t)){for(u in n)n.hasOwnProperty(u)&&(l=n[u],l!==void 0&&Cu(e,t,u,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&ae(e,t,o,l,n,null))}function WS(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,r=null,o=null,s=null,c=null,u=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=f;default:l.hasOwnProperty(p)||ae(e,t,p,null,l,f)}}for(var d in l){var p=l[d];if(f=n[d],l.hasOwnProperty(d)&&(p!=null||f!=null))switch(d){case"type":i=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":u=p;break;case"value":r=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(O(137,t));break;default:p!==f&&ae(e,t,d,p,l,f)}}Pc(e,r,o,s,c,u,i,a);return;case"select":p=r=o=d=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":p=s;default:l.hasOwnProperty(i)||ae(e,t,i,null,l,s)}for(a in l)if(i=l[a],s=n[a],l.hasOwnProperty(a)&&(i!=null||s!=null))switch(a){case"value":d=i;break;case"defaultValue":o=i;break;case"multiple":r=i;default:i!==s&&ae(e,t,a,i,l,s)}t=o,n=r,l=p,d!=null?ua(e,!!n,d,!1):!!l!=!!n&&(t!=null?ua(e,!!n,t,!0):ua(e,!!n,n?[]:"",!1));return;case"textarea":p=d=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:ae(e,t,o,null,l,a)}for(r in l)if(a=l[r],i=n[r],l.hasOwnProperty(r)&&(a!=null||i!=null))switch(r){case"value":d=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(O(91));break;default:a!==i&&ae(e,t,r,a,l,i)}Hp(e,d,p);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!l.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:ae(e,t,g,null,l,d)}for(s in l)if(d=l[s],p=n[s],l.hasOwnProperty(s)&&d!==p&&(d!=null||p!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ae(e,t,s,d,l,p)}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 x in n)d=n[x],n.hasOwnProperty(x)&&d!=null&&!l.hasOwnProperty(x)&&ae(e,t,x,null,l,d);for(c in l)if(d=l[c],p=n[c],l.hasOwnProperty(c)&&d!==p&&(d!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(O(137,t));break;default:ae(e,t,c,d,l,p)}return;default:if(af(t)){for(var E in n)d=n[E],n.hasOwnProperty(E)&&d!==void 0&&!l.hasOwnProperty(E)&&Cu(e,t,E,void 0,l,d);for(u in l)d=l[u],p=n[u],!l.hasOwnProperty(u)||d===p||d===void 0&&p===void 0||Cu(e,t,u,d,l,p);return}}for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!l.hasOwnProperty(v)&&ae(e,t,v,null,l,d);for(f in l)d=l[f],p=n[f],!l.hasOwnProperty(f)||d===p||d==null&&p==null||ae(e,t,f,d,l,p)}function Xh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function IS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,r=a.initiatorType,o=a.duration;if(i&&o&&Xh(r)){for(r=0,o=a.responseEnd,l+=1;l<n.length;l++){var s=n[l],c=s.startTime;if(c>o)break;var u=s.transferSize,f=s.initiatorType;u&&Xh(f)&&(s=s.responseEnd,r+=u*(s<o?1:(o-c)/(s-c)))}if(--l,t+=8*(i+r)/(a.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 wu=null,Tu=null;function Ho(e){return e.nodeType===9?e:e.ownerDocument}function Zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Au(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 mc=null;function e1(){var e=window.event;return e&&e.type==="popstate"?e===mc?!1:(mc=e,!0):(mc=null,!1)}var Yy=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Kh=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof Kh<"u"?function(e){return Kh.resolve(null).then(e).catch(l1)}:Yy;function l1(e){setTimeout(function(){throw e})}function fl(e){return e==="head"}function Ph(e,t){var n=t,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(a),Qa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Li(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Li(n);for(var i=n.firstChild;i;){var r=i.nextSibling,o=i.nodeName;i[hr]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=r}}else n==="body"&&Li(e.ownerDocument.body);n=a}while(n);Qa(t)}function kh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Ou(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ou(n),lf(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function a1(e,t,n,l){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[hr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=wt(e.nextSibling),e===null)break}return null}function i1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=wt(e.nextSibling),e===null))return null;return e}function Gy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wt(e.nextSibling),e===null))return null;return e}function Ru(e){return e.data==="$?"||e.data==="$~"}function Nu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function r1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function wt(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 ju=null;function Fh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return wt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function $y(e,t,n){switch(t=Ho(n),e){case"html":if(e=t.documentElement,!e)throw Error(O(452));return e;case"head":if(e=t.head,!e)throw Error(O(453));return e;case"body":if(e=t.body,!e)throw Error(O(454));return e;default:throw Error(O(451))}}function Li(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lf(e)}var Tt=new Map,Wh=new Set;function Uo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sn=I.d;I.d={f:o1,r:s1,D:c1,C:u1,L:f1,m:d1,X:m1,S:h1,M:p1};function o1(){var e=Sn.f(),t=fs();return e||t}function s1(e){var t=ka(e);t!==null&&t.tag===5&&t.type==="form"?Lv(t):Sn.r(e)}var Ia=typeof document>"u"?null:document;function Xy(e,t,n){var l=Ia;if(l&&typeof t=="string"&&t){var a=bt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Wh.has(a)||(Wh.add(a),e={rel:e,crossOrigin:n,href:t},l.querySelector(a)===null&&(t=l.createElement("link"),Le(t,"link",e),je(t),l.head.appendChild(t)))}}function c1(e){Sn.D(e),Xy("dns-prefetch",e,null)}function u1(e,t){Sn.C(e,t),Xy("preconnect",e,t)}function f1(e,t,n){Sn.L(e,t,n);var l=Ia;if(l&&e&&t){var a='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+bt(n.imageSizes)+'"]')):a+='[href="'+bt(e)+'"]';var i=a;switch(t){case"style":i=Va(e);break;case"script":i=ei(e)}Tt.has(i)||(e=me({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Tt.set(i,e),l.querySelector(a)!==null||t==="style"&&l.querySelector(br(i))||t==="script"&&l.querySelector(xr(i))||(t=l.createElement("link"),Le(t,"link",e),je(t),l.head.appendChild(t)))}}function d1(e,t){Sn.m(e,t);var n=Ia;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+bt(l)+'"][href="'+bt(e)+'"]',i=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ei(e)}if(!Tt.has(i)&&(e=me({rel:"modulepreload",href:e},t),Tt.set(i,e),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xr(i)))return}l=n.createElement("link"),Le(l,"link",e),je(l),n.head.appendChild(l)}}}function h1(e,t,n){Sn.S(e,t,n);var l=Ia;if(l&&e){var a=ca(l).hoistableStyles,i=Va(e);t=t||"default";var r=a.get(i);if(!r){var o={loading:0,preload:null};if(r=l.querySelector(br(i)))o.loading=5;else{e=me({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Tt.get(i))&&Gf(e,n);var s=r=l.createElement("link");je(s),Le(s,"link",e),s._p=new Promise(function(c,u){s.onload=c,s.onerror=u}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,io(r,t,l)}r={type:"stylesheet",instance:r,count:1,state:o},a.set(i,r)}}}function m1(e,t){Sn.X(e,t);var n=Ia;if(n&&e){var l=ca(n).hoistableScripts,a=ei(e),i=l.get(a);i||(i=n.querySelector(xr(a)),i||(e=me({src:e,async:!0},t),(t=Tt.get(a))&&$f(e,t),i=n.createElement("script"),je(i),Le(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function p1(e,t){Sn.M(e,t);var n=Ia;if(n&&e){var l=ca(n).hoistableScripts,a=ei(e),i=l.get(a);i||(i=n.querySelector(xr(a)),i||(e=me({src:e,async:!0,type:"module"},t),(t=Tt.get(a))&&$f(e,t),i=n.createElement("script"),je(i),Le(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i))}}function Ih(e,t,n,l){var a=(a=Pn.current)?Uo(a):null;if(!a)throw Error(O(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Va(n.href),n=ca(a).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Va(n.href);var i=ca(a).hoistableStyles,r=i.get(e);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=a.querySelector(br(e)))&&!i._p&&(r.instance=i,r.state.loading=5),Tt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tt.set(e,n),i||v1(a,e,n,r.state))),t&&l===null)throw Error(O(528,""));return r}if(t&&l!==null)throw Error(O(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ei(n),n=ca(a).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,e))}}function Va(e){return'href="'+bt(e)+'"'}function br(e){return'link[rel="stylesheet"]['+e+"]"}function Zy(e){return me({},e,{"data-precedence":e.precedence,precedence:null})}function v1(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Le(t,"link",n),je(t),e.head.appendChild(t))}function ei(e){return'[src="'+bt(e)+'"]'}function xr(e){return"script[async]"+e}function em(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(l)return t.instance=l,je(l),l;var a=me({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),je(l),Le(l,"style",a),io(l,n.precedence,e),t.instance=l;case"stylesheet":a=Va(n.href);var i=e.querySelector(br(a));if(i)return t.state.loading|=4,t.instance=i,je(i),i;l=Zy(n),(a=Tt.get(a))&&Gf(l,a),i=(e.ownerDocument||e).createElement("link"),je(i);var r=i;return r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Le(i,"link",l),t.state.loading|=4,io(i,n.precedence,e),t.instance=i;case"script":return i=ei(n.src),(a=e.querySelector(xr(i)))?(t.instance=a,je(a),a):(l=n,(a=Tt.get(i))&&(l=me({},n),$f(l,a)),e=e.ownerDocument||e,a=e.createElement("script"),je(a),Le(a,"link",l),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(O(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(l=t.instance,t.state.loading|=4,io(l,n.precedence,e));return t.instance}function io(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,r=0;r<l.length;r++){var o=l[r];if(o.dataset.precedence===t)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $f(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ro=null;function tm(e,t,n){if(ro===null){var l=new Map,a=ro=new Map;a.set(n,l)}else a=ro,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[hr]||i[De]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var o=l.get(r);o?o.push(i):l.set(r,[i])}}return l}function nm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function y1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ky(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function g1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Va(l.href),i=t.querySelector(br(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,je(i);return}i=t.ownerDocument||t,l=Zy(l),(a=Tt.get(a))&&Gf(l,a),i=i.createElement("link"),je(i);var r=i;r._p=new Promise(function(o,s){r.onload=o,r.onerror=s}),Le(i,"link",l),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Lo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pc=0;function b1(e,t){return e.stylesheets&&e.count===0&&oo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&oo(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&pc===0&&(pc=62500*IS());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oo(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>pc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function Lo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bo=null;function oo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bo=new Map,t.forEach(x1,e),Bo=null,Lo.call(e))}function x1(e,t){if(!(t.state.loading&4)){var n=Bo.get(e);if(n)var l=n.get(null);else{n=new Map,Bo.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var r=a[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),l=r)}l&&n.set(null,l)}a=t.instance,r=a.getAttribute("data-precedence"),i=n.get(r)||l,i===l&&n.set(null,a),n.set(r,a),this.count++,l=Lo.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Wi={$$typeof:rn,Provider:null,Consumer:null,_currentValue:Rl,_currentValue2:Rl,_threadCount:0};function S1(e,t,n,l,a,i,r,o,s){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=Bs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.hiddenUpdates=Bs(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Py(e,t,n,l,a,i,r,o,s,c,u,f){return e=new S1(e,t,n,r,s,c,u,f,o),t=1,i===!0&&(t|=24),i=at(3,null,null,t),e.current=i,i.stateNode=e,t=vf(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:t},bf(i),e}function ky(e){return e?(e=ia,e):ia}function Fy(e,t,n,l,a,i){a=ky(a),l.context===null?l.context=a:l.pendingContext=a,l=Fn(t),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=Jn(e,l,t),n!==null&&(Fe(n,e,t),Ni(n,e,t))}function lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xf(e,t){lm(e,t),(e=e.alternate)&&lm(e,t)}function Jy(e){if(e.tag===13||e.tag===31){var t=Yl(e,67108864);t!==null&&Fe(t,e,67108864),Xf(e,67108864)}}function am(e){if(e.tag===13||e.tag===31){var t=ct();t=tf(t);var n=Yl(e,t);n!==null&&Fe(n,e,t),Xf(e,t)}}var qo=!0;function E1(e,t,n,l){var a=B.T;B.T=null;var i=I.p;try{I.p=2,Zf(e,t,n,l)}finally{I.p=i,B.T=a}}function C1(e,t,n,l){var a=B.T;B.T=null;var i=I.p;try{I.p=8,Zf(e,t,n,l)}finally{I.p=i,B.T=a}}function Zf(e,t,n,l){if(qo){var a=zu(l);if(a===null)hc(e,t,l,Vo,n),im(e,l);else if(T1(a,e,t,n,l))l.stopPropagation();else if(im(e,l),t&4&&-1<w1.indexOf(e)){for(;a!==null;){var i=ka(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=pl(i.pendingLanes);if(r!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var s=1<<31-st(r);o.entanglements[1]|=s,r&=~s}Gt(i),!(W&6)&&(No=rt()+500,gr(0))}}break;case 31:case 13:o=Yl(i,2),o!==null&&Fe(o,i,2),fs(),Xf(i,2)}if(i=zu(l),i===null&&hc(e,t,l,Vo,n),i===a)break;a=i}a!==null&&l.stopPropagation()}else hc(e,t,l,null,n)}}function zu(e){return e=rf(e),Kf(e)}var Vo=null;function Kf(e){if(Vo=null,e=Il(e),e!==null){var t=cr(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=yp(t),e!==null)return e;e=null}else if(n===31){if(e=gp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Vo=e,null}function Wy(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(cx()){case Ep:return 2;case Cp:return 8;case po:case ux:return 32;case wp:return 268435456;default:return 32}default:return 32}}var _u=!1,el=null,tl=null,nl=null,Ii=new Map,er=new Map,Mn=[],w1="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 im(e,t){switch(e){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":Ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function di(e,t,n,l,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ka(t),t!==null&&Jy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function T1(e,t,n,l,a){switch(t){case"focusin":return el=di(el,e,t,n,l,a),!0;case"dragenter":return tl=di(tl,e,t,n,l,a),!0;case"mouseover":return nl=di(nl,e,t,n,l,a),!0;case"pointerover":var i=a.pointerId;return Ii.set(i,di(Ii.get(i)||null,e,t,n,l,a)),!0;case"gotpointercapture":return i=a.pointerId,er.set(i,di(er.get(i)||null,e,t,n,l,a)),!0}return!1}function Iy(e){var t=Il(e.target);if(t!==null){var n=cr(t);if(n!==null){if(t=n.tag,t===13){if(t=yp(n),t!==null){e.blockedOn=t,Gd(e.priority,function(){am(n)});return}}else if(t===31){if(t=gp(n),t!==null){e.blockedOn=t,Gd(e.priority,function(){am(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function so(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Fc=l,n.target.dispatchEvent(l),Fc=null}else return t=ka(n),t!==null&&Jy(t),e.blockedOn=n,!1;t.shift()}return!0}function rm(e,t,n){so(e)&&n.delete(t)}function A1(){_u=!1,el!==null&&so(el)&&(el=null),tl!==null&&so(tl)&&(tl=null),nl!==null&&so(nl)&&(nl=null),Ii.forEach(rm),er.forEach(rm)}function Qr(e,t){e.blockedOn===t&&(e.blockedOn=null,_u||(_u=!0,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,A1)))}var Yr=null;function om(e){Yr!==e&&(Yr=e,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,function(){Yr===e&&(Yr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],a=e[t+2];if(typeof l!="function"){if(Kf(l||n)===null)continue;break}var i=ka(n);i!==null&&(e.splice(t,3),t-=3,du(i,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Qa(e){function t(s){return Qr(s,e)}el!==null&&Qr(el,e),tl!==null&&Qr(tl,e),nl!==null&&Qr(nl,e),Ii.forEach(t),er.forEach(t);for(var n=0;n<Mn.length;n++){var l=Mn[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Mn.length&&(n=Mn[0],n.blockedOn===null);)Iy(n),n.blockedOn===null&&Mn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],r=a[Je]||null;if(typeof i=="function")r||om(n);else if(r){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,r=i[Je]||null)o=r.formAction;else if(Kf(a)!==null)continue}else o=r.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),om(n)}}}function eg(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return a=r})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Pf(e){this._internalRoot=e}ms.prototype.render=Pf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));var n=t.current,l=ct();Fy(n,l,e,t,null,null)};ms.prototype.unmount=Pf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fy(e.current,2,null,e,null,null),fs(),t[Pa]=null}};function ms(e){this._internalRoot=e}ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Np();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mn.length&&t!==0&&t<Mn[n].priority;n++);Mn.splice(n,0,e),n===0&&Iy(e)}};var sm=pp.version;if(sm!=="19.2.6")throw Error(O(527,sm,"19.2.6"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=nx(t),e=e!==null?bp(e):null,e=e===null?null:e.stateNode,e};var O1={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gr.isDisabled&&Gr.supportsFiber)try{ur=Gr.inject(O1),ot=Gr}catch{}}Fo.createRoot=function(e,t){if(!vp(e))throw Error(O(299));var n=!1,l="",a=Xv,i=Zv,r=Kv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Py(e,1,!1,null,null,n,l,null,a,i,r,eg),e[Pa]=t.current,Yf(e),new Pf(t)};Fo.hydrateRoot=function(e,t,n){if(!vp(e))throw Error(O(299));var l=!1,a="",i=Xv,r=Zv,o=Kv,s=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=Py(e,1,!0,t,n??null,l,a,s,i,r,o,eg),t.context=ky(null),n=t.current,l=ct(),l=tf(l),a=Fn(l),a.callback=null,Jn(n,a,l),n=l,t.current.lanes=n,dr(t,n),Gt(t),e[Pa]=t.current,Yf(e),new ms(t)};Fo.version="19.2.6";function tg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tg)}catch(e){console.error(e)}}tg(),cp.exports=Fo;var R1=cp.exports;function cm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ht(...e){return t=>{let n=!1;const l=e.map(a=>{const i=cm(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<l.length;a++){const i=l[a];typeof i=="function"?i():cm(e[a],null)}}}}function Be(...e){return m.useCallback(ht(...e),e)}function N1(e){const t=j1(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(_1);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function j1(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=D1(a),o=M1(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var z1=Symbol("radix.slottable");function _1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z1}function M1(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function D1(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var H1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U1=H1.reduce((e,t)=>{const n=N1(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),L1=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"}),B1="VisuallyHidden",ng=m.forwardRef((e,t)=>h.jsx(U1.span,{...e,ref:t,style:{...L1,...e.style}}));ng.displayName=B1;var q1=ng;function V1(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,Q1(a,...t)]}function Q1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function um(e){const t=Y1(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find($1);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function Y1(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=Z1(a),o=X1(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var G1=Symbol("radix.slottable");function $1(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===G1}function X1(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function Z1(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function K1(e){const t=e+"CollectionProvider",[n,l]=V1(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),r=x=>{const{scope:E,children:v}=x,y=On.useRef(null),b=On.useRef(new Map).current;return h.jsx(a,{scope:E,itemMap:b,collectionRef:y,children:v})};r.displayName=t;const o=e+"CollectionSlot",s=um(o),c=On.forwardRef((x,E)=>{const{scope:v,children:y}=x,b=i(o,v),S=Be(E,b.collectionRef);return h.jsx(s,{ref:S,children:y})});c.displayName=o;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=um(u),p=On.forwardRef((x,E)=>{const{scope:v,children:y,...b}=x,S=On.useRef(null),T=Be(E,S),R=i(u,v);return On.useEffect(()=>(R.itemMap.set(S,{ref:S,...b}),()=>void R.itemMap.delete(S))),h.jsx(d,{[f]:"",ref:T,children:y})});p.displayName=u;function g(x){const E=i(e+"CollectionConsumer",x);return On.useCallback(()=>{const y=E.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(E.itemMap.values()).sort((R,w)=>b.indexOf(R.ref.current)-b.indexOf(w.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:r,Slot:c,ItemSlot:p},g,l]}function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}var gn=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},P1=rp[" useInsertionEffect ".trim().toString()]||gn;function ps({prop:e,defaultProp:t,onChange:n=()=>{},caller:l}){const[a,i,r]=k1({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:a;{const u=m.useRef(e!==void 0);m.useEffect(()=>{const f=u.current;f!==o&&console.warn(`${l} is changing from ${f?"controlled":"uncontrolled"} to ${o?"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.`),u.current=o},[o,l])}const c=m.useCallback(u=>{var f;if(o){const d=F1(u)?u(e):u;d!==e&&((f=r.current)==null||f.call(r,d))}else i(u)},[o,e,i,r]);return[s,c]}function k1({defaultProp:e,onChange:t}){const[n,l]=m.useState(e),a=m.useRef(n),i=m.useRef(t);return P1(()=>{i.current=t},[t]),m.useEffect(()=>{var r;a.current!==n&&((r=i.current)==null||r.call(i,n),a.current=n)},[n,a]),[n,l,i]}function F1(e){return typeof e=="function"}function J1(e,t){return m.useReducer((n,l)=>t[n][l]??n,e)}var $t=e=>{const{present:t,children:n}=e,l=W1(t),a=typeof n=="function"?n({present:l.isPresent}):m.Children.only(n),i=Be(l.ref,I1(a));return typeof n=="function"||l.isPresent?m.cloneElement(a,{ref:i}):null};$t.displayName="Presence";function W1(e){const[t,n]=m.useState(),l=m.useRef(null),a=m.useRef(e),i=m.useRef("none"),r=e?"mounted":"unmounted",[o,s]=J1(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=$r(l.current);i.current=o==="mounted"?c:"none"},[o]),gn(()=>{const c=l.current,u=a.current;if(u!==e){const d=i.current,p=$r(c);e?s("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(u&&d!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),gn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=p=>{const x=$r(l.current).includes(CSS.escape(p.animationName));if(p.target===t&&x&&(s("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},d=p=>{p.target===t&&(i.current=$r(l.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:m.useCallback(c=>{l.current=c?getComputedStyle(c):null,n(c)},[])}}function $r(e){return(e==null?void 0:e.animationName)||"none"}function I1(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eE=rp[" useId ".trim().toString()]||(()=>{}),tE=0;function kf(e){const[t,n]=m.useState(eE());return gn(()=>{n(l=>l??String(tE++))},[e]),e||(t?`radix-${t}`:"")}var nE=m.createContext(void 0);function Ff(e){const t=m.useContext(nE);return e||t||"ltr"}function lE(e){const t=aE(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(rE);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function aE(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=sE(a),o=oE(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iE=Symbol("radix.slottable");function rE(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iE}function oE(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function sE(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lg=cE.reduce((e,t)=>{const n=lE(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function uE(e,t){e&&Wo.flushSync(()=>e.dispatchEvent(t))}function Et(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var l;return(l=t.current)==null?void 0:l.call(t,...n)},[])}function fE(e,t=globalThis==null?void 0:globalThis.document){const n=Et(e);m.useEffect(()=>{const l=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",l,{capture:!0}),()=>t.removeEventListener("keydown",l,{capture:!0})},[n,t])}var dE="DismissableLayer",Mu="dismissableLayer.update",hE="dismissableLayer.pointerDownOutside",mE="dismissableLayer.focusOutside",fm,ag=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jf=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:r,onDismiss:o,...s}=e,c=m.useContext(ag),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),g=Be(t,w=>f(w)),x=Array.from(c.layers),[E]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=x.indexOf(E),y=u?x.indexOf(u):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,T=yE(w=>{const A=w.target,N=[...c.branches].some(z=>z.contains(A));!S||N||(a==null||a(w),r==null||r(w),w.defaultPrevented||o==null||o())},d),R=gE(w=>{const A=w.target;[...c.branches].some(z=>z.contains(A))||(i==null||i(w),r==null||r(w),w.defaultPrevented||o==null||o())},d);return fE(w=>{y===c.layers.size-1&&(l==null||l(w),!w.defaultPrevented&&o&&(w.preventDefault(),o()))},d),m.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(fm=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),dm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=fm)}},[u,d,n,c]),m.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),dm())},[u,c]),m.useEffect(()=>{const w=()=>p({});return document.addEventListener(Mu,w),()=>document.removeEventListener(Mu,w)},[]),h.jsx(lg.div,{...s,ref:g,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,R.onFocusCapture),onBlurCapture:F(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,T.onPointerDownCapture)})});Jf.displayName=dE;var pE="DismissableLayerBranch",vE=m.forwardRef((e,t)=>{const n=m.useContext(ag),l=m.useRef(null),a=Be(t,l);return m.useEffect(()=>{const i=l.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(lg.div,{...e,ref:a})});vE.displayName=pE;function yE(e,t=globalThis==null?void 0:globalThis.document){const n=Et(e),l=m.useRef(!1),a=m.useRef(()=>{});return m.useEffect(()=>{const i=o=>{if(o.target&&!l.current){let s=function(){ig(hE,n,c,{discrete:!0})};const c={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=s,t.addEventListener("click",a.current,{once:!0})):s()}else t.removeEventListener("click",a.current);l.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>l.current=!0}}function gE(e,t=globalThis==null?void 0:globalThis.document){const n=Et(e),l=m.useRef(!1);return m.useEffect(()=>{const a=i=>{i.target&&!l.current&&ig(mE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function dm(){const e=new CustomEvent(Mu);document.dispatchEvent(e)}function ig(e,t,n,{discrete:l}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),l?uE(a,i):a.dispatchEvent(i)}function bE(e){const t=xE(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(EE);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function xE(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=wE(a),o=CE(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SE=Symbol("radix.slottable");function EE(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SE}function CE(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function wE(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var TE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],AE=TE.reduce((e,t)=>{const n=bE(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),OE="Portal",Wf=m.forwardRef((e,t)=>{var o;const{container:n,...l}=e,[a,i]=m.useState(!1);gn(()=>i(!0),[]);const r=n||a&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return r?ex.createPortal(h.jsx(AE.div,{...l,ref:t}),r):null});Wf.displayName=OE;function RE(e){const[t,n]=m.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const l=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let r,o;if("borderBoxSize"in i){const s=i.borderBoxSize,c=Array.isArray(s)?s[0]:s;r=c.inlineSize,o=c.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return l.observe(e,{box:"border-box"}),()=>l.unobserve(e)}else n(void 0)},[e]),t}const NE=["top","right","bottom","left"],ol=Math.min,lt=Math.max,Qo=Math.round,Xr=Math.floor,Qt=e=>({x:e,y:e}),jE={left:"right",right:"left",bottom:"top",top:"bottom"};function Du(e,t,n){return lt(e,ol(t,n))}function bn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function ti(e){return e.split("-")[1]}function If(e){return e==="x"?"y":"x"}function ed(e){return e==="y"?"height":"width"}function qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function td(e){return If(qt(e))}function zE(e,t,n){n===void 0&&(n=!1);const l=ti(e),a=td(e),i=ed(a);let r=a==="x"?l===(n?"end":"start")?"right":"left":l==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=Yo(r)),[r,Yo(r)]}function _E(e){const t=Yo(e);return[Hu(e),t,Hu(t)]}function Hu(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hm=["left","right"],mm=["right","left"],ME=["top","bottom"],DE=["bottom","top"];function HE(e,t,n){switch(e){case"top":case"bottom":return n?t?mm:hm:t?hm:mm;case"left":case"right":return t?ME:DE;default:return[]}}function UE(e,t,n,l){const a=ti(e);let i=HE(xn(e),n==="start",l);return a&&(i=i.map(r=>r+"-"+a),t&&(i=i.concat(i.map(Hu)))),i}function Yo(e){const t=xn(e);return jE[t]+e.slice(t.length)}function LE(e){return{top:0,right:0,bottom:0,left:0,...e}}function rg(e){return typeof e!="number"?LE(e):{top:e,right:e,bottom:e,left:e}}function Go(e){const{x:t,y:n,width:l,height:a}=e;return{width:l,height:a,top:n,left:t,right:t+l,bottom:n+a,x:t,y:n}}function pm(e,t,n){let{reference:l,floating:a}=e;const i=qt(t),r=td(t),o=ed(r),s=xn(t),c=i==="y",u=l.x+l.width/2-a.width/2,f=l.y+l.height/2-a.height/2,d=l[o]/2-a[o]/2;let p;switch(s){case"top":p={x:u,y:l.y-a.height};break;case"bottom":p={x:u,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-a.width,y:f};break;default:p={x:l.x,y:l.y}}switch(ti(t)){case"start":p[r]-=d*(n&&c?-1:1);break;case"end":p[r]+=d*(n&&c?-1:1);break}return p}async function BE(e,t){var n;t===void 0&&(t={});const{x:l,y:a,platform:i,rects:r,elements:o,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=bn(t,e),g=rg(p),E=o[d?f==="floating"?"reference":"floating":f],v=Go(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:s})),y=f==="floating"?{x:l,y:a,width:r.floating.width,height:r.floating.height}:r.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),S=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},T=Go(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:b,strategy:s}):y);return{top:(v.top-T.top+g.top)/S.y,bottom:(T.bottom-v.bottom+g.bottom)/S.y,left:(v.left-T.left+g.left)/S.x,right:(T.right-v.right+g.right)/S.x}}const qE=50,VE=async(e,t,n)=>{const{placement:l="bottom",strategy:a="absolute",middleware:i=[],platform:r}=n,o=r.detectOverflow?r:{...r,detectOverflow:BE},s=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:f}=pm(c,l,s),d=l,p=0;const g={};for(let x=0;x<i.length;x++){const E=i[x];if(!E)continue;const{name:v,fn:y}=E,{x:b,y:S,data:T,reset:R}=await y({x:u,y:f,initialPlacement:l,placement:d,strategy:a,middlewareData:g,rects:c,platform:o,elements:{reference:e,floating:t}});u=b??u,f=S??f,g[v]={...g[v],...T},R&&p<qE&&(p++,typeof R=="object"&&(R.placement&&(d=R.placement),R.rects&&(c=R.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:u,y:f}=pm(c,d,s)),x=-1)}return{x:u,y:f,placement:d,strategy:a,middlewareData:g}},QE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:l,placement:a,rects:i,platform:r,elements:o,middlewareData:s}=t,{element:c,padding:u=0}=bn(e,t)||{};if(c==null)return{};const f=rg(u),d={x:n,y:l},p=td(a),g=ed(p),x=await r.getDimensions(c),E=p==="y",v=E?"top":"left",y=E?"bottom":"right",b=E?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[p]-d[p]-i.floating[g],T=d[p]-i.reference[p],R=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let w=R?R[b]:0;(!w||!await(r.isElement==null?void 0:r.isElement(R)))&&(w=o.floating[b]||i.floating[g]);const A=S/2-T/2,N=w/2-x[g]/2-1,z=ol(f[v],N),U=ol(f[y],N),H=z,ee=w-x[g]-U,k=w/2-x[g]/2+A,re=Du(H,k,ee),j=!s.arrow&&ti(a)!=null&&k!==re&&i.reference[g]/2-(k<H?z:U)-x[g]/2<0,D=j?k<H?k-H:k-ee:0;return{[p]:d[p]+D,data:{[p]:re,centerOffset:k-re-D,...j&&{alignmentOffset:D}},reset:j}}}),YE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,l;const{placement:a,middlewareData:i,rects:r,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...E}=bn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=xn(a),y=qt(o),b=xn(o)===o,S=await(s.isRTL==null?void 0:s.isRTL(c.floating)),T=d||(b||!x?[Yo(o)]:_E(o)),R=g!=="none";!d&&R&&T.push(...UE(o,x,g,S));const w=[o,...T],A=await s.detectOverflow(t,E),N=[];let z=((l=i.flip)==null?void 0:l.overflows)||[];if(u&&N.push(A[v]),f){const k=zE(a,r,S);N.push(A[k[0]],A[k[1]])}if(z=[...z,{placement:a,overflows:N}],!N.every(k=>k<=0)){var U,H;const k=(((U=i.flip)==null?void 0:U.index)||0)+1,re=w[k];if(re&&(!(f==="alignment"?y!==qt(re):!1)||z.every(_=>qt(_.placement)===y?_.overflows[0]>0:!0)))return{data:{index:k,overflows:z},reset:{placement:re}};let j=(H=z.filter(D=>D.overflows[0]<=0).sort((D,_)=>D.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(p){case"bestFit":{var ee;const D=(ee=z.filter(_=>{if(R){const q=qt(_.placement);return q===y||q==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(q=>q>0).reduce((q,J)=>q+J,0)]).sort((_,q)=>_[1]-q[1])[0])==null?void 0:ee[0];D&&(j=D);break}case"initialPlacement":j=o;break}if(a!==j)return{reset:{placement:j}}}return{}}}};function vm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ym(e){return NE.some(t=>e[t]>=0)}const GE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:l}=t,{strategy:a="referenceHidden",...i}=bn(e,t);switch(a){case"referenceHidden":{const r=await l.detectOverflow(t,{...i,elementContext:"reference"}),o=vm(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ym(o)}}}case"escaped":{const r=await l.detectOverflow(t,{...i,altBoundary:!0}),o=vm(r,n.floating);return{data:{escapedOffsets:o,escaped:ym(o)}}}default:return{}}}}},og=new Set(["left","top"]);async function $E(e,t){const{placement:n,platform:l,elements:a}=e,i=await(l.isRTL==null?void 0:l.isRTL(a.floating)),r=xn(n),o=ti(n),s=qt(n)==="y",c=og.has(r)?-1:1,u=i&&s?-1:1,f=bn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(p=o==="end"?g*-1:g),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const XE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,l;const{x:a,y:i,placement:r,middlewareData:o}=t,s=await $E(t,e);return r===((n=o.offset)==null?void 0:n.placement)&&(l=o.arrow)!=null&&l.alignmentOffset?{}:{x:a+s.x,y:i+s.y,data:{...s,placement:r}}}}},ZE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:l,placement:a,platform:i}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...c}=bn(e,t),u={x:n,y:l},f=await i.detectOverflow(t,c),d=qt(xn(a)),p=If(d);let g=u[p],x=u[d];if(r){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=g+f[v],S=g-f[y];g=Du(b,g,S)}if(o){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=x+f[v],S=x-f[y];x=Du(b,x,S)}const E=s.fn({...t,[p]:g,[d]:x});return{...E,data:{x:E.x-n,y:E.y-l,enabled:{[p]:r,[d]:o}}}}}},KE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:l,placement:a,rects:i,middlewareData:r}=t,{offset:o=0,mainAxis:s=!0,crossAxis:c=!0}=bn(e,t),u={x:n,y:l},f=qt(a),d=If(f);let p=u[d],g=u[f];const x=bn(o,t),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){const b=d==="y"?"height":"width",S=i.reference[d]-i.floating[b]+E.mainAxis,T=i.reference[d]+i.reference[b]-E.mainAxis;p<S?p=S:p>T&&(p=T)}if(c){var v,y;const b=d==="y"?"width":"height",S=og.has(xn(a)),T=i.reference[f]-i.floating[b]+(S&&((v=r.offset)==null?void 0:v[f])||0)+(S?0:E.crossAxis),R=i.reference[f]+i.reference[b]+(S?0:((y=r.offset)==null?void 0:y[f])||0)-(S?E.crossAxis:0);g<T?g=T:g>R&&(g=R)}return{[d]:p,[f]:g}}}},PE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,l;const{placement:a,rects:i,platform:r,elements:o}=t,{apply:s=()=>{},...c}=bn(e,t),u=await r.detectOverflow(t,c),f=xn(a),d=ti(a),p=qt(a)==="y",{width:g,height:x}=i.floating;let E,v;f==="top"||f==="bottom"?(E=f,v=d===(await(r.isRTL==null?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(v=f,E=d==="end"?"top":"bottom");const y=x-u.top-u.bottom,b=g-u.left-u.right,S=ol(x-u[E],y),T=ol(g-u[v],b),R=!t.middlewareData.shift;let w=S,A=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(l=t.middlewareData.shift)!=null&&l.enabled.y&&(w=y),R&&!d){const z=lt(u.left,0),U=lt(u.right,0),H=lt(u.top,0),ee=lt(u.bottom,0);p?A=g-2*(z!==0||U!==0?z+U:lt(u.left,u.right)):w=x-2*(H!==0||ee!==0?H+ee:lt(u.top,u.bottom))}await s({...t,availableWidth:A,availableHeight:w});const N=await r.getDimensions(o.floating);return g!==N.width||x!==N.height?{reset:{rects:!0}}:{}}}};function vs(){return typeof window<"u"}function ni(e){return sg(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){var t;return(t=(sg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sg(e){return vs()?e instanceof Node||e instanceof ut(e).Node:!1}function jt(e){return vs()?e instanceof Element||e instanceof ut(e).Element:!1}function En(e){return vs()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function gm(e){return!vs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}function Sr(e){const{overflow:t,overflowX:n,overflowY:l,display:a}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+n)&&a!=="inline"&&a!=="contents"}function kE(e){return/^(table|td|th)$/.test(ni(e))}function ys(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const FE=/transform|translate|scale|rotate|perspective|filter/,JE=/paint|layout|strict|content/,hl=e=>!!e&&e!=="none";let vc;function nd(e){const t=jt(e)?zt(e):e;return hl(t.transform)||hl(t.translate)||hl(t.scale)||hl(t.rotate)||hl(t.perspective)||!ld()&&(hl(t.backdropFilter)||hl(t.filter))||FE.test(t.willChange||"")||JE.test(t.contain||"")}function WE(e){let t=sl(e);for(;En(t)&&!Ya(t);){if(nd(t))return t;if(ys(t))return null;t=sl(t)}return null}function ld(){return vc==null&&(vc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vc}function Ya(e){return/^(html|body|#document)$/.test(ni(e))}function zt(e){return ut(e).getComputedStyle(e)}function gs(e){return jt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sl(e){if(ni(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gm(e)&&e.host||Xt(e);return gm(t)?t.host:t}function cg(e){const t=sl(e);return Ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:En(t)&&Sr(t)?t:cg(t)}function tr(e,t,n){var l;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=cg(e),i=a===((l=e.ownerDocument)==null?void 0:l.body),r=ut(a);if(i){const o=Uu(r);return t.concat(r,r.visualViewport||[],Sr(a)?a:[],o&&n?tr(o):[])}else return t.concat(a,tr(a,[],n))}function Uu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ug(e){const t=zt(e);let n=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const a=En(e),i=a?e.offsetWidth:n,r=a?e.offsetHeight:l,o=Qo(n)!==i||Qo(l)!==r;return o&&(n=i,l=r),{width:n,height:l,$:o}}function ad(e){return jt(e)?e:e.contextElement}function va(e){const t=ad(e);if(!En(t))return Qt(1);const n=t.getBoundingClientRect(),{width:l,height:a,$:i}=ug(t);let r=(i?Qo(n.width):n.width)/l,o=(i?Qo(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!o||!Number.isFinite(o))&&(o=1),{x:r,y:o}}const IE=Qt(0);function fg(e){const t=ut(e);return!ld()||!t.visualViewport?IE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function eC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ut(e)?!1:t}function Bl(e,t,n,l){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=ad(e);let r=Qt(1);t&&(l?jt(l)&&(r=va(l)):r=va(e));const o=eC(i,n,l)?fg(i):Qt(0);let s=(a.left+o.x)/r.x,c=(a.top+o.y)/r.y,u=a.width/r.x,f=a.height/r.y;if(i){const d=ut(i),p=l&&jt(l)?ut(l):l;let g=d,x=Uu(g);for(;x&&l&&p!==g;){const E=va(x),v=x.getBoundingClientRect(),y=zt(x),b=v.left+(x.clientLeft+parseFloat(y.paddingLeft))*E.x,S=v.top+(x.clientTop+parseFloat(y.paddingTop))*E.y;s*=E.x,c*=E.y,u*=E.x,f*=E.y,s+=b,c+=S,g=ut(x),x=Uu(g)}}return Go({width:u,height:f,x:s,y:c})}function bs(e,t){const n=gs(e).scrollLeft;return t?t.left+n:Bl(Xt(e)).left+n}function dg(e,t){const n=e.getBoundingClientRect(),l=n.left+t.scrollLeft-bs(e,n),a=n.top+t.scrollTop;return{x:l,y:a}}function tC(e){let{elements:t,rect:n,offsetParent:l,strategy:a}=e;const i=a==="fixed",r=Xt(l),o=t?ys(t.floating):!1;if(l===r||o&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Qt(1);const u=Qt(0),f=En(l);if((f||!f&&!i)&&((ni(l)!=="body"||Sr(r))&&(s=gs(l)),f)){const p=Bl(l);c=va(l),u.x=p.x+l.clientLeft,u.y=p.y+l.clientTop}const d=r&&!f&&!i?dg(r,s):Qt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-s.scrollTop*c.y+u.y+d.y}}function nC(e){return Array.from(e.getClientRects())}function lC(e){const t=Xt(e),n=gs(e),l=e.ownerDocument.body,a=lt(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),i=lt(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let r=-n.scrollLeft+bs(e);const o=-n.scrollTop;return zt(l).direction==="rtl"&&(r+=lt(t.clientWidth,l.clientWidth)-a),{width:a,height:i,x:r,y:o}}const bm=25;function aC(e,t){const n=ut(e),l=Xt(e),a=n.visualViewport;let i=l.clientWidth,r=l.clientHeight,o=0,s=0;if(a){i=a.width,r=a.height;const u=ld();(!u||u&&t==="fixed")&&(o=a.offsetLeft,s=a.offsetTop)}const c=bs(l);if(c<=0){const u=l.ownerDocument,f=u.body,d=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(l.clientWidth-f.clientWidth-p);g<=bm&&(i-=g)}else c<=bm&&(i+=c);return{width:i,height:r,x:o,y:s}}function iC(e,t){const n=Bl(e,!0,t==="fixed"),l=n.top+e.clientTop,a=n.left+e.clientLeft,i=En(e)?va(e):Qt(1),r=e.clientWidth*i.x,o=e.clientHeight*i.y,s=a*i.x,c=l*i.y;return{width:r,height:o,x:s,y:c}}function xm(e,t,n){let l;if(t==="viewport")l=aC(e,n);else if(t==="document")l=lC(Xt(e));else if(jt(t))l=iC(t,n);else{const a=fg(e);l={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Go(l)}function hg(e,t){const n=sl(e);return n===t||!jt(n)||Ya(n)?!1:zt(n).position==="fixed"||hg(n,t)}function rC(e,t){const n=t.get(e);if(n)return n;let l=tr(e,[],!1).filter(o=>jt(o)&&ni(o)!=="body"),a=null;const i=zt(e).position==="fixed";let r=i?sl(e):e;for(;jt(r)&&!Ya(r);){const o=zt(r),s=nd(r);!s&&o.position==="fixed"&&(a=null),(i?!s&&!a:!s&&o.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Sr(r)&&!s&&hg(e,r))?l=l.filter(u=>u!==r):a=o,r=sl(r)}return t.set(e,l),l}function oC(e){let{element:t,boundary:n,rootBoundary:l,strategy:a}=e;const r=[...n==="clippingAncestors"?ys(t)?[]:rC(t,this._c):[].concat(n),l],o=xm(t,r[0],a);let s=o.top,c=o.right,u=o.bottom,f=o.left;for(let d=1;d<r.length;d++){const p=xm(t,r[d],a);s=lt(p.top,s),c=ol(p.right,c),u=ol(p.bottom,u),f=lt(p.left,f)}return{width:c-f,height:u-s,x:f,y:s}}function sC(e){const{width:t,height:n}=ug(e);return{width:t,height:n}}function cC(e,t,n){const l=En(t),a=Xt(t),i=n==="fixed",r=Bl(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const s=Qt(0);function c(){s.x=bs(a)}if(l||!l&&!i)if((ni(t)!=="body"||Sr(a))&&(o=gs(t)),l){const p=Bl(t,!0,i,t);s.x=p.x+t.clientLeft,s.y=p.y+t.clientTop}else a&&c();i&&!l&&a&&c();const u=a&&!l&&!i?dg(a,o):Qt(0),f=r.left+o.scrollLeft-s.x-u.x,d=r.top+o.scrollTop-s.y-u.y;return{x:f,y:d,width:r.width,height:r.height}}function yc(e){return zt(e).position==="static"}function Sm(e,t){if(!En(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xt(e)===n&&(n=n.ownerDocument.body),n}function mg(e,t){const n=ut(e);if(ys(e))return n;if(!En(e)){let a=sl(e);for(;a&&!Ya(a);){if(jt(a)&&!yc(a))return a;a=sl(a)}return n}let l=Sm(e,t);for(;l&&kE(l)&&yc(l);)l=Sm(l,t);return l&&Ya(l)&&yc(l)&&!nd(l)?n:l||WE(e)||n}const uC=async function(e){const t=this.getOffsetParent||mg,n=this.getDimensions,l=await n(e.floating);return{reference:cC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function fC(e){return zt(e).direction==="rtl"}const dC={convertOffsetParentRelativeRectToViewportRelativeRect:tC,getDocumentElement:Xt,getClippingRect:oC,getOffsetParent:mg,getElementRects:uC,getClientRects:nC,getDimensions:sC,getScale:va,isElement:jt,isRTL:fC};function pg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hC(e,t){let n=null,l;const a=Xt(e);function i(){var o;clearTimeout(l),(o=n)==null||o.disconnect(),n=null}function r(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(o||t(),!d||!p)return;const g=Xr(f),x=Xr(a.clientWidth-(u+d)),E=Xr(a.clientHeight-(f+p)),v=Xr(u),b={rootMargin:-g+"px "+-x+"px "+-E+"px "+-v+"px",threshold:lt(0,ol(1,s))||1};let S=!0;function T(R){const w=R[0].intersectionRatio;if(w!==s){if(!S)return r();w?r(!1,w):l=setTimeout(()=>{r(!1,1e-7)},1e3)}w===1&&!pg(c,e.getBoundingClientRect())&&r(),S=!1}try{n=new IntersectionObserver(T,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,b)}n.observe(e)}return r(!0),i}function mC(e,t,n,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=l,c=ad(e),u=a||i?[...c?tr(c):[],...t?tr(t):[]]:[];u.forEach(v=>{a&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=c&&o?hC(c,n):null;let d=-1,p=null;r&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),c&&!s&&p.observe(c),t&&p.observe(t));let g,x=s?Bl(e):null;s&&E();function E(){const v=Bl(e);x&&!pg(x,v)&&n(),x=v,g=requestAnimationFrame(E)}return n(),()=>{var v;u.forEach(y=>{a&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(g)}}const pC=XE,vC=ZE,yC=YE,gC=PE,bC=GE,Em=QE,xC=KE,SC=(e,t,n)=>{const l=new Map,a={platform:dC,...n},i={...a.platform,_c:l};return VE(e,t,{...a,platform:i})};var EC=typeof document<"u",CC=function(){},co=EC?m.useLayoutEffect:CC;function $o(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,l,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(l=n;l--!==0;)if(!$o(e[l],t[l]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(l=n;l--!==0;)if(!{}.hasOwnProperty.call(t,a[l]))return!1;for(l=n;l--!==0;){const i=a[l];if(!(i==="_owner"&&e.$$typeof)&&!$o(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cm(e,t){const n=vg(e);return Math.round(t*n)/n}function gc(e){const t=m.useRef(e);return co(()=>{t.current=e}),t}function wC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:a,elements:{reference:i,floating:r}={},transform:o=!0,whileElementsMounted:s,open:c}=e,[u,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=m.useState(l);$o(d,l)||p(l);const[g,x]=m.useState(null),[E,v]=m.useState(null),y=m.useCallback(_=>{_!==R.current&&(R.current=_,x(_))},[]),b=m.useCallback(_=>{_!==w.current&&(w.current=_,v(_))},[]),S=i||g,T=r||E,R=m.useRef(null),w=m.useRef(null),A=m.useRef(u),N=s!=null,z=gc(s),U=gc(a),H=gc(c),ee=m.useCallback(()=>{if(!R.current||!w.current)return;const _={placement:t,strategy:n,middleware:d};U.current&&(_.platform=U.current),SC(R.current,w.current,_).then(q=>{const J={...q,isPositioned:H.current!==!1};k.current&&!$o(A.current,J)&&(A.current=J,Wo.flushSync(()=>{f(J)}))})},[d,t,n,U,H]);co(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[c]);const k=m.useRef(!1);co(()=>(k.current=!0,()=>{k.current=!1}),[]),co(()=>{if(S&&(R.current=S),T&&(w.current=T),S&&T){if(z.current)return z.current(S,T,ee);ee()}},[S,T,ee,z,N]);const re=m.useMemo(()=>({reference:R,floating:w,setReference:y,setFloating:b}),[y,b]),j=m.useMemo(()=>({reference:S,floating:T}),[S,T]),D=m.useMemo(()=>{const _={position:n,left:0,top:0};if(!j.floating)return _;const q=Cm(j.floating,u.x),J=Cm(j.floating,u.y);return o?{..._,transform:"translate("+q+"px, "+J+"px)",...vg(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:J}},[n,o,j.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:ee,refs:re,elements:j,floatingStyles:D}),[u,ee,re,j,D])}const TC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:l,padding:a}=typeof e=="function"?e(n):e;return l&&t(l)?l.current!=null?Em({element:l.current,padding:a}).fn(n):{}:l?Em({element:l,padding:a}).fn(n):{}}}},AC=(e,t)=>{const n=pC(e);return{name:n.name,fn:n.fn,options:[e,t]}},OC=(e,t)=>{const n=vC(e);return{name:n.name,fn:n.fn,options:[e,t]}},RC=(e,t)=>({fn:xC(e).fn,options:[e,t]}),NC=(e,t)=>{const n=yC(e);return{name:n.name,fn:n.fn,options:[e,t]}},jC=(e,t)=>{const n=gC(e);return{name:n.name,fn:n.fn,options:[e,t]}},zC=(e,t)=>{const n=bC(e);return{name:n.name,fn:n.fn,options:[e,t]}},_C=(e,t)=>{const n=TC(e);return{name:n.name,fn:n.fn,options:[e,t]}};function MC(e){const t=DC(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(UC);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function DC(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=BC(a),o=LC(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HC=Symbol("radix.slottable");function UC(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HC}function LC(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function BC(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],VC=qC.reduce((e,t)=>{const n=MC(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),QC="Arrow",yg=m.forwardRef((e,t)=>{const{children:n,width:l=10,height:a=5,...i}=e;return h.jsx(VC.svg,{...i,ref:t,width:l,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});yg.displayName=QC;var YC=yg;function GC(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,$C(a,...t)]}function $C(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function XC(e){const t=ZC(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(PC);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function ZC(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=FC(a),o=kC(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KC=Symbol("radix.slottable");function PC(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KC}function kC(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function FC(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var JC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gg=JC.reduce((e,t)=>{const n=XC(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),id="Popper",[bg,xs]=GC(id),[WC,xg]=bg(id),Sg=e=>{const{__scopePopper:t,children:n}=e,[l,a]=m.useState(null);return h.jsx(WC,{scope:t,anchor:l,onAnchorChange:a,children:n})};Sg.displayName=id;var Eg="PopperAnchor",Cg=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:l,...a}=e,i=xg(Eg,n),r=m.useRef(null),o=Be(t,r),s=m.useRef(null);return m.useEffect(()=>{const c=s.current;s.current=(l==null?void 0:l.current)||r.current,c!==s.current&&i.onAnchorChange(s.current)}),l?null:h.jsx(gg.div,{...a,ref:o})});Cg.displayName=Eg;var rd="PopperContent",[IC,ew]=bg(rd),wg=m.forwardRef((e,t)=>{var yd,gd,bd,xd,Sd,Ed;const{__scopePopper:n,side:l="bottom",sideOffset:a=0,align:i="center",alignOffset:r=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...x}=e,E=xg(rd,n),[v,y]=m.useState(null),b=Be(t,ii=>y(ii)),[S,T]=m.useState(null),R=RE(S),w=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,N=l+(i!=="center"?"-"+i:""),z=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},U=Array.isArray(c)?c:[c],H=U.length>0,ee={padding:z,boundary:U.filter(nw),altBoundary:H},{refs:k,floatingStyles:re,placement:j,isPositioned:D,middlewareData:_}=wC({strategy:"fixed",placement:N,whileElementsMounted:(...ii)=>mC(...ii,{animationFrame:p==="always"}),elements:{reference:E.anchor},middleware:[AC({mainAxis:a+A,alignmentAxis:r}),s&&OC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?RC():void 0,...ee}),s&&NC({...ee}),jC({...ee,apply:({elements:ii,rects:Cd,availableWidth:V0,availableHeight:Q0})=>{const{width:Y0,height:G0}=Cd.reference,Tr=ii.floating.style;Tr.setProperty("--radix-popper-available-width",`${V0}px`),Tr.setProperty("--radix-popper-available-height",`${Q0}px`),Tr.setProperty("--radix-popper-anchor-width",`${Y0}px`),Tr.setProperty("--radix-popper-anchor-height",`${G0}px`)}}),S&&_C({element:S,padding:o}),lw({arrowWidth:w,arrowHeight:A}),d&&zC({strategy:"referenceHidden",...ee})]}),[q,J]=Og(j),Te=Et(g);gn(()=>{D&&(Te==null||Te())},[D,Te]);const $l=(yd=_.arrow)==null?void 0:yd.x,ai=(gd=_.arrow)==null?void 0:gd.y,Kt=((bd=_.arrow)==null?void 0:bd.centerOffset)!==0,[Xl,q0]=m.useState();return gn(()=>{v&&q0(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:D?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xl,"--radix-popper-transform-origin":[(xd=_.transformOrigin)==null?void 0:xd.x,(Sd=_.transformOrigin)==null?void 0:Sd.y].join(" "),...((Ed=_.hide)==null?void 0:Ed.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(IC,{scope:n,placedSide:q,onArrowChange:T,arrowX:$l,arrowY:ai,shouldHideArrow:Kt,children:h.jsx(gg.div,{"data-side":q,"data-align":J,...x,ref:b,style:{...x.style,animation:D?void 0:"none"}})})})});wg.displayName=rd;var Tg="PopperArrow",tw={top:"bottom",right:"left",bottom:"top",left:"right"},Ag=m.forwardRef(function(t,n){const{__scopePopper:l,...a}=t,i=ew(Tg,l),r=tw[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(YC,{...a,ref:n,style:{...a.style,display:"block"}})})});Ag.displayName=Tg;function nw(e){return e!==null}var lw=e=>({name:"transformOrigin",options:e,fn(t){var E,v,y;const{placement:n,rects:l,middlewareData:a}=t,r=((E=a.arrow)==null?void 0:E.centerOffset)!==0,o=r?0:e.arrowWidth,s=r?0:e.arrowHeight,[c,u]=Og(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(((v=a.arrow)==null?void 0:v.x)??0)+o/2,p=(((y=a.arrow)==null?void 0:y.y)??0)+s/2;let g="",x="";return c==="bottom"?(g=r?f:`${d}px`,x=`${-s}px`):c==="top"?(g=r?f:`${d}px`,x=`${l.floating.height+s}px`):c==="right"?(g=`${-s}px`,x=r?f:`${p}px`):c==="left"&&(g=`${l.floating.width+s}px`,x=r?f:`${p}px`),{data:{x:g,y:x}}}});function Og(e){const[t,n="center"]=e.split("-");return[t,n]}var Rg=Sg,Ng=Cg,jg=wg,zg=Ag;function aw(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,iw(a,...t)]}function iw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function rw(e){const t=ow(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(cw);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function ow(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=fw(a),o=uw(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sw=Symbol("radix.slottable");function cw(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sw}function uw(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function fw(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_g=dw.reduce((e,t)=>{const n=rw(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),bc="rovingFocusGroup.onEntryFocus",hw={bubbles:!1,cancelable:!0},Er="RovingFocusGroup",[Lu,Mg,mw]=K1(Er),[pw,Dg]=aw(Er,[mw]),[vw,yw]=pw(Er),Hg=m.forwardRef((e,t)=>h.jsx(Lu.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Lu.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(gw,{...e,ref:t})})}));Hg.displayName=Er;var gw=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:l,loop:a=!1,dir:i,currentTabStopId:r,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,d=m.useRef(null),p=Be(t,d),g=Ff(i),[x,E]=ps({prop:r,defaultProp:o??null,onChange:s,caller:Er}),[v,y]=m.useState(!1),b=Et(c),S=Mg(n),T=m.useRef(!1),[R,w]=m.useState(0);return m.useEffect(()=>{const A=d.current;if(A)return A.addEventListener(bc,b),()=>A.removeEventListener(bc,b)},[b]),h.jsx(vw,{scope:n,orientation:l,dir:g,loop:a,currentTabStopId:x,onItemFocus:m.useCallback(A=>E(A),[E]),onItemShiftTab:m.useCallback(()=>y(!0),[]),onFocusableItemAdd:m.useCallback(()=>w(A=>A+1),[]),onFocusableItemRemove:m.useCallback(()=>w(A=>A-1),[]),children:h.jsx(_g.div,{tabIndex:v||R===0?-1:0,"data-orientation":l,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{T.current=!0}),onFocus:F(e.onFocus,A=>{const N=!T.current;if(A.target===A.currentTarget&&N&&!v){const z=new CustomEvent(bc,hw);if(A.currentTarget.dispatchEvent(z),!z.defaultPrevented){const U=S().filter(j=>j.focusable),H=U.find(j=>j.active),ee=U.find(j=>j.id===x),re=[H,ee,...U].filter(Boolean).map(j=>j.ref.current);Bg(re,u)}}T.current=!1}),onBlur:F(e.onBlur,()=>y(!1))})})}),Ug="RovingFocusGroupItem",Lg=m.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:l=!0,active:a=!1,tabStopId:i,children:r,...o}=e,s=kf(),c=i||s,u=yw(Ug,n),f=u.currentTabStopId===c,d=Mg(n),{onFocusableItemAdd:p,onFocusableItemRemove:g,currentTabStopId:x}=u;return m.useEffect(()=>{if(l)return p(),()=>g()},[l,p,g]),h.jsx(Lu.ItemSlot,{scope:n,id:c,focusable:l,active:a,children:h.jsx(_g.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:F(e.onMouseDown,E=>{l?u.onItemFocus(c):E.preventDefault()}),onFocus:F(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:F(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){u.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const v=Sw(E,u.orientation,u.dir);if(v!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let b=d().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")b.reverse();else if(v==="prev"||v==="next"){v==="prev"&&b.reverse();const S=b.indexOf(E.currentTarget);b=u.loop?Ew(b,S+1):b.slice(S+1)}setTimeout(()=>Bg(b))}}),children:typeof r=="function"?r({isCurrentTabStop:f,hasTabStop:x!=null}):r})})});Lg.displayName=Ug;var bw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Sw(e,t,n){const l=xw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return bw[l]}function Bg(e,t=!1){const n=document.activeElement;for(const l of e)if(l===n||(l.focus({preventScroll:t}),document.activeElement!==n))return}function Ew(e,t){return e.map((n,l)=>e[(t+l)%e.length])}var Cw=Hg,ww=Lg;function Tw(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,Aw(a,...t)]}function Aw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Ow(e){const t=Rw(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(jw);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function Rw(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=_w(a),o=zw(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nw=Symbol("radix.slottable");function jw(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nw}function zw(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function _w(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Mw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dw=Mw.reduce((e,t)=>{const n=Ow(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),xc,Ss="HoverCard",[qg]=Tw(Ss,[xs]),Es=xs(),[Hw,Cs]=qg(Ss),Vg=e=>{const{__scopeHoverCard:t,children:n,open:l,defaultOpen:a,onOpenChange:i,openDelay:r=700,closeDelay:o=300}=e,s=Es(t),c=m.useRef(0),u=m.useRef(0),f=m.useRef(!1),d=m.useRef(!1),[p,g]=ps({prop:l,defaultProp:a??!1,onChange:i,caller:Ss}),x=m.useCallback(()=>{clearTimeout(u.current),c.current=window.setTimeout(()=>g(!0),r)},[r,g]),E=m.useCallback(()=>{clearTimeout(c.current),!f.current&&!d.current&&(u.current=window.setTimeout(()=>g(!1),o))},[o,g]),v=m.useCallback(()=>g(!1),[g]);return m.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(u.current)},[]),h.jsx(Hw,{scope:t,open:p,onOpenChange:g,onOpen:x,onClose:E,onDismiss:v,hasSelectionRef:f,isPointerDownOnContentRef:d,children:h.jsx(Rg,{...s,children:n})})};Vg.displayName=Ss;var Qg="HoverCardTrigger",Yg=m.forwardRef((e,t)=>{const{__scopeHoverCard:n,...l}=e,a=Cs(Qg,n),i=Es(n);return h.jsx(Ng,{asChild:!0,...i,children:h.jsx(Dw.a,{"data-state":a.open?"open":"closed",...l,ref:t,onPointerEnter:F(e.onPointerEnter,Zo(a.onOpen)),onPointerLeave:F(e.onPointerLeave,Zo(a.onClose)),onFocus:F(e.onFocus,a.onOpen),onBlur:F(e.onBlur,a.onClose),onTouchStart:F(e.onTouchStart,r=>r.preventDefault())})})});Yg.displayName=Qg;var od="HoverCardPortal",[Uw,Lw]=qg(od,{forceMount:void 0}),Gg=e=>{const{__scopeHoverCard:t,forceMount:n,children:l,container:a}=e,i=Cs(od,t);return h.jsx(Uw,{scope:t,forceMount:n,children:h.jsx($t,{present:n||i.open,children:h.jsx(Wf,{asChild:!0,container:a,children:l})})})};Gg.displayName=od;var Xo="HoverCardContent",$g=m.forwardRef((e,t)=>{const n=Lw(Xo,e.__scopeHoverCard),{forceMount:l=n.forceMount,...a}=e,i=Cs(Xo,e.__scopeHoverCard);return h.jsx($t,{present:l||i.open,children:h.jsx(Bw,{"data-state":i.open?"open":"closed",...a,onPointerEnter:F(e.onPointerEnter,Zo(i.onOpen)),onPointerLeave:F(e.onPointerLeave,Zo(i.onClose)),ref:t})})});$g.displayName=Xo;var Bw=m.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:r,...o}=e,s=Cs(Xo,n),c=Es(n),u=m.useRef(null),f=Be(t,u),[d,p]=m.useState(!1);return m.useEffect(()=>{if(d){const g=document.body;return xc=g.style.userSelect||g.style.webkitUserSelect,g.style.userSelect="none",g.style.webkitUserSelect="none",()=>{g.style.userSelect=xc,g.style.webkitUserSelect=xc}}},[d]),m.useEffect(()=>{if(u.current){const g=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var E;((E=document.getSelection())==null?void 0:E.toString())!==""&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",g),()=>{document.removeEventListener("pointerup",g),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),m.useEffect(()=>{u.current&&Qw(u.current).forEach(x=>x.setAttribute("tabindex","-1"))}),h.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:r,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:F(i,g=>{g.preventDefault()}),onDismiss:s.onDismiss,children:h.jsx(jg,{...c,...o,onPointerDown:F(o.onPointerDown,g=>{g.currentTarget.contains(g.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:f,style:{...o.style,userSelect:d?"text":void 0,WebkitUserSelect:d?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),qw="HoverCardArrow",Vw=m.forwardRef((e,t)=>{const{__scopeHoverCard:n,...l}=e,a=Es(n);return h.jsx(zg,{...a,...l,ref:t})});Vw.displayName=qw;function Zo(e){return t=>t.pointerType==="touch"?void 0:e()}function Qw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var Yw=Vg,Gw=Yg,$w=Gg,Xw=$g;function Zw(e,[t,n]){return Math.min(n,Math.max(t,e))}function Kw(e){const t=Pw(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(Fw);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var Xg=Kw("Slot");function Pw(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=Ww(a),o=Jw(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kw=Symbol("radix.slottable");function Fw(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kw}function Jw(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function Ww(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Iw(e){const t=e2(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(n2);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function e2(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=a2(a),o=l2(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t2=Symbol("radix.slottable");function n2(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t2}function l2(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function a2(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var i2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Cr=i2.reduce((e,t)=>{const n=Iw(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function r2(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,o2(a,...t)]}function o2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function s2(e,t){return m.useReducer((n,l)=>t[n][l]??n,e)}var sd="ScrollArea",[Zg]=r2(sd),[c2,At]=Zg(sd),Kg=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:l="hover",dir:a,scrollHideDelay:i=600,...r}=e,[o,s]=m.useState(null),[c,u]=m.useState(null),[f,d]=m.useState(null),[p,g]=m.useState(null),[x,E]=m.useState(null),[v,y]=m.useState(0),[b,S]=m.useState(0),[T,R]=m.useState(!1),[w,A]=m.useState(!1),N=Be(t,U=>s(U)),z=Ff(a);return h.jsx(c2,{scope:n,type:l,dir:z,scrollHideDelay:i,scrollArea:o,viewport:c,onViewportChange:u,content:f,onContentChange:d,scrollbarX:p,onScrollbarXChange:g,scrollbarXEnabled:T,onScrollbarXEnabledChange:R,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:w,onScrollbarYEnabledChange:A,onCornerWidthChange:y,onCornerHeightChange:S,children:h.jsx(Cr.div,{dir:z,...r,ref:N,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})});Kg.displayName=sd;var Pg="ScrollAreaViewport",kg=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:l,nonce:a,...i}=e,r=At(Pg,n),o=m.useRef(null),s=Be(t,o,r.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),h.jsx(Cr.div,{"data-radix-scroll-area-viewport":"",...i,ref:s,style:{overflowX:r.scrollbarXEnabled?"scroll":"hidden",overflowY:r.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.jsx("div",{ref:r.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});kg.displayName=Pg;var Zt="ScrollAreaScrollbar",Fg=m.forwardRef((e,t)=>{const{forceMount:n,...l}=e,a=At(Zt,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:r}=a,o=e.orientation==="horizontal";return m.useEffect(()=>(o?i(!0):r(!0),()=>{o?i(!1):r(!1)}),[o,i,r]),a.type==="hover"?h.jsx(u2,{...l,ref:t,forceMount:n}):a.type==="scroll"?h.jsx(f2,{...l,ref:t,forceMount:n}):a.type==="auto"?h.jsx(Jg,{...l,ref:t,forceMount:n}):a.type==="always"?h.jsx(cd,{...l,ref:t}):null});Fg.displayName=Zt;var u2=m.forwardRef((e,t)=>{const{forceMount:n,...l}=e,a=At(Zt,e.__scopeScrollArea),[i,r]=m.useState(!1);return m.useEffect(()=>{const o=a.scrollArea;let s=0;if(o){const c=()=>{window.clearTimeout(s),r(!0)},u=()=>{s=window.setTimeout(()=>r(!1),a.scrollHideDelay)};return o.addEventListener("pointerenter",c),o.addEventListener("pointerleave",u),()=>{window.clearTimeout(s),o.removeEventListener("pointerenter",c),o.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),h.jsx($t,{present:n||i,children:h.jsx(Jg,{"data-state":i?"visible":"hidden",...l,ref:t})})}),f2=m.forwardRef((e,t)=>{const{forceMount:n,...l}=e,a=At(Zt,e.__scopeScrollArea),i=e.orientation==="horizontal",r=Ts(()=>s("SCROLL_END"),100),[o,s]=s2("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 m.useEffect(()=>{if(o==="idle"){const c=window.setTimeout(()=>s("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(c)}},[o,a.scrollHideDelay,s]),m.useEffect(()=>{const c=a.viewport,u=i?"scrollLeft":"scrollTop";if(c){let f=c[u];const d=()=>{const p=c[u];f!==p&&(s("SCROLL"),r()),f=p};return c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[a.viewport,i,s,r]),h.jsx($t,{present:n||o!=="hidden",children:h.jsx(cd,{"data-state":o==="hidden"?"hidden":"visible",...l,ref:t,onPointerEnter:F(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:F(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),Jg=m.forwardRef((e,t)=>{const n=At(Zt,e.__scopeScrollArea),{forceMount:l,...a}=e,[i,r]=m.useState(!1),o=e.orientation==="horizontal",s=Ts(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;r(o?c:u)}},10);return Ga(n.viewport,s),Ga(n.content,s),h.jsx($t,{present:l||i,children:h.jsx(cd,{"data-state":i?"visible":"hidden",...a,ref:t})})}),cd=m.forwardRef((e,t)=>{const{orientation:n="vertical",...l}=e,a=At(Zt,e.__scopeScrollArea),i=m.useRef(null),r=m.useRef(0),[o,s]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=n0(o.viewport,o.content),u={...l,sizes:o,onSizesChange:s,hasThumb:c>0&&c<1,onThumbChange:d=>i.current=d,onThumbPointerUp:()=>r.current=0,onThumbPointerDown:d=>r.current=d};function f(d,p){return y2(d,r.current,o,p)}return n==="horizontal"?h.jsx(d2,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const d=a.viewport.scrollLeft,p=wm(d,o,a.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:d=>{a.viewport&&(a.viewport.scrollLeft=d)},onDragScroll:d=>{a.viewport&&(a.viewport.scrollLeft=f(d,a.dir))}}):n==="vertical"?h.jsx(h2,{...u,ref:t,onThumbPositionChange:()=>{if(a.viewport&&i.current){const d=a.viewport.scrollTop,p=wm(d,o);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:d=>{a.viewport&&(a.viewport.scrollTop=d)},onDragScroll:d=>{a.viewport&&(a.viewport.scrollTop=f(d))}}):null}),d2=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:l,...a}=e,i=At(Zt,e.__scopeScrollArea),[r,o]=m.useState(),s=m.useRef(null),c=Be(t,s,i.onScrollbarXChange);return m.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),h.jsx(Ig,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ws(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,f)=>{if(i.viewport){const d=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(d),a0(d,f)&&u.preventDefault()}},onResize:()=>{s.current&&i.viewport&&r&&l({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Po(r.paddingLeft),paddingEnd:Po(r.paddingRight)}})}})}),h2=m.forwardRef((e,t)=>{const{sizes:n,onSizesChange:l,...a}=e,i=At(Zt,e.__scopeScrollArea),[r,o]=m.useState(),s=m.useRef(null),c=Be(t,s,i.onScrollbarYChange);return m.useEffect(()=>{s.current&&o(getComputedStyle(s.current))},[s]),h.jsx(Ig,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ws(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,f)=>{if(i.viewport){const d=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(d),a0(d,f)&&u.preventDefault()}},onResize:()=>{s.current&&i.viewport&&r&&l({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Po(r.paddingTop),paddingEnd:Po(r.paddingBottom)}})}})}),[m2,Wg]=Zg(Zt),Ig=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:l,hasThumb:a,onThumbChange:i,onThumbPointerUp:r,onThumbPointerDown:o,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:f,...d}=e,p=At(Zt,n),[g,x]=m.useState(null),E=Be(t,N=>x(N)),v=m.useRef(null),y=m.useRef(""),b=p.viewport,S=l.content-l.viewport,T=Et(u),R=Et(s),w=Ts(f,10);function A(N){if(v.current){const z=N.clientX-v.current.left,U=N.clientY-v.current.top;c({x:z,y:U})}}return m.useEffect(()=>{const N=z=>{const U=z.target;(g==null?void 0:g.contains(U))&&T(z,S)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[b,g,S,T]),m.useEffect(R,[l,R]),Ga(g,w),Ga(p.content,w),h.jsx(m2,{scope:n,scrollbar:g,hasThumb:a,onThumbChange:Et(i),onThumbPointerUp:Et(r),onThumbPositionChange:R,onThumbPointerDown:Et(o),children:h.jsx(Cr.div,{...d,ref:E,style:{position:"absolute",...d.style},onPointerDown:F(e.onPointerDown,N=>{N.button===0&&(N.target.setPointerCapture(N.pointerId),v.current=g.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),A(N))}),onPointerMove:F(e.onPointerMove,A),onPointerUp:F(e.onPointerUp,N=>{const z=N.target;z.hasPointerCapture(N.pointerId)&&z.releasePointerCapture(N.pointerId),document.body.style.webkitUserSelect=y.current,p.viewport&&(p.viewport.style.scrollBehavior=""),v.current=null})})})}),Ko="ScrollAreaThumb",e0=m.forwardRef((e,t)=>{const{forceMount:n,...l}=e,a=Wg(Ko,e.__scopeScrollArea);return h.jsx($t,{present:n||a.hasThumb,children:h.jsx(p2,{ref:t,...l})})}),p2=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:l,...a}=e,i=At(Ko,n),r=Wg(Ko,n),{onThumbPositionChange:o}=r,s=Be(t,f=>r.onThumbChange(f)),c=m.useRef(void 0),u=Ts(()=>{c.current&&(c.current(),c.current=void 0)},100);return m.useEffect(()=>{const f=i.viewport;if(f){const d=()=>{if(u(),!c.current){const p=g2(f,o);c.current=p,o()}};return o(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[i.viewport,u,o]),h.jsx(Cr.div,{"data-state":r.hasThumb?"visible":"hidden",...a,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:F(e.onPointerDownCapture,f=>{const p=f.target.getBoundingClientRect(),g=f.clientX-p.left,x=f.clientY-p.top;r.onThumbPointerDown({x:g,y:x})}),onPointerUp:F(e.onPointerUp,r.onThumbPointerUp)})});e0.displayName=Ko;var ud="ScrollAreaCorner",t0=m.forwardRef((e,t)=>{const n=At(ud,e.__scopeScrollArea),l=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&l?h.jsx(v2,{...e,ref:t}):null});t0.displayName=ud;var v2=m.forwardRef((e,t)=>{const{__scopeScrollArea:n,...l}=e,a=At(ud,n),[i,r]=m.useState(0),[o,s]=m.useState(0),c=!!(i&&o);return Ga(a.scrollbarX,()=>{var f;const u=((f=a.scrollbarX)==null?void 0:f.offsetHeight)||0;a.onCornerHeightChange(u),s(u)}),Ga(a.scrollbarY,()=>{var f;const u=((f=a.scrollbarY)==null?void 0:f.offsetWidth)||0;a.onCornerWidthChange(u),r(u)}),c?h.jsx(Cr.div,{...l,ref:t,style:{width:i,height:o,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Po(e){return e?parseInt(e,10):0}function n0(e,t){const n=e/t;return isNaN(n)?0:n}function ws(e){const t=n0(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,l=(e.scrollbar.size-n)*t;return Math.max(l,18)}function y2(e,t,n,l="ltr"){const a=ws(n),i=a/2,r=t||i,o=a-r,s=n.scrollbar.paddingStart+r,c=n.scrollbar.size-n.scrollbar.paddingEnd-o,u=n.content-n.viewport,f=l==="ltr"?[0,u]:[u*-1,0];return l0([s,c],f)(e)}function wm(e,t,n="ltr"){const l=ws(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,r=t.content-t.viewport,o=i-l,s=n==="ltr"?[0,r]:[r*-1,0],c=Zw(e,s);return l0([0,r],[0,o])(c)}function l0(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const l=(t[1]-t[0])/(e[1]-e[0]);return t[0]+l*(n-e[0])}}function a0(e,t){return e>0&&e<t}var g2=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},l=0;return function a(){const i={left:e.scrollLeft,top:e.scrollTop},r=n.left!==i.left,o=n.top!==i.top;(r||o)&&t(),n=i,l=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(l)};function Ts(e,t){const n=Et(e),l=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(l.current),[]),m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(n,t)},[n,t])}function Ga(e,t){const n=Et(t);gn(()=>{let l=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(l),a.unobserve(e)}}},[e,n])}var b2=Kg,x2=kg,S2=t0;function E2(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,C2(a,...t)]}function C2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function w2(e){const t=T2(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(O2);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function T2(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=N2(a),o=R2(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A2=Symbol("radix.slottable");function O2(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A2}function R2(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function N2(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var j2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],As=j2.reduce((e,t)=>{const n=w2(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),Os="Tabs",[z2]=E2(Os,[Dg]),i0=Dg(),[_2,fd]=z2(Os),r0=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:l,onValueChange:a,defaultValue:i,orientation:r="horizontal",dir:o,activationMode:s="automatic",...c}=e,u=Ff(o),[f,d]=ps({prop:l,onChange:a,defaultProp:i??"",caller:Os});return h.jsx(_2,{scope:n,baseId:kf(),value:f,onValueChange:d,orientation:r,dir:u,activationMode:s,children:h.jsx(As.div,{dir:u,"data-orientation":r,...c,ref:t})})});r0.displayName=Os;var o0="TabsList",s0=m.forwardRef((e,t)=>{const{__scopeTabs:n,loop:l=!0,...a}=e,i=fd(o0,n),r=i0(n);return h.jsx(Cw,{asChild:!0,...r,orientation:i.orientation,dir:i.dir,loop:l,children:h.jsx(As.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});s0.displayName=o0;var c0="TabsTrigger",u0=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:l,disabled:a=!1,...i}=e,r=fd(c0,n),o=i0(n),s=h0(r.baseId,l),c=m0(r.baseId,l),u=l===r.value;return h.jsx(ww,{asChild:!0,...o,focusable:!a,active:u,children:h.jsx(As.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:s,...i,ref:t,onMouseDown:F(e.onMouseDown,f=>{!a&&f.button===0&&f.ctrlKey===!1?r.onValueChange(l):f.preventDefault()}),onKeyDown:F(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&r.onValueChange(l)}),onFocus:F(e.onFocus,()=>{const f=r.activationMode!=="manual";!u&&!a&&f&&r.onValueChange(l)})})})});u0.displayName=c0;var f0="TabsContent",d0=m.forwardRef((e,t)=>{const{__scopeTabs:n,value:l,forceMount:a,children:i,...r}=e,o=fd(f0,n),s=h0(o.baseId,l),c=m0(o.baseId,l),u=l===o.value,f=m.useRef(u);return m.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),h.jsx($t,{present:a||u,children:({present:d})=>h.jsx(As.div,{"data-state":u?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":s,hidden:!d,id:c,tabIndex:0,...r,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});d0.displayName=f0;function h0(e,t){return`${e}-trigger-${t}`}function m0(e,t){return`${e}-content-${t}`}var M2=r0,D2=s0,H2=u0,U2=d0;function L2(e,t=[]){let n=[];function l(i,r){const o=m.createContext(r),s=n.length;n=[...n,r];const c=f=>{var v;const{scope:d,children:p,...g}=f,x=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,E=m.useMemo(()=>g,Object.values(g));return h.jsx(x.Provider,{value:E,children:p})};c.displayName=i+"Provider";function u(f,d){var x;const p=((x=d==null?void 0:d[e])==null?void 0:x[s])||o,g=m.useContext(p);if(g)return g;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(r=>m.createContext(r));return function(o){const s=(o==null?void 0:o[e])||i;return m.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return a.scopeName=e,[l,B2(a,...t)]}function B2(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const l=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const r=l.reduce((o,{useScope:s,scopeName:c})=>{const f=s(i)[`__scope${c}`];return{...o,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function q2(e){const t=V2(e),n=m.forwardRef((l,a)=>{const{children:i,...r}=l,o=m.Children.toArray(i),s=o.find(Y2);if(s){const c=s.props.children,u=o.map(f=>f===s?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return h.jsx(t,{...r,ref:a,children:m.isValidElement(c)?m.cloneElement(c,void 0,u):null})}return h.jsx(t,{...r,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function V2(e){const t=m.forwardRef((n,l)=>{const{children:a,...i}=n;if(m.isValidElement(a)){const r=$2(a),o=G2(i,a.props);return a.type!==m.Fragment&&(o.ref=l?ht(l,r):r),m.cloneElement(a,o)}return m.Children.count(a)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p0=Symbol("radix.slottable");function Q2(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=p0,t}function Y2(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p0}function G2(e,t){const n={...t};for(const l in t){const a=e[l],i=t[l];/^on[A-Z]/.test(l)?a&&i?n[l]=(...o)=>{const s=i(...o);return a(...o),s}:a&&(n[l]=a):l==="style"?n[l]={...a,...i}:l==="className"&&(n[l]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function $2(e){var l,a;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var X2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z2=X2.reduce((e,t)=>{const n=q2(`Primitive.${t}`),l=m.forwardRef((a,i)=>{const{asChild:r,...o}=a,s=r?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...o,ref:i})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),[Rs]=L2("Tooltip",[xs]),Ns=xs(),v0="TooltipProvider",K2=700,Bu="tooltip.open",[P2,dd]=Rs(v0),y0=e=>{const{__scopeTooltip:t,delayDuration:n=K2,skipDelayDuration:l=300,disableHoverableContent:a=!1,children:i}=e,r=m.useRef(!0),o=m.useRef(!1),s=m.useRef(0);return m.useEffect(()=>{const c=s.current;return()=>window.clearTimeout(c)},[]),h.jsx(P2,{scope:t,isOpenDelayedRef:r,delayDuration:n,onOpen:m.useCallback(()=>{window.clearTimeout(s.current),r.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>r.current=!0,l)},[l]),isPointerInTransitRef:o,onPointerInTransitChange:m.useCallback(c=>{o.current=c},[]),disableHoverableContent:a,children:i})};y0.displayName=v0;var nr="Tooltip",[k2,wr]=Rs(nr),g0=e=>{const{__scopeTooltip:t,children:n,open:l,defaultOpen:a,onOpenChange:i,disableHoverableContent:r,delayDuration:o}=e,s=dd(nr,e.__scopeTooltip),c=Ns(t),[u,f]=m.useState(null),d=kf(),p=m.useRef(0),g=r??s.disableHoverableContent,x=o??s.delayDuration,E=m.useRef(!1),[v,y]=ps({prop:l,defaultProp:a??!1,onChange:w=>{w?(s.onOpen(),document.dispatchEvent(new CustomEvent(Bu))):s.onClose(),i==null||i(w)},caller:nr}),b=m.useMemo(()=>v?E.current?"delayed-open":"instant-open":"closed",[v]),S=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E.current=!1,y(!0)},[y]),T=m.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),R=m.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{E.current=!0,y(!0),p.current=0},x)},[x,y]);return m.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(Rg,{...c,children:h.jsx(k2,{scope:t,contentId:d,open:v,stateAttribute:b,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{s.isOpenDelayedRef.current?R():S()},[s.isOpenDelayedRef,R,S]),onTriggerLeave:m.useCallback(()=>{g?T():(window.clearTimeout(p.current),p.current=0)},[T,g]),onOpen:S,onClose:T,disableHoverableContent:g,children:n})})};g0.displayName=nr;var qu="TooltipTrigger",b0=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...l}=e,a=wr(qu,n),i=dd(qu,n),r=Ns(n),o=m.useRef(null),s=Be(t,o,a.onTriggerChange),c=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>c.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(Ng,{asChild:!0,...r,children:h.jsx(Z2.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:s,onPointerMove:F(e.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:F(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:F(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:F(e.onBlur,a.onClose),onClick:F(e.onClick,a.onClose)})})});b0.displayName=qu;var hd="TooltipPortal",[F2,J2]=Rs(hd,{forceMount:void 0}),x0=e=>{const{__scopeTooltip:t,forceMount:n,children:l,container:a}=e,i=wr(hd,t);return h.jsx(F2,{scope:t,forceMount:n,children:h.jsx($t,{present:n||i.open,children:h.jsx(Wf,{asChild:!0,container:a,children:l})})})};x0.displayName=hd;var $a="TooltipContent",S0=m.forwardRef((e,t)=>{const n=J2($a,e.__scopeTooltip),{forceMount:l=n.forceMount,side:a="top",...i}=e,r=wr($a,e.__scopeTooltip);return h.jsx($t,{present:l||r.open,children:r.disableHoverableContent?h.jsx(E0,{side:a,...i,ref:t}):h.jsx(W2,{side:a,...i,ref:t})})}),W2=m.forwardRef((e,t)=>{const n=wr($a,e.__scopeTooltip),l=dd($a,e.__scopeTooltip),a=m.useRef(null),i=Be(t,a),[r,o]=m.useState(null),{trigger:s,onClose:c}=n,u=a.current,{onPointerInTransitChange:f}=l,d=m.useCallback(()=>{o(null),f(!1)},[f]),p=m.useCallback((g,x)=>{const E=g.currentTarget,v={x:g.clientX,y:g.clientY},y=nT(v,E.getBoundingClientRect()),b=lT(v,y),S=aT(x.getBoundingClientRect()),T=rT([...b,...S]);o(T),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(s&&u){const g=E=>p(E,u),x=E=>p(E,s);return s.addEventListener("pointerleave",g),u.addEventListener("pointerleave",x),()=>{s.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",x)}}},[s,u,p,d]),m.useEffect(()=>{if(r){const g=x=>{const E=x.target,v={x:x.clientX,y:x.clientY},y=(s==null?void 0:s.contains(E))||(u==null?void 0:u.contains(E)),b=!iT(v,r);y?d():b&&(d(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,u,r,c,d]),h.jsx(E0,{...e,ref:i})}),[I2,eT]=Rs(nr,{isInside:!1}),tT=Q2("TooltipContent"),E0=m.forwardRef((e,t)=>{const{__scopeTooltip:n,children:l,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:r,...o}=e,s=wr($a,n),c=Ns(n),{onClose:u}=s;return m.useEffect(()=>(document.addEventListener(Bu,u),()=>document.removeEventListener(Bu,u)),[u]),m.useEffect(()=>{if(s.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(s.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[s.trigger,u]),h.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:h.jsxs(jg,{"data-state":s.stateAttribute,...c,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(tT,{children:l}),h.jsx(I2,{scope:n,isInside:!0,children:h.jsx(q1,{id:s.contentId,role:"tooltip",children:a||l})})]})})});S0.displayName=$a;var C0="TooltipArrow",w0=m.forwardRef((e,t)=>{const{__scopeTooltip:n,...l}=e,a=Ns(n);return eT(C0,n).isInside?null:h.jsx(zg,{...a,...l,ref:t})});w0.displayName=C0;function nT(e,t){const n=Math.abs(t.top-e.y),l=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,l,a,i)){case i:return"left";case a:return"right";case n:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function lT(e,t,n=5){const l=[];switch(t){case"top":l.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":l.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":l.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":l.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return l}function aT(e){const{top:t,right:n,bottom:l,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:l},{x:a,y:l}]}function iT(e,t){const{x:n,y:l}=e;let a=!1;for(let i=0,r=t.length-1;i<t.length;r=i++){const o=t[i],s=t[r],c=o.x,u=o.y,f=s.x,d=s.y;u>l!=d>l&&n<(f-c)*(l-u)/(d-u)+c&&(a=!a)}return a}function rT(e){const t=e.slice();return t.sort((n,l)=>n.x<l.x?-1:n.x>l.x?1:n.y<l.y?-1:n.y>l.y?1:0),oT(t)}function oT(e){if(e.length<=1)return e.slice();const t=[];for(let l=0;l<e.length;l++){const a=e[l];for(;t.length>=2;){const i=t[t.length-1],r=t[t.length-2];if((i.x-r.x)*(a.y-r.y)>=(i.y-r.y)*(a.x-r.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let l=e.length-1;l>=0;l--){const a=e[l];for(;n.length>=2;){const i=n[n.length-1],r=n[n.length-2];if((i.x-r.x)*(a.y-r.y)>=(i.y-r.y)*(a.x-r.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sT=y0,cT=g0,uT=b0,fT=x0,dT=S0,hT=w0;function T0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=T0(e[t]))&&(l&&(l+=" "),l+=n)}else for(n in e)e[n]&&(l&&(l+=" "),l+=n);return l}function A0(){for(var e,t,n=0,l="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=T0(e))&&(l&&(l+=" "),l+=t);return l}const md="-",mT=e=>{const t=vT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:r=>{const o=r.split(md);return o[0]===""&&o.length!==1&&o.shift(),O0(o,t)||pT(r)},getConflictingClassGroupIds:(r,o)=>{const s=n[r]||[];return o&&l[r]?[...s,...l[r]]:s}}},O0=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],l=t.nextPart.get(n),a=l?O0(e.slice(1),l):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(md);return(r=t.validators.find(({validator:o})=>o(i)))==null?void 0:r.classGroupId},Tm=/^\[(.+)\]$/,pT=e=>{if(Tm.test(e)){const t=Tm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},vT=e=>{const{theme:t,prefix:n}=e,l={nextPart:new Map,validators:[]};return gT(Object.entries(e.classGroups),n).forEach(([i,r])=>{Vu(r,l,i,t)}),l},Vu=(e,t,n,l)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:Am(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(yT(a)){Vu(a(l),t,n,l);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,r])=>{Vu(r,Am(t,i),n,l)})})},Am=(e,t)=>{let n=e;return t.split(md).forEach(l=>{n.nextPart.has(l)||n.nextPart.set(l,{nextPart:new Map,validators:[]}),n=n.nextPart.get(l)}),n},yT=e=>e.isThemeGetter,gT=(e,t)=>t?e.map(([n,l])=>{const a=l.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,o])=>[t+r,o])):i);return[n,a]}):e,bT=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,l=new Map;const a=(i,r)=>{n.set(i,r),t++,t>e&&(t=0,l=n,n=new Map)};return{get(i){let r=n.get(i);if(r!==void 0)return r;if((r=l.get(i))!==void 0)return a(i,r),r},set(i,r){n.has(i)?n.set(i,r):a(i,r)}}},R0="!",xT=e=>{const{separator:t,experimentalParseClassName:n}=e,l=t.length===1,a=t[0],i=t.length,r=o=>{const s=[];let c=0,u=0,f;for(let E=0;E<o.length;E++){let v=o[E];if(c===0){if(v===a&&(l||o.slice(E,E+i)===t)){s.push(o.slice(u,E)),u=E+i;continue}if(v==="/"){f=E;continue}}v==="["?c++:v==="]"&&c--}const d=s.length===0?o:o.substring(u),p=d.startsWith(R0),g=p?d.substring(1):d,x=f&&f>u?f-u:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:x}};return n?o=>n({className:o,parseClassName:r}):r},ST=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(l=>{l[0]==="["?(t.push(...n.sort(),l),n=[]):n.push(l)}),t.push(...n.sort()),t},ET=e=>({cache:bT(e.cacheSize),parseClassName:xT(e),...mT(e)}),CT=/\s+/,wT=(e,t)=>{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:a}=t,i=[],r=e.trim().split(CT);let o="";for(let s=r.length-1;s>=0;s-=1){const c=r[s],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(c);let g=!!p,x=l(g?d.substring(0,p):d);if(!x){if(!g){o=c+(o.length>0?" "+o:o);continue}if(x=l(d),!x){o=c+(o.length>0?" "+o:o);continue}g=!1}const E=ST(u).join(":"),v=f?E+R0:E,y=v+x;if(i.includes(y))continue;i.push(y);const b=a(x,g);for(let S=0;S<b.length;++S){const T=b[S];i.push(v+T)}o=c+(o.length>0?" "+o:o)}return o};function TT(){let e=0,t,n,l="";for(;e<arguments.length;)(t=arguments[e++])&&(n=N0(t))&&(l&&(l+=" "),l+=n);return l}const N0=e=>{if(typeof e=="string")return e;let t,n="";for(let l=0;l<e.length;l++)e[l]&&(t=N0(e[l]))&&(n&&(n+=" "),n+=t);return n};function AT(e,...t){let n,l,a,i=r;function r(s){const c=t.reduce((u,f)=>f(u),e());return n=ET(c),l=n.cache.get,a=n.cache.set,i=o,o(s)}function o(s){const c=l(s);if(c)return c;const u=wT(s,n);return a(s,u),u}return function(){return i(TT.apply(null,arguments))}}const ue=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},j0=/^\[(?:([a-z-]+):)?(.+)\]$/i,OT=/^\d+\/\d+$/,RT=new Set(["px","full","screen"]),NT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jT=/\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$/,zT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wt=e=>ya(e)||RT.has(e)||OT.test(e),wn=e=>li(e,"length",QT),ya=e=>!!e&&!Number.isNaN(Number(e)),Sc=e=>li(e,"number",ya),hi=e=>!!e&&Number.isInteger(Number(e)),DT=e=>e.endsWith("%")&&ya(e.slice(0,-1)),Y=e=>j0.test(e),Tn=e=>NT.test(e),HT=new Set(["length","size","percentage"]),UT=e=>li(e,HT,z0),LT=e=>li(e,"position",z0),BT=new Set(["image","url"]),qT=e=>li(e,BT,GT),VT=e=>li(e,"",YT),mi=()=>!0,li=(e,t,n)=>{const l=j0.exec(e);return l?l[1]?typeof t=="string"?l[1]===t:t.has(l[1]):n(l[2]):!1},QT=e=>jT.test(e)&&!zT.test(e),z0=()=>!1,YT=e=>_T.test(e),GT=e=>MT.test(e),$T=()=>{const e=ue("colors"),t=ue("spacing"),n=ue("blur"),l=ue("brightness"),a=ue("borderColor"),i=ue("borderRadius"),r=ue("borderSpacing"),o=ue("borderWidth"),s=ue("contrast"),c=ue("grayscale"),u=ue("hueRotate"),f=ue("invert"),d=ue("gap"),p=ue("gradientColorStops"),g=ue("gradientColorStopPositions"),x=ue("inset"),E=ue("margin"),v=ue("opacity"),y=ue("padding"),b=ue("saturate"),S=ue("scale"),T=ue("sepia"),R=ue("skew"),w=ue("space"),A=ue("translate"),N=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",Y,t],H=()=>[Y,t],ee=()=>["",Wt,wn],k=()=>["auto",ya,Y],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",Y],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Te=()=>[ya,Y];return{cacheSize:500,separator:":",theme:{colors:[mi],spacing:[Wt,wn],blur:["none","",Tn,Y],brightness:Te(),borderColor:[e],borderRadius:["none","","full",Tn,Y],borderSpacing:H(),borderWidth:ee(),contrast:Te(),grayscale:q(),hueRotate:Te(),invert:q(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[DT,wn],inset:U(),margin:U(),opacity:Te(),padding:H(),saturate:Te(),scale:Te(),sepia:q(),skew:Te(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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"],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:[...re(),Y]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",hi,Y]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",hi,Y]}],"grid-cols":[{"grid-cols":[mi]}],"col-start-end":[{col:["auto",{span:["full",hi,Y]},Y]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[mi]}],"row-start-end":[{row:["auto",{span:[hi,Y]},Y]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Tn]},Tn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Tn,wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sc]}],"font-family":[{font:[mi]}],"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:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",ya,Sc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wt,wn]}],"underline-offset":[{"underline-offset":["auto",Wt,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),LT]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UT]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qT]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[Wt,Y]}],"outline-w":[{outline:[Wt,wn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Wt,wn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Tn,VT]}],"shadow-color":[{shadow:[mi]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[l]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",Tn,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:Te()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:Te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[hi,Y]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wt,wn,Sc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},XT=AT($T);function he(...e){return XT(A0(e))}function ZT({delayDuration:e=0,...t}){return h.jsx(sT,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function KT({...e}){return h.jsx(cT,{"data-slot":"tooltip",...e})}function PT({...e}){return h.jsx(uT,{"data-slot":"tooltip-trigger",...e})}function kT({className:e,sideOffset:t=0,children:n,...l}){return h.jsx(fT,{children:h.jsxs(dT,{"data-slot":"tooltip-content",sideOffset:t,className:he("z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",e),...l,children:[n,h.jsx(hT,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}/**
50
- * @license lucide-react v0.469.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const FT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_0=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/**
55
- * @license lucide-react v0.469.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var JT={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"};/**
60
- * @license lucide-react v0.469.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const WT=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:a="",children:i,iconNode:r,...o},s)=>m.createElement("svg",{ref:s,...JT,width:t,height:t,stroke:e,strokeWidth:l?Number(n)*24/Number(t):n,className:_0("lucide",a),...o},[...r.map(([c,u])=>m.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
65
- * @license lucide-react v0.469.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const pd=(e,t)=>{const n=m.forwardRef(({className:l,...a},i)=>m.createElement(WT,{ref:i,iconNode:t,className:_0(`lucide-${FT(e)}`,l),...a}));return n.displayName=`${e}`,n};/**
70
- * @license lucide-react v0.469.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const IT=pd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
75
- * @license lucide-react v0.469.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const eA=pd("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
80
- * @license lucide-react v0.469.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const tA=pd("CircleAlert",[["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"}]]),Om=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rm=A0,js=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return Rm(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,r=Object.keys(a).map(c=>{const u=n==null?void 0:n[c],f=i==null?void 0:i[c];if(u===null)return null;const d=Om(u)||Om(f);return a[c][d]}),o=n&&Object.entries(n).reduce((c,u)=>{let[f,d]=u;return d===void 0||(c[f]=d),c},{}),s=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,u)=>{let{class:f,className:d,...p}=u;return Object.entries(p).every(g=>{let[x,E]=g;return Array.isArray(E)?E.includes({...i,...o}[x]):{...i,...o}[x]===E})?[...c,f,d]:c},[]);return Rm(e,r,s,n==null?void 0:n.class,n==null?void 0:n.className)},nA=js("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function M0({className:e,variant:t="default",size:n="default",asChild:l=!1,...a}){const i=l?Xg:"button";return h.jsx(i,{"data-slot":"button","data-variant":t,"data-size":n,className:he(nA({variant:t,size:n,className:e})),...a})}function lA({className:e,...t}){return h.jsx("div",{"data-slot":"card",className:he("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),...t})}function aA({className:e,type:t,...n}){return h.jsx("input",{type:t,"data-slot":"input",className:he("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...n})}function cn({className:e,...t}){return h.jsx("div",{"data-slot":"skeleton",className:he("animate-pulse rounded-md bg-accent",e),...t})}function D0({className:e,orientation:t="horizontal",...n}){return h.jsx(M2,{"data-slot":"tabs","data-orientation":t,orientation:t,className:he("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...n})}const iA=js("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function H0({className:e,variant:t="default",...n}){return h.jsx(D2,{"data-slot":"tabs-list","data-variant":t,className:he(iA({variant:t}),e),...n})}function U0({className:e,...t}){return h.jsx(H2,{"data-slot":"tabs-trigger",className:he("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",e),...t})}function pi({className:e,...t}){return h.jsx(U2,{"data-slot":"tabs-content",className:he("flex-1 outline-none",e),...t})}const rA=5;function oA(e="/api/events"){const[t,n]=m.useState(!1),[l,a]=m.useState(!1),[i,r]=m.useState(new Set),o=Ju(),s=m.useRef(0),c=m.useRef(new Map);return m.useEffect(()=>{const u=new EventSource(e);return u.onopen=()=>{s.current=0,n(!0),a(!1)},u.onerror=()=>{n(!1),s.current+=1,s.current>=rA&&a(!0)},u.onmessage=f=>{let d;try{d=JSON.parse(f.data)}catch{return}sA(d,o,r,c.current)},()=>{u.close();const f=c.current;for(const d of f.values())clearTimeout(d);f.clear(),s.current=0,n(!1),a(!1)}},[e,o]),{connected:t,disconnected:l,pulses:i}}function sA(e,t,n,l){switch(e.type){case"feature.update":{t.invalidateQueries({queryKey:["features"]}),t.invalidateQueries({queryKey:["feature",e.slug,"detail"]}),t.invalidateQueries({queryKey:["meta","stats"]}),cA(e.slug,n,l);return}case"cost.updated":{t.invalidateQueries({queryKey:["meta","stats"]}),t.invalidateQueries({queryKey:["features"]}),e.slug&&t.invalidateQueries({queryKey:["feature",e.slug,"detail"]});return}case"activity.added":case"activity.changed":{t.invalidateQueries({queryKey:["activity",50]}),t.invalidateQueries({queryKey:["meta","stats"]});return}}}function cA(e,t,n){t(i=>new Set(i).add(e));const l=n.get(e);l&&clearTimeout(l);const a=setTimeout(()=>{t(i=>{const r=new Set(i);return r.delete(e),r}),n.delete(e)},1500);n.set(e,a)}function uA(){return{data:cl({queryKey:["features"],queryFn:async()=>{const t=await fetch("/api/features");if(!t.ok)throw new Error(`features fetch failed: ${t.status}`);return await t.json()},staleTime:5e3}).data}}function fA(){return{data:cl({queryKey:["meta"],queryFn:async()=>{const t=await fetch("/api/meta");if(!t.ok)throw new Error(`meta fetch failed: ${t.status}`);return await t.json()},staleTime:6e4}).data}}function dA(){return{data:cl({queryKey:["meta","stats"],queryFn:async()=>{const t=await fetch("/api/meta/stats");if(!t.ok)throw new Error(`meta/stats fetch failed: ${t.status}`);return await t.json()},staleTime:5e3}).data}}function hA(e=10,t=24){return{data:cl({queryKey:["trend","hooks",e,t],queryFn:async()=>{const l=await fetch(`/api/trends/hooks?topN=${e}&windowH=${t}`);if(!l.ok)throw new Error(`trend hooks fetch failed: ${l.status}`);return await l.json()},staleTime:6e4}).data}}function mA(e=14){return{data:cl({queryKey:["trend","reviews",e],queryFn:async()=>{const n=await fetch(`/api/trends/reviews?days=${e}`);if(!n.ok)throw new Error(`trend reviews fetch failed: ${n.status}`);return await n.json()},staleTime:6e4}).data}}function pA(e=14){return{data:cl({queryKey:["trend","tokens",e],queryFn:async()=>{const n=await fetch(`/api/trends/tokens?days=${e}`);if(!n.ok)throw new Error(`trend tokens fetch failed: ${n.status}`);return await n.json()},staleTime:6e4}).data}}function Xa(e){return e==null?"—":e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e5?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1)}k`:`${e}`}function vA(e){return e<60?`${e}m ago`:e<60*24?`${Math.floor(e/60)}h ago`:`${Math.floor(e/60/24)}d ago`}const yA=js("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function vd({className:e,variant:t="default",asChild:n=!1,...l}){const a=n?Xg:"span";return h.jsx(a,{"data-slot":"badge","data-variant":t,className:he(yA({variant:t}),e),...l})}function gA({...e}){return h.jsx(Yw,{"data-slot":"hover-card",...e})}function bA({...e}){return h.jsx(Gw,{"data-slot":"hover-card-trigger",...e})}function xA({className:e,align:t="center",sideOffset:n=4,...l}){return h.jsx($w,{"data-slot":"hover-card-portal",children:h.jsx(Xw,{"data-slot":"hover-card-content",align:t,sideOffset:n,className:he("z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...l})})}function SA({className:e,children:t,...n}){return h.jsxs(b2,{"data-slot":"scroll-area",className:he("relative",e),...n,children:[h.jsx(x2,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:t}),h.jsx(EA,{}),h.jsx(S2,{})]})}function EA({className:e,orientation:t="vertical",...n}){return h.jsx(Fg,{"data-slot":"scroll-area-scrollbar",orientation:t,className:he("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:h.jsx(e0,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function CA(e=50){return{data:cl({queryKey:["activity",e],queryFn:async()=>{const n=await fetch(`/api/activity?limit=${e}`);if(!n.ok)throw new Error(`activity fetch failed: ${n.status}`);return await n.json()},staleTime:5e3}).data}}function wA(){return h.jsx(m.Suspense,{fallback:h.jsx(RA,{}),children:h.jsx(TA,{})})}function TA(){const e=CA(50).data;return e.length===0?h.jsx("div",{className:"px-3 py-4 font-mono text-[13px] text-zinc-500",children:"No recent activity."}):h.jsx(SA,{className:"h-full",children:h.jsx("ul",{"aria-live":"polite",className:"divide-y divide-zinc-800/60",children:e.map(t=>h.jsx("li",{className:"px-3 py-2 font-mono text-[13px]",children:h.jsx(OA,{event:t})},AA(t)))})})}function AA(e){switch(e.kind){case"commit":return`commit::${e.ts}::${e.ref}`;case"review":return`review::${e.ts}::${e.slug}::${e.iter}`;case"phase":return`phase::${e.ts}::${e.slug}::${e.from}->${e.to}`;case"hook":return`hook::${e.ts}::${e.rule_id}::${e.decision}`}}function OA({event:e}){const t=e.ts.slice(0,16);switch(e.kind){case"commit":return h.jsx(Zr,{ts:t,kindColor:"text-emerald-300",kind:"commit",summary:e.message,trailing:e.ref.slice(0,7),detail:h.jsxs(h.Fragment,{children:[h.jsx(Kr,{badgeColor:"border-emerald-500/40 text-emerald-300",kind:"commit",ts:t,children:h.jsx("span",{className:"text-zinc-600 font-mono text-[12px]",children:e.ref.slice(0,7)})}),h.jsx("p",{className:"text-sm text-zinc-200 whitespace-pre-wrap break-words",children:e.message}),e.slug&&h.jsx("p",{className:"text-xs text-zinc-500 font-mono",children:e.slug})]})});case"review":return h.jsx(Zr,{ts:t,kindColor:"text-violet-300",kind:"review",summary:`${e.slug} · iter ${e.iter}`,trailing:e.verdict,detail:h.jsxs(h.Fragment,{children:[h.jsx(Kr,{badgeColor:"border-violet-500/40 text-violet-300",kind:"review",ts:t}),h.jsx("p",{className:"text-sm text-zinc-200 font-mono",children:e.slug}),h.jsxs("p",{className:"text-xs text-zinc-500",children:["iter ",e.iter," · verdict ",h.jsx("span",{className:"text-zinc-200",children:e.verdict})]})]})});case"phase":return h.jsx(Zr,{ts:t,kindColor:"text-sky-300",kind:"phase",summary:`${e.slug}: ${e.from} → ${e.to}`,detail:h.jsxs(h.Fragment,{children:[h.jsx(Kr,{badgeColor:"border-sky-500/40 text-sky-300",kind:"phase",ts:t}),h.jsx("p",{className:"text-sm text-zinc-200 font-mono",children:e.slug}),h.jsxs("p",{className:"text-xs text-zinc-500",children:[e.from," ",h.jsx("span",{className:"text-zinc-300",children:"→"})," ",e.to]})]})});case"hook":return h.jsx(Zr,{ts:t,kindColor:"text-amber-300",kind:"hook",summary:e.rule_id,trailing:e.decision,detail:h.jsxs(h.Fragment,{children:[h.jsx(Kr,{badgeColor:"border-amber-500/40 text-amber-300",kind:"hook",ts:t}),h.jsx("p",{className:"text-sm text-zinc-200 font-mono",children:e.rule_id}),h.jsxs("p",{className:"text-xs text-zinc-500",children:["decision ",h.jsx("span",{className:"text-zinc-200",children:e.decision})]})]})})}}function Zr({ts:e,kindColor:t,kind:n,summary:l,trailing:a,detail:i}){return h.jsxs(gA,{openDelay:150,children:[h.jsx(bA,{asChild:!0,children:h.jsxs("button",{type:"button",className:"flex items-baseline gap-2 w-full text-left cursor-default focus:outline-none focus-visible:ring-1 focus-visible:ring-zinc-600 rounded",children:[h.jsx("span",{className:"text-zinc-500 tabular-nums",children:e}),h.jsx("span",{className:t,children:n}),h.jsx("span",{className:"text-zinc-400 truncate flex-1",children:l}),a&&h.jsx("span",{className:"text-zinc-600 shrink-0",children:a})]})}),h.jsx(xA,{className:"w-96 max-w-[90vw] border-zinc-700 bg-zinc-900 text-zinc-200 space-y-1.5",align:"start",side:"bottom",sideOffset:6,children:i})]})}function Kr({badgeColor:e,kind:t,ts:n,children:l}){return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(vd,{variant:"outline",className:e,children:t}),h.jsx("span",{className:"text-zinc-500 font-mono text-[12px]",children:n}),l]})}function RA(){return h.jsx("ul",{className:"divide-y divide-zinc-800/60",children:Array.from({length:5},(e,t)=>t).map(e=>h.jsx("li",{className:"px-3 py-2",children:h.jsx(cn,{className:"h-4 w-full"})},e))})}function NA({data:e,w:t=480,h:n=140,accent:l="#876680",format:a=Xa}){const i={l:28,r:8,t:12,b:20},r=t-i.l-i.r,o=n-i.t-i.b,s=Math.max(...e.map(x=>x.v)),c=Math.max(s,1)*1.15,u=x=>e.length<=1?i.l:i.l+x/(e.length-1)*r,f=x=>i.t+o-x/c*o,d=e.map((x,E)=>`${E===0?"M":"L"} ${u(E).toFixed(1)} ${f(x.v).toFixed(1)}`).join(" "),p=`${d} L ${u(e.length-1).toFixed(1)} ${i.t+o} L ${u(0).toFixed(1)} ${i.t+o} Z`,g=[0,.5,1].map(x=>c*x);return h.jsxs("svg",{width:"100%",height:n,viewBox:`0 0 ${t} ${n}`,className:"overflow-visible",role:"img","aria-label":"Tokens per day trend",children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"lc-grad",x1:"0",x2:"0",y1:"0",y2:"1",children:[h.jsx("stop",{offset:"0%",stopColor:l,stopOpacity:"0.35"}),h.jsx("stop",{offset:"100%",stopColor:l,stopOpacity:"0"})]})}),g.map((x,E)=>h.jsxs("g",{children:[h.jsx("line",{x1:i.l,x2:t-i.r,y1:f(x),y2:f(x),stroke:"#d8cdb1",strokeDasharray:"2 3"}),h.jsx("text",{x:i.l-6,y:f(x)+3,fontSize:"11",fill:"#8e8470",textAnchor:"end",fontFamily:"JetBrains Mono, monospace",children:a(x)})]},`tick-${E}-${x.toFixed(3)}`)),h.jsx("path",{d:p,fill:"url(#lc-grad)"}),h.jsx("path",{d,fill:"none",stroke:l,strokeWidth:"1.5"}),e.map((x,E)=>h.jsx("circle",{cx:u(E),cy:f(x.v),r:"1.8",fill:l},`pt-${x.d}`)),e.map((x,E)=>{const v=E===e.length-1,y=E%3===0,b=E===e.length-2;return!(y||v)||y&&b?null:h.jsx("text",{x:u(E),y:n-4,fontSize:"11",fill:"#8e8470",textAnchor:"middle",fontFamily:"JetBrains Mono, monospace",children:x.d.slice(5)},`xl-${x.d}`)})]})}function jA({data:e,w:t=480,h:n=140}){const l={l:22,r:8,t:12,b:20},a=t-l.l-l.r,i=n-l.t-l.b,r=e.map(f=>f.PASS+f.NI+f.MI),o=Math.max(...r,8)*1.1,s=a/e.length*.7,c=a/e.length*.3,u=f=>l.t+i-f/o*i;return h.jsxs("svg",{width:"100%",height:n,viewBox:`0 0 ${t} ${n}`,role:"img","aria-label":"Review outcome distribution",children:[[0,.5,1].map((f,d)=>h.jsxs("g",{children:[h.jsx("line",{x1:l.l,x2:t-l.r,y1:u(o*f),y2:u(o*f),stroke:"#d8cdb1",strokeDasharray:"2 3"}),h.jsx("text",{x:l.l-6,y:u(o*f)+3,fontSize:"11",fill:"#8e8470",textAnchor:"end",fontFamily:"JetBrains Mono, monospace",children:Math.round(o*f)})]},`grid-${d}-${f}`)),e.map((f,d)=>{const p=l.l+d*(s+c)+c/2,g=u(f.PASS),x=u(f.PASS+f.NI),E=u(f.PASS+f.NI+f.MI),v=u(0);return h.jsxs("g",{children:[h.jsx("rect",{x:p,y:g,width:s,height:Math.max(0,v-g),fill:"#6e8e64",opacity:"0.9"}),h.jsx("rect",{x:p,y:x,width:s,height:Math.max(0,g-x),fill:"#a88347",opacity:"0.9"}),h.jsx("rect",{x:p,y:E,width:s,height:Math.max(0,x-E),fill:"#b86a55",opacity:"0.9"}),(()=>{const y=d===e.length-1,b=d%3===0,S=d===e.length-2;return!(b||y)||b&&S?null:h.jsx("text",{x:p+s/2,y:n-4,fontSize:"11",fill:"#8e8470",textAnchor:"middle",fontFamily:"JetBrains Mono, monospace",children:f.d.slice(5)})})()]},f.d)})]})}function zA({data:e,w:t=360,h:n=200}){const l={l:8,r:8,t:8,b:8},a=Math.max(1,...e.map(o=>o.n)),i=e.length>0?(n-l.t-l.b)/e.length:0,r=o=>o.decision==="deny"?"#b86a55":o.decision==="pass"?"#6e8e64":"#8e8470";return e.length===0?h.jsx("svg",{width:"100%",height:n,viewBox:`0 0 ${t} ${n}`,role:"img","aria-label":"Hook firing top 10",children:h.jsx("text",{x:t/2,y:n/2,fontSize:"12",fill:"#8e8470",textAnchor:"middle",fontFamily:"JetBrains Mono, monospace",children:"No hook firings in this window"})}):h.jsx("svg",{width:"100%",height:n,viewBox:`0 0 ${t} ${n}`,role:"img","aria-label":"Hook firing top 10",children:e.map((o,s)=>{const c=l.t+s*i,u=132,f=(t-l.l-l.r-u-36)*(o.n/a);return h.jsxs("g",{children:[h.jsx("text",{x:l.l,y:c+i/2+3,fontSize:"15",fill:"#4a4234",fontFamily:"JetBrains Mono, monospace",children:o.id}),h.jsx("rect",{x:l.l+u,y:c+i/2-5,width:f,height:10,fill:r(o),opacity:"0.85",rx:"2"}),h.jsx("text",{x:l.l+u+f+6,y:c+i/2+3,fontSize:"15",fill:"#8e8470",fontFamily:"JetBrains Mono, monospace",children:o.n})]},o.id)})})}function _A({color:e,label:t}){return h.jsxs("span",{className:"inline-flex items-center gap-1.5 text-zinc-400",children:[h.jsx("span",{className:"w-2 h-2 rounded-sm",style:{background:e}}),t]})}function MA(e){return{data:cl({queryKey:["feature",e,"detail"],queryFn:async()=>{const n=await fetch(`/api/feature/${encodeURIComponent(e)}/detail`);if(!n.ok)throw new Error(`detail fetch failed: ${n.status}`);return await n.json()},staleTime:5e3}).data}}function L0({verdict:e,iter:t}){if(!e)return h.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-2xl bg-zinc-800/60 text-zinc-500 text-[17px] font-mono",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-zinc-600"}),"no review"]});const l={PASS:{dot:"bg-emerald-500",text:"text-emerald-400",bg:"bg-emerald-500/10",ring:"ring-emerald-500/20"},NEEDS_IMPROVEMENT:{dot:"bg-amber-500",text:"text-amber-400",bg:"bg-amber-500/10",ring:"ring-amber-500/20"},MAJOR_ISSUES:{dot:"bg-rose-500",text:"text-rose-400",bg:"bg-rose-500/10",ring:"ring-rose-500/20"}}[e];return h.jsxs("span",{className:he("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-2xl ring-1 text-[17px] font-mono",l.bg,l.ring,l.text),children:[h.jsx("span",{className:he("w-1.5 h-1.5 rounded-full",l.dot)}),e,t?` · iter ${t}`:""]})}function DA({connected:e=!0}){return h.jsxs("div",{className:"inline-flex items-center gap-2 font-mono text-[17px] text-zinc-400",role:"status","aria-live":"polite",children:[h.jsxs("span",{className:"relative flex w-2 h-2",children:[h.jsx("span",{className:he("absolute inline-flex w-full h-full rounded-full opacity-60 animate-ping",e?"bg-emerald-500":"bg-rose-500"),"aria-hidden":"true"}),h.jsx("span",{className:he("relative inline-flex w-2 h-2 rounded-full",e?"bg-emerald-500":"bg-rose-500"),"aria-hidden":"true"})]}),h.jsx("span",{children:e?"Live":"Disconnected"})]})}function HA({children:e,active:t,className:n}){return h.jsxs("div",{className:he("relative",n),children:[e,t&&h.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 mumei-shimmer rounded-2xl"})]})}const UA=[{id:"timeline",label:"Timeline"},{id:"acs",label:"ACs"},{id:"waveplan",label:"Wave plan"},{id:"reviews",label:"Reviews"},{id:"cost",label:"Cost"}];function LA({slug:e}){return e?h.jsx(m.Suspense,{fallback:h.jsx(qA,{}),children:h.jsx(VA,{slug:e})}):h.jsx(BA,{})}function BA(){return h.jsx("div",{className:"h-full flex items-center justify-center px-6 text-zinc-500",children:h.jsx("p",{className:"font-mono text-sm",children:"Select a feature to see its detail."})})}function qA(){return h.jsxs("div",{className:"h-full p-4 space-y-3",children:[h.jsx(cn,{className:"h-6 w-48"}),h.jsx(cn,{className:"h-4 w-32"}),h.jsx(cn,{className:"h-32 w-full"}),h.jsx(cn,{className:"h-32 w-full"})]})}function VA({slug:e}){const t=MA(e).data;return h.jsxs(D0,{defaultValue:"timeline",className:"h-full flex flex-col gap-0",children:[h.jsx("header",{className:"border-b border-zinc-800 px-4 py-3 flex items-center gap-3",children:h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("div",{className:"font-mono text-[17px] text-zinc-100 truncate",children:t.slug}),h.jsx("div",{className:"font-mono text-[14px] text-zinc-500",children:t.planVehicle?"plan vehicle":"spec vehicle"})]})}),h.jsx("div",{className:"border-b border-zinc-800 px-2 py-1.5 overflow-x-auto bg-zinc-900/50",children:h.jsx(H0,{className:"bg-transparent",children:UA.map(n=>h.jsx(U0,{value:n.id,className:"font-mono text-xs cursor-pointer border border-transparent data-[state=active]:bg-zinc-800/60 data-[state=active]:text-zinc-100 data-[state=active]:border-zinc-700",children:n.label},n.id))})}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3",children:[h.jsx(pi,{value:"timeline",children:h.jsx(QA,{detail:t})}),h.jsx(pi,{value:"acs",children:h.jsx(YA,{detail:t})}),h.jsx(pi,{value:"waveplan",children:h.jsx(GA,{detail:t})}),h.jsx(pi,{value:"reviews",children:h.jsx($A,{detail:t})}),h.jsx(pi,{value:"cost",children:h.jsx(XA,{detail:t})})]})]})}function QA({detail:e}){return e.timeline.length===0?h.jsx(Za,{children:"No timeline events recorded yet."}):h.jsx("ul",{className:"space-y-1.5 font-mono text-[14px]",children:e.timeline.map(t=>h.jsxs("li",{className:"flex items-baseline gap-2 border-l-2 border-zinc-800 pl-2",children:[h.jsx("span",{className:"text-zinc-500 tabular-nums shrink-0",children:t.ts.slice(0,16)}),h.jsx("span",{className:"text-zinc-200 truncate",children:t.event}),t.ref&&h.jsxs("span",{className:"text-zinc-600 shrink-0",children:["· ",t.ref.slice(0,7)]})]},`${t.ts}::${t.event}::${t.ref??""}`))})}function YA({detail:e}){return e.planVehicle?h.jsx(Za,{children:"no requirements (plan vehicle)"}):e.acs.length===0?h.jsx(Za,{children:"No ACs recorded yet."}):h.jsx("ul",{className:"space-y-3",children:e.acs.map(t=>h.jsxs("li",{className:"rounded border border-zinc-800/80 p-3",children:[h.jsxs("div",{className:"flex items-center gap-2 font-mono text-[14px]",children:[h.jsx("span",{className:"text-zinc-300",children:t.id}),h.jsx(vd,{variant:"outline",className:t.confirmed?"border-emerald-500/40 text-emerald-300":"border-amber-500/40 text-amber-300",children:t.confirmed?"CONFIRMED":"ASSUMPTION"})]}),h.jsx("p",{className:"mt-2 font-mono text-[14px] text-zinc-300 whitespace-pre-wrap",children:t.body}),(t.examples??[]).length>0&&h.jsx("ul",{className:"mt-2 space-y-1 pl-4 text-[13px] text-zinc-400",children:(t.examples??[]).map(n=>h.jsx("li",{className:"list-disc",children:n},`${t.id}::${n}`))})]},t.id))})}function GA({detail:e}){return e.waveplan.length===0?h.jsx(Za,{children:"No wave plan recorded."}):h.jsx("ul",{className:"space-y-3",children:e.waveplan.map(t=>h.jsxs("li",{className:"rounded border border-zinc-800/80 p-3",children:[h.jsxs("div",{className:"font-mono text-[15px] text-zinc-200",children:["Wave ",t.wave,": ",h.jsx("span",{className:"text-zinc-400",children:t.goal})]}),h.jsxs("div",{className:"font-mono text-[12px] text-zinc-500 mt-1",children:["verify: ",t.verify]}),h.jsx("ul",{className:"mt-2 space-y-1",children:t.tasks.map(n=>h.jsxs("li",{className:"font-mono text-[13px] text-zinc-300 flex items-baseline gap-2",children:[h.jsx("span",{"aria-hidden":"true",children:n.done?"✓":"○"}),h.jsx("span",{className:"text-zinc-500 tabular-nums",children:n.id}),h.jsx("span",{className:"truncate flex-1",children:n.description})]},n.id))})]},t.wave))})}function $A({detail:e}){return e.reviews.length===0?h.jsx(Za,{children:"No reviews yet."}):h.jsx("ul",{className:"space-y-3",children:e.reviews.map(t=>h.jsxs("li",{className:"rounded border border-zinc-800/80 p-3",children:[h.jsxs("div",{className:"flex items-center gap-2 font-mono text-[14px]",children:[h.jsx(L0,{verdict:t.verdict,iter:t.iteration}),h.jsxs("span",{className:"text-zinc-500",children:["· ",t.ts.slice(0,16)]}),t.wave!==void 0&&h.jsxs("span",{className:"text-zinc-500",children:["· wave ",t.wave]})]}),(t.findings??[]).length>0&&h.jsx("ul",{className:"mt-2 space-y-1 text-[13px]",children:(t.findings??[]).map(n=>h.jsxs("li",{className:"font-mono text-zinc-300",children:[h.jsx(vd,{variant:"outline",className:"mr-2 "+(n.severity==="CRITICAL"||n.severity==="HIGH"?"border-rose-500/40 text-rose-300":n.severity==="MEDIUM"?"border-amber-500/40 text-amber-300":"border-zinc-700 text-zinc-400"),children:n.severity}),n.message]},`${t.ts}::${n.id??""}::${n.severity}::${n.message.slice(0,16)}`))})]},`${t.ts}::${t.iteration}`))})}function XA({detail:e}){if(e.costPerIter.length===0)return h.jsx(Za,{children:"No cost recorded yet."});const t=e.costPerIter.reduce((n,l)=>n+l.tokens,0);return h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"font-mono text-[14px] text-zinc-300",children:["Total tokens: ",h.jsx("span",{className:"text-zinc-100",children:Xa(t)})]}),h.jsx("ul",{className:"space-y-1.5",children:e.costPerIter.map(n=>h.jsxs("li",{className:"flex items-baseline gap-3 font-mono text-[13px] text-zinc-300",children:[h.jsxs("span",{className:"text-zinc-500",children:["iter ",n.iter]}),h.jsx("span",{className:"tabular-nums",children:Xa(n.tokens)}),h.jsxs("span",{className:"tabular-nums text-zinc-500",children:["cache ",Math.round(n.cacheHit*100),"%"]})]},n.iter))})]})}function Za({children:e}){return h.jsx("div",{className:"text-zinc-500 font-mono text-[14px] py-8 text-center",children:e})}function ZA(){return h.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 px-6 py-16 text-center text-zinc-300",children:[h.jsx("div",{className:"font-mono text-2xl text-zinc-200",children:"No features yet"}),h.jsxs("p",{className:"max-w-md text-sm leading-6 text-zinc-500",children:["This project does not have any features under"," ",h.jsx("code",{className:"text-zinc-300",children:".mumei/specs/"})," or"," ",h.jsx("code",{className:"text-zinc-300",children:".mumei/plans/"})," yet. Run"," ",h.jsx("code",{className:"text-emerald-300",children:"/mumei:plan <feature>"})," in your editor to start the first one."]})]})}const KA=js("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function PA({className:e,variant:t,...n}){return h.jsx("div",{"data-slot":"alert",role:"alert",className:he(KA({variant:t}),e),...n})}function kA({className:e,...t}){return h.jsx("div",{"data-slot":"alert-title",className:he("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),...t})}function FA({className:e,...t}){return h.jsx("div",{"data-slot":"alert-description",className:he("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",e),...t})}function JA({name:e,error:t,onRetry:n}){const l=t instanceof Error?t.message:"unknown error";return h.jsxs(PA,{variant:"destructive",className:"m-2 border-red-700/60 bg-red-950/40 text-red-200 [&>svg]:text-red-400",children:[h.jsx(tA,{}),h.jsxs(kA,{children:["Failed to load ",e]}),h.jsxs(FA,{className:"flex items-center justify-between gap-3",children:[h.jsx("span",{className:"text-red-300/80",children:l}),h.jsx(M0,{type:"button",variant:"outline",size:"sm",onClick:()=>{n()},className:"border-red-600/60 text-red-100 hover:bg-red-900/50",children:"Retry"})]})]})}const WA={features:[["features"]],meta:[["meta"],["meta","stats"]],trends:[["trend","tokens",14],["trend","reviews",14],["trend","hooks",10,24]],activity:[["activity",50]],detail:[]};function IA(){const[e,t]=m.useState(null),[n,l]=m.useState("all"),[a,i]=m.useState(""),r=oA("/api/events");return h.jsxs("div",{className:"w-full h-dvh min-h-[640px] bg-zinc-950 paper-bg relative text-zinc-200 flex flex-col font-sans overflow-hidden",children:[h.jsx(vi,{name:"meta",children:h.jsx(m.Suspense,{fallback:h.jsx(nO,{}),children:h.jsx(tO,{connected:r.connected,disconnected:r.disconnected})})}),h.jsxs("div",{className:"flex-1 min-h-0 flex gap-3 p-3 overflow-hidden",children:[h.jsxs("section",{"aria-label":"features",className:"flex flex-col basis-[40%] min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 overflow-hidden",children:[h.jsx(lO,{phase:n,onPhaseChange:l,slug:a,onSlugChange:i}),h.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:h.jsx(vi,{name:"features",children:h.jsx(m.Suspense,{fallback:h.jsx(iO,{}),children:h.jsx(aO,{pulses:r.pulses,selected:e,onSelect:t,phaseFilter:n,slugFilter:a})})})})]}),h.jsx("section",{"aria-label":"feature detail",className:"hidden md:flex flex-col basis-[30%] min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 overflow-hidden",children:h.jsx(vi,{name:"detail",children:h.jsx(LA,{slug:e})})}),h.jsxs("section",{"aria-label":"activity",className:"hidden lg:flex flex-col basis-[30%] min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 overflow-hidden",children:[h.jsx("div",{className:"px-3 py-2 font-mono text-[14px] uppercase tracking-wider text-zinc-500 border-b border-zinc-800",children:"Activity"}),h.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:h.jsx(vi,{name:"activity",children:h.jsx(wA,{})})})]})]}),h.jsx("div",{className:"shrink-0 px-3 pb-3",children:h.jsx(vi,{name:"trends",children:h.jsx(m.Suspense,{fallback:h.jsx(oO,{}),children:h.jsx(rO,{})})})})]})}class eO extends m.Component{constructor(){super(...arguments);zs(this,"state",{error:null});zs(this,"reset",()=>{this.setState({error:null})})}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,l){console.error("[mumei-dashboard] section error",this.props.name,n,l)}render(){return this.state.error?h.jsx(JA,{name:this.props.name,error:this.state.error,onRetry:async()=>{await this.props.onRetry(),this.reset()}}):this.props.children}}function vi({name:e,children:t}){const n=Ju(),l=async()=>{for(const a of WA[e]??[])await n.invalidateQueries({queryKey:a})};return h.jsx(eO,{name:e,onRetry:l,children:t})}function tO({connected:e,disconnected:t}){const n=fA().data,l=dA().data;return h.jsxs("header",{className:"shrink-0",children:[t&&h.jsx("div",{role:"alert","aria-live":"polite",className:"bg-red-950/60 px-4 py-1.5 text-center font-mono text-xs text-red-200",children:"Live updates disconnected — auto-reconnecting…"}),h.jsxs("div",{className:"h-[80px] flex items-center px-3 sm:px-5 gap-3 sm:gap-5",children:[h.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[h.jsx("img",{src:"/mumei-mascot.png",alt:"mumei",className:"w-12 h-12 shrink-0",style:{imageRendering:"pixelated"}}),h.jsx("span",{className:"font-mono text-[26px] font-semibold tracking-tight text-zinc-100",children:"mumei"})]}),h.jsx("div",{className:"hidden sm:flex items-center gap-2 max-w-md font-mono text-[17px] min-w-0",children:h.jsx("span",{className:"text-zinc-200 truncate",children:n.projectLabel})}),h.jsxs("div",{className:"ml-auto flex items-center gap-3 lg:gap-4 font-mono text-[17px] shrink-0 flex-wrap justify-end",children:[h.jsx(yi,{n:String(l.activeCount),label:"active"}),h.jsx(yi,{n:Xa(l.monthTokens),label:"tokens"}),h.jsx(yi,{n:`${Math.round(l.cacheHitRate*100)}%`,label:"cache",tone:"emerald"}),h.jsx("span",{className:"hidden xl:inline-flex items-baseline gap-1",children:h.jsx(yi,{n:`${l.hooksPerSec.toFixed(2)}/s`,label:"hooks"})}),h.jsx("span",{className:"hidden 2xl:inline-flex items-baseline gap-1",children:h.jsx(yi,{n:String(l.eventCount24h),label:"events"})}),h.jsx("span",{className:"hidden sm:inline-block w-px h-4 bg-zinc-800"}),h.jsx(DA,{connected:e})]})]})]})}function nO(){return h.jsx("header",{className:"h-[80px] shrink-0 border-b border-zinc-800 flex items-center px-3 sm:px-5",children:h.jsx(cn,{className:"h-6 w-32"})})}function yi({n:e,label:t,tone:n}){return h.jsxs("div",{className:"flex items-baseline gap-1",children:[h.jsx("span",{className:he("tabular-nums",n==="emerald"?"text-emerald-400":"text-zinc-200"),children:e}),h.jsx("span",{className:"text-zinc-500 uppercase text-[15px] tracking-wider",children:t})]})}function lO({phase:e,onPhaseChange:t,slug:n,onSlugChange:l}){return h.jsxs("div",{className:"px-3 py-3 border-b border-zinc-800 flex flex-wrap items-center gap-3 bg-zinc-900/50",children:[h.jsx(D0,{value:e,onValueChange:a=>t(a),children:h.jsx(H0,{className:"bg-transparent",children:["all","plan","implement","review","done"].map(a=>h.jsx(U0,{value:a,className:"font-mono text-xs cursor-pointer border border-transparent data-[state=active]:bg-zinc-800/60 data-[state=active]:text-zinc-100 data-[state=active]:border-zinc-700",children:a},a))})}),h.jsx("div",{className:"flex-1 min-w-[8rem]"}),h.jsx(aA,{value:n,onChange:a=>l(a.target.value),placeholder:"filter slug…","aria-label":"filter slug",className:"font-mono w-32 sm:w-44 rounded-md border-zinc-700 bg-zinc-950/60 text-zinc-200 placeholder:text-zinc-500"})]})}function aO({pulses:e,selected:t,onSelect:n,phaseFilter:l,slugFilter:a}){const i=uA().data,[r,o]=m.useState(!0);if(i.length===0)return h.jsx(ZA,{});const s=a.trim().toLowerCase(),c=d=>!(l!=="all"&&d.phase!==l||s&&!d.slug.toLowerCase().includes(s)),u=i.filter(d=>!d.archived&&c(d)),f=i.filter(d=>d.archived&&c(d));return h.jsxs("div",{className:"p-3 space-y-3",children:[u.length>0&&h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2.5 auto-rows-fr",children:u.map(d=>h.jsx(Nm,{f:d,selected:t===d.slug,pulse:e.has(d.slug)||d.pulse==="active",onSelect:n},d.slug))}),f.length>0&&h.jsxs("div",{children:[h.jsxs(M0,{type:"button",variant:"outline",onClick:()=>o(d=>!d),"aria-expanded":r,"aria-controls":"archived-grid",className:"w-full font-mono text-[16px] rounded-md border-zinc-700 bg-zinc-950/60 text-zinc-200 hover:bg-zinc-900 hover:text-zinc-100 hover:border-zinc-600",children:[r?h.jsx(IT,{}):h.jsx(eA,{}),h.jsxs("span",{children:["archived (",f.length,")"]})]}),r&&h.jsx("div",{id:"archived-grid",className:"mt-2.5 grid grid-cols-1 sm:grid-cols-2 gap-2.5 auto-rows-fr opacity-70",children:f.map(d=>h.jsx(Nm,{f:d,selected:t===d.slug,pulse:!1,onSelect:n},d.slug))})]})]})}function iO(){return h.jsx("div",{className:"p-4 grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-2.5 auto-rows-fr",children:Array.from({length:6},(e,t)=>t).map(e=>h.jsx(cn,{className:"h-[170px] rounded-2xl"},e))})}function Nm({f:e,selected:t,pulse:n,onSelect:l}){const a=e.totalWaves>0?Math.round(e.waveProgress/e.totalWaves*100):0;return h.jsx(HA,{active:n,children:h.jsxs(lA,{role:"button",tabIndex:0,"aria-pressed":t,onClick:()=>l(e.slug),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),l(e.slug))},style:t?{borderColor:"var(--mumei-text)",borderWidth:"2px",borderStyle:"solid"}:void 0,className:he("gap-0 py-0 rounded-2xl bg-zinc-900/70 hover:bg-zinc-900 transition-colors cursor-pointer shadow-none","focus:outline-none focus-visible:ring-2 focus-visible:ring-violet-500/60",t?"":"border border-zinc-800 hover:border-zinc-700"),children:[h.jsxs("div",{className:"px-3 h-[42px] flex items-center gap-2",children:[h.jsx("span",{className:"font-mono text-[17px] text-zinc-500 tabular-nums",children:e.id}),h.jsx("span",{className:"font-mono text-[17px] text-zinc-100 truncate flex-1",children:e.slug}),h.jsx("span",{className:he("w-1.5 h-1.5 rounded-full",e.vehicle==="spec"?"bg-sky-400":"bg-violet-400"),"aria-hidden":"true"})]}),h.jsxs("div",{className:"px-3 h-[24px] flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-zinc-800 overflow-hidden",children:h.jsx("div",{className:he("h-full rounded-full",e.totalWaves>0?"bg-violet-500/80":"bg-zinc-700/40"),style:{width:`${a}%`}})}),h.jsx("span",{className:"font-mono text-[15px] tabular-nums shrink-0 w-7 text-right",children:e.totalWaves>0?h.jsxs("span",{className:"text-zinc-300",children:[a,"%"]}):h.jsx("span",{className:"text-zinc-600",children:"—"})})]}),h.jsx("div",{className:"px-3 h-[26px] flex items-center",children:h.jsxs("span",{className:"font-mono text-[16px] text-zinc-400 truncate",children:[e.phase,e.nextPhase?` ▶ ${e.nextPhase}`:""]})}),h.jsx("div",{className:"px-3 h-[44px] flex items-center",children:e.lastVerdict?h.jsx(L0,{verdict:e.lastVerdict,iter:e.lastIter}):h.jsx("span",{className:"font-mono text-[16px] text-zinc-600",children:"— no review yet"})}),h.jsxs("div",{className:"px-3 h-[34px] border-t border-zinc-800/80 flex items-center justify-between font-mono text-[16px]",children:[h.jsxs("span",{className:"text-zinc-500 tabular-nums",children:[Xa(e.tokens)," · ",Math.round(e.cacheHit*100),"%"]}),h.jsx("span",{className:"text-zinc-600",children:vA(e.lastActivityMin)})]})]})})}function rO(){const e=pA(14).data,t=mA(14).data,n=hA(10,24).data,l=e.reduce((i,r)=>i+r.v,0),a=n.map(i=>({id:i.rule_id,n:i.count,decision:i.decision==="deny"||i.decision==="block"?"deny":i.decision==="allow"?"pass":"warn"}));return h.jsxs("footer",{className:"h-64 lg:h-[320px] flex gap-3 overflow-x-auto snap-x snap-mandatory lg:snap-none",children:[h.jsxs("section",{className:"snap-start shrink-0 w-full sm:w-1/2 lg:flex-1 lg:w-auto lg:min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 px-3 sm:px-4 py-2.5 min-w-[280px]",children:[h.jsxs("div",{className:"flex items-center justify-between mb-1",children:[h.jsx("div",{className:"font-mono text-[16px] uppercase tracking-wider text-zinc-500",children:"Tokens / day"}),h.jsx("div",{className:"font-mono text-[16px] text-zinc-300 tabular-nums",children:Xa(l)})]}),h.jsx(NA,{data:e,h:240})]}),h.jsxs("section",{className:"snap-start shrink-0 w-full sm:w-1/2 lg:flex-1 lg:w-auto lg:min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 px-3 sm:px-4 py-2.5 min-w-[280px]",children:[h.jsxs("div",{className:"flex items-center justify-between mb-1",children:[h.jsx("div",{className:"font-mono text-[16px] uppercase tracking-wider text-zinc-500",children:"Review outcomes"}),h.jsxs("div",{className:"flex gap-2 font-mono text-[16px]",children:[h.jsx(Ec,{color:"#6e8e64",label:"PASS",tip:"PASS — review verdict cleared"}),h.jsx(Ec,{color:"#a88347",label:"NI",tip:"NEEDS_IMPROVEMENT — review surfaced fixable issues"}),h.jsx(Ec,{color:"#b86a55",label:"MI",tip:"MAJOR_ISSUES — review blocked, requires re-iteration"})]})]}),h.jsx(jA,{data:t,h:240})]}),h.jsxs("section",{className:"snap-start shrink-0 w-full sm:w-1/2 lg:flex-1 lg:w-auto lg:min-w-0 rounded-lg border border-zinc-800 bg-zinc-900/30 px-3 sm:px-4 py-2.5 min-w-[280px]",children:[h.jsxs("div",{className:"flex items-center justify-between mb-1",children:[h.jsx("div",{className:"font-mono text-[16px] uppercase tracking-wider text-zinc-500",children:"Hooks · top 10"}),h.jsxs("div",{className:"font-mono text-[16px] text-zinc-500",children:[n.length," / 24h"]})]}),h.jsx(zA,{data:a,h:240})]})]})}function Ec({color:e,label:t,tip:n}){return h.jsxs(KT,{children:[h.jsx(PT,{asChild:!0,children:h.jsx("button",{type:"button",className:"cursor-help focus:outline-none focus-visible:ring-1 focus-visible:ring-zinc-600 rounded","aria-label":n,children:h.jsx(_A,{color:e,label:t})})}),h.jsx(kT,{side:"top",className:"max-w-xs",children:n})]})}function oO(){return h.jsx("footer",{className:"h-64 lg:h-[320px] flex gap-3",children:Array.from({length:3},(e,t)=>t).map(e=>h.jsxs("section",{className:"flex-1 rounded-lg border border-zinc-800 bg-zinc-900/30 px-3 sm:px-4 py-2.5 min-w-[280px]",children:[h.jsx(cn,{className:"h-4 w-32 mb-2"}),h.jsx(cn,{className:"h-[240px] w-full"})]},e))})}function sO(){return h.jsx(IA,{})}const cO=new xb({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!1,retry:1}}}),B0=document.getElementById("root");if(!B0)throw new Error("#root element missing in index.html");R1.createRoot(B0).render(h.jsx(m.StrictMode,{children:h.jsx(Lb,{client:cO,children:h.jsx(ZT,{delayDuration:150,children:h.jsx(sO,{})})})}));